diff --git a/discovery/admin-directory_v1.json b/discovery/admin-directory_v1.json index 709960debd..6fd29ca3da 100644 --- a/discovery/admin-directory_v1.json +++ b/discovery/admin-directory_v1.json @@ -3989,14 +3989,14 @@ ] }, "insert": { - "description": "Creates a user. Mutate calls immediately following user creation might sometimes fail as the user isn't fully created due to propagation delay in our backends. Check the error details for the \"User creation is not complete\" message to see if this is the case. Retrying the calls after some time can help in this case. If `resolveConflictAccount` is set to `true`, a `202` response code means that a conflicting unmanaged account exists and was invited to join the organization. A `409` response code means that a conflicting account exists so the user wasn't created based on the [handling unmanaged user accounts](https://support.google.com/a/answer/11112794) option selected.", + "description": "Creates a user. Mutate calls immediately following user creation might sometimes fail as the user isn't fully created due to propagation delay in our backends. Check the error details for the \"User creation is not complete\" message to see if this is the case. Retrying the calls after some time can help in this case. If `resolve_conflict_account` is set to `true`, the option selected for [Find and add unmanaged users](https://knowledge.workspace.google.com/admin/users/find-and-add-unmanaged-users) will apply to resolve conflicting accounts: - A `200` response code indicates the user was created (or replaced an existing unmanaged personal account). - A `202` response code means that a conflicting unmanaged personal account exists and was invited to join the organization. - A `409` response code means that a conflicting account exists so the user wasn't created (e.g. based on the option selected to preserve the account, or if the email conflicts with an unmanaged work account or existing managed user). For details on resolving duplicate account errors, see [Resolve duplicate account errors](https://knowledge.workspace.google.com/p/duplicate-account-errors) and [Transfer unmanaged work accounts](https://knowledge.workspace.google.com/p/unmanaged-work-accounts).", "flatPath": "admin/directory/v1/users", "httpMethod": "POST", "id": "directory.users.insert", "parameterOrder": [], "parameters": { "resolveConflictAccount": { - "description": "Optional. If set to `true`, the option selected for [handling unmanaged user accounts](https://support.google.com/a/answer/11112794) will apply. Default: `false`", + "description": "Optional. Applies the option selected for [Find and add unmanaged users](https://knowledge.workspace.google.com/admin/users/find-and-add-unmanaged-users) to resolve conflicting accounts when set to `true`. Default: `false`", "location": "query", "type": "boolean" } @@ -4729,7 +4729,7 @@ } } }, - "revision": "20260902", + "revision": "20260914", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { diff --git a/discovery/agentidentitycredentials-v1alpha.json b/discovery/agentidentitycredentials-v1alpha.json index ed75eb9e16..1a2d215324 100644 --- a/discovery/agentidentitycredentials-v1alpha.json +++ b/discovery/agentidentitycredentials-v1alpha.json @@ -113,6 +113,34 @@ "resources": { "credentials": { "methods": { + "exchange": { + "description": "Swaps an input credential for a target credential as per the rules and provider defined in the given auth provider.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/authProviders/{authProvidersId}/credentials:exchange", + "httpMethod": "POST", + "id": "agentidentitycredentials.projects.locations.authProviders.credentials.exchange", + "parameterOrder": [ + "authProvider" + ], + "parameters": { + "authProvider": { + "description": "Required. The resource name of the auth provider. Format: `projects/{project}/locations/{location}/authProviders/{auth_provider}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+authProvider}/credentials:exchange", + "request": { + "$ref": "GoogleCloudAgentidentitycredentialsV1alpha_ExchangeCredentialsRequest" + }, + "response": { + "$ref": "GoogleCloudAgentidentitycredentialsV1alpha_ExchangeCredentialsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "finalize": { "description": "Finalizes the credentials after a successful consent flow.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/authProviders/{authProvidersId}/credentials:finalize", @@ -178,7 +206,7 @@ } } }, - "revision": "20260813", + "revision": "20260912", "rootUrl": "https://agentidentitycredentials.googleapis.com/", "schemas": { "GoogleCloudAgentidentitycredentialsV1alpha_ConsentRejected": { @@ -187,6 +215,70 @@ "properties": {}, "type": "object" }, + "GoogleCloudAgentidentitycredentialsV1alpha_ExchangeCredentialsRequest": { + "description": "Request message for `ExchangeCredentials`.", + "id": "GoogleCloudAgentidentitycredentialsV1alpha_ExchangeCredentialsRequest", + "properties": { + "scopes": { + "description": "Optional. The desired downstream OAuth scopes to request for the exchanged token.", + "items": { + "type": "string" + }, + "type": "array" + }, + "sourceCredential": { + "description": "Required. The incoming identity or assertion token to be exchanged.", + "type": "string" + }, + "targetTokenType": { + "description": "Optional. The desired target token type to be returned from the exchange. If unspecified, defaults to the token type configured on the AuthProvider.", + "enum": [ + "TARGET_TOKEN_TYPE_UNSPECIFIED", + "TARGET_TOKEN_TYPE_ACCESS_TOKEN", + "TARGET_TOKEN_TYPE_ID_JAG" + ], + "enumDescriptions": [ + "Unspecified target token type. The service will apply default exchange semantics based on the target AuthProvider's configuration.", + "Request an OAuth access token.", + "Request an Identity Assertion Authorization Grant (ID-JAG) token." + ], + "type": "string" + }, + "tokenBinding": { + "$ref": "GoogleCloudAgentidentitycredentialsV1alpha_TokenBinding", + "description": "Optional. The token binding parameters to be applied to downstream tokens and embedded into the ID-JAG assertion." + } + }, + "type": "object" + }, + "GoogleCloudAgentidentitycredentialsV1alpha_ExchangeCredentialsResponse": { + "description": "Response message for `ExchangeCredentials` containing the resulting credentials.", + "id": "GoogleCloudAgentidentitycredentialsV1alpha_ExchangeCredentialsResponse", + "properties": { + "acquireTime": { + "description": "Optional. The time when the token was acquired.", + "format": "google-datetime", + "type": "string" + }, + "expireTime": { + "description": "Optional. The expiration time of the exchanged access token.", + "format": "google-datetime", + "type": "string" + }, + "scopes": { + "description": "The scopes actually associated with the retrieved token.", + "items": { + "type": "string" + }, + "type": "array" + }, + "token": { + "description": "The user-consented workforce access token resulting from the exchange.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAgentidentitycredentialsV1alpha_FinalizeCredentialsRequest": { "description": "Request message for `FinalizeCredentials`.", "id": "GoogleCloudAgentidentitycredentialsV1alpha_FinalizeCredentialsRequest", @@ -295,6 +387,17 @@ }, "type": "object" }, + "GoogleCloudAgentidentitycredentialsV1alpha_TokenBinding": { + "description": "Configuration for binding downstream credentials to client communication channel properties.", + "id": "GoogleCloudAgentidentitycredentialsV1alpha_TokenBinding", + "properties": { + "certificateFingerprint": { + "description": "Optional. The base64url-encoded SHA-256 hash of the DER-encoded X.509 client certificate, as defined in RFC 8705 Section 3.1 (corresponding to \"x5t#S256\"). Format requirements: - Base64url encoding (RFC 4648 Section 5) using URL-safe characters ('-' and '_') without padding ('='). - Exactly 43 characters long for a 256-bit SHA-256 digest.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAgentidentitycredentialsV1alpha_UriConsentRequired": { "description": "Indicates that the user must visit the provided URI to consent to delegate permission to the agent to act on their behalf. The caller can either poll the `RetrieveCredentials` method, or await the /ValidateUserId callback.", "id": "GoogleCloudAgentidentitycredentialsV1alpha_UriConsentRequired", diff --git a/discovery/alertcenter-v1beta1.json b/discovery/alertcenter-v1beta1.json index 3763754094..41a979d6c7 100644 --- a/discovery/alertcenter-v1beta1.json +++ b/discovery/alertcenter-v1beta1.json @@ -423,7 +423,7 @@ } } }, - "revision": "20260817", + "revision": "20260914", "rootUrl": "https://alertcenter.googleapis.com/", "schemas": { "AbuseDetected": { @@ -2017,7 +2017,8 @@ "CHROMEOS_FILE_TRANSFER", "GEMINI_ACCESS", "AGENT_EXECUTION", - "CHROME_DATA_COPIED" + "CHROME_DATA_COPIED", + "CHROME_NETWORK_REQUEST" ], "enumDescriptions": [ "Trigger is unspecified.", @@ -2033,7 +2034,8 @@ "A file being transferred (copy or moved) between different file systems on ChromeOS.", "Gemini access.", "Agent execution.", - "Text copied from Chrome." + "Text copied from Chrome.", + "Network request from Chrome." ], "type": "string" }, diff --git a/discovery/alloydb-v1alpha.json b/discovery/alloydb-v1alpha.json index 2942dd474a..8b91edfcca 100644 --- a/discovery/alloydb-v1alpha.json +++ b/discovery/alloydb-v1alpha.json @@ -2086,7 +2086,7 @@ } } }, - "revision": "20260826", + "revision": "20260904", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2207,7 +2207,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -2216,6 +2217,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2225,7 +2227,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "readOnly": true, "type": "string" @@ -2244,6 +2247,21 @@ "description": "User-settable and human-readable display name for the Backup.", "type": "string" }, + "edition": { + "description": "Output only. The edition of the cluster this backup was created from. Any restored cluster created from this backup will have the same edition.", + "enum": [ + "EDITION_UNSPECIFIED", + "EDITION_ALLOYDB", + "EDITION_ALLOYDB_DEVELOPER" + ], + "enumDescriptions": [ + "An unknown Edition type.", + "Standard AlloyDB cluster.", + "Developer edition cluster." + ], + "readOnly": true, + "type": "string" + }, "encryptionConfig": { "$ref": "EncryptionConfig", "description": "Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data." @@ -2612,7 +2630,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -2621,6 +2640,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2630,7 +2650,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "type": "string" }, @@ -2648,6 +2669,20 @@ "description": "User-settable and human-readable display name for the Cluster.", "type": "string" }, + "edition": { + "description": "Optional. Edition of the cluster. If left unspecified, the cluster behaves as `EDITION_ALLOYDB`.", + "enum": [ + "EDITION_UNSPECIFIED", + "EDITION_ALLOYDB", + "EDITION_ALLOYDB_DEVELOPER" + ], + "enumDescriptions": [ + "An unknown Edition type.", + "Standard AlloyDB cluster.", + "Developer edition cluster." + ], + "type": "string" + }, "encryptionConfig": { "$ref": "EncryptionConfig", "description": "Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data." @@ -2857,7 +2892,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -2866,6 +2902,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2875,7 +2912,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "type": "string" }, @@ -7508,7 +7546,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -7517,6 +7556,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -7526,7 +7566,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "type": "string" }, @@ -7652,7 +7693,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -7661,6 +7703,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -7670,7 +7713,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "type": "string" } @@ -7736,7 +7780,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -7745,6 +7790,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -7754,7 +7800,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "type": "string" }, @@ -7798,7 +7845,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -7807,6 +7855,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -7816,7 +7865,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "type": "string" } diff --git a/discovery/alloydb-v1beta.json b/discovery/alloydb-v1beta.json index db6605b780..f438122c4e 100644 --- a/discovery/alloydb-v1beta.json +++ b/discovery/alloydb-v1beta.json @@ -2083,7 +2083,7 @@ } } }, - "revision": "20260826", + "revision": "20260904", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2204,7 +2204,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -2213,6 +2214,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2222,7 +2224,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "readOnly": true, "type": "string" @@ -2241,6 +2244,21 @@ "description": "User-settable and human-readable display name for the Backup.", "type": "string" }, + "edition": { + "description": "Output only. The edition of the cluster this backup was created from. Any restored cluster created from this backup will have the same edition.", + "enum": [ + "EDITION_UNSPECIFIED", + "EDITION_ALLOYDB", + "EDITION_ALLOYDB_DEVELOPER" + ], + "enumDescriptions": [ + "An unknown Edition type.", + "Standard AlloyDB cluster.", + "Developer edition cluster." + ], + "readOnly": true, + "type": "string" + }, "encryptionConfig": { "$ref": "EncryptionConfig", "description": "Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data." @@ -2598,7 +2616,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -2607,6 +2626,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2616,7 +2636,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "type": "string" }, @@ -2634,6 +2655,20 @@ "description": "User-settable and human-readable display name for the Cluster.", "type": "string" }, + "edition": { + "description": "Optional. Edition of the cluster. If left unspecified, the cluster behaves as `EDITION_ALLOYDB`.", + "enum": [ + "EDITION_UNSPECIFIED", + "EDITION_ALLOYDB", + "EDITION_ALLOYDB_DEVELOPER" + ], + "enumDescriptions": [ + "An unknown Edition type.", + "Standard AlloyDB cluster.", + "Developer edition cluster." + ], + "type": "string" + }, "encryptionConfig": { "$ref": "EncryptionConfig", "description": "Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data." @@ -2838,7 +2873,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -2847,6 +2883,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2856,7 +2893,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "type": "string" }, @@ -7484,7 +7522,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -7493,6 +7532,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -7502,7 +7542,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "type": "string" }, @@ -7628,7 +7669,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -7637,6 +7679,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -7646,7 +7689,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "type": "string" } @@ -7712,7 +7756,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -7721,6 +7766,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -7730,7 +7776,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "type": "string" }, @@ -7774,7 +7821,8 @@ "POSTGRES_15", "POSTGRES_16", "POSTGRES_17", - "POSTGRES_18" + "POSTGRES_18", + "POSTGRES_19" ], "enumDeprecated": [ false, @@ -7783,6 +7831,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -7792,7 +7841,8 @@ "The database version is Postgres 15.", "The database version is Postgres 16.", "The database version is Postgres 17.", - "The database version is Postgres 18." + "The database version is Postgres 18.", + "The database version is Postgres 19." ], "type": "string" } diff --git a/discovery/analyticsdata-v1beta.json b/discovery/analyticsdata-v1beta.json index fb09abcb56..d128281ddd 100644 --- a/discovery/analyticsdata-v1beta.json +++ b/discovery/analyticsdata-v1beta.json @@ -440,7 +440,7 @@ } } }, - "revision": "20241117", + "revision": "20260909", "rootUrl": "https://analyticsdata.googleapis.com/", "schemas": { "ActiveMetricRestriction": { @@ -846,6 +846,73 @@ }, "type": "object" }, + "DataTruncationDateRange": { + "description": "Define the truncated date range from start_date to end_date.", + "id": "DataTruncationDateRange", + "properties": { + "endDate": { + "description": "The end date in the format YYYY-MM-DD (inclusive).", + "type": "string" + }, + "startDate": { + "description": "The start date in the format YYYY-MM-DD (inclusive).", + "type": "string" + } + }, + "type": "object" + }, + "DataTruncationReason": { + "description": "Describes a reason for data truncation in the report.", + "id": "DataTruncationReason", + "properties": { + "dataTruncationDate": { + "description": "The data truncation date in the format YYYY-MM-DD. Indicates data before this date is truncated.", + "type": "string" + }, + "dataTruncationDateRanges": { + "description": "The truncated date ranges.", + "items": { + "$ref": "DataTruncationDateRange" + }, + "type": "array" + }, + "dataTruncationMessage": { + "description": "A descriptive message explaining the data truncation.", + "type": "string" + }, + "dataTruncationType": { + "description": "The type of data truncation.", + "enum": [ + "DATA_TRUNCATION_TYPE_UNSPECIFIED", + "DATA_TRUNCATION_TYPE_RULES_BASED_MODELS", + "DATA_TRUNCATION_TYPE_DATA_DRIVEN_ATTRIBUTION", + "DATA_TRUNCATION_TYPE_DV360", + "DATA_TRUNCATION_TYPE_CM360", + "DATA_TRUNCATION_TYPE_ITEM_SCOPED_ECOMMERCE_METRICS", + "DATA_TRUNCATION_TYPE_EVENT_SCOPED_ECOMMERCE_METRICS", + "DATA_TRUNCATION_TYPE_DATE_RANGE", + "DATA_TRUNCATION_TYPE_PROPERTY", + "DATA_TRUNCATION_TYPE_CONVERSIONS", + "DATA_TRUNCATION_TYPE_GOOGLE_ADS" + ], + "enumDescriptions": [ + "Unspecified type.", + "Data is truncated in attribution report for rules-based models golden date.", + "Data is truncated in attribution report for data driven attribution golden date.", + "Data is truncated because DV360 policy does not permit data older than 2 years from being returned.", + "Data is truncated because CM360 policy does not permit data older than 2 years from being returned.", + "New item-scoped ecommerce metrics only have data after a specific date.", + "New event-scoped ecommerce metrics only have data after a specific date.", + "Query date range may not be fully served.", + "Data truncated because the query attempts to read event data prior to its retention date.", + "Data is truncated in conversions report.", + "Data is truncated due to Google Ads 36 month retention policy." + ], + "type": "string" + } + }, + "type": "object" + }, "DateRange": { "description": "A contiguous set of days: `startDate`, `startDate + 1`, ..., `endDate`. Requests are allowed up to 4 date ranges.", "id": "DateRange", @@ -1694,6 +1761,13 @@ "description": "If true, indicates some buckets of dimension combinations are rolled into \"(other)\" row. This can happen for high cardinality reports. The metadata parameter dataLossFromOtherRow is populated based on the aggregated data table used in the report. The parameter will be accurately populated regardless of the filters and limits in the report. For example, the (other) row could be dropped from the report because the request contains a filter on sessionSource = google. This parameter will still be populated if data loss from other row was present in the input aggregate data used to generate this report. To learn more, see [About the (other) row and data sampling](https://support.google.com/analytics/answer/13208658#reports).", "type": "boolean" }, + "dataTruncationReasons": { + "description": "If set, indicate there is data truncation in the report.", + "items": { + "$ref": "DataTruncationReason" + }, + "type": "array" + }, "emptyReason": { "description": "If empty reason is specified, the report is empty for this reason.", "type": "string" diff --git a/discovery/androidmanagement-v1.json b/discovery/androidmanagement-v1.json index 1ba008d308..1b752489ea 100644 --- a/discovery/androidmanagement-v1.json +++ b/discovery/androidmanagement-v1.json @@ -1265,7 +1265,7 @@ } } }, - "revision": "20260826", + "revision": "20260917", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -2765,8 +2765,8 @@ "Clears the application data of specified apps. This is supported on Android 9 and above. Note that an application can store data outside of its application data, for example in external storage or in a user dictionary. See also clear_apps_data_params.", "Puts the device into lost mode. Only supported on fully managed devices or organization-owned devices with a managed profile. See also start_lost_mode_params.", "Takes the device out of lost mode. Only supported on fully managed devices or organization-owned devices with a managed profile. See also stop_lost_mode_params.", - "Adds an eSIM profile to the device. This is supported on Android 15 and above. See also addEsimParams. To remove an eSIM profile, use the REMOVE_ESIM command. To determine what happens to the eSIM profile when a device is wiped, set wipeDataFlags in the policy. Note: To provision multiple eSIMs on a single device, it is recommended to introduce a delay of a few minutes between successive executions of the command.", - "Removes an eSIM profile from the device. This is supported on Android 15 and above. See also removeEsimParams.", + "Adds an eSIM profile to the device. This is supported on Android 15 and above. See also addEsimParams. To remove an eSIM profile, use the REMOVE_ESIM command. Note that REMOVE_ESIM is not supported on company-owned devices with a work profile running Android 16 QPR2 or Android 16 QPR3. To determine what happens to the eSIM profile when a device is wiped, set wipeDataFlags in the policy. Note: To provision multiple eSIMs on a single device, it is recommended to introduce a delay of a few minutes between successive executions of the command.", + "Removes an eSIM profile from the device. This is supported on Android 15 and above. This command is not supported on company-owned devices with a work profile running Android 16 QPR2 or Android 16 QPR3. See also removeEsimParams.", "Request information related to the device.", "Wipes the device, via a factory reset for a company owned device, or by deleting the work profile for a personally owned device with work profile. The wipe only occurs once the device acknowledges the command. The command can be cancelled before then." ], @@ -6209,6 +6209,20 @@ ], "type": "string" }, + "backupService": { + "description": "Optional. Controls whether the backup service is disabled. Supported only on fully managed devices running Android 8 and above.", + "enum": [ + "BACKUP_SERVICE_UNSPECIFIED", + "BACKUP_SERVICE_DISABLED", + "BACKUP_SERVICE_USER_CHOICE" + ], + "enumDescriptions": [ + "Unspecified. Defaults to BACKUP_SERVICE_DISABLED.", + "Backup service is disabled. The user is not allowed to change this setting. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 8 on a fully managed device.", + "The user can enable or disable the backup service. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 8 on a fully managed device." + ], + "type": "string" + }, "blockApplicationsEnabled": { "deprecated": true, "description": "This field has no effect.", diff --git a/discovery/androidpublisher-v3.json b/discovery/androidpublisher-v3.json index 324f547487..0f33594aa8 100644 --- a/discovery/androidpublisher-v3.json +++ b/discovery/androidpublisher-v3.json @@ -5970,7 +5970,7 @@ } } }, - "revision": "20260909", + "revision": "20260917", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Abi": { @@ -6491,6 +6491,10 @@ "description": "An installable set of active APKs. All APKs in this set should belong to the same version of the app. A set of APKs might only contain 1 APK if the app in question publishes using APKs. If the app uses app bundles (or a similar technology), this set should contain all APKs (even optional ones) that might be installed for this app. A set of APKs should be installable together. If certain APKs are exclusive to one another and cannot be installed together, then a separate AppStoreAppActiveApkSet should be created.", "id": "AppStoreAppActiveApkSet", "properties": { + "alreadyPublishedOnPlay": { + "description": "Optional. Whether all APKs referenced in this active APK set are published on Play Store (or derived from an app bundle published on Play Store). When this is set, version_code must be provided.", + "type": "boolean" + }, "baseApkId": { "description": "Required. The ID for the main base application module. Example: base.apk or app.apk.", "type": "string" @@ -6501,6 +6505,11 @@ "type": "string" }, "type": "array" + }, + "versionCode": { + "description": "Optional. Version code for the version this APK set represents.", + "format": "int64", + "type": "string" } }, "type": "object" diff --git a/discovery/apigateway-v1.json b/discovery/apigateway-v1.json index 9ad405996c..b5e0d9d5a8 100644 --- a/discovery/apigateway-v1.json +++ b/discovery/apigateway-v1.json @@ -1094,7 +1094,7 @@ } } }, - "revision": "20260902", + "revision": "20260909", "rootUrl": "https://apigateway.googleapis.com/", "schemas": { "ApigatewayApi": { @@ -1404,7 +1404,7 @@ "type": "string" }, "defaultHostname": { - "description": "Output only. The default API Gateway host name of the form `{gateway_id}-{hash}.{region_code}.gateway.dev`.", + "description": "Output only. The default hostname that serves traffic for this Gateway.", "readOnly": true, "type": "string" }, diff --git a/discovery/apigateway-v1beta.json b/discovery/apigateway-v1beta.json index cfaca62601..78835b2c62 100644 --- a/discovery/apigateway-v1beta.json +++ b/discovery/apigateway-v1beta.json @@ -1094,7 +1094,7 @@ } } }, - "revision": "20260902", + "revision": "20260909", "rootUrl": "https://apigateway.googleapis.com/", "schemas": { "ApigatewayApi": { @@ -1420,7 +1420,7 @@ "type": "string" }, "defaultHostname": { - "description": "Output only. The default API Gateway host name of the form `{gateway_id}-{hash}.{region_code}.gateway.dev`.", + "description": "Output only. The default hostname that serves traffic for this Gateway.", "readOnly": true, "type": "string" }, diff --git a/discovery/apihub-v1.json b/discovery/apihub-v1.json index ef06d10ce4..0d086fc497 100644 --- a/discovery/apihub-v1.json +++ b/discovery/apihub-v1.json @@ -72,6 +72,11 @@ "endpointUrl": "https://apihub.us-east1.rep.googleapis.com/", "location": "us-east1" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://apihub.us-east4.rep.googleapis.com/", + "location": "us-east4" + }, { "description": "Regional Endpoint", "endpointUrl": "https://apihub.us-west1.rep.googleapis.com/", @@ -1071,7 +1076,7 @@ ] }, "delete": { - "description": "Delete an operation in an API version and we can delete only the operations created via create API. If the operation was created by parsing the spec, then it can be deleted by editing or deleting the spec.", + "description": "Delete an operation in an API version and we can delete only the operations created via create API. If the operation was created by parsing the spec, then it can be deleted by editing or deleting the spec. Deleting an operation will also remove any links between the operation and deployments.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/apis/{apisId}/versions/{versionsId}/operations/{operationsId}", "httpMethod": "DELETE", "id": "apihub.projects.locations.apis.versions.operations.delete", @@ -1240,7 +1245,7 @@ ] }, "delete": { - "description": "Delete a spec. Deleting a spec will also delete the associated operations from the version.", + "description": "Delete a spec. Deleting a spec will also delete the associated operations from the version and remove any links between the spec and deployments.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/apis/{apisId}/versions/{versionsId}/specs/{specsId}", "httpMethod": "DELETE", "id": "apihub.projects.locations.apis.versions.specs.delete", @@ -2018,7 +2023,7 @@ ] }, "delete": { - "description": "Delete a deployment resource in the API hub.", + "description": "Deletes a deployment resource in the API hub. A deployment can only be deleted after its links to any versions, specs, and API operations have been removed.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deployments/{deploymentsId}", "httpMethod": "DELETE", "id": "apihub.projects.locations.deployments.delete", @@ -3450,7 +3455,7 @@ } } }, - "revision": "20260831", + "revision": "20260913", "rootUrl": "https://apihub.googleapis.com/", "schemas": { "Empty": { @@ -3955,6 +3960,13 @@ "readOnly": true, "type": "string" }, + "deployments": { + "description": "Optional. The deployments linked directly to this API operation. For operations parsed from a spec, `UpdateApiOperation` returns `FAILED_PRECONDITION`; link the parent spec to the deployment via `Spec.deployments` instead. Format is `projects/{project}/locations/{location}/deployments/{deployment}`", + "items": { + "type": "string" + }, + "type": "array" + }, "details": { "$ref": "GoogleCloudApihubV1OperationDetails", "description": "Optional. Operation details. Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided." @@ -4808,6 +4820,14 @@ "description": "Details of the deployment where APIs are hosted. A deployment could represent an Apigee proxy, API gateway, other Google Cloud services or non-Google Cloud services as well. A deployment entity is a root level entity in the API hub and exists independent of any API.", "id": "GoogleCloudApihubV1Deployment", "properties": { + "apiOperations": { + "description": "Output only. The API operations linked directly to this deployment.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "apiVersions": { "description": "Output only. The API versions linked to this deployment. Note: A particular deployment could be linked to multiple different API versions (of same or different APIs).", "items": { @@ -4888,10 +4908,22 @@ "description": "Optional. The project to which the deployment belongs. For Google Cloud gateways, this will refer to the project identifier. For others like Edge/OPDK, this will refer to the org identifier.", "type": "string" }, + "sourceRevision": { + "description": "Optional. A revision identifier for the underlying gateway configuration that this deployment serves. For Apigee gateway variants, this is typically the proxy revision number populated automatically when the deployment is discovered.", + "type": "string" + }, "sourceUri": { "$ref": "GoogleCloudApihubV1AttributeValues", "description": "Optional. The uri where additional source specific information for this deployment can be found. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-source-uri` The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. The value of the attribute should be a valid URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory." }, + "specs": { + "description": "Output only. The specs linked directly to this deployment. Note: a deployment could serve multiple specs (e.g., across different revisions of the same underlying gateway configuration).", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "updateTime": { "description": "Output only. The time at which the deployment was last updated.", "format": "google-datetime", @@ -7125,6 +7157,13 @@ "readOnly": true, "type": "string" }, + "deployments": { + "description": "Optional. The deployments linked directly to this spec. Format is `projects/{project}/locations/{location}/deployments/{deployment}`", + "items": { + "type": "string" + }, + "type": "array" + }, "details": { "$ref": "GoogleCloudApihubV1SpecDetails", "description": "Output only. Details parsed from the spec.", @@ -7222,6 +7261,13 @@ "description": "The metadata associated with a spec of the API version.", "id": "GoogleCloudApihubV1SpecMetadata", "properties": { + "deploymentResourceUris": { + "description": "Optional. The gateway-side URIs of deployments that serve this spec. If provided, the API Hub service creates links between this spec and the deployments identified by these URIs. URIs that don't match any known deployment are ignored; a subsequent ingestion cycle that includes the missing deployment will re-establish the link. The maximum number of URIs allowed is 100.", + "items": { + "type": "string" + }, + "type": "array" + }, "originalCreateTime": { "description": "Optional. Timestamp indicating when the spec was created at the source.", "format": "google-datetime", diff --git a/discovery/assuredworkloads-v1.json b/discovery/assuredworkloads-v1.json index 26768d7714..d1b65845cc 100644 --- a/discovery/assuredworkloads-v1.json +++ b/discovery/assuredworkloads-v1.json @@ -897,18 +897,18 @@ ], "parameters": { "filter": { - "description": "A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported.", + "description": "Optional. A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported.", "location": "query", "type": "string" }, "pageSize": { - "description": "Page size.", + "description": "Optional. Page size.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests.", + "description": "Optional. Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests.", "location": "query", "type": "string" }, @@ -1452,7 +1452,7 @@ } } }, - "revision": "20260810", + "revision": "20260914", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": { @@ -1708,6 +1708,18 @@ "description": "The number of findings for the cloud control.", "format": "int32", "type": "integer" + }, + "orgPolicyFindingCount": { + "description": "Output only. Number of organization policy findings for the cloud control.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "resourceFindingCount": { + "description": "Output only. Number of resource findings for the cloud control.", + "format": "int64", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -2111,6 +2123,12 @@ "description": "Identifier. The name of the control compliance summary.", "type": "string" }, + "orgPolicyFindingCount": { + "description": "Output only. Number of organization policy findings for this control.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "overallEvaluationState": { "description": "Output only. The overall evaluation status of the control.", "enum": [ @@ -2128,6 +2146,12 @@ "readOnly": true, "type": "string" }, + "resourceFindingCount": { + "description": "Output only. Number of resource findings for this control.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "similarControls": { "description": "The list of similar controls.", "items": { diff --git a/discovery/assuredworkloads-v1beta1.json b/discovery/assuredworkloads-v1beta1.json index 9da5fb528b..06c2cb4c12 100644 --- a/discovery/assuredworkloads-v1beta1.json +++ b/discovery/assuredworkloads-v1beta1.json @@ -897,18 +897,18 @@ ], "parameters": { "filter": { - "description": "A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported.", + "description": "Optional. A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported.", "location": "query", "type": "string" }, "pageSize": { - "description": "Page size.", + "description": "Optional. Page size.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests.", + "description": "Optional. Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests.", "location": "query", "type": "string" }, @@ -1424,7 +1424,7 @@ } } }, - "revision": "20260810", + "revision": "20260914", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest": { @@ -1680,6 +1680,18 @@ "description": "The number of findings for the cloud control.", "format": "int32", "type": "integer" + }, + "orgPolicyFindingCount": { + "description": "Output only. Number of organization policy findings for the cloud control.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "resourceFindingCount": { + "description": "Output only. Number of resource findings for the cloud control.", + "format": "int64", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -2090,6 +2102,12 @@ "description": "Identifier. The name of the control compliance summary.", "type": "string" }, + "orgPolicyFindingCount": { + "description": "Output only. Number of organization policy findings for this control.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "overallEvaluationState": { "description": "Output only. The overall evaluation status of the control.", "enum": [ @@ -2107,6 +2125,12 @@ "readOnly": true, "type": "string" }, + "resourceFindingCount": { + "description": "Output only. Number of resource findings for this control.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "similarControls": { "description": "The list of similar controls.", "items": { diff --git a/discovery/auditmanager-v1.json b/discovery/auditmanager-v1.json index 186e609d0a..833b1adf61 100644 --- a/discovery/auditmanager-v1.json +++ b/discovery/auditmanager-v1.json @@ -256,6 +256,152 @@ } } }, + "auditSchedules": { + "methods": { + "create": { + "description": "Creates a new audit schedule in a given project and location.", + "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/auditSchedules", + "httpMethod": "POST", + "id": "auditmanager.folders.locations.auditSchedules.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "auditScheduleId": { + "description": "Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Project or folder that this audit schedule is for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}`", + "location": "path", + "pattern": "^folders/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "Optional. If `true`, only validates the request and does not create the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/auditSchedules", + "request": { + "$ref": "AuditSchedule" + }, + "response": { + "$ref": "AuditSchedule" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-auditmanager", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single audit schedule.", + "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/auditSchedules/{auditSchedulesId}", + "httpMethod": "GET", + "id": "auditmanager.folders.locations.auditSchedules.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the audit schedule to retrieve, in one of the following formats: * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}`", + "location": "path", + "pattern": "^folders/[^/]+/locations/[^/]+/auditSchedules/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "AuditSchedule" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-auditmanager", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists audit schedules in a given project and location.", + "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/auditSchedules", + "httpMethod": "GET", + "id": "auditmanager.folders.locations.auditSchedules.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous call, to retrieve the next page of results.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent for the audit schedule, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}`", + "location": "path", + "pattern": "^folders/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/auditSchedules", + "response": { + "$ref": "ListAuditSchedulesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-auditmanager", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing audit schedule.", + "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/auditSchedules/{auditSchedulesId}", + "httpMethod": "PATCH", + "id": "auditmanager.folders.locations.auditSchedules.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Unique identifier for the audit schedule. Format: projects/{project}/locations/{location}/auditSchedules/{audit_schedule} folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}", + "location": "path", + "pattern": "^folders/[^/]+/locations/[^/]+/auditSchedules/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. List of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. If `true`, only validates the request and does not update the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "AuditSchedule" + }, + "response": { + "$ref": "AuditSchedule" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-auditmanager", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "auditScopeReports": { "methods": { "generate": { @@ -596,6 +742,152 @@ } } }, + "auditSchedules": { + "methods": { + "create": { + "description": "Creates a new audit schedule in a given project and location.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/auditSchedules", + "httpMethod": "POST", + "id": "auditmanager.organizations.locations.auditSchedules.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "auditScheduleId": { + "description": "Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Project or folder that this audit schedule is for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "Optional. If `true`, only validates the request and does not create the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/auditSchedules", + "request": { + "$ref": "AuditSchedule" + }, + "response": { + "$ref": "AuditSchedule" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-auditmanager", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single audit schedule.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/auditSchedules/{auditSchedulesId}", + "httpMethod": "GET", + "id": "auditmanager.organizations.locations.auditSchedules.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the audit schedule to retrieve, in one of the following formats: * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/auditSchedules/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "AuditSchedule" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-auditmanager", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists audit schedules in a given project and location.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/auditSchedules", + "httpMethod": "GET", + "id": "auditmanager.organizations.locations.auditSchedules.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous call, to retrieve the next page of results.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent for the audit schedule, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/auditSchedules", + "response": { + "$ref": "ListAuditSchedulesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-auditmanager", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing audit schedule.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/auditSchedules/{auditSchedulesId}", + "httpMethod": "PATCH", + "id": "auditmanager.organizations.locations.auditSchedules.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Unique identifier for the audit schedule. Format: projects/{project}/locations/{location}/auditSchedules/{audit_schedule} folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/auditSchedules/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. List of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. If `true`, only validates the request and does not update the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "AuditSchedule" + }, + "response": { + "$ref": "AuditSchedule" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-auditmanager", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "auditScopeReports": { "methods": { "generate": { @@ -1142,6 +1434,152 @@ } } }, + "auditSchedules": { + "methods": { + "create": { + "description": "Creates a new audit schedule in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/auditSchedules", + "httpMethod": "POST", + "id": "auditmanager.projects.locations.auditSchedules.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "auditScheduleId": { + "description": "Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Project or folder that this audit schedule is for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "Optional. If `true`, only validates the request and does not create the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/auditSchedules", + "request": { + "$ref": "AuditSchedule" + }, + "response": { + "$ref": "AuditSchedule" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-auditmanager", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single audit schedule.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/auditSchedules/{auditSchedulesId}", + "httpMethod": "GET", + "id": "auditmanager.projects.locations.auditSchedules.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the audit schedule to retrieve, in one of the following formats: * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/auditSchedules/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "AuditSchedule" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-auditmanager", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists audit schedules in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/auditSchedules", + "httpMethod": "GET", + "id": "auditmanager.projects.locations.auditSchedules.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous call, to retrieve the next page of results.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent for the audit schedule, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/auditSchedules", + "response": { + "$ref": "ListAuditSchedulesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-auditmanager", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing audit schedule.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/auditSchedules/{auditSchedulesId}", + "httpMethod": "PATCH", + "id": "auditmanager.projects.locations.auditSchedules.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Unique identifier for the audit schedule. Format: projects/{project}/locations/{location}/auditSchedules/{audit_schedule} folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/auditSchedules/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. List of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. If `true`, only validates the request and does not update the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "AuditSchedule" + }, + "response": { + "$ref": "AuditSchedule" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-auditmanager", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "auditScopeReports": { "methods": { "generate": { @@ -1447,7 +1885,7 @@ } } }, - "revision": "20260826", + "revision": "20260908", "rootUrl": "https://auditmanager.googleapis.com/", "schemas": { "AuditReport": { @@ -1530,6 +1968,96 @@ }, "type": "object" }, + "AuditSchedule": { + "description": "An audit schedule, in one of the following formats: * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}`", + "id": "AuditSchedule", + "properties": { + "complianceFramework": { + "description": "Required. Framework (set of controls) that the audit scope report is generated against. For example, `NIST_800_53`.", + "type": "string" + }, + "createTime": { + "description": "Output only. Timestamp when the schedule was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. Display name for the audit schedule.", + "type": "string" + }, + "errorMessage": { + "description": "Output only. Describes the error if the schedule is in an error state.", + "readOnly": true, + "type": "string" + }, + "gcsUri": { + "description": "Required. Cloud Storage bucket where Audit Manager can upload the audit report and evidence. The format is `gs://{bucket_name}`.", + "type": "string" + }, + "lastTriggerTime": { + "description": "Output only. Timestamp when the audit run was last triggered.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. Unique identifier for the audit schedule. Format: projects/{project}/locations/{location}/auditSchedules/{audit_schedule} folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}", + "type": "string" + }, + "nextRunTime": { + "description": "Output only. Calculated timestamp for the next scheduled run.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "reportFormat": { + "description": "Required. Format for the audit report.", + "enum": [ + "AUDIT_REPORT_FORMAT_UNSPECIFIED", + "AUDIT_REPORT_FORMAT_ODF" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Open Document Format (ODF)." + ], + "type": "string" + }, + "scheduleConfig": { + "$ref": "ScheduleConfig", + "description": "Required. Configuration that defines when and how often audit runs are automatically triggered for this schedule." + }, + "state": { + "description": "Optional. State of the audit schedule. While most states are managed by the system, you can use UpdateAuditSchedule to start, pause, or delete the schedule.", + "enum": [ + "SCHEDULE_STATE_UNSPECIFIED", + "SCHEDULE_STATE_ACTIVE", + "SCHEDULE_STATE_PAUSED", + "SCHEDULE_STATE_COMPLETED", + "SCHEDULE_STATE_FAILED_SETUP", + "SCHEDULE_STATE_ERROR", + "SCHEDULE_STATE_DELETED" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Schedule is active and will trigger runs.", + "Schedule is paused and will not trigger runs.", + "Schedule end time has passed.", + "Schedule setup failed during creation or update.", + "Schedule is in an error state due to persistent failure to trigger an audit. Manual intervention is required.", + "Schedule has been marked for deletion by the user." + ], + "type": "string" + }, + "updateTime": { + "description": "Output only. Timestamp when the schedule was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "AuditScopeReport": { "description": "Audit scope report.", "id": "AuditScopeReport", @@ -1740,6 +2268,10 @@ "$ref": "EligibleDestination" }, "type": "array" + }, + "validateOnly": { + "description": "Optional. If `true`, only validates the request and does not enroll the resource. This executes standard request validation (such as schema, IAM, and destination checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas.", + "type": "boolean" } }, "type": "object" @@ -1851,6 +2383,31 @@ }, "type": "object" }, + "ListAuditSchedulesResponse": { + "description": "Response message for ListAuditSchedules.", + "id": "ListAuditSchedulesResponse", + "properties": { + "auditSchedules": { + "description": "List of audit schedules.", + "items": { + "$ref": "AuditSchedule" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that you can send as the `page_token` in a subsequent request to retrieve the next page of results. If this field is empty, there are no subsequent pages.", + "type": "string" + }, + "unreachable": { + "description": "Locations that can't be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListControlsResponse": { "description": "Response message for ListControls.", "id": "ListControlsResponse", @@ -2186,6 +2743,47 @@ }, "type": "object" }, + "ScheduleConfig": { + "description": "Timing and frequency parameters for recurring audit runs.", + "id": "ScheduleConfig", + "properties": { + "endTime": { + "description": "Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely.", + "format": "google-datetime", + "type": "string" + }, + "frequency": { + "description": "Required. Frequency of audit runs.", + "enum": [ + "FREQUENCY_UNSPECIFIED", + "DAILY", + "WEEKLY", + "MONTHLY", + "QUARTERLY", + "ANNUALLY" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The audit runs every day.", + "The audit runs weekly on the same day of the week as `start_time`.", + "The audit runs monthly on the same day of the month as `start_time`.", + "The audit runs quarterly (every 3 months) on the same day of the month as `start_time`.", + "The audit runs annually on the same month and day as `start_time`." + ], + "type": "string" + }, + "startTime": { + "description": "Required. Date and time when the first audit run is triggered. Subsequent runs are based on this time and the chosen frequency.", + "format": "google-datetime", + "type": "string" + }, + "timeZone": { + "description": "Optional. Time zone for the audit schedule in IANA format (for example, `America/New_York`). The time zone is used to interpret the `start_time` and the `end_time`, and to calculate subsequent run dates. If not specified, the time zone default is UTC.", + "type": "string" + } + }, + "type": "object" + }, "Status": { "description": "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).", "id": "Status", diff --git a/discovery/backupdr-v1.json b/discovery/backupdr-v1.json index a941404929..79a4214cd1 100644 --- a/discovery/backupdr-v1.json +++ b/discovery/backupdr-v1.json @@ -2725,7 +2725,7 @@ } } }, - "revision": "20260812", + "revision": "20260908", "rootUrl": "https://backupdr.googleapis.com/", "schemas": { "AbandonBackupRequest": { @@ -6592,58 +6592,6 @@ }, "type": "object" }, - "OperationMetadata": { - "description": "Represents the metadata of the long-running operation.", - "id": "OperationMetadata", - "properties": { - "additionalInfo": { - "additionalProperties": { - "type": "string" - }, - "description": "Output only. AdditionalInfo contains additional Info related to backup plan association resource.", - "readOnly": true, - "type": "object" - }, - "apiVersion": { - "description": "Output only. API version used to start the operation.", - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to 'Code.CANCELLED'.", - "readOnly": true, - "type": "boolean" - }, - "statusMessage": { - "description": "Output only. Human-readable status of the operation, if any.", - "readOnly": true, - "type": "string" - }, - "target": { - "description": "Output only. Server-defined resource path for the target of the operation.", - "readOnly": true, - "type": "string" - }, - "verb": { - "description": "Output only. Name of the verb executed by the operation.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "PitrSettings": { "description": "Point in time recovery settings of the backup configuration resource.", "id": "PitrSettings", diff --git a/discovery/backupdr-v1beta.json b/discovery/backupdr-v1beta.json index e4612ef7e8..0255eda70f 100644 --- a/discovery/backupdr-v1beta.json +++ b/discovery/backupdr-v1beta.json @@ -3179,7 +3179,7 @@ } } }, - "revision": "20260826", + "revision": "20260908", "rootUrl": "https://backupdr.googleapis.com/", "schemas": { "AbandonBackupRequest": { @@ -7439,58 +7439,6 @@ }, "type": "object" }, - "OperationMetadata": { - "description": "Represents the metadata of the long-running operation.", - "id": "OperationMetadata", - "properties": { - "additionalInfo": { - "additionalProperties": { - "type": "string" - }, - "description": "Output only. AdditionalInfo contains additional Info related to backup plan association resource.", - "readOnly": true, - "type": "object" - }, - "apiVersion": { - "description": "Output only. API version used to start the operation.", - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to 'Code.CANCELLED'.", - "readOnly": true, - "type": "boolean" - }, - "statusMessage": { - "description": "Output only. Human-readable status of the operation, if any.", - "readOnly": true, - "type": "string" - }, - "target": { - "description": "Output only. Server-defined resource path for the target of the operation.", - "readOnly": true, - "type": "string" - }, - "verb": { - "description": "Output only. Name of the verb executed by the operation.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "PitrSettings": { "description": "Point in time recovery settings of the backup configuration resource.", "id": "PitrSettings", diff --git a/discovery/biglake-v1.json b/discovery/biglake-v1.json index bfa6cea21b..4f9c97ebbb 100644 --- a/discovery/biglake-v1.json +++ b/discovery/biglake-v1.json @@ -19,6 +19,16 @@ "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/products/lakehouse", "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://biglake.europe-west10.rep.googleapis.com/", + "location": "europe-west10" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://biglake.europe-west3.rep.googleapis.com/", + "location": "europe-west3" + }, { "description": "Regional Endpoint", "endpointUrl": "https://biglake.us-central1.rep.googleapis.com/", @@ -909,7 +919,7 @@ } } }, - "revision": "20260724", + "revision": "20260905", "rootUrl": "https://biglake.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/discovery/ces-v1.json b/discovery/ces-v1.json index c53b52b60f..f99eada585 100644 --- a/discovery/ces-v1.json +++ b/discovery/ces-v1.json @@ -2586,7 +2586,7 @@ } } }, - "revision": "20260903", + "revision": "20260914", "rootUrl": "https://ces.googleapis.com/", "schemas": { "Action": { @@ -5110,6 +5110,14 @@ "event": { "description": "Required. The name of the event.", "type": "string" + }, + "variables": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Additional variables associated with the event.", + "type": "object" } }, "type": "object" @@ -5564,6 +5572,10 @@ "description": "Identifier. The unique identifier of the guardrail. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`", "type": "string" }, + "supervisor": { + "$ref": "GuardrailSupervisor", + "description": "Optional. Guardrail that runs supervisor intervention." + }, "updateTime": { "description": "Output only. Timestamp when the guardrail was last updated.", "format": "google-datetime", @@ -5782,6 +5794,51 @@ }, "type": "object" }, + "GuardrailSupervisor": { + "description": "Guardrail that runs supervisor intervention.", + "id": "GuardrailSupervisor", + "properties": { + "detectionMode": { + "description": "Optional. The detection mode of the supervisor.", + "enum": [ + "DETECTION_MODE_UNSPECIFIED", + "NON_BLOCKING", + "BLOCKING" + ], + "enumDescriptions": [ + "Detection mode is unspecified. Default to NON_BLOCKING.", + "Non blocking detection mode. Response is not blocked when the supervisor detection is ongoing.", + "Blocking detection mode. Response is blocked when the supervisor detection is ongoing." + ], + "type": "string" + }, + "type": { + "description": "Optional. The type of the supervisor.", + "enum": [ + "TYPE_UNSPECIFIED", + "INVALID_TEXT", + "LANGUAGE_SHIFT", + "SPEAKER_SHIFT", + "AUDIO_MISMATCH", + "MISSING_TOOL_CALL", + "CUSTOM", + "CHOPPY_AUDIO" + ], + "enumDescriptions": [ + "Type is unspecified.", + "Invalid text issue type.", + "Language shift issue type.", + "Speaker shift issue type.", + "Audio mismatch issue type.", + "Missing tool call issue type.", + "Custom issue type.", + "Choppy audio issue type." + ], + "type": "string" + } + }, + "type": "object" + }, "Image": { "description": "Represents an image input or output in the conversation.", "id": "Image", @@ -7804,9 +7861,27 @@ "description": "Required. The description of the tool.", "type": "string" }, + "inputVariableMapping": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Mapping of input variable names of remote agent to GECX variable names.", + "type": "object" + }, "name": { "description": "Required. The name of the tool.", "type": "string" + }, + "outputVariableMapping": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Mapping of output variable names of remote agent to GECX variable names.", + "type": "object" + }, + "statefulAgent": { + "description": "Optional. When enabled, the interaction between the CXAS app and the remote agent will share the same context. If the remote agent returns a context_id, it will be persisted for the entirety of the session for this remote agent tool.", + "type": "boolean" } }, "type": "object" diff --git a/discovery/ces-v1beta.json b/discovery/ces-v1beta.json index 9347209126..6600c9c2c9 100644 --- a/discovery/ces-v1beta.json +++ b/discovery/ces-v1beta.json @@ -3874,7 +3874,7 @@ } } }, - "revision": "20260903", + "revision": "20260914", "rootUrl": "https://ces.googleapis.com/", "schemas": { "Action": { @@ -8598,6 +8598,14 @@ "event": { "description": "Required. The name of the event.", "type": "string" + }, + "variables": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Additional variables associated with the event.", + "type": "object" } }, "type": "object" @@ -9609,6 +9617,10 @@ "description": "Identifier. The unique identifier of the guardrail. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`", "type": "string" }, + "supervisor": { + "$ref": "GuardrailSupervisor", + "description": "Optional. Guardrail that runs supervisor intervention." + }, "updateTime": { "description": "Output only. Timestamp when the guardrail was last updated.", "format": "google-datetime", @@ -9827,6 +9839,51 @@ }, "type": "object" }, + "GuardrailSupervisor": { + "description": "Guardrail that runs supervisor intervention.", + "id": "GuardrailSupervisor", + "properties": { + "detectionMode": { + "description": "Optional. The detection mode of the supervisor.", + "enum": [ + "DETECTION_MODE_UNSPECIFIED", + "NON_BLOCKING", + "BLOCKING" + ], + "enumDescriptions": [ + "Detection mode is unspecified. Default to NON_BLOCKING.", + "Non blocking detection mode. Response is not blocked when the supervisor detection is ongoing.", + "Blocking detection mode. Response is blocked when the supervisor detection is ongoing." + ], + "type": "string" + }, + "type": { + "description": "Optional. The type of the supervisor.", + "enum": [ + "TYPE_UNSPECIFIED", + "INVALID_TEXT", + "LANGUAGE_SHIFT", + "SPEAKER_SHIFT", + "AUDIO_MISMATCH", + "MISSING_TOOL_CALL", + "CUSTOM", + "CHOPPY_AUDIO" + ], + "enumDescriptions": [ + "Type is unspecified.", + "Invalid text issue type.", + "Language shift issue type.", + "Speaker shift issue type.", + "Audio mismatch issue type.", + "Missing tool call issue type.", + "Custom issue type.", + "Choppy audio issue type." + ], + "type": "string" + } + }, + "type": "object" + }, "Image": { "description": "Represents an image input or output in the conversation.", "id": "Image", @@ -12390,9 +12447,27 @@ "description": "Required. The description of the tool.", "type": "string" }, + "inputVariableMapping": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Mapping of input variable names of remote agent to GECX variable names.", + "type": "object" + }, "name": { "description": "Required. The name of the tool.", "type": "string" + }, + "outputVariableMapping": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Mapping of output variable names of remote agent to GECX variable names.", + "type": "object" + }, + "statefulAgent": { + "description": "Optional. When enabled, the interaction between the CXAS app and the remote agent will share the same context. If the remote agent returns a context_id, it will be persisted for the entirety of the session for this remote agent tool.", + "type": "boolean" } }, "type": "object" diff --git a/discovery/chat-v1.json b/discovery/chat-v1.json index 08649626b7..316025b9f0 100644 --- a/discovery/chat-v1.json +++ b/discovery/chat-v1.json @@ -659,7 +659,7 @@ "type": "string" }, "updateMask": { - "description": "Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pass both description and guidelines in the update request as `SpaceDetails`. If you only want to update one of the fields, pass the existing value for the other field. `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with `useAdminAccess`. `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with `useAdminAccess`. `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with `useAdminAccess`. `access_settings.access_permission_settings`: Updates the [access permission settings](https://support.google.com/chat/answer/11971020) of who can discover and join the space where `spaceType` field is `SPACE`. Principals allowed to join the space must also be allowed to discover it. To update access permission settings for a space, the authenticating user must be a space manager or assistant manager and omit all other field masks in the request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.access_permission_settings` is not supported with `useAdminAccess`. The supported field masks include: - `access_settings.access_permission_settings.discoverSpaceSetting` - `access_settings.access_permission_settings.joinSpaceSetting` `permission_settings`: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space. When updating permission settings, you can only specify `permissionSettings` field masks; you cannot update other field masks at the same time. The supported field masks include: - `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `permission_settings.manageApps` - `permission_settings.manageWebhooks` - `permission_settings.replyMessages`", + "description": "Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pass both description and guidelines in the update request as `SpaceDetails`. If you only want to update one of the fields, pass the existing value for the other field. `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with `useAdminAccess`. `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with `useAdminAccess`. `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with `useAdminAccess`. `access_settings.access_permission_settings`: Updates the [access permission settings](https://support.google.com/chat/answer/11971020) of who can discover and join the space where `spaceType` field is `SPACE`. Principals allowed to join the space must also be allowed to discover it. To update access permission settings for a space, the authenticating user must be a space manager or assistant manager and omit all other field masks in the request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.access_permission_settings` is not supported with `useAdminAccess`. The supported field masks include: - `access_settings.access_permission_settings.discoverSpaceSetting` - `access_settings.access_permission_settings.joinSpaceSetting` - `access_settings.access_permission_settings.viewSpaceMembershipSetting` `permission_settings`: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space. When updating permission settings, you can only specify `permissionSettings` field masks; you cannot update other field masks at the same time. The supported field masks include: - `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `permission_settings.manageApps` - `permission_settings.manageWebhooks` - `permission_settings.replyMessages` - `permission_settings.viewSpaceMembership`", "format": "google-fieldmask", "location": "query", "type": "string" @@ -2181,7 +2181,7 @@ } } }, - "revision": "20260828", + "revision": "20260913", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessPermissionSetting": { @@ -2209,6 +2209,10 @@ "joinSpaceSetting": { "$ref": "AccessPermissionSetting", "description": "Optional. Access permission setting for joining the space." + }, + "viewSpaceMembershipSetting": { + "$ref": "AccessPermissionSetting", + "description": "Optional. Access permission setting for viewing space membership. Must be specified together with `PermissionSettings.view_space_membership` in the update mask and request body when updating who can view space membership. When granting view access to a target audience, you must also grant `PermissionSettings.view_space_membership` to all members in the same request. To remove an existing target audience (for example, to restrict view access to space managers or assistant managers only), specify an empty `AccessPermissionSetting` (with no `principals`)." } }, "type": "object" @@ -5441,7 +5445,7 @@ }, "member": { "$ref": "User", - "description": "Optional. The Google Chat user or app the membership corresponds to. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output populates the [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and `type`." + "description": "Optional. The Google Chat user or app the membership corresponds to. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output only populates the [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and `type` fields for both internal and external users, unless they are members of the space or have a prior affinity, like a direct message (DM) conversation, with the calling user." }, "name": { "description": "Identifier. Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`", @@ -5711,7 +5715,7 @@ }, "sender": { "$ref": "User", - "description": "Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output populates the [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and `type`.", + "description": "Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output only populates the [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and `type` fields for both internal and external users, unless they are members of the space or have a prior affinity, like a direct message (DM) conversation, with the calling user.", "readOnly": true }, "silent": { @@ -5938,6 +5942,10 @@ "useAtMentionAll": { "$ref": "PermissionSetting", "description": "Optional. Setting for using @all in a space." + }, + "viewSpaceMembership": { + "$ref": "PermissionSetting", + "description": "Optional. Setting for viewing space membership. Must be specified together with `AccessPermissionSettings.view_space_membership_setting` in the update mask and request body when updating who can view space membership. When restricting view access to specific roles (for example, space managers or assistant managers only), specify the desired role permissions here and provide an empty `AccessPermissionSettings.view_space_membership_setting` in the same request. If a target audience is configured in `AccessPermissionSettings.view_space_membership_setting`, this setting must be granted to all members." } }, "type": "object" @@ -6975,11 +6983,11 @@ "type": "object" }, "User": { - "description": "A user in Google Chat. When returned as an output from a request, if your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output for a `User` resource only populates the user's `name` and `type`.", + "description": "If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output for a `User` resource (such as in the Messages and Memberships APIs) only populates the `name` and `type` fields for both internal and external users, unless they are members of the space or have prior affinity with the calling user.", "id": "User", "properties": { "displayName": { - "description": "Output only. The user's display name.", + "description": "Output only. The user's display name. Populated for both app authentication and user authentication. This field is always populated for requests made with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). When calling the Messages and Memberships APIs with [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), this field is populated for both internal and external users for the `sender` of a message, users within `annotations` (such as user mentions), and within `Membership` resources, provided the user is a member of the space or has prior affinity with the calling user.", "readOnly": true, "type": "string" }, @@ -6988,7 +6996,7 @@ "type": "string" }, "isAnonymous": { - "description": "Output only. When `true`, the user is deleted or their profile is not visible.", + "description": "Output only. When `true`, the user is deleted or their profile is not visible, such as when a user is mentioned in a space without being a member and without prior affinity with the calling user.", "readOnly": true, "type": "boolean" }, diff --git a/discovery/chromemanagement-v1.json b/discovery/chromemanagement-v1.json index e89d74fcae..6763449948 100644 --- a/discovery/chromemanagement-v1.json +++ b/discovery/chromemanagement-v1.json @@ -2557,7 +2557,7 @@ } } }, - "revision": "20260907", + "revision": "20260915", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -7408,7 +7408,8 @@ "IDENTITY_BASED_ENROLLMENT", "CERTIFICATE_AUTHORITY", "ROOT_STORE", - "CONTENT_ANALYSIS" + "CONTENT_ANALYSIS", + "ENTERPRISE_PROXY" ], "enumDescriptions": [ "Default value. This value is unused.", @@ -7418,7 +7419,8 @@ "Authentication connector.", "Certificate authority connector. Not yet supported in the API.", "Root certificate connector.", - "Content analysis connector." + "Content analysis connector.", + "Enterprise proxy connector." ], "type": "string" } @@ -7465,6 +7467,10 @@ "$ref": "GoogleChromeManagementVersionsV1PubSubXdrConfig", "description": "Pub/Sub XDR connector config." }, + "secureGatewayConfig": { + "$ref": "GoogleChromeManagementVersionsV1SecureGatewayConfig", + "description": "Secure gateway connector config." + }, "splunkConfig": { "$ref": "GoogleChromeManagementVersionsV1SplunkConfig", "description": "Splunk connector config." @@ -8468,6 +8474,34 @@ }, "type": "object" }, + "GoogleChromeManagementVersionsV1SecureGatewayConfig": { + "description": "Secure gateway connector config.", + "id": "GoogleChromeManagementVersionsV1SecureGatewayConfig", + "properties": { + "enabledPlatforms": { + "description": "Optional. The enabled platforms for the secure gateway connector config.", + "items": { + "enum": [ + "PLATFORM_UNSPECIFIED", + "ANDROID", + "IOS" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Android platform.", + "iOS platform." + ], + "type": "string" + }, + "type": "array" + }, + "resourceId": { + "description": "Required. The resource ID of the secure gateway connector config.", + "type": "string" + } + }, + "type": "object" + }, "GoogleChromeManagementVersionsV1SetFailureRequest": { "description": "Request message for marking a certificate provisioning process as failed.", "id": "GoogleChromeManagementVersionsV1SetFailureRequest", diff --git a/discovery/chromewebstore-v2.json b/discovery/chromewebstore-v2.json index b0ebcf0bab..c5c022edc2 100644 --- a/discovery/chromewebstore-v2.json +++ b/discovery/chromewebstore-v2.json @@ -185,6 +185,49 @@ "https://www.googleapis.com/auth/chromewebstore" ] }, + "fetchReviews": { + "description": "Fetch user reviews for an item.", + "flatPath": "v2/publishers/{publishersId}/items/{itemsId}:fetchReviews", + "httpMethod": "GET", + "id": "chromewebstore.publishers.items.fetchReviews", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "Optional. A filter to apply to the reviews. Only equality comparison on rating is supported, e.g. `rating = 5`.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The item resource name whose reviews are being fetched. Format: publishers/{publisher_id}/items/{item_id}", + "location": "path", + "pattern": "^publishers/[^/]+/items/[^/]+$", + "required": true, + "type": "string" + }, + "orderBy": { + "description": "Optional. An optional comma-separated list of fields by which to sort the results. Supported fields are `rating` and `create_time`. Supported orders are `asc` (default) and `desc`. Example: \"rating desc, create_time\".", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of reviews to return. The service may return fewer than this value. If unspecified, at most 50 reviews will be returned. The maximum value is 200; values above 200 will be coerced to 200.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `FetchItemReviews` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchItemReviews` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}:fetchReviews", + "response": { + "$ref": "FetchItemReviewsResponse" + } + }, "fetchStatus": { "description": "Fetch the status of an item.", "flatPath": "v2/publishers/{publishersId}/items/{itemsId}:fetchStatus", @@ -272,9 +315,20 @@ } } }, - "revision": "20260601", + "revision": "20260916", "rootUrl": "https://chromewebstore.googleapis.com/", "schemas": { + "AuthorInfo": { + "description": "Info on the author of the review.", + "id": "AuthorInfo", + "properties": { + "displayName": { + "description": "Display name for the author.", + "type": "string" + } + }, + "type": "object" + }, "CancelSubmissionRequest": { "description": "Request message for CancelSubmission.", "id": "CancelSubmissionRequest", @@ -315,6 +369,24 @@ }, "type": "object" }, + "FetchItemReviewsResponse": { + "description": "Response message for FetchItemReviews.", + "id": "FetchItemReviewsResponse", + "properties": { + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "reviews": { + "description": "The list of reviews.", + "items": { + "$ref": "Review" + }, + "type": "array" + } + }, + "type": "object" + }, "FetchItemStatusResponse": { "description": "Response message for `FetchItemStatus`.", "id": "FetchItemStatusResponse", @@ -488,6 +560,41 @@ }, "type": "object" }, + "Review": { + "description": "A review written by a user to rate an item in the Chrome Web Store.", + "id": "Review", + "properties": { + "authorInfo": { + "$ref": "AuthorInfo", + "description": "Info on the author of the review." + }, + "comment": { + "description": "Content of the review.", + "type": "string" + }, + "createTime": { + "description": "Output only. When the review was posted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "item": { + "description": "Output only. The item that this review evaluates. Format: publishers/{publisher}/items/{item}", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. Review resource name. Format: reviews/{reviewId}", + "type": "string" + }, + "rating": { + "description": "Rating of the item, between 1 and 5.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "SetPublishedDeployPercentageRequest": { "description": "Request message for SetPublishedDeployPercentage.", "id": "SetPublishedDeployPercentageRequest", diff --git a/discovery/cloudbuild-v2.json b/discovery/cloudbuild-v2.json index e525469993..846f068b7c 100644 --- a/discovery/cloudbuild-v2.json +++ b/discovery/cloudbuild-v2.json @@ -1097,7 +1097,7 @@ } } }, - "revision": "20260511", + "revision": "20260904", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "AuditConfig": { @@ -1745,6 +1745,184 @@ }, "type": "object" }, + "GoogleDevtoolsCloudbuildV2PipelineRun": { + "description": "Message describing PipelineRun object", + "id": "GoogleDevtoolsCloudbuildV2PipelineRun", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "User annotations. See https://google.aip.dev/128#annotations", + "type": "object" + }, + "childReferences": { + "description": "Output only. List of TaskRun and Run names and PipelineTask names for children of this PipelineRun.", + "items": { + "$ref": "ChildStatusReference" + }, + "readOnly": true, + "type": "array" + }, + "completionTime": { + "description": "Output only. Time the pipeline completed.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "conditions": { + "description": "Output only. Kubernetes Conditions convention for PipelineRun status and error.", + "items": { + "$ref": "GoogleDevtoolsCloudbuildV2Condition" + }, + "readOnly": true, + "type": "array" + }, + "createTime": { + "description": "Output only. Time at which the request to create the `PipelineRun` was received.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "etag": { + "description": "Needed for declarative-friendly resources.", + "type": "string" + }, + "finallyStartTime": { + "description": "Output only. FinallyStartTime is when all non-finally tasks have been completed and only finally tasks are being executed. +optional", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "gcbParams": { + "additionalProperties": { + "type": "string" + }, + "description": "Output only. GCB default params.", + "readOnly": true, + "type": "object" + }, + "name": { + "description": "Output only. The `PipelineRun` name with format `projects/{project}/locations/{location}/pipelineRuns/{pipeline_run}`", + "readOnly": true, + "type": "string" + }, + "params": { + "description": "Params is a list of parameter names and values.", + "items": { + "$ref": "Param" + }, + "type": "array" + }, + "pipelineRef": { + "$ref": "PipelineRef", + "description": "PipelineRef refer to a specific instance of a Pipeline." + }, + "pipelineRunStatus": { + "description": "Pipelinerun status the user can provide. Used for cancellation.", + "enum": [ + "PIPELINE_RUN_STATUS_UNSPECIFIED", + "PIPELINE_RUN_CANCELLED" + ], + "enumDescriptions": [ + "Default enum type; should not be used.", + "Cancelled status." + ], + "type": "string" + }, + "pipelineSpec": { + "$ref": "PipelineSpec", + "description": "PipelineSpec defines the desired state of Pipeline." + }, + "pipelineSpecYaml": { + "description": "Output only. Inline pipelineSpec yaml string, used by workflow run requests.", + "readOnly": true, + "type": "string" + }, + "provenance": { + "$ref": "Provenance", + "description": "Optional. Provenance configuration." + }, + "record": { + "description": "Output only. The `Record` of this `PipelineRun`. Format: `projects/{project}/locations/{location}/results/{result_id}/records/{record_id}`", + "readOnly": true, + "type": "string" + }, + "resolvedPipelineSpec": { + "$ref": "PipelineSpec", + "description": "Output only. The exact PipelineSpec used to instantiate the run.", + "readOnly": true + }, + "results": { + "description": "Optional. Output only. List of results written out by the pipeline's containers", + "items": { + "$ref": "PipelineRunResult" + }, + "readOnly": true, + "type": "array" + }, + "security": { + "$ref": "Security", + "description": "Optional. Security configuration." + }, + "serviceAccount": { + "deprecated": true, + "description": "Service account used in the Pipeline. Deprecated; please use security.service_account instead.", + "type": "string" + }, + "skippedTasks": { + "description": "Output only. List of tasks that were skipped due to when expressions evaluating to false.", + "items": { + "$ref": "SkippedTask" + }, + "readOnly": true, + "type": "array" + }, + "startTime": { + "description": "Output only. Time the pipeline is actually started.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "timeouts": { + "$ref": "TimeoutFields", + "description": "Time after which the Pipeline times out. Currently three keys are accepted in the map pipeline, tasks and finally with Timeouts.pipeline >= Timeouts.tasks + Timeouts.finally" + }, + "uid": { + "description": "Output only. A unique identifier for the `PipelineRun`.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Time at which the request to update the `PipelineRun` was received.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "worker": { + "$ref": "Worker", + "description": "Optional. Worker configuration." + }, + "workerPool": { + "description": "Output only. The WorkerPool used to run this PipelineRun.", + "readOnly": true, + "type": "string" + }, + "workflow": { + "description": "Output only. The Workflow used to create this PipelineRun.", + "readOnly": true, + "type": "string" + }, + "workspaces": { + "description": "Workspaces is a list of WorkspaceBindings from volumes to workspaces.", + "items": { + "$ref": "WorkspaceBinding" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleDevtoolsCloudbuildV2ServiceDirectoryConfig": { "description": "ServiceDirectoryConfig represents Service Directory configuration for a connection.", "id": "GoogleDevtoolsCloudbuildV2ServiceDirectoryConfig", @@ -2184,184 +2362,6 @@ }, "type": "object" }, - "PipelineRun": { - "description": "Message describing PipelineRun object", - "id": "PipelineRun", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "User annotations. See https://google.aip.dev/128#annotations", - "type": "object" - }, - "childReferences": { - "description": "Output only. List of TaskRun and Run names and PipelineTask names for children of this PipelineRun.", - "items": { - "$ref": "ChildStatusReference" - }, - "readOnly": true, - "type": "array" - }, - "completionTime": { - "description": "Output only. Time the pipeline completed.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "conditions": { - "description": "Output only. Kubernetes Conditions convention for PipelineRun status and error.", - "items": { - "$ref": "GoogleDevtoolsCloudbuildV2Condition" - }, - "readOnly": true, - "type": "array" - }, - "createTime": { - "description": "Output only. Time at which the request to create the `PipelineRun` was received.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "etag": { - "description": "Needed for declarative-friendly resources.", - "type": "string" - }, - "finallyStartTime": { - "description": "Output only. FinallyStartTime is when all non-finally tasks have been completed and only finally tasks are being executed. +optional", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "gcbParams": { - "additionalProperties": { - "type": "string" - }, - "description": "Output only. GCB default params.", - "readOnly": true, - "type": "object" - }, - "name": { - "description": "Output only. The `PipelineRun` name with format `projects/{project}/locations/{location}/pipelineRuns/{pipeline_run}`", - "readOnly": true, - "type": "string" - }, - "params": { - "description": "Params is a list of parameter names and values.", - "items": { - "$ref": "Param" - }, - "type": "array" - }, - "pipelineRef": { - "$ref": "PipelineRef", - "description": "PipelineRef refer to a specific instance of a Pipeline." - }, - "pipelineRunStatus": { - "description": "Pipelinerun status the user can provide. Used for cancellation.", - "enum": [ - "PIPELINE_RUN_STATUS_UNSPECIFIED", - "PIPELINE_RUN_CANCELLED" - ], - "enumDescriptions": [ - "Default enum type; should not be used.", - "Cancelled status." - ], - "type": "string" - }, - "pipelineSpec": { - "$ref": "PipelineSpec", - "description": "PipelineSpec defines the desired state of Pipeline." - }, - "pipelineSpecYaml": { - "description": "Output only. Inline pipelineSpec yaml string, used by workflow run requests.", - "readOnly": true, - "type": "string" - }, - "provenance": { - "$ref": "Provenance", - "description": "Optional. Provenance configuration." - }, - "record": { - "description": "Output only. The `Record` of this `PipelineRun`. Format: `projects/{project}/locations/{location}/results/{result_id}/records/{record_id}`", - "readOnly": true, - "type": "string" - }, - "resolvedPipelineSpec": { - "$ref": "PipelineSpec", - "description": "Output only. The exact PipelineSpec used to instantiate the run.", - "readOnly": true - }, - "results": { - "description": "Optional. Output only. List of results written out by the pipeline's containers", - "items": { - "$ref": "PipelineRunResult" - }, - "readOnly": true, - "type": "array" - }, - "security": { - "$ref": "Security", - "description": "Optional. Security configuration." - }, - "serviceAccount": { - "deprecated": true, - "description": "Service account used in the Pipeline. Deprecated; please use security.service_account instead.", - "type": "string" - }, - "skippedTasks": { - "description": "Output only. List of tasks that were skipped due to when expressions evaluating to false.", - "items": { - "$ref": "SkippedTask" - }, - "readOnly": true, - "type": "array" - }, - "startTime": { - "description": "Output only. Time the pipeline is actually started.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "timeouts": { - "$ref": "TimeoutFields", - "description": "Time after which the Pipeline times out. Currently three keys are accepted in the map pipeline, tasks and finally with Timeouts.pipeline >= Timeouts.tasks + Timeouts.finally" - }, - "uid": { - "description": "Output only. A unique identifier for the `PipelineRun`.", - "readOnly": true, - "type": "string" - }, - "updateTime": { - "description": "Output only. Time at which the request to update the `PipelineRun` was received.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "worker": { - "$ref": "Worker", - "description": "Optional. Worker configuration." - }, - "workerPool": { - "description": "Output only. The WorkerPool used to run this PipelineRun.", - "readOnly": true, - "type": "string" - }, - "workflow": { - "description": "Output only. The Workflow used to create this PipelineRun.", - "readOnly": true, - "type": "string" - }, - "workspaces": { - "description": "Workspaces is a list of WorkspaceBindings from volumes to workspaces.", - "items": { - "$ref": "WorkspaceBinding" - }, - "type": "array" - } - }, - "type": "object" - }, "PipelineRunResult": { "description": "PipelineRunResult used to describe the results of a pipeline", "id": "PipelineRunResult", diff --git a/discovery/cloudidentity-v1.json b/discovery/cloudidentity-v1.json index e6062adcfc..de87987917 100644 --- a/discovery/cloudidentity-v1.json +++ b/discovery/cloudidentity-v1.json @@ -2423,7 +2423,7 @@ } } }, - "revision": "20260826", + "revision": "20260914", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { @@ -2666,6 +2666,21 @@ }, "type": "object" }, + "ExternalId": { + "description": "An external identifier for an entity in the Cloud Identity Groups API. Used to link a `Group` in Cloud Identity Groups API with a corresponding entity in an external identity system or directory.", + "id": "ExternalId", + "properties": { + "id": { + "description": "Required. The unique identifier assigned by the external identity provider. The API does not enforce uniqueness of IDs across entities, but clients should ensure IDs are unique within their namespace.", + "type": "string" + }, + "namespace": { + "description": "Required. The namespace in which the entity exists. Cannot be empty. Currently, the only allowable namespace is `\"system/external\"`.", + "type": "string" + } + }, + "type": "object" + }, "GetMembershipGraphMetadata": { "description": "Metadata of GetMembershipGraphResponse LRO. This is currently empty to permit future extensibility.", "id": "GetMembershipGraphMetadata", @@ -3760,6 +3775,13 @@ "$ref": "DynamicGroupMetadata", "description": "Optional. Dynamic group metadata like queries and status." }, + "externalIds": { + "description": "Optional. External identifiers associated with the `Group`. Enables external identity providers and directory sync tools to link their native unique identifiers with this group. Currently, the only allowable namespace is `\"system/external\"`.", + "items": { + "$ref": "ExternalId" + }, + "type": "array" + }, "groupKey": { "$ref": "EntityKey", "description": "Required. The `EntityKey` of the `Group`." diff --git a/discovery/cloudlocationfinder-v1.json b/discovery/cloudlocationfinder-v1.json index 619d4b861e..67af5b5753 100644 --- a/discovery/cloudlocationfinder-v1.json +++ b/discovery/cloudlocationfinder-v1.json @@ -304,7 +304,7 @@ } } }, - "revision": "20260527", + "revision": "20260909", "rootUrl": "https://cloudlocationfinder.googleapis.com/", "schemas": { "CloudLocation": { @@ -359,6 +359,10 @@ "description": "Optional. The human-readable name of the cloud location. Example: us-east-2, us-east1.", "type": "string" }, + "gcpAttributes": { + "$ref": "GcpAttributes", + "description": "Optional. GCP-specific attributes." + }, "name": { "description": "Identifier. Name of the cloud location. Unique name of the cloud location including project and location using the form: `projects/{project_id}/locations/{location}/cloudLocations/{cloud_location}`", "type": "string" @@ -370,6 +374,27 @@ }, "type": "object" }, + "GcpAttributes": { + "description": "GCP-specific attributes.", + "id": "GcpAttributes", + "properties": { + "zoneType": { + "description": "Optional. The type of the cloud zone.", + "enum": [ + "GCP_ZONE_TYPE_UNSPECIFIED", + "GENERAL_PURPOSE", + "AI_ZONE" + ], + "enumDescriptions": [ + "Default value. Unspecified zone type.", + "General purpose zone type.", + "AI zone type." + ], + "type": "string" + } + }, + "type": "object" + }, "ListCloudLocationsResponse": { "description": "Message for response to listing cloud locations.", "id": "ListCloudLocationsResponse", diff --git a/discovery/cloudlocationfinder-v1alpha.json b/discovery/cloudlocationfinder-v1alpha.json index 55562fe5b7..c2b41fceb1 100644 --- a/discovery/cloudlocationfinder-v1alpha.json +++ b/discovery/cloudlocationfinder-v1alpha.json @@ -304,7 +304,7 @@ } } }, - "revision": "20260527", + "revision": "20260909", "rootUrl": "https://cloudlocationfinder.googleapis.com/", "schemas": { "CloudLocation": { @@ -359,6 +359,10 @@ "description": "Optional. The human-readable name of the cloud location. Example: us-east-2, us-east1.", "type": "string" }, + "gcpAttributes": { + "$ref": "GcpAttributes", + "description": "Optional. GCP-specific attributes." + }, "name": { "description": "Identifier. Name of the cloud location. Unique name of the cloud location including project and location using the form: `projects/{project_id}/locations/{location}/cloudLocations/{cloud_location}`", "type": "string" @@ -370,6 +374,27 @@ }, "type": "object" }, + "GcpAttributes": { + "description": "GCP-specific attributes.", + "id": "GcpAttributes", + "properties": { + "zoneType": { + "description": "Optional. The type of the cloud zone.", + "enum": [ + "GCP_ZONE_TYPE_UNSPECIFIED", + "GENERAL_PURPOSE", + "AI_ZONE" + ], + "enumDescriptions": [ + "Default value. Unspecified zone type.", + "General purpose zone type.", + "AI zone type." + ], + "type": "string" + } + }, + "type": "object" + }, "ListCloudLocationsResponse": { "description": "Message for response to listing cloud locations.", "id": "ListCloudLocationsResponse", diff --git a/discovery/cloudresourcemanager-v3.json b/discovery/cloudresourcemanager-v3.json index 45e6107cb8..1e16d51fa8 100644 --- a/discovery/cloudresourcemanager-v3.json +++ b/discovery/cloudresourcemanager-v3.json @@ -526,6 +526,165 @@ ] } } + }, + "capabilityConfigs": { + "methods": { + "create": { + "description": "Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a CapabilityConfig triggers the creation of a Management Project if one is not supplied.", + "flatPath": "v3/folders/{foldersId}/capabilityConfigs", + "httpMethod": "POST", + "id": "cloudresourcemanager.folders.capabilityConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "capabilityConfigId": { + "description": "Required. The user-assigned ID for the CapabilityConfig, which will become the final component of the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123`", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource under which the CapabilityConfig will be created. Format: `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}`", + "location": "path", + "pattern": "^folders/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/capabilityConfigs", + "request": { + "$ref": "CapabilityConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the CapabilityConfig identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`).", + "flatPath": "v3/folders/{foldersId}/capabilityConfigs/{capabilityConfigsId}", + "httpMethod": "DELETE", + "id": "cloudresourcemanager.folders.capabilityConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the CapabilityConfig to delete. Format: `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, `projects/{project}/capabilityConfigs/{capabilityConfig}`", + "location": "path", + "pattern": "^folders/[^/]+/capabilityConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Retrieves the Capability Config identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`).", + "flatPath": "v3/folders/{foldersId}/capabilityConfigs/{capabilityConfigsId}", + "httpMethod": "GET", + "id": "cloudresourcemanager.folders.capabilityConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the CapabilityConfig to retrieve. Format: `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: `folders/123456789/capabilityConfigs/my-capability-config`", + "location": "path", + "pattern": "^folders/[^/]+/capabilityConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "CapabilityConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists CapabilityConfigs that are direct children of the specified organization, folder or project resource.", + "flatPath": "v3/folders/{foldersId}/capabilityConfigs", + "httpMethod": "GET", + "id": "cloudresourcemanager.folders.capabilityConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of CapabilityConfigs to return in the response. The service may return fewer CapabilityConfigs than requested. If unspecified, at most 100 CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A pagination token received from a previous call to `ListCapabilityConfigs` that indicates from where listing should continue. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: `organizations/{organization_id}` or `folders/{folder_id}`", + "location": "path", + "pattern": "^folders/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/capabilityConfigs", + "response": { + "$ref": "ListCapabilityConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "patch": { + "description": "Updates the `display_name`, `types` and `boundaries` of the CapabilityConfig identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`).", + "flatPath": "v3/folders/{foldersId}/capabilityConfigs/{capabilityConfigsId}", + "httpMethod": "PATCH", + "id": "cloudresourcemanager.folders.capabilityConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The unique resource name of the CapabilityConfig. Format: `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, `projects/{project}/capabilityConfigs/{capabilityConfig}`", + "location": "path", + "pattern": "^folders/[^/]+/capabilityConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v3/{+name}", + "request": { + "$ref": "CapabilityConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } }, @@ -912,6 +1071,167 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] } + }, + "resources": { + "capabilityConfigs": { + "methods": { + "create": { + "description": "Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a CapabilityConfig triggers the creation of a Management Project if one is not supplied.", + "flatPath": "v3/organizations/{organizationsId}/capabilityConfigs", + "httpMethod": "POST", + "id": "cloudresourcemanager.organizations.capabilityConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "capabilityConfigId": { + "description": "Required. The user-assigned ID for the CapabilityConfig, which will become the final component of the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123`", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource under which the CapabilityConfig will be created. Format: `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}`", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/capabilityConfigs", + "request": { + "$ref": "CapabilityConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the CapabilityConfig identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`).", + "flatPath": "v3/organizations/{organizationsId}/capabilityConfigs/{capabilityConfigsId}", + "httpMethod": "DELETE", + "id": "cloudresourcemanager.organizations.capabilityConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the CapabilityConfig to delete. Format: `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, `projects/{project}/capabilityConfigs/{capabilityConfig}`", + "location": "path", + "pattern": "^organizations/[^/]+/capabilityConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Retrieves the Capability Config identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`).", + "flatPath": "v3/organizations/{organizationsId}/capabilityConfigs/{capabilityConfigsId}", + "httpMethod": "GET", + "id": "cloudresourcemanager.organizations.capabilityConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the CapabilityConfig to retrieve. Format: `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: `folders/123456789/capabilityConfigs/my-capability-config`", + "location": "path", + "pattern": "^organizations/[^/]+/capabilityConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "CapabilityConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists CapabilityConfigs that are direct children of the specified organization, folder or project resource.", + "flatPath": "v3/organizations/{organizationsId}/capabilityConfigs", + "httpMethod": "GET", + "id": "cloudresourcemanager.organizations.capabilityConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of CapabilityConfigs to return in the response. The service may return fewer CapabilityConfigs than requested. If unspecified, at most 100 CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A pagination token received from a previous call to `ListCapabilityConfigs` that indicates from where listing should continue. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: `organizations/{organization_id}` or `folders/{folder_id}`", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/capabilityConfigs", + "response": { + "$ref": "ListCapabilityConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "patch": { + "description": "Updates the `display_name`, `types` and `boundaries` of the CapabilityConfig identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`).", + "flatPath": "v3/organizations/{organizationsId}/capabilityConfigs/{capabilityConfigsId}", + "httpMethod": "PATCH", + "id": "cloudresourcemanager.organizations.capabilityConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The unique resource name of the CapabilityConfig. Format: `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, `projects/{project}/capabilityConfigs/{capabilityConfig}`", + "location": "path", + "pattern": "^organizations/[^/]+/capabilityConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v3/{+name}", + "request": { + "$ref": "CapabilityConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } } }, "projects": { @@ -1232,6 +1552,167 @@ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "capabilityConfigs": { + "methods": { + "create": { + "description": "Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a CapabilityConfig triggers the creation of a Management Project if one is not supplied.", + "flatPath": "v3/projects/{projectsId}/capabilityConfigs", + "httpMethod": "POST", + "id": "cloudresourcemanager.projects.capabilityConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "capabilityConfigId": { + "description": "Required. The user-assigned ID for the CapabilityConfig, which will become the final component of the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123`", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource under which the CapabilityConfig will be created. Format: `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}`", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/capabilityConfigs", + "request": { + "$ref": "CapabilityConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the CapabilityConfig identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`).", + "flatPath": "v3/projects/{projectsId}/capabilityConfigs/{capabilityConfigsId}", + "httpMethod": "DELETE", + "id": "cloudresourcemanager.projects.capabilityConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the CapabilityConfig to delete. Format: `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, `projects/{project}/capabilityConfigs/{capabilityConfig}`", + "location": "path", + "pattern": "^projects/[^/]+/capabilityConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Retrieves the Capability Config identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`).", + "flatPath": "v3/projects/{projectsId}/capabilityConfigs/{capabilityConfigsId}", + "httpMethod": "GET", + "id": "cloudresourcemanager.projects.capabilityConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the CapabilityConfig to retrieve. Format: `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: `folders/123456789/capabilityConfigs/my-capability-config`", + "location": "path", + "pattern": "^projects/[^/]+/capabilityConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "CapabilityConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists CapabilityConfigs that are direct children of the specified organization, folder or project resource.", + "flatPath": "v3/projects/{projectsId}/capabilityConfigs", + "httpMethod": "GET", + "id": "cloudresourcemanager.projects.capabilityConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of CapabilityConfigs to return in the response. The service may return fewer CapabilityConfigs than requested. If unspecified, at most 100 CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A pagination token received from a previous call to `ListCapabilityConfigs` that indicates from where listing should continue. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: `organizations/{organization_id}` or `folders/{folder_id}`", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/capabilityConfigs", + "response": { + "$ref": "ListCapabilityConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "patch": { + "description": "Updates the `display_name`, `types` and `boundaries` of the CapabilityConfig identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`).", + "flatPath": "v3/projects/{projectsId}/capabilityConfigs/{capabilityConfigsId}", + "httpMethod": "PATCH", + "id": "cloudresourcemanager.projects.capabilityConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The unique resource name of the CapabilityConfig. Format: `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, `projects/{project}/capabilityConfigs/{capabilityConfig}`", + "location": "path", + "pattern": "^projects/[^/]+/capabilityConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v3/{+name}", + "request": { + "$ref": "CapabilityConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } } }, "tagBindings": { @@ -1994,7 +2475,7 @@ } } }, - "revision": "20260820", + "revision": "20260909", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -2082,6 +2563,78 @@ }, "type": "object" }, + "CapabilityConfig": { + "description": "A CapabilityConfig allows managing experiences like applications and agents on a logical administrative perimeter of Projects (Boundary).", + "id": "CapabilityConfig", + "properties": { + "boundaries": { + "description": "Optional. The list of Boundaries associated with this CapabilityConfig. Format: `organizations/{organization}/boundaries/{boundary}` or, `folders/{folder}/boundaries/{boundary}` or, `projects/{project}/boundaries/{boundary}`", + "items": { + "type": "string" + }, + "type": "array" + }, + "createTime": { + "description": "Output only. The creation time of the CapabilityConfig.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. Human-readable non-unique display name of the CapabilityConfig. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My Capability Config`", + "type": "string" + }, + "etag": { + "description": "This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + "type": "string" + }, + "managementProject": { + "description": "Optional. Immutable. The Management Project associated with this CapabilityConfig. If not provided during creation, a management project will be automatically created. Cannot be modified after creation. Format: `projects/{project_number}` Example: `projects/123456789012`", + "type": "string" + }, + "name": { + "description": "Identifier. The unique resource name of the CapabilityConfig. Format: `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, `projects/{project}/capabilityConfigs/{capabilityConfig}`", + "type": "string" + }, + "state": { + "description": "Output only. The lifecycle state of the CapabilityConfig.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE" + ], + "enumDescriptions": [ + "Unspecified state.", + "CapabilityConfig is operational, and the management project is fully active." + ], + "readOnly": true, + "type": "string" + }, + "types": { + "description": "Required. The CapabilityConfig types.", + "items": { + "enum": [ + "TYPE_UNSPECIFIED", + "APP_MANAGEMENT", + "AGENT_MANAGEMENT" + ], + "enumDescriptions": [ + "Unspecified type.", + "For AppHub applications.", + "For Agent Registry." + ], + "type": "string" + }, + "type": "array" + }, + "updateTime": { + "description": "Output only. The most recent time this CapabilityConfig was modified.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation": { "description": "Metadata describing a long running folder operation", "id": "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation", @@ -2566,6 +3119,24 @@ }, "type": "object" }, + "ListCapabilityConfigsResponse": { + "description": "A page of the response received from the ListCapabilityConfigs method. A paginated response where more pages are available has `next_page_token` set. This token can be used in a subsequent request to retrieve the next page. NOTE: A response may contain fewer elements than the request `page_size` and still have a `next_page_token`.", + "id": "ListCapabilityConfigsResponse", + "properties": { + "capabilityConfigs": { + "description": "The list of CapabilityConfigs under the parent. This list can be paginated.", + "items": { + "$ref": "CapabilityConfig" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the `page_token` parameter gives the next page of the results. When `next_page_token` is not filled in, there is no next page and the list returned is the last page in the result set.", + "type": "string" + } + }, + "type": "object" + }, "ListEffectiveTagsResponse": { "description": "The response of ListEffectiveTags.", "id": "ListEffectiveTagsResponse", diff --git a/discovery/compute-alpha.json b/discovery/compute-alpha.json index 49ee557c3e..6b581200e4 100644 --- a/discovery/compute-alpha.json +++ b/discovery/compute-alpha.json @@ -6513,6 +6513,7 @@ ], "parameters": { "extensionName": { + "description": "Required. Name of the VM extension for this request.", "location": "path", "required": true, "type": "string" @@ -6825,6 +6826,7 @@ ], "parameters": { "extensionName": { + "description": "Required. Name of the VM extension for this request.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, @@ -8674,6 +8676,7 @@ ], "parameters": { "project": { + "description": "Required. Project ID for this request.", "location": "path", "required": true, "type": "string" @@ -8699,16 +8702,18 @@ ], "parameters": { "project": { + "description": "Required. Project ID for this request.", "location": "path", "required": true, "type": "string" }, "requestId": { + "description": "An optional request ID to identify requests.", "location": "query", "type": "string" }, "updateMask": { - "description": "e.g., \"type\"", + "description": "Field mask to support patch. E.g., \"type\".", "format": "google-fieldmask", "location": "query", "type": "string" @@ -9741,6 +9746,7 @@ ], "parameters": { "extensionName": { + "description": "Required. Name of the VM extension for this request.", "location": "path", "required": true, "type": "string" @@ -26381,6 +26387,7 @@ ], "parameters": { "extensionName": { + "description": "Required. Name of the VM extension for this request.", "location": "path", "required": true, "type": "string" @@ -27771,6 +27778,7 @@ ], "parameters": { "extensionName": { + "description": "Required. Name of the VM extension for this request.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, @@ -58091,6 +58099,7 @@ ], "parameters": { "extensionName": { + "description": "Required. Name of the VM extension for this request.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, @@ -58435,7 +58444,7 @@ } } }, - "revision": "20260828", + "revision": "20260910", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -65448,6 +65457,12 @@ "type": "string" }, "type": "array" + }, + "rank": { + "description": "Optional. Rank when prioritizing the shape flexibilities.\nThe instance selections are considered in the ascending order of the\nrank. If not set, defaults to 0.", + "format": "int64", + "minimum": "0", + "type": "string" } }, "type": "object" @@ -65647,6 +65662,20 @@ "description": "Instance properties for this request.", "id": "CapacityHistoryRequestInstanceProperties", "properties": { + "disks": { + "description": "Local SSDs.", + "items": { + "$ref": "CapacityHistoryRequestInstancePropertiesAttachedDisk" + }, + "type": "array" + }, + "guestAccelerators": { + "description": "Accelerators configuration.", + "items": { + "$ref": "AcceleratorConfig" + }, + "type": "array" + }, "machineType": { "description": "The machine type for the VM, such as `n2-standard-4`.", "type": "string" @@ -65658,6 +65687,25 @@ }, "type": "object" }, + "CapacityHistoryRequestInstancePropertiesAttachedDisk": { + "description": "AttachedDisk modeled after Instance's AttachedDisk.", + "id": "CapacityHistoryRequestInstancePropertiesAttachedDisk", + "properties": { + "type": { + "description": "Specifies the type of the disk.", + "enum": [ + "DISK_TYPE_UNSPECIFIED", + "SCRATCH" + ], + "enumDescriptions": [ + "Default value, unused.", + "Scratch disk (Local SSD)." + ], + "type": "string" + } + }, + "type": "object" + }, "CapacityHistoryRequestInstancePropertiesScheduling": { "description": "Scheduling options.", "id": "CapacityHistoryRequestInstancePropertiesScheduling", @@ -66029,7 +66077,7 @@ "type": "string" }, "type": { - "description": "The type of commitment; specifies the\nmachine series for which you want to commit to purchasing resources.\nThe choice of machine series affects the discount rate and the eligible\nresource types.\n\n The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,\n COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For\nexample, type MEMORY_OPTIMIZED specifies a commitment that\napplies only to eligible resources of memory optimized M1 and M2 machine\nseries. Type GENERAL_PURPOSE specifies a commitment that\napplies only to eligible resources of general purpose N1 machine series.", + "description": "The type of commitment; specifies the\nmachine series for which you want to commit to purchasing resources.\nThe choice of machine series affects the discount rate and the eligible\nresource types.\n\n The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,\n COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For\nexample, type MEMORY_OPTIMIZED specifies a commitment that\napplies only to eligible resources of memory optimized M1 and M2 machine\nseries. Type GENERAL_PURPOSE specifies a commitment that\napplies only to eligible resources of general purpose N1 machine series.", "enum": [ "ACCELERATOR_OPTIMIZED", "ACCELERATOR_OPTIMIZED_A3", @@ -66081,6 +66129,9 @@ "NETWORK_OPTIMIZED_U4S", "STORAGE_OPTIMIZED_Z3", "STORAGE_OPTIMIZED_Z4D", + "STORAGE_OPTIMIZED_Z4D4T", + "STORAGE_OPTIMIZED_Z4DH", + "STORAGE_OPTIMIZED_Z4DS", "STORAGE_OPTIMIZED_Z4M", "TYPE_UNSPECIFIED" ], @@ -66135,6 +66186,9 @@ "CUD bucket for NETWORK_OPTIMIZED_U4S machines.", "", "CUD bucket for Z4D machines.", + "CUD bucket for Z4D-4T machines.", + "CUD bucket for Z4DH machines.", + "CUD bucket for Z4DS machines.", "CUD bucket for Z4M (bare metal) machines.", "Note for internal users: When adding a new enum Type for v1, make sure\nto also add it in the comment for the `optional Type type` definition.\nThis ensures that the public documentation displays the new enum Type." ], @@ -69901,6 +69955,10 @@ "DistributionPolicyZoneConfiguration": { "id": "DistributionPolicyZoneConfiguration", "properties": { + "maxSize": { + "$ref": "FixedOrPercent", + "description": "Optional. The maximum size of the group in this zone. This value can be either a\nfixed number or, a percentage. If you set a percentage, the number of\ninstances is rounded up if necessary. If unset, it is interpreted as\nunbounded." + }, "zone": { "annotations": { "required": [ @@ -74376,9 +74434,9 @@ "INDIVIDUAL" ], "enumDescriptions": [ - "Bundling is not active", - "Standard Global Frontend bundle", - "Ala Carte mode" + "Bundling is not active.", + "Standard Global Frontend bundle.", + "Ala Carte mode." ], "type": "string" }, @@ -74393,7 +74451,7 @@ "type": "string" }, "etag": { - "description": "Output only. For optimistic locking", + "description": "Output only. For optimistic locking.", "readOnly": true, "type": "string" }, @@ -74421,7 +74479,8 @@ "id": "GlobalFrontendSettingsPatchResponse", "properties": { "operation": { - "$ref": "Operation" + "$ref": "Operation", + "description": "The Operation resource for this long-running operation." } }, "type": "object" @@ -80698,7 +80757,8 @@ "id": "ImageView", "properties": { "image": { - "$ref": "Image" + "$ref": "Image", + "description": "The Image resource." } }, "type": "object" @@ -80708,6 +80768,7 @@ "id": "ImageViewsListResponse", "properties": { "etag": { + "description": "Etag of the resource.", "type": "string" }, "id": { @@ -82505,6 +82566,10 @@ "InstanceGroupManagerInstanceFlexibilityPolicy": { "id": "InstanceGroupManagerInstanceFlexibilityPolicy", "properties": { + "constraints": { + "$ref": "InstanceGroupManagerInstanceFlexibilityPolicyConstraints", + "description": "Constraints applied to instance flexibility spreading and selection." + }, "instanceSelectionLists": { "additionalProperties": { "$ref": "InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection" @@ -82526,6 +82591,17 @@ }, "type": "object" }, + "InstanceGroupManagerInstanceFlexibilityPolicyConstraints": { + "description": "Constraints applied to instance flexibility spreading and selection.", + "id": "InstanceGroupManagerInstanceFlexibilityPolicyConstraints", + "properties": { + "singleMachineType": { + "description": "When set to true, all instances in the group will be provisioned with\nthe exact same machine type, ensuring cluster homogeneity across zones.\nDefaults to false.", + "type": "boolean" + } + }, + "type": "object" + }, "InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection": { "id": "InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection", "properties": { @@ -94950,6 +95026,7 @@ "type": "string" }, "items": { + "description": "The list of managed rulesets.", "items": { "$ref": "ManagedRuleset" }, diff --git a/discovery/compute-beta.json b/discovery/compute-beta.json index 835e780b7b..61774f8161 100644 --- a/discovery/compute-beta.json +++ b/discovery/compute-beta.json @@ -7379,6 +7379,7 @@ ], "parameters": { "project": { + "description": "Required. Project ID for this request.", "location": "path", "required": true, "type": "string" @@ -7404,16 +7405,18 @@ ], "parameters": { "project": { + "description": "Required. Project ID for this request.", "location": "path", "required": true, "type": "string" }, "requestId": { + "description": "An optional request ID to identify requests.", "location": "query", "type": "string" }, "updateMask": { - "description": "e.g., \"type\"", + "description": "Field mask to support patch. E.g., \"type\".", "format": "google-fieldmask", "location": "query", "type": "string" @@ -9764,6 +9767,69 @@ "https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly" ] + }, + "list": { + "description": "Returns a list of global ImageView resources, with a regional\ncontext.", + "flatPath": "projects/{project}/regions/{region}/imageViews", + "httpMethod": "GET", + "id": "compute.imageViews.list", + "parameterOrder": [ + "project", + "region" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most\nCompute resources support two types of filter expressions:\nexpressions that support regular expressions and expressions that follow\nAPI improvement proposal AIP-160.\nThese two types of filter expressions cannot be mixed in one request.\n\nIf you want to use AIP-160, your expression must specify the field name, an\noperator, and the value that you want to use for filtering. The value\nmust be a string, a number, or a boolean. The operator\nmust be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.\n\nFor example, if you are filtering Compute Engine instances, you can\nexclude instances named `example-instance` by specifying\n`name != example-instance`.\n\nThe `:*` comparison can be used to test whether a key has been defined.\nFor example, to find all objects with `owner` label use:\n```\nlabels.owner:*\n```\n\nYou can also filter nested fields. For example, you could specify\n`scheduling.automaticRestart = false` to include instances only\nif they are not scheduled for automatic restarts. You can use filtering\non nested fields to filter based onresource labels.\n\nTo filter on multiple expressions, provide each separate expression within\nparentheses. For example:\n```\n(scheduling.automaticRestart = true)\n(cpuPlatform = \"Intel Skylake\")\n```\nBy default, each expression is an `AND` expression. However, you\ncan include `AND` and `OR` expressions explicitly.\nFor example:\n```\n(cpuPlatform = \"Intel Skylake\") OR\n(cpuPlatform = \"Intel Broadwell\") AND\n(scheduling.automaticRestart = true)\n```\n\nIf you want to use a regular expression, use the `eq` (equal) or `ne`\n(not equal) operator against a single un-parenthesized expression with or\nwithout quotes or against multiple parenthesized expressions. Examples:\n\n`fieldname eq unquoted literal`\n`fieldname eq 'single quoted literal'`\n`fieldname eq \"double quoted literal\"`\n`(fieldname1 eq literal) (fieldname2 ne \"literal\")`\n\nThe literal value is interpreted as a regular expression using GoogleRE2 library syntax.\nThe literal value must match the entire field.\n\nFor example, to filter for instances that do not end with name \"instance\",\nyou would use `name ne .*instance`.\n\nYou cannot combine constraints on multiple fields using regular\nexpressions.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned.\nIf the number of available results is larger than `maxResults`,\nCompute Engine returns a `nextPageToken` that can be used to get\nthe next page of results in subsequent list requests. Acceptable values are\n`0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results\nare returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation\ntimestamp using `orderBy=\"creationTimestamp desc\"`. This sorts\nresults based on the `creationTimestamp` field in\nreverse chronological order (newest result first). Use this to sort\nresources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or\n`creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the\n`nextPageToken` returned by a previous list request to get\nthe next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Required. Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case\nof failure. The default value is false.\n\nFor example, when partial success behavior is enabled, aggregatedList for a\nsingle zone scope either returns all resources in the zone or no resources,\nwith an error code.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/regions/{region}/imageViews", + "response": { + "$ref": "ImageViewsListResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] } } }, @@ -43596,6 +43662,11 @@ "router" ], "parameters": { + "etag": { + "description": "ETag for optimistic concurrency control as described by AIP 154. Used to\nprevent conflicting updates. If provided, the request will succeed only if\nthe etag matches the current etag of the router; otherwise, the request\nfails with an ABORTED error.", + "location": "query", + "type": "string" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -54280,7 +54351,7 @@ } } }, - "revision": "20260828", + "revision": "20260910", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -60305,6 +60376,10 @@ "CacheInvalidationRule": { "id": "CacheInvalidationRule", "properties": { + "backendService": { + "description": "If set, this invalidation rule will only apply to requests routed to the\ngiven backend service or backend bucket.\nFor example, for a backend bucket `bb1` in the same scope as the URL map,\nthe path would be `projects/my-project/global/backendBuckets/bb1`; and\nfor a backend service `bs1` in the same scope as the URL map, the path\nwould be `projects/my-project/global/backendServices/bs1`.", + "type": "string" + }, "cacheTags": { "description": "A list of cache tags used to identify cached objects.\n\n \n - Cache tags are specified when the response is first cached, by setting\n the `Cache-Tag` response header at the origin.\n - Multiple cache tags in the same invalidation request are treated as\n Boolean `OR` - for example, `tag1 OR tag2 OR tag3`.\n - If other fields are also specified, these are treated as Boolean `AND`\n with any tags.\n\n\nUp to 10 tags can be specified in a single invalidation request.", "items": { @@ -60312,10 +60387,19 @@ }, "type": "array" }, + "contentType": { + "description": "If set, this invalidation rule will only apply to responses with the given\ncontent-type. Parameters are not allowed and are ignored from the response\nwhen matching. Wildcards are not allowed.", + "type": "string" + }, "host": { "description": "If set, this invalidation rule will only apply to requests with a Host\nheader matching host.", "type": "string" }, + "httpStatus": { + "description": "If set, this invalidation rule will only apply to responses with the\ngiven HTTP status. Valid range is 200-599.", + "format": "int32", + "type": "integer" + }, "path": { "type": "string" } @@ -61186,7 +61270,7 @@ "type": "string" }, "type": { - "description": "The type of commitment; specifies the\nmachine series for which you want to commit to purchasing resources.\nThe choice of machine series affects the discount rate and the eligible\nresource types.\n\n The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,\n COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For\nexample, type MEMORY_OPTIMIZED specifies a commitment that\napplies only to eligible resources of memory optimized M1 and M2 machine\nseries. Type GENERAL_PURPOSE specifies a commitment that\napplies only to eligible resources of general purpose N1 machine series.", + "description": "The type of commitment; specifies the\nmachine series for which you want to commit to purchasing resources.\nThe choice of machine series affects the discount rate and the eligible\nresource types.\n\n The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,\n COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For\nexample, type MEMORY_OPTIMIZED specifies a commitment that\napplies only to eligible resources of memory optimized M1 and M2 machine\nseries. Type GENERAL_PURPOSE specifies a commitment that\napplies only to eligible resources of general purpose N1 machine series.", "enum": [ "ACCELERATOR_OPTIMIZED", "ACCELERATOR_OPTIMIZED_A3", @@ -61231,6 +61315,9 @@ "NETWORK_OPTIMIZED_U4P", "NETWORK_OPTIMIZED_U4S", "STORAGE_OPTIMIZED_Z3", + "STORAGE_OPTIMIZED_Z4D4T", + "STORAGE_OPTIMIZED_Z4DH", + "STORAGE_OPTIMIZED_Z4DS", "TYPE_UNSPECIFIED" ], "enumDescriptions": [ @@ -61277,6 +61364,9 @@ "CUD bucket for NETWORK_OPTIMIZED_U4P machines.", "CUD bucket for NETWORK_OPTIMIZED_U4S machines.", "", + "CUD bucket for Z4D-4T machines.", + "CUD bucket for Z4DH machines.", + "CUD bucket for Z4DS machines.", "Note for internal users: When adding a new enum Type for v1, make sure\nto also add it in the comment for the `optional Type type` definition.\nThis ensures that the public documentation displays the new enum Type." ], "type": "string" @@ -64837,6 +64927,10 @@ "DistributionPolicyZoneConfiguration": { "id": "DistributionPolicyZoneConfiguration", "properties": { + "maxSize": { + "$ref": "FixedOrPercent", + "description": "Optional. The maximum size of the group in this zone. This value can be either a\nfixed number or, a percentage. If you set a percentage, the number of\ninstances is rounded up if necessary. If unset, it is interpreted as\nunbounded." + }, "zone": { "annotations": { "required": [ @@ -67486,6 +67580,10 @@ "description": "Setting for enabling or disabling automatic deletion for auto-created\nreservation. If set to true, auto-created reservations will be\ndeleted at Future Reservation's end time (default) or at user's defined\ntimestamp if any of the\n[auto_created_reservations_delete_time, auto_created_reservations_duration]\nvalues is specified.\nFor keeping auto-created reservation indefinitely, this value should be set\nto false.", "type": "boolean" }, + "colocationResource": { + "description": "Full or partial URL of an existing future reservation to indicate\nintent for reserving capacity in the same cluster as the colocation\nresource.", + "type": "string" + }, "commitmentInfo": { "$ref": "FutureReservationCommitmentInfo", "description": "If not present, then FR will not deliver a new commitment or update an\nexisting commitment." @@ -68940,9 +69038,9 @@ "INDIVIDUAL" ], "enumDescriptions": [ - "Bundling is not active", - "Standard Global Frontend bundle", - "Ala Carte mode" + "Bundling is not active.", + "Standard Global Frontend bundle.", + "Ala Carte mode." ], "type": "string" }, @@ -68957,7 +69055,7 @@ "type": "string" }, "etag": { - "description": "Output only. For optimistic locking", + "description": "Output only. For optimistic locking.", "readOnly": true, "type": "string" }, @@ -68985,7 +69083,8 @@ "id": "GlobalFrontendSettingsPatchResponse", "properties": { "operation": { - "$ref": "Operation" + "$ref": "Operation", + "description": "The Operation resource for this long-running operation." } }, "type": "object" @@ -73948,7 +74047,175 @@ "id": "ImageView", "properties": { "image": { - "$ref": "Image" + "$ref": "Image", + "description": "The Image resource." + } + }, + "type": "object" + }, + "ImageViewsListResponse": { + "description": "Response message for ImageViewsService.List", + "id": "ImageViewsListResponse", + "properties": { + "etag": { + "description": "Etag of the resource.", + "type": "string" + }, + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "description": "A list of Image resources.", + "items": { + "$ref": "ImageView" + }, + "type": "array" + }, + "kind": { + "default": "compute#imageViewList", + "readOnly": true, + "type": "string" + }, + "nextPageToken": { + "type": "string" + }, + "selfLink": { + "description": "Output only. [Output Only] Server-defined URL for this resource.", + "readOnly": true, + "type": "string" + }, + "unreachables": { + "description": "Output only. [Output Only] Unreachable resources.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "QUOTA_INFO_UNAVAILABLE", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed\noperation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as\ndeprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as\nexperimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden.\nDeprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is\nnot of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed\nwhich captures the amount of resources filtered out by\nuser-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the\nnetwork.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an\nipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the\nsame network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite\nthe mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "Quota information is not available to client requests (e.g:\nregions.list).", + "The user attempted to use a resource that requires a TOS they have not\naccepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted\nbecause they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but\nits application does not make a lot of sense, because it allows only\nsingle instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n {\n \"key\": \"scope\",\n \"value\": \"zones/us-east1-d\"\n }]", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being\nreturned. For example, for warnings where there are no results in a list\nrequest for a particular zone, this key might be scope and\nthe key value might be the zone name. Other examples might be a key\nindicating a deprecated resource and a suggested replacement, or a\nwarning about invalid network settings (for example, if an instance\nattempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" } }, "type": "object" @@ -75484,6 +75751,10 @@ "InstanceGroupManagerInstanceFlexibilityPolicy": { "id": "InstanceGroupManagerInstanceFlexibilityPolicy", "properties": { + "constraints": { + "$ref": "InstanceGroupManagerInstanceFlexibilityPolicyConstraints", + "description": "Constraints applied to instance flexibility spreading and selection." + }, "instanceSelections": { "additionalProperties": { "$ref": "InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection" @@ -75498,6 +75769,17 @@ }, "type": "object" }, + "InstanceGroupManagerInstanceFlexibilityPolicyConstraints": { + "description": "Constraints applied to instance flexibility spreading and selection.", + "id": "InstanceGroupManagerInstanceFlexibilityPolicyConstraints", + "properties": { + "singleMachineType": { + "description": "When set to true, all instances in the group will be provisioned with\nthe exact same machine type, ensuring cluster homogeneity across zones.\nDefaults to false.", + "type": "boolean" + } + }, + "type": "object" + }, "InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection": { "id": "InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection", "properties": { @@ -86699,6 +86981,7 @@ "type": "string" }, "items": { + "description": "The list of managed rulesets.", "items": { "$ref": "ManagedRuleset" }, @@ -103494,6 +103777,9 @@ "enum": [ "FAULT_BEHAVIOR_UNSPECIFIED", "GPU_ERROR", + "NVSWITCH_FAULT_CONTROLLER_ERROR", + "NVSWITCH_FAULT_DEGRADED_BANDWIDTH", + "NVSWITCH_FAULT_SWITCH_ERROR", "PERFORMANCE", "SILENT_DATA_CORRUPTION", "SWITCH_FAILURE" @@ -103501,6 +103787,9 @@ "enumDescriptions": [ "", "The subBlock experienced a GPU error.", + "The subBlock experienced an NVSwitch controller error.", + "The subBlock experienced NVSwitch degraded bandwidth.", + "The subBlock experienced an NVSwitch switch error.", "The subBlock experienced performance issues.", "The subBlock experienced silent data corruption.", "The subBlock experienced a switch failure." @@ -106441,6 +106730,10 @@ "description": "Indicates if a router is dedicated for use with encrypted VLAN\nattachments (interconnectAttachments).", "type": "boolean" }, + "etag": { + "description": "ETag for optimistic concurrency control as described by AIP 154. Used to\nprevent conflicting updates. If provided, the request will succeed only if\nthe etag matches the current etag of the router; otherwise, the request\nfails with an ABORTED error.", + "type": "string" + }, "id": { "description": "[Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.", "format": "uint64", @@ -107426,6 +107719,13 @@ "description": "An integer uniquely identifying a rule in the list. The rule number\nmust be a positive value between 0 and 65000, and\nmust be unique among rules within a NAT.", "format": "uint32", "type": "integer" + }, + "sourceWorkloadIdentities": { + "description": "A list of source workload identities.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/discovery/compute-v1.json b/discovery/compute-v1.json index b2372fc1b7..a5372d41d5 100644 --- a/discovery/compute-v1.json +++ b/discovery/compute-v1.json @@ -6711,6 +6711,75 @@ } } }, + "globalFrontendSettings": { + "methods": { + "get": { + "description": "Gets the Global Frontend Billing Bundle Settings for a project.", + "flatPath": "projects/{project}/global/globalFrontendSettings", + "httpMethod": "GET", + "id": "compute.globalFrontendSettings.get", + "parameterOrder": [ + "project" + ], + "parameters": { + "project": { + "description": "Required. Project ID for this request.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/globalFrontendSettings", + "response": { + "$ref": "GlobalFrontendSettings" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "patch": { + "description": "Updates the Global Frontend Billing Bundle Settings for a project.", + "flatPath": "projects/{project}/global/globalFrontendSettings", + "httpMethod": "PATCH", + "id": "compute.globalFrontendSettings.patch", + "parameterOrder": [ + "project" + ], + "parameters": { + "project": { + "description": "Required. Project ID for this request.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests.", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Field mask to support patch. E.g., \"type\".", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/global/globalFrontendSettings", + "request": { + "$ref": "GlobalFrontendSettings" + }, + "response": { + "$ref": "GlobalFrontendSettingsPatchResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + } + } + }, "globalNetworkEndpointGroups": { "methods": { "attachNetworkEndpoints": { @@ -8998,6 +9067,116 @@ } } }, + "imageViews": { + "methods": { + "get": { + "description": "Returns the specified global ImageView resource, with a regional\ncontext.", + "flatPath": "projects/{project}/regions/{region}/imageViews/{resourceId}", + "httpMethod": "GET", + "id": "compute.imageViews.get", + "parameterOrder": [ + "project", + "region", + "resourceId" + ], + "parameters": { + "project": { + "description": "Required. Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "resourceId": { + "description": "Name of the image resource to return.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/imageViews/{resourceId}", + "response": { + "$ref": "ImageView" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "list": { + "description": "Returns a list of global ImageView resources, with a regional\ncontext.", + "flatPath": "projects/{project}/regions/{region}/imageViews", + "httpMethod": "GET", + "id": "compute.imageViews.list", + "parameterOrder": [ + "project", + "region" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most\nCompute resources support two types of filter expressions:\nexpressions that support regular expressions and expressions that follow\nAPI improvement proposal AIP-160.\nThese two types of filter expressions cannot be mixed in one request.\n\nIf you want to use AIP-160, your expression must specify the field name, an\noperator, and the value that you want to use for filtering. The value\nmust be a string, a number, or a boolean. The operator\nmust be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.\n\nFor example, if you are filtering Compute Engine instances, you can\nexclude instances named `example-instance` by specifying\n`name != example-instance`.\n\nThe `:*` comparison can be used to test whether a key has been defined.\nFor example, to find all objects with `owner` label use:\n```\nlabels.owner:*\n```\n\nYou can also filter nested fields. For example, you could specify\n`scheduling.automaticRestart = false` to include instances only\nif they are not scheduled for automatic restarts. You can use filtering\non nested fields to filter based onresource labels.\n\nTo filter on multiple expressions, provide each separate expression within\nparentheses. For example:\n```\n(scheduling.automaticRestart = true)\n(cpuPlatform = \"Intel Skylake\")\n```\nBy default, each expression is an `AND` expression. However, you\ncan include `AND` and `OR` expressions explicitly.\nFor example:\n```\n(cpuPlatform = \"Intel Skylake\") OR\n(cpuPlatform = \"Intel Broadwell\") AND\n(scheduling.automaticRestart = true)\n```\n\nIf you want to use a regular expression, use the `eq` (equal) or `ne`\n(not equal) operator against a single un-parenthesized expression with or\nwithout quotes or against multiple parenthesized expressions. Examples:\n\n`fieldname eq unquoted literal`\n`fieldname eq 'single quoted literal'`\n`fieldname eq \"double quoted literal\"`\n`(fieldname1 eq literal) (fieldname2 ne \"literal\")`\n\nThe literal value is interpreted as a regular expression using GoogleRE2 library syntax.\nThe literal value must match the entire field.\n\nFor example, to filter for instances that do not end with name \"instance\",\nyou would use `name ne .*instance`.\n\nYou cannot combine constraints on multiple fields using regular\nexpressions.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned.\nIf the number of available results is larger than `maxResults`,\nCompute Engine returns a `nextPageToken` that can be used to get\nthe next page of results in subsequent list requests. Acceptable values are\n`0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results\nare returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation\ntimestamp using `orderBy=\"creationTimestamp desc\"`. This sorts\nresults based on the `creationTimestamp` field in\nreverse chronological order (newest result first). Use this to sort\nresources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or\n`creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the\n`nextPageToken` returned by a previous list request to get\nthe next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Required. Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case\nof failure. The default value is false.\n\nFor example, when partial success behavior is enabled, aggregatedList for a\nsingle zone scope either returns all resources in the zone or no resources,\nwith an error code.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/regions/{region}/imageViews", + "response": { + "$ref": "ImageViewsListResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + } + } + }, "images": { "methods": { "delete": { @@ -18020,6 +18199,100 @@ } } }, + "managedRulesets": { + "methods": { + "get": { + "description": "Gets the details for the specified managed ruleset name.", + "flatPath": "projects/{project}/global/managedRulesets/{managedRuleset}", + "httpMethod": "GET", + "id": "compute.managedRulesets.get", + "parameterOrder": [ + "project", + "managedRuleset" + ], + "parameters": { + "managedRuleset": { + "description": "Name of the managed ruleset to return.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/managedRulesets/{managedRuleset}", + "response": { + "$ref": "ManagedRuleset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "list": { + "description": "Retrieves the list of all the managed rulesets available.", + "flatPath": "projects/{project}/global/managedRulesets", + "httpMethod": "GET", + "id": "compute.managedRulesets.list", + "parameterOrder": [ + "project" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most\nCompute resources support two types of filter expressions:\nexpressions that support regular expressions and expressions that follow\nAPI improvement proposal AIP-160.\nThese two types of filter expressions cannot be mixed in one request.\n\nIf you want to use AIP-160, your expression must specify the field name, an\noperator, and the value that you want to use for filtering. The value\nmust be a string, a number, or a boolean. The operator\nmust be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.\n\nFor example, if you are filtering Compute Engine instances, you can\nexclude instances named `example-instance` by specifying\n`name != example-instance`.\n\nThe `:*` comparison can be used to test whether a key has been defined.\nFor example, to find all objects with `owner` label use:\n```\nlabels.owner:*\n```\n\nYou can also filter nested fields. For example, you could specify\n`scheduling.automaticRestart = false` to include instances only\nif they are not scheduled for automatic restarts. You can use filtering\non nested fields to filter based onresource labels.\n\nTo filter on multiple expressions, provide each separate expression within\nparentheses. For example:\n```\n(scheduling.automaticRestart = true)\n(cpuPlatform = \"Intel Skylake\")\n```\nBy default, each expression is an `AND` expression. However, you\ncan include `AND` and `OR` expressions explicitly.\nFor example:\n```\n(cpuPlatform = \"Intel Skylake\") OR\n(cpuPlatform = \"Intel Broadwell\") AND\n(scheduling.automaticRestart = true)\n```\n\nIf you want to use a regular expression, use the `eq` (equal) or `ne`\n(not equal) operator against a single un-parenthesized expression with or\nwithout quotes or against multiple parenthesized expressions. Examples:\n\n`fieldname eq unquoted literal`\n`fieldname eq 'single quoted literal'`\n`fieldname eq \"double quoted literal\"`\n`(fieldname1 eq literal) (fieldname2 ne \"literal\")`\n\nThe literal value is interpreted as a regular expression using GoogleRE2 library syntax.\nThe literal value must match the entire field.\n\nFor example, to filter for instances that do not end with name \"instance\",\nyou would use `name ne .*instance`.\n\nYou cannot combine constraints on multiple fields using regular\nexpressions.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned.\nIf the number of available results is larger than `maxResults`,\nCompute Engine returns a `nextPageToken` that can be used to get\nthe next page of results in subsequent list requests. Acceptable values are\n`0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results\nare returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation\ntimestamp using `orderBy=\"creationTimestamp desc\"`. This sorts\nresults based on the `creationTimestamp` field in\nreverse chronological order (newest result first). Use this to sort\nresources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or\n`creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the\n`nextPageToken` returned by a previous list request to get\nthe next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case\nof failure. The default value is false.\n\nFor example, when partial success behavior is enabled, aggregatedList for a\nsingle zone scope either returns all resources in the zone or no resources,\nwith an error code.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/global/managedRulesets", + "response": { + "$ref": "ManagedRulesetList" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + } + } + }, "networkAttachments": { "methods": { "aggregatedList": { @@ -32113,6 +32386,12 @@ "firewallPolicy" ], "parameters": { + "associatedPolicyToBeReplaced": { + "description": "Name of the firewall policy associated with the target network to swap\nassociation with. This field is mutually exclusive with\n'replace_existing_association'.", + "location": "query", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "type": "string" + }, "firewallPolicy": { "description": "Name of the firewall policy to update.", "location": "path", @@ -32704,11 +32983,11 @@ "https://www.googleapis.com/auth/compute" ] }, - "patchRule": { - "description": "Patches a rule of the specified priority.", - "flatPath": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule", + "patchAssociation": { + "description": "Updates an association for the specified network firewall policy.", + "flatPath": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation", "httpMethod": "POST", - "id": "compute.regionNetworkFirewallPolicies.patchRule", + "id": "compute.regionNetworkFirewallPolicies.patchAssociation", "parameterOrder": [ "project", "region", @@ -32722,12 +33001,6 @@ "required": true, "type": "string" }, - "priority": { - "description": "The priority of the rule to patch.", - "format": "int32", - "location": "query", - "type": "integer" - }, "project": { "description": "Project ID for this request.", "location": "path", @@ -32748,9 +33021,9 @@ "type": "string" } }, - "path": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule", + "path": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation", "request": { - "$ref": "FirewallPolicyRule" + "$ref": "FirewallPolicyAssociation" }, "response": { "$ref": "Operation" @@ -32760,11 +33033,11 @@ "https://www.googleapis.com/auth/compute" ] }, - "removeAssociation": { - "description": "Removes an association for the specified network firewall policy.", - "flatPath": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation", + "patchRule": { + "description": "Patches a rule of the specified priority.", + "flatPath": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule", "httpMethod": "POST", - "id": "compute.regionNetworkFirewallPolicies.removeAssociation", + "id": "compute.regionNetworkFirewallPolicies.patchRule", "parameterOrder": [ "project", "region", @@ -32778,10 +33051,66 @@ "required": true, "type": "string" }, - "name": { - "description": "Name for the association that will be removed.", + "priority": { + "description": "The priority of the rule to patch.", + "format": "int32", "location": "query", - "type": "string" + "type": "integer" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region scoping this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so\nthat if you must retry your request, the server will know to ignore the\nrequest if it has already been completed.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same\nrequest ID, the server can check if original operation with the same\nrequest ID was received, and if so, will ignore the second request. This\nprevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be\na valid UUID with the exception that zero UUID is not supported\n(00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule", + "request": { + "$ref": "FirewallPolicyRule" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "removeAssociation": { + "description": "Removes an association for the specified network firewall policy.", + "flatPath": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation", + "httpMethod": "POST", + "id": "compute.regionNetworkFirewallPolicies.removeAssociation", + "parameterOrder": [ + "project", + "region", + "firewallPolicy" + ], + "parameters": { + "firewallPolicy": { + "description": "Name of the firewall policy to update.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "name": { + "description": "Name for the association that will be removed.", + "location": "query", + "type": "string" }, "project": { "description": "Project ID for this request.", @@ -48880,7 +49209,7 @@ } } }, - "revision": "20260828", + "revision": "20260910", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -55550,7 +55879,7 @@ "type": "string" }, "type": { - "description": "The type of commitment; specifies the\nmachine series for which you want to commit to purchasing resources.\nThe choice of machine series affects the discount rate and the eligible\nresource types.\n\n The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,\n COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For\nexample, type MEMORY_OPTIMIZED specifies a commitment that\napplies only to eligible resources of memory optimized M1 and M2 machine\nseries. Type GENERAL_PURPOSE specifies a commitment that\napplies only to eligible resources of general purpose N1 machine series.", + "description": "The type of commitment; specifies the\nmachine series for which you want to commit to purchasing resources.\nThe choice of machine series affects the discount rate and the eligible\nresource types.\n\n The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,\n COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For\nexample, type MEMORY_OPTIMIZED specifies a commitment that\napplies only to eligible resources of memory optimized M1 and M2 machine\nseries. Type GENERAL_PURPOSE specifies a commitment that\napplies only to eligible resources of general purpose N1 machine series.", "enum": [ "ACCELERATOR_OPTIMIZED", "ACCELERATOR_OPTIMIZED_A3", @@ -55595,6 +55924,9 @@ "NETWORK_OPTIMIZED_U4P", "NETWORK_OPTIMIZED_U4S", "STORAGE_OPTIMIZED_Z3", + "STORAGE_OPTIMIZED_Z4D4T", + "STORAGE_OPTIMIZED_Z4DH", + "STORAGE_OPTIMIZED_Z4DS", "TYPE_UNSPECIFIED" ], "enumDescriptions": [ @@ -55641,6 +55973,9 @@ "CUD bucket for NETWORK_OPTIMIZED_U4P machines.", "CUD bucket for NETWORK_OPTIMIZED_U4S machines.", "", + "CUD bucket for Z4D-4T machines.", + "CUD bucket for Z4DH machines.", + "CUD bucket for Z4DS machines.", "Note for internal users: When adding a new enum Type for v1, make sure\nto also add it in the comment for the `optional Type type` definition.\nThis ensures that the public documentation displays the new enum Type." ], "type": "string" @@ -59982,6 +60317,11 @@ "description": "The name for an association.", "type": "string" }, + "priority": { + "description": "An integer indicating the priority of an association. The priority\nmust be a positive value between 1 and 2147483647.\nFirewall Policies are evaluated from highest to lowest priority where 1\nis the highest priority and 2147483647 is the lowest priority.\nThe default value is `1000`. If two associations have the same priority\nthen lexicographical order on association names is applied.", + "format": "int32", + "type": "integer" + }, "shortName": { "description": "Output only. [Output Only] The short name of the firewall policy of the association.", "readOnly": true, @@ -61301,6 +61641,10 @@ "description": "Setting for enabling or disabling automatic deletion for auto-created\nreservation. If set to true, auto-created reservations will be\ndeleted at Future Reservation's end time (default) or at user's defined\ntimestamp if any of the\n[auto_created_reservations_delete_time, auto_created_reservations_duration]\nvalues is specified.\nFor keeping auto-created reservation indefinitely, this value should be set\nto false.", "type": "boolean" }, + "colocationResource": { + "description": "Full or partial URL of an existing future reservation to indicate\nintent for reserving capacity in the same cluster as the colocation\nresource.", + "type": "string" + }, "commitmentInfo": { "$ref": "FutureReservationCommitmentInfo", "description": "If not present, then FR will not deliver a new commitment or update an\nexisting commitment." @@ -62730,6 +63074,69 @@ }, "type": "object" }, + "GlobalFrontendSettings": { + "description": "Represents the Global Frontend Bundle settings for a single project.", + "id": "GlobalFrontendSettings", + "properties": { + "bundleType": { + "description": "Customer-settable bundle type.", + "enum": [ + "BUNDLE_TYPE_UNSPECIFIED", + "GLOBAL_FRONT_END", + "INDIVIDUAL" + ], + "enumDescriptions": [ + "Bundling is not active.", + "Standard Global Frontend bundle.", + "Ala Carte mode." + ], + "type": "string" + }, + "creationTimestamp": { + "description": "Output only. [Output Only] Creation timestamp in RFC3339 text format.", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Output only. [Output Only] An optional description of this resource.", + "readOnly": true, + "type": "string" + }, + "etag": { + "description": "Output only. For optimistic locking.", + "readOnly": true, + "type": "string" + }, + "id": { + "description": "Output only. [Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.", + "format": "uint64", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. OUTPUT_ONLY fields\n[Output Only] Name of the resource. Must be 1-63 characters long and match\nthe regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first\ncharacter must be a lowercase letter, and all following characters must\nbe a dash, lowercase letter, or digit, except the last character, which\ncannot be a dash.", + "readOnly": true, + "type": "string" + }, + "selfLink": { + "description": "Output only. [Output Only] Server-defined URL for the resource.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GlobalFrontendSettingsPatchResponse": { + "description": "Response to an UpdateGlobalFrontendSettingsRequest.", + "id": "GlobalFrontendSettingsPatchResponse", + "properties": { + "operation": { + "$ref": "Operation", + "description": "The Operation resource for this long-running operation." + } + }, + "type": "object" + }, "GlobalNetworkEndpointGroupsAttachEndpointsRequest": { "id": "GlobalNetworkEndpointGroupsAttachEndpointsRequest", "properties": { @@ -67600,6 +68007,184 @@ }, "type": "object" }, + "ImageView": { + "description": "Represents a read-only view of a global Image resource.", + "id": "ImageView", + "properties": { + "image": { + "$ref": "Image", + "description": "The Image resource." + } + }, + "type": "object" + }, + "ImageViewsListResponse": { + "description": "Response message for ImageViewsService.List", + "id": "ImageViewsListResponse", + "properties": { + "etag": { + "description": "Etag of the resource.", + "type": "string" + }, + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "description": "A list of Image resources.", + "items": { + "$ref": "ImageView" + }, + "type": "array" + }, + "kind": { + "default": "compute#imageViewList", + "readOnly": true, + "type": "string" + }, + "nextPageToken": { + "type": "string" + }, + "selfLink": { + "description": "Output only. [Output Only] Server-defined URL for this resource.", + "readOnly": true, + "type": "string" + }, + "unreachables": { + "description": "Output only. [Output Only] Unreachable resources.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "QUOTA_INFO_UNAVAILABLE", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed\noperation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as\ndeprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as\nexperimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden.\nDeprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is\nnot of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed\nwhich captures the amount of resources filtered out by\nuser-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the\nnetwork.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an\nipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the\nsame network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite\nthe mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "Quota information is not available to client requests (e.g:\nregions.list).", + "The user attempted to use a resource that requires a TOS they have not\naccepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted\nbecause they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but\nits application does not make a lot of sense, because it allows only\nsingle instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n {\n \"key\": \"scope\",\n \"value\": \"zones/us-east1-d\"\n }]", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being\nreturned. For example, for warnings where there are no results in a list\nrequest for a particular zone, this key might be scope and\nthe key value might be the zone name. Other examples might be a key\nindicating a deprecated resource and a suggested replacement, or a\nwarning about invalid network settings (for example, if an instance\nattempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, "InitialStateConfig": { "description": "Initial State for shielded instance,\nthese are public keys which are safe to store in public", "id": "InitialStateConfig", @@ -69073,6 +69658,13 @@ "InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection": { "id": "InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection", "properties": { + "disks": { + "description": "List of disks to be attached to the instances created from this\nselection.", + "items": { + "$ref": "AttachedDisk" + }, + "type": "array" + }, "machineTypes": { "description": "Full machine-type names, e.g. \"n1-standard-16\".", "items": { @@ -69080,6 +69672,10 @@ }, "type": "array" }, + "minCpuPlatform": { + "description": "Name of the minimum CPU platform to be used by this instance selection.\ne.g. 'Intel Ice Lake'.", + "type": "string" + }, "rank": { "description": "Preference of this instance selection. Lower number means higher\npreference. MIG will first try to create a VM based on the machine-type\nwith lowest rank and fallback to next rank based on availability.\nMachine types and instance selections with the same rank have the same\npreference.", "format": "int32", @@ -79324,10 +79920,21 @@ "ManagedInstancePropertiesFromFlexibilityPolicy": { "id": "ManagedInstancePropertiesFromFlexibilityPolicy", "properties": { + "disks": { + "description": "List of disks to be attached to the instance.", + "items": { + "$ref": "AttachedDisk" + }, + "type": "array" + }, "machineType": { "description": "Output only. The machine type to be used for this instance.", "readOnly": true, "type": "string" + }, + "minCpuPlatform": { + "description": "Name of the minimum CPU platform to be used by this instance.\ne.g. 'Intel Ice Lake'.", + "type": "string" } }, "type": "object" @@ -79383,6 +79990,198 @@ }, "type": "object" }, + "ManagedRuleset": { + "description": "Represents a ManagedRuleset resource.\n\nManaged internally by Cloud Armor CLH for Managed Rules features.\nCustomers can only view these resources to modify their Security Policies.\nFor more information, see\nhttps://cloud.google.com/armor/docs/.", + "id": "ManagedRuleset", + "properties": { + "changeLog": { + "description": "Output only. [Output Only] The change log for this managed ruleset.", + "readOnly": true, + "type": "string" + }, + "creationTimestamp": { + "description": "Output only. [Output Only] Creation timestamp in RFC3339 text format.", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "[Output Only] An optional description of this resource.", + "type": "string" + }, + "id": { + "description": "Output only. [Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.", + "format": "uint64", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Name of the resource. Generated internally when the resource is created.\nThe name must be 1-63 characters long, and comply withRFC1035.\nSpecifically, the name must be 1-63 characters long and match the regular\nexpression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first\ncharacter must be a lowercase letter, and all following characters must\nbe a dash, lowercase letter, or digit, except the last character, which\ncannot be a dash.", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "type": "string" + }, + "ruleIds": { + "description": "Output only. [Output Only] The list of managed rule IDs that are included in\nthis managed ruleset.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "rulesetId": { + "description": "Output only. [Output Only] The managed ruleset identifier that can be configured in\nSecurity Policy rules.", + "readOnly": true, + "type": "string" + }, + "selfLink": { + "description": "Output only. [Output Only] Server-defined URL for the resource.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ManagedRulesetList": { + "id": "ManagedRulesetList", + "properties": { + "id": { + "type": "string" + }, + "items": { + "description": "The list of managed rulesets.", + "items": { + "$ref": "ManagedRuleset" + }, + "type": "array" + }, + "nextPageToken": { + "type": "string" + }, + "warning": { + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "QUOTA_INFO_UNAVAILABLE", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed\noperation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as\ndeprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as\nexperimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden.\nDeprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is\nnot of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed\nwhich captures the amount of resources filtered out by\nuser-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the\nnetwork.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an\nipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the\nsame network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite\nthe mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "Quota information is not available to client requests (e.g:\nregions.list).", + "The user attempted to use a resource that requires a TOS they have not\naccepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted\nbecause they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but\nits application does not make a lot of sense, because it allows only\nsingle instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n {\n \"key\": \"scope\",\n \"value\": \"zones/us-east1-d\"\n }]", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being\nreturned. For example, for warnings where there are no results in a list\nrequest for a particular zone, this key might be scope and\nthe key value might be the zone name. Other examples might be a key\nindicating a deprecated resource and a suggested replacement, or a\nwarning about invalid network settings (for example, if an instance\nattempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, "Metadata": { "description": "A metadata key/value entry.", "id": "Metadata", @@ -93755,6 +94554,9 @@ "enum": [ "FAULT_BEHAVIOR_UNSPECIFIED", "GPU_ERROR", + "NVSWITCH_FAULT_CONTROLLER_ERROR", + "NVSWITCH_FAULT_DEGRADED_BANDWIDTH", + "NVSWITCH_FAULT_SWITCH_ERROR", "PERFORMANCE", "SILENT_DATA_CORRUPTION", "SWITCH_FAILURE" @@ -93762,6 +94564,9 @@ "enumDescriptions": [ "", "The subBlock experienced a GPU error.", + "The subBlock experienced an NVSwitch controller error.", + "The subBlock experienced NVSwitch degraded bandwidth.", + "The subBlock experienced an NVSwitch switch error.", "The subBlock experienced performance issues.", "The subBlock experienced silent data corruption.", "The subBlock experienced a switch failure." @@ -100279,6 +101084,13 @@ "SecurityPolicyRulePreconfiguredWafConfigExclusion": { "id": "SecurityPolicyRulePreconfiguredWafConfigExclusion", "properties": { + "requestBodiesToExclude": { + "description": "A list of request body fields to be excluded from inspection during\npreconfigured WAF evaluation.", + "items": { + "$ref": "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams" + }, + "type": "array" + }, "requestCookiesToExclude": { "description": "A list of request cookie names whose value will be excluded from\ninspection during preconfigured WAF evaluation.", "items": { diff --git a/discovery/container-v1.json b/discovery/container-v1.json index d4f1fbea05..9b06d30607 100644 --- a/discovery/container-v1.json +++ b/discovery/container-v1.json @@ -2811,7 +2811,7 @@ } } }, - "revision": "20260818", + "revision": "20260901", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3012,7 +3012,8 @@ }, "parallelstoreCsiDriverConfig": { "$ref": "ParallelstoreCsiDriverConfig", - "description": "Configuration for the Cloud Storage Parallelstore CSI driver." + "deprecated": true, + "description": "Deprecated: The Parallelstore CSI driver is no longer supported. Configuration for the Cloud Storage Parallelstore CSI driver." }, "podSnapshotConfig": { "$ref": "PodSnapshotConfig", @@ -7554,6 +7555,10 @@ "format": "int64", "type": "string" }, + "reservedResourcesConfig": { + "$ref": "ReservedResourcesConfig", + "description": "Optional. Controls the reserved resources on the node. Only included if any fields are specified." + }, "shutdownGracePeriodCriticalPodsSeconds": { "description": "Optional. shutdown_grace_period_critical_pods_seconds is the maximum allowed grace period (in seconds) used to terminate critical pods during a node shutdown. This value should be <= shutdown_grace_period_seconds, and is only valid if shutdown_grace_period_seconds is set. https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ Range: [0, 120].", "format": "int32", @@ -8312,7 +8317,8 @@ "type": "object" }, "ParallelstoreCsiDriverConfig": { - "description": "Configuration for the Cloud Storage Parallelstore CSI driver.", + "deprecated": true, + "description": "Deprecated: The Parallelstore CSI driver is no longer supported. Configuration for the Cloud Storage Parallelstore CSI driver.", "id": "ParallelstoreCsiDriverConfig", "properties": { "enabled": { @@ -8826,6 +8832,35 @@ }, "type": "object" }, + "ReservedResourcesConfig": { + "description": "ReservedResourcesConfig contains the configuration for the reserved resources on the node.", + "id": "ReservedResourcesConfig", + "properties": { + "cpuReservedMillicore": { + "description": "Optional. The amount of CPU to reserve for system daemons. This is a user-specified value. If unspecified, GKE decides the default based on node version using different formula.", + "format": "int64", + "type": "string" + }, + "effectiveCpuReservedMillicore": { + "description": "Output only. The effective amount of CPU reserved for system daemons. If `cpu_reserved_millicore` is specified, user-specified value is used. Otherwise the GKE default is applied.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "effectiveMemoryReservedMib": { + "description": "Output only. The effective amount of memory reserved for system daemons. If `memory_reserved_mib` is specified, the user-specified value is used. Otherwise the GKE default is applied.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "memoryReservedMib": { + "description": "Optional. The amount of memory to reserve for system daemons (in MiB). This is a user-specified value. If unspecified, GKE decides the default based on node version using different formula.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "ResourceLabels": { "description": "Collection of [Resource Manager labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).", "id": "ResourceLabels", diff --git a/discovery/container-v1beta1.json b/discovery/container-v1beta1.json index 76638d726c..c83e814e24 100644 --- a/discovery/container-v1beta1.json +++ b/discovery/container-v1beta1.json @@ -2837,7 +2837,7 @@ } } }, - "revision": "20260818", + "revision": "20260901", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2925,6 +2925,22 @@ "description": "Name of the VPC where the additional interface belongs", "type": "string" }, + "stackType": { + "description": "Optional. Additional NIC stack type, configured by the client.", + "enum": [ + "STACK_TYPE_UNSPECIFIED", + "IPV4", + "IPV4_IPV6", + "IPV6" + ], + "enumDescriptions": [ + "Unspecified stack type.", + "IPv4 stack type.", + "IPv4/IPv6 stack type.", + "IPv6 stack type." + ], + "type": "string" + }, "subnetwork": { "description": "Name of the subnetwork where the additional interface belongs", "type": "string" @@ -3054,7 +3070,8 @@ }, "parallelstoreCsiDriverConfig": { "$ref": "ParallelstoreCsiDriverConfig", - "description": "Configuration for the Cloud Storage Parallelstore CSI driver." + "deprecated": true, + "description": "Deprecated: The Parallelstore CSI driver is no longer supported. Configuration for the Cloud Storage Parallelstore CSI driver." }, "podSnapshotConfig": { "$ref": "PodSnapshotConfig", @@ -7962,6 +7979,10 @@ "format": "int64", "type": "string" }, + "reservedResourcesConfig": { + "$ref": "ReservedResourcesConfig", + "description": "Optional. Controls the reserved resources on the node. Only included if any fields are specified." + }, "shutdownGracePeriodCriticalPodsSeconds": { "description": "Optional. shutdown_grace_period_critical_pods_seconds is the maximum allowed grace period (in seconds) used to terminate critical pods during a node shutdown. This value should be <= shutdown_grace_period_seconds, and is only valid if shutdown_grace_period_seconds is set. https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ Range: [0, 120].", "format": "int32", @@ -8752,7 +8773,8 @@ "type": "object" }, "ParallelstoreCsiDriverConfig": { - "description": "Configuration for the Cloud Storage Parallelstore CSI driver.", + "deprecated": true, + "description": "Deprecated: The Parallelstore CSI driver is no longer supported. Configuration for the Cloud Storage Parallelstore CSI driver.", "id": "ParallelstoreCsiDriverConfig", "properties": { "enabled": { @@ -9321,6 +9343,35 @@ }, "type": "object" }, + "ReservedResourcesConfig": { + "description": "ReservedResourcesConfig contains the configuration for the reserved resources on the node.", + "id": "ReservedResourcesConfig", + "properties": { + "cpuReservedMillicore": { + "description": "Optional. The amount of CPU to reserve for system daemons. This is a user-specified value. If unspecified, GKE decides the default based on node version using different formula.", + "format": "int64", + "type": "string" + }, + "effectiveCpuReservedMillicore": { + "description": "Output only. The effective amount of CPU reserved for system daemons. If `cpu_reserved_millicore` is specified, user-specified value is used. Otherwise the GKE default is applied.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "effectiveMemoryReservedMib": { + "description": "Output only. The effective amount of memory reserved for system daemons. If `memory_reserved_mib` is specified, the user-specified value is used. Otherwise the GKE default is applied.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "memoryReservedMib": { + "description": "Optional. The amount of memory to reserve for system daemons (in MiB). This is a user-specified value. If unspecified, GKE decides the default based on node version using different formula.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "ResourceLabels": { "description": "Collection of [Resource Manager labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).", "id": "ResourceLabels", diff --git a/discovery/dataform-v1.json b/discovery/dataform-v1.json index ea7d896de8..cde64f1992 100644 --- a/discovery/dataform-v1.json +++ b/discovery/dataform-v1.json @@ -3220,7 +3220,7 @@ } } }, - "revision": "20260802", + "revision": "20260906", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "ActionErrorTable": { @@ -3352,6 +3352,82 @@ }, "type": "object" }, + "BigQueryUnitTest": { + "description": "Represents a BigQuery unit test.", + "id": "BigQueryUnitTest", + "properties": { + "dependencyTargets": { + "description": "A list of actions that this action depends on.", + "items": { + "$ref": "Target" + }, + "type": "array" + }, + "disabled": { + "description": "Whether this action is disabled (i.e. should not be run).", + "type": "boolean" + }, + "displayName": { + "description": "The name of the unit test.", + "type": "string" + }, + "expectedOutputQuery": { + "description": "Expected output query to compare against the test query.", + "type": "string" + }, + "tags": { + "description": "Arbitrary, user-defined tags on this action.", + "items": { + "type": "string" + }, + "type": "array" + }, + "testQuery": { + "description": "Test query to execute.", + "type": "string" + } + }, + "type": "object" + }, + "BigQueryUnitTestAction": { + "description": "Represents a workflow action that will run a BigQuery unit test.", + "id": "BigQueryUnitTestAction", + "properties": { + "actualResultsJobId": { + "description": "Output only. Job ID for the actual results.", + "readOnly": true, + "type": "string" + }, + "actualResultsSqlScript": { + "description": "Output only. SQL script for the actual results.", + "readOnly": true, + "type": "string" + }, + "expectedResultsJobId": { + "description": "Output only. Job ID for the expected results.", + "readOnly": true, + "type": "string" + }, + "expectedResultsSqlScript": { + "description": "Output only. SQL script for the expected results.", + "readOnly": true, + "type": "string" + }, + "totalBilledBytes": { + "description": "Output only. Total bytes billed for this action. Combined total for actual and expected jobs.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "totalProcessedBytes": { + "description": "Output only. Total bytes processed for this action. Combined total for actual and expected jobs.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Binding": { "description": "Associates `members`, or principals, with a `role`.", "id": "Binding", @@ -3693,6 +3769,10 @@ "$ref": "Assertion", "description": "The assertion executed by this action." }, + "bigqueryUnitTest": { + "$ref": "BigQueryUnitTest", + "description": "The unit test executed by this action." + }, "canonicalTarget": { "$ref": "Target", "description": "The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result." @@ -3923,6 +4003,33 @@ "properties": {}, "type": "object" }, + "EndUserAuthConfig": { + "description": "Includes configuration options for repository end user authentication.", + "id": "EndUserAuthConfig", + "properties": { + "oauthConfig": { + "$ref": "OAuthConfig", + "description": "Optional. OAuth configuration for repository end user authentication." + } + }, + "type": "object" + }, + "EndUserAuthenticationConfig": { + "description": "Includes configuration options for end user authentication.", + "id": "EndUserAuthenticationConfig", + "properties": { + "oauthConfig": { + "$ref": "OAuthConfig", + "description": "Optional. OAuth configuration for end user authentication." + }, + "userEmail": { + "description": "Output only. Email address of the user to run workflow invocations under.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ErrorTable": { "description": "Error table information, used to write error data into a BigQuery table.", "id": "ErrorTable", @@ -4330,6 +4437,26 @@ "description": "Includes various configuration options for a workflow invocation. If both `included_targets` and `included_tags` are unset, all actions will be included.", "id": "InvocationConfig", "properties": { + "endUserAuthConfig": { + "$ref": "EndUserAuthenticationConfig", + "description": "Optional. Configuration for end user authentication. Note that this should not be set when `service_account` is used." + }, + "executionMode": { + "description": "Optional. Specifies the execution mode for the workflow invocation.", + "enum": [ + "EXECUTION_MODE_UNSPECIFIED", + "DEFAULT", + "ALL_EXCEPT_UNIT_TESTS", + "UNIT_TESTS_ONLY" + ], + "enumDescriptions": [ + "Default value.", + "Default execution mode, which runs all actions except unit tests. Same as ALL_EXCEPT_UNIT_TESTS.", + "Run all actions except unit tests.", + "Run unit tests only." + ], + "type": "string" + }, "fullyRefreshIncrementalTablesEnabled": { "description": "Optional. When set to true, any incremental tables will be fully refreshed.", "type": "boolean" @@ -4778,6 +4905,20 @@ }, "type": "object" }, + "OAuthConfig": { + "description": "OAuth configuration for end user authentication.", + "id": "OAuthConfig", + "properties": { + "additionalOauthScopes": { + "description": "Optional. Additional OAuth scopes to use for BigQuery executions. Scopes always in use: `https://www.googleapis.com/auth/bigquery`", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -5425,6 +5566,10 @@ "description": "Optional. The repository's user-friendly name.", "type": "string" }, + "endUserAuthConfig": { + "$ref": "EndUserAuthConfig", + "description": "Optional. Includes configuration options for end user authentication." + }, "gitRemoteSettings": { "$ref": "GitRemoteSettings", "description": "Optional. If set, configures this repository to be linked to a Git remote." @@ -5963,6 +6108,11 @@ "description": "Output only. The workflow action's bigquery action details.", "readOnly": true }, + "bigqueryUnitTestAction": { + "$ref": "BigQueryUnitTestAction", + "description": "Output only. The workflow action's unit test details.", + "readOnly": true + }, "canonicalTarget": { "$ref": "Target", "description": "Output only. The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result.", diff --git a/discovery/dataform-v1beta1.json b/discovery/dataform-v1beta1.json index 18799f88d1..cf0b77c6a5 100644 --- a/discovery/dataform-v1beta1.json +++ b/discovery/dataform-v1beta1.json @@ -3428,7 +3428,7 @@ } } }, - "revision": "20260826", + "revision": "20260906", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "ActionErrorTable": { @@ -3560,6 +3560,82 @@ }, "type": "object" }, + "BigQueryUnitTest": { + "description": "Represents a BigQuery unit test.", + "id": "BigQueryUnitTest", + "properties": { + "dependencyTargets": { + "description": "A list of actions that this action depends on.", + "items": { + "$ref": "Target" + }, + "type": "array" + }, + "disabled": { + "description": "Whether this action is disabled (i.e. should not be run).", + "type": "boolean" + }, + "displayName": { + "description": "The name of the unit test.", + "type": "string" + }, + "expectedOutputQuery": { + "description": "Expected output query to compare against the test query.", + "type": "string" + }, + "tags": { + "description": "Arbitrary, user-defined tags on this action.", + "items": { + "type": "string" + }, + "type": "array" + }, + "testQuery": { + "description": "Test query to execute.", + "type": "string" + } + }, + "type": "object" + }, + "BigQueryUnitTestAction": { + "description": "Represents a workflow action that will run a BigQuery unit test.", + "id": "BigQueryUnitTestAction", + "properties": { + "actualResultsJobId": { + "description": "Output only. Job ID for the actual results.", + "readOnly": true, + "type": "string" + }, + "actualResultsSqlScript": { + "description": "Output only. SQL script for the actual results.", + "readOnly": true, + "type": "string" + }, + "expectedResultsJobId": { + "description": "Output only. Job ID for the expected results.", + "readOnly": true, + "type": "string" + }, + "expectedResultsSqlScript": { + "description": "Output only. SQL script for the expected results.", + "readOnly": true, + "type": "string" + }, + "totalBilledBytes": { + "description": "Output only. Total bytes billed for this action. Combined total for actual and expected jobs.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "totalProcessedBytes": { + "description": "Output only. Total bytes processed for this action. Combined total for actual and expected jobs.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Binding": { "description": "Associates `members`, or principals, with a `role`.", "id": "Binding", @@ -3935,6 +4011,10 @@ "$ref": "Assertion", "description": "The assertion executed by this action." }, + "bigqueryUnitTest": { + "$ref": "BigQueryUnitTest", + "description": "The unit test executed by this action." + }, "canonicalTarget": { "$ref": "Target", "description": "The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result." @@ -4197,6 +4277,33 @@ "properties": {}, "type": "object" }, + "EndUserAuthConfig": { + "description": "Includes configuration options for repository end user authentication.", + "id": "EndUserAuthConfig", + "properties": { + "oauthConfig": { + "$ref": "OAuthConfig", + "description": "Optional. OAuth configuration for repository end user authentication." + } + }, + "type": "object" + }, + "EndUserAuthenticationConfig": { + "description": "Includes configuration options for end user authentication.", + "id": "EndUserAuthenticationConfig", + "properties": { + "oauthConfig": { + "$ref": "OAuthConfig", + "description": "Optional. OAuth configuration for end user authentication." + }, + "userEmail": { + "description": "Output only. Email address of the user to run workflow invocations under.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ErrorTable": { "description": "Error table information, used to write error data into a BigQuery table.", "id": "ErrorTable", @@ -4633,6 +4740,26 @@ "description": "Includes various configuration options for a workflow invocation. If both `included_targets` and `included_tags` are unset, all actions will be included.", "id": "InvocationConfig", "properties": { + "endUserAuthConfig": { + "$ref": "EndUserAuthenticationConfig", + "description": "Optional. Configuration for end user authentication. Note that this should not be set when `service_account` is used." + }, + "executionMode": { + "description": "Optional. Specifies the execution mode for the workflow invocation.", + "enum": [ + "EXECUTION_MODE_UNSPECIFIED", + "DEFAULT", + "ALL_EXCEPT_UNIT_TESTS", + "UNIT_TESTS_ONLY" + ], + "enumDescriptions": [ + "Default value.", + "Default execution mode, which runs all actions except unit tests. Same as ALL_EXCEPT_UNIT_TESTS.", + "Run all actions except unit tests.", + "Run unit tests only." + ], + "type": "string" + }, "fullyRefreshIncrementalTablesEnabled": { "description": "Optional. When set to true, any incremental tables will be fully refreshed.", "type": "boolean" @@ -5081,6 +5208,20 @@ }, "type": "object" }, + "OAuthConfig": { + "description": "OAuth configuration for end user authentication.", + "id": "OAuthConfig", + "properties": { + "additionalOauthScopes": { + "description": "Optional. Additional OAuth scopes to use for BigQuery executions. Scopes always in use: `https://www.googleapis.com/auth/bigquery`", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -5728,6 +5869,10 @@ "description": "Optional. The repository's user-friendly name.", "type": "string" }, + "endUserAuthConfig": { + "$ref": "EndUserAuthConfig", + "description": "Optional. Includes configuration options for end user authentication." + }, "gitRemoteSettings": { "$ref": "GitRemoteSettings", "description": "Optional. If set, configures this repository to be linked to a Git remote." @@ -6327,6 +6472,11 @@ "description": "Output only. The workflow action's bigquery action details.", "readOnly": true }, + "bigqueryUnitTestAction": { + "$ref": "BigQueryUnitTestAction", + "description": "Output only. The workflow action's unit test details.", + "readOnly": true + }, "canonicalTarget": { "$ref": "Target", "description": "Output only. The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result.", diff --git a/discovery/datamigration-v1.json b/discovery/datamigration-v1.json index 0fb1b4930e..96b4dbc04b 100644 --- a/discovery/datamigration-v1.json +++ b/discovery/datamigration-v1.json @@ -2592,7 +2592,7 @@ } } }, - "revision": "20260802", + "revision": "20260904", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -5346,7 +5346,7 @@ }, "performanceConfig": { "$ref": "PerformanceConfig", - "description": "Optional. Data dump parallelism settings used by the migration." + "description": "Optional. Data dump and load parallelism settings used by the migration." }, "phase": { "description": "Output only. The current migration job phase.", @@ -5790,10 +5790,22 @@ "format": "int32", "type": "integer" }, + "privateConnectivity": { + "$ref": "PrivateConnectivity", + "description": "Private connectivity." + }, + "privateServiceConnectConnectivity": { + "$ref": "PrivateServiceConnectConnectivity", + "description": "Private Service Connect connectivity." + }, "ssl": { "$ref": "SslConfig", "description": "SSL configuration for the destination to connect to the source database." }, + "staticServiceIpConnectivity": { + "$ref": "StaticServiceIpConnectivity", + "description": "Static Service IP connectivity." + }, "username": { "description": "Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.", "type": "string" @@ -6034,6 +6046,22 @@ "Maximum parallel level." ], "type": "string" + }, + "loadParallelLevel": { + "description": "Optional. Initial load parallelism level.", + "enum": [ + "LOAD_PARALLEL_LEVEL_UNSPECIFIED", + "LOAD_MIN", + "LOAD_OPTIMAL", + "LOAD_MAX" + ], + "enumDescriptions": [ + "Unknown load parallel level.", + "Minimal parallel level.", + "Optimal parallel level.", + "Maximum parallel level." + ], + "type": "string" } }, "type": "object" @@ -6159,7 +6187,7 @@ }, "privateServiceConnectConnectivity": { "$ref": "PrivateServiceConnectConnectivity", - "description": "Private service connect connectivity." + "description": "Private Service Connect connectivity." }, "ssl": { "$ref": "SslConfig", diff --git a/discovery/deploymentmanager-alpha.json b/discovery/deploymentmanager-alpha.json index 4d98f9e089..1b246513f0 100644 --- a/discovery/deploymentmanager-alpha.json +++ b/discovery/deploymentmanager-alpha.json @@ -1676,7 +1676,7 @@ } } }, - "revision": "20260312", + "revision": "20260827", "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AsyncOptions": { @@ -1827,13 +1827,15 @@ "STATUS_UNSPECIFIED", "CREATING", "ROLLING_BACK", - "DONE" + "DONE", + "PENDING" ], "enumDescriptions": [ "", "Rolling forward - creating VMs.", "Rolling back - cleaning up after an error.", - "Done" + "Done", + "Pending - waiting until the capacity is available." ], "type": "string" }, @@ -2252,16 +2254,111 @@ "type": "object" }, "FirewallPolicyRuleOperationMetadata": { + "description": "Metadata for FirewallPolicyRule operations.", "id": "FirewallPolicyRuleOperationMetadata", "properties": { "allocatedPriority": { - "description": "The priority allocated for the firewall policy rule if query parameters specified minPriority/maxPriority.", + "description": "Output only. [Output Only] The priority allocated for the firewall policy rule if query parameters specified minPriority/maxPriority.", "format": "int32", + "readOnly": true, "type": "integer" } }, "type": "object" }, + "GetHealthOperationMetadata": { + "description": "Metadata for GetHealth operations.", + "id": "GetHealthOperationMetadata", + "properties": { + "healthInfo": { + "$ref": "GetHealthOperationMetadataHealthInfo", + "description": "Output only. The health information.", + "readOnly": true + } + }, + "type": "object" + }, + "GetHealthOperationMetadataHealthInfo": { + "description": "Health information.", + "id": "GetHealthOperationMetadataHealthInfo", + "properties": { + "availabilitySloStatus": { + "description": "Output only. The availability SLO status.", + "enum": [ + "AVAILABILITY_SLO_STATUS_UNSPECIFIED", + "AVAILABILITY_SLO_STATUS_IN_SLO", + "AVAILABILITY_SLO_STATUS_OUT_OF_SLO", + "AVAILABILITY_SLO_STATUS_SLO_UNKNOWN" + ], + "enumDescriptions": [ + "Unspecified availability SLO status.", + "The slot availability is in SLO.", + "The slot availability is out of SLO.", + "The slot availability is unknown." + ], + "readOnly": true, + "type": "string" + }, + "healthStatus": { + "description": "Output only. The health status.", + "enum": [ + "HEALTH_STATUS_UNSPECIFIED", + "HEALTH_STATUS_HEALTHY", + "HEALTH_STATUS_UNHEALTHY" + ], + "enumDescriptions": [ + "Unspecified health status.", + "The reservation slot is healthy.", + "The reservation slot is unhealthy." + ], + "readOnly": true, + "type": "string" + }, + "repairCategory": { + "description": "Output only. The repair category.", + "enum": [ + "REPAIR_CATEGORY_UNSPECIFIED", + "REPAIR_CATEGORY_PLANNED_MAINTENANCE", + "REPAIR_CATEGORY_EMERGENT_MAINTENANCE", + "REPAIR_CATEGORY_USER_REPORTED_FAULT", + "REPAIR_CATEGORY_CRITICAL_FAILURE" + ], + "enumDescriptions": [ + "Unspecified repair category.", + "The repair is because of a planned maintenance", + "The repair is because of an emergent maintenance", + "The repair is because of a user reported fault", + "The repair is because of critical failures, that are scoped outside emergent maintenance" + ], + "readOnly": true, + "type": "string" + }, + "unhealthyReason": { + "description": "Output only. The reason for unhealthy status.", + "enum": [ + "UNHEALTHY_REASON_UNSPECIFIED", + "UNHEALTHY_REASON_REPAIRING", + "UNHEALTHY_REASON_PENDING_USER_APPROVAL", + "UNHEALTHY_REASON_UNSCHEDULABLE" + ], + "enumDescriptions": [ + "Unspecified unhealthy reason.", + "The slot is unhealthy because repair is in progress", + "The slot is unhealthy because there is a pending repair, waiting for customer approval", + "The slot is unhealthy because a vm cannot be scheduled on it, and no repairs are running on the slot" + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when health info was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GetVersionOperationMetadata": { "id": "GetVersionOperationMetadata", "properties": { @@ -2278,14 +2375,14 @@ "additionalProperties": { "type": "string" }, - "description": "SBOM versions currently applied to the resource. The key is the component name and the value is the version.", + "description": "A mapping of components to their currently-applied versions or other appropriate identifiers.", "type": "object" }, "targetComponentVersions": { "additionalProperties": { "type": "string" }, - "description": "SBOM versions scheduled for the next maintenance. The key is the component name and the value is the version.", + "description": "A mapping of components to their target versions or other appropriate identifiers.", "type": "object" } }, @@ -2415,6 +2512,18 @@ }, "type": "object" }, + "InstancesTroubleshootOperationMetadata": { + "description": "[Output Only] Operation metadata for instances.troubleshoot.", + "id": "InstancesTroubleshootOperationMetadata", + "properties": { + "troubleshootOutput": { + "description": "Output only. [Output Only] Serialized output of the troubleshooting diagnostic run.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "LocalizedMessage": { "description": "Provides a localized error message that is safe to return to the user which can be attached to an RPC error.", "id": "LocalizedMessage", @@ -2542,6 +2651,10 @@ "description": "[Output Only] A textual description of the operation, which is set when the operation is created.", "type": "string" }, + "details": { + "$ref": "OperationDetails", + "description": "[Output Only] Extended details about the operation's execution." + }, "endTime": { "description": "[Output Only] The time that this operation was completed. This value is in RFC3339 text format.", "type": "string" @@ -2552,6 +2665,7 @@ "errors": { "description": "[Output Only] The array of errors encountered while processing this operation.", "items": { + "description": "Represents a single error encountered during the processing of an operation.", "properties": { "arguments": { "description": "Output only. [Output Only] Optional error details WARNING: DO NOT MAKE VISIBLE This is for internal use-only (like componentization) (thus the visibility \"none\") and in case of public exposure it is strongly recommended to follow pattern of: https://aip.dev/193 and expose as details field.", @@ -2567,23 +2681,29 @@ }, "debugInfo": { "$ref": "DebugInfo", + "description": "Output only. [Output Only] Advanced debugging information with stack traces and other diagnostic details for the error.", "readOnly": true }, "errorDetails": { "description": "[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.", "items": { + "description": "Container for structured error details providing additional context specific to the encountered error code.", "properties": { "errorInfo": { - "$ref": "ErrorInfo" + "$ref": "ErrorInfo", + "description": "Error information containing structured domain, reason, and metadata." }, "help": { - "$ref": "Help" + "$ref": "Help", + "description": "Links and information to help the user resolve the error." }, "localizedMessage": { - "$ref": "LocalizedMessage" + "$ref": "LocalizedMessage", + "description": "A localized human-readable error message intended for end users." }, "quotaInfo": { - "$ref": "QuotaExceededInfo" + "$ref": "QuotaExceededInfo", + "description": "Details about quota limits and metrics when a quota is exceeded." } }, "type": "object" @@ -2607,7 +2727,14 @@ "type": "object" }, "firewallPolicyRuleOperationMetadata": { - "$ref": "FirewallPolicyRuleOperationMetadata" + "$ref": "FirewallPolicyRuleOperationMetadata", + "description": "Output only. [Output Only] Metadata containing the allocated priority from the networkFirewallPolicies.addRule and regionNetworkFirewallPolicies.addRule methods if not explicitly provided by the user.", + "readOnly": true + }, + "getHealthOperationMetadata": { + "$ref": "GetHealthOperationMetadata", + "description": "Output only. Metadata for GetHealth operations.", + "readOnly": true }, "getVersionOperationMetadata": { "$ref": "GetVersionOperationMetadata" @@ -2633,6 +2760,11 @@ "instancesBulkInsertOperationMetadata": { "$ref": "InstancesBulkInsertOperationMetadata" }, + "instancesTroubleshootOperationMetadata": { + "$ref": "InstancesTroubleshootOperationMetadata", + "description": "Output only. [Output Only] Operation metadata for instances.troubleshoot.", + "readOnly": true + }, "kind": { "default": "compute#operation", "description": "Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation resources.", @@ -2691,9 +2823,9 @@ "DONE" ], "enumDescriptions": [ - "", - "", - "" + "The operation is waiting to be processed.", + "The operation is actively being processed.", + "The operation has completed processing successfully or with an error." ], "type": "string" }, @@ -2852,7 +2984,7 @@ "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }] ", "items": { "properties": { "key": { @@ -2884,6 +3016,23 @@ }, "type": "object" }, + "OperationDetails": { + "id": "OperationDetails", + "properties": { + "data": { + "additionalProperties": { + "type": "any" + }, + "description": "Machine readable data from the message.", + "type": "object" + }, + "message": { + "description": "Human or AI readable details on execution of the operation.", + "type": "string" + } + }, + "type": "object" + }, "OperationsListResponse": { "description": "A response containing a partial list of operations and a page token used to build the next request if the request has been truncated.", "id": "OperationsListResponse", @@ -3243,7 +3392,7 @@ "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }] ", "items": { "properties": { "key": { @@ -3299,6 +3448,7 @@ "errors": { "description": "[Output Only] The array of errors encountered while processing this operation.", "items": { + "description": "Represents a single error encountered during the processing of an operation.", "properties": { "arguments": { "description": "Output only. [Output Only] Optional error details WARNING: DO NOT MAKE VISIBLE This is for internal use-only (like componentization) (thus the visibility \"none\") and in case of public exposure it is strongly recommended to follow pattern of: https://aip.dev/193 and expose as details field.", @@ -3314,23 +3464,29 @@ }, "debugInfo": { "$ref": "DebugInfo", + "description": "Output only. [Output Only] Advanced debugging information with stack traces and other diagnostic details for the error.", "readOnly": true }, "errorDetails": { "description": "[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.", "items": { + "description": "Container for structured error details providing additional context specific to the encountered error code.", "properties": { "errorInfo": { - "$ref": "ErrorInfo" + "$ref": "ErrorInfo", + "description": "Error information containing structured domain, reason, and metadata." }, "help": { - "$ref": "Help" + "$ref": "Help", + "description": "Links and information to help the user resolve the error." }, "localizedMessage": { - "$ref": "LocalizedMessage" + "$ref": "LocalizedMessage", + "description": "A localized human-readable error message intended for end users." }, "quotaInfo": { - "$ref": "QuotaExceededInfo" + "$ref": "QuotaExceededInfo", + "description": "Details about quota limits and metrics when a quota is exceeded." } }, "type": "object" @@ -3560,7 +3716,7 @@ "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }] ", "items": { "properties": { "key": { diff --git a/discovery/deploymentmanager-v2.json b/discovery/deploymentmanager-v2.json index 98ff23d9c0..824b5cfded 100644 --- a/discovery/deploymentmanager-v2.json +++ b/discovery/deploymentmanager-v2.json @@ -1028,7 +1028,7 @@ } } }, - "revision": "20260312", + "revision": "20260827", "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -1125,13 +1125,15 @@ "STATUS_UNSPECIFIED", "CREATING", "ROLLING_BACK", - "DONE" + "DONE", + "PENDING" ], "enumDescriptions": [ "", "Rolling forward - creating VMs.", "Rolling back - cleaning up after an error.", - "Done" + "Done", + "Pending - waiting until the capacity is available." ], "type": "string" }, @@ -1366,16 +1368,111 @@ "type": "object" }, "FirewallPolicyRuleOperationMetadata": { + "description": "Metadata for FirewallPolicyRule operations.", "id": "FirewallPolicyRuleOperationMetadata", "properties": { "allocatedPriority": { - "description": "The priority allocated for the firewall policy rule if query parameters specified minPriority/maxPriority.", + "description": "Output only. [Output Only] The priority allocated for the firewall policy rule if query parameters specified minPriority/maxPriority.", "format": "int32", + "readOnly": true, "type": "integer" } }, "type": "object" }, + "GetHealthOperationMetadata": { + "description": "Metadata for GetHealth operations.", + "id": "GetHealthOperationMetadata", + "properties": { + "healthInfo": { + "$ref": "GetHealthOperationMetadataHealthInfo", + "description": "Output only. The health information.", + "readOnly": true + } + }, + "type": "object" + }, + "GetHealthOperationMetadataHealthInfo": { + "description": "Health information.", + "id": "GetHealthOperationMetadataHealthInfo", + "properties": { + "availabilitySloStatus": { + "description": "Output only. The availability SLO status.", + "enum": [ + "AVAILABILITY_SLO_STATUS_UNSPECIFIED", + "AVAILABILITY_SLO_STATUS_IN_SLO", + "AVAILABILITY_SLO_STATUS_OUT_OF_SLO", + "AVAILABILITY_SLO_STATUS_SLO_UNKNOWN" + ], + "enumDescriptions": [ + "Unspecified availability SLO status.", + "The slot availability is in SLO.", + "The slot availability is out of SLO.", + "The slot availability is unknown." + ], + "readOnly": true, + "type": "string" + }, + "healthStatus": { + "description": "Output only. The health status.", + "enum": [ + "HEALTH_STATUS_UNSPECIFIED", + "HEALTH_STATUS_HEALTHY", + "HEALTH_STATUS_UNHEALTHY" + ], + "enumDescriptions": [ + "Unspecified health status.", + "The reservation slot is healthy.", + "The reservation slot is unhealthy." + ], + "readOnly": true, + "type": "string" + }, + "repairCategory": { + "description": "Output only. The repair category.", + "enum": [ + "REPAIR_CATEGORY_UNSPECIFIED", + "REPAIR_CATEGORY_PLANNED_MAINTENANCE", + "REPAIR_CATEGORY_EMERGENT_MAINTENANCE", + "REPAIR_CATEGORY_USER_REPORTED_FAULT", + "REPAIR_CATEGORY_CRITICAL_FAILURE" + ], + "enumDescriptions": [ + "Unspecified repair category.", + "The repair is because of a planned maintenance", + "The repair is because of an emergent maintenance", + "The repair is because of a user reported fault", + "The repair is because of critical failures, that are scoped outside emergent maintenance" + ], + "readOnly": true, + "type": "string" + }, + "unhealthyReason": { + "description": "Output only. The reason for unhealthy status.", + "enum": [ + "UNHEALTHY_REASON_UNSPECIFIED", + "UNHEALTHY_REASON_REPAIRING", + "UNHEALTHY_REASON_PENDING_USER_APPROVAL", + "UNHEALTHY_REASON_UNSCHEDULABLE" + ], + "enumDescriptions": [ + "Unspecified unhealthy reason.", + "The slot is unhealthy because repair is in progress", + "The slot is unhealthy because there is a pending repair, waiting for customer approval", + "The slot is unhealthy because a vm cannot be scheduled on it, and no repairs are running on the slot" + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when health info was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GetVersionOperationMetadata": { "id": "GetVersionOperationMetadata", "properties": { @@ -1392,14 +1489,14 @@ "additionalProperties": { "type": "string" }, - "description": "SBOM versions currently applied to the resource. The key is the component name and the value is the version.", + "description": "A mapping of components to their currently-applied versions or other appropriate identifiers.", "type": "object" }, "targetComponentVersions": { "additionalProperties": { "type": "string" }, - "description": "SBOM versions scheduled for the next maintenance. The key is the component name and the value is the version.", + "description": "A mapping of components to their target versions or other appropriate identifiers.", "type": "object" } }, @@ -1492,6 +1589,18 @@ }, "type": "object" }, + "InstancesTroubleshootOperationMetadata": { + "description": "[Output Only] Operation metadata for instances.troubleshoot.", + "id": "InstancesTroubleshootOperationMetadata", + "properties": { + "troubleshootOutput": { + "description": "Output only. [Output Only] Serialized output of the troubleshooting diagnostic run.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "LocalizedMessage": { "description": "Provides a localized error message that is safe to return to the user which can be attached to an RPC error.", "id": "LocalizedMessage", @@ -1592,6 +1701,10 @@ "description": "[Output Only] A textual description of the operation, which is set when the operation is created.", "type": "string" }, + "details": { + "$ref": "OperationDetails", + "description": "[Output Only] Extended details about the operation's execution." + }, "endTime": { "description": "[Output Only] The time that this operation was completed. This value is in RFC3339 text format.", "type": "string" @@ -1602,6 +1715,7 @@ "errors": { "description": "[Output Only] The array of errors encountered while processing this operation.", "items": { + "description": "Represents a single error encountered during the processing of an operation.", "properties": { "arguments": { "description": "Output only. [Output Only] Optional error details WARNING: DO NOT MAKE VISIBLE This is for internal use-only (like componentization) (thus the visibility \"none\") and in case of public exposure it is strongly recommended to follow pattern of: https://aip.dev/193 and expose as details field.", @@ -1617,23 +1731,29 @@ }, "debugInfo": { "$ref": "DebugInfo", + "description": "Output only. [Output Only] Advanced debugging information with stack traces and other diagnostic details for the error.", "readOnly": true }, "errorDetails": { "description": "[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.", "items": { + "description": "Container for structured error details providing additional context specific to the encountered error code.", "properties": { "errorInfo": { - "$ref": "ErrorInfo" + "$ref": "ErrorInfo", + "description": "Error information containing structured domain, reason, and metadata." }, "help": { - "$ref": "Help" + "$ref": "Help", + "description": "Links and information to help the user resolve the error." }, "localizedMessage": { - "$ref": "LocalizedMessage" + "$ref": "LocalizedMessage", + "description": "A localized human-readable error message intended for end users." }, "quotaInfo": { - "$ref": "QuotaExceededInfo" + "$ref": "QuotaExceededInfo", + "description": "Details about quota limits and metrics when a quota is exceeded." } }, "type": "object" @@ -1657,7 +1777,14 @@ "type": "object" }, "firewallPolicyRuleOperationMetadata": { - "$ref": "FirewallPolicyRuleOperationMetadata" + "$ref": "FirewallPolicyRuleOperationMetadata", + "description": "Output only. [Output Only] Metadata containing the allocated priority from the networkFirewallPolicies.addRule and regionNetworkFirewallPolicies.addRule methods if not explicitly provided by the user.", + "readOnly": true + }, + "getHealthOperationMetadata": { + "$ref": "GetHealthOperationMetadata", + "description": "Output only. Metadata for GetHealth operations.", + "readOnly": true }, "getVersionOperationMetadata": { "$ref": "GetVersionOperationMetadata" @@ -1683,6 +1810,11 @@ "instancesBulkInsertOperationMetadata": { "$ref": "InstancesBulkInsertOperationMetadata" }, + "instancesTroubleshootOperationMetadata": { + "$ref": "InstancesTroubleshootOperationMetadata", + "description": "Output only. [Output Only] Operation metadata for instances.troubleshoot.", + "readOnly": true + }, "kind": { "default": "compute#operation", "description": "Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation resources.", @@ -1741,9 +1873,9 @@ "DONE" ], "enumDescriptions": [ - "", - "", - "" + "The operation is waiting to be processed.", + "The operation is actively being processed.", + "The operation has completed processing successfully or with an error." ], "type": "string" }, @@ -1902,7 +2034,7 @@ "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }] ", "items": { "properties": { "key": { @@ -1934,6 +2066,23 @@ }, "type": "object" }, + "OperationDetails": { + "id": "OperationDetails", + "properties": { + "data": { + "additionalProperties": { + "type": "any" + }, + "description": "Machine readable data from the message.", + "type": "object" + }, + "message": { + "description": "Human or AI readable details on execution of the operation.", + "type": "string" + } + }, + "type": "object" + }, "OperationsListResponse": { "description": "A response containing a partial list of operations and a page token used to build the next request if the request has been truncated.", "id": "OperationsListResponse", @@ -2212,7 +2361,7 @@ "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }] ", "items": { "properties": { "key": { @@ -2264,6 +2413,7 @@ "errors": { "description": "[Output Only] The array of errors encountered while processing this operation.", "items": { + "description": "Represents a single error encountered during the processing of an operation.", "properties": { "arguments": { "description": "Output only. [Output Only] Optional error details WARNING: DO NOT MAKE VISIBLE This is for internal use-only (like componentization) (thus the visibility \"none\") and in case of public exposure it is strongly recommended to follow pattern of: https://aip.dev/193 and expose as details field.", @@ -2279,23 +2429,29 @@ }, "debugInfo": { "$ref": "DebugInfo", + "description": "Output only. [Output Only] Advanced debugging information with stack traces and other diagnostic details for the error.", "readOnly": true }, "errorDetails": { "description": "[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.", "items": { + "description": "Container for structured error details providing additional context specific to the encountered error code.", "properties": { "errorInfo": { - "$ref": "ErrorInfo" + "$ref": "ErrorInfo", + "description": "Error information containing structured domain, reason, and metadata." }, "help": { - "$ref": "Help" + "$ref": "Help", + "description": "Links and information to help the user resolve the error." }, "localizedMessage": { - "$ref": "LocalizedMessage" + "$ref": "LocalizedMessage", + "description": "A localized human-readable error message intended for end users." }, "quotaInfo": { - "$ref": "QuotaExceededInfo" + "$ref": "QuotaExceededInfo", + "description": "Details about quota limits and metrics when a quota is exceeded." } }, "type": "object" @@ -2506,7 +2662,7 @@ "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }] ", "items": { "properties": { "key": { diff --git a/discovery/deploymentmanager-v2beta.json b/discovery/deploymentmanager-v2beta.json index af9c111fb7..1642bc1f9c 100644 --- a/discovery/deploymentmanager-v2beta.json +++ b/discovery/deploymentmanager-v2beta.json @@ -1636,7 +1636,7 @@ } } }, - "revision": "20260312", + "revision": "20260827", "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AsyncOptions": { @@ -1787,13 +1787,15 @@ "STATUS_UNSPECIFIED", "CREATING", "ROLLING_BACK", - "DONE" + "DONE", + "PENDING" ], "enumDescriptions": [ "", "Rolling forward - creating VMs.", "Rolling back - cleaning up after an error.", - "Done" + "Done", + "Pending - waiting until the capacity is available." ], "type": "string" }, @@ -2178,16 +2180,111 @@ "type": "object" }, "FirewallPolicyRuleOperationMetadata": { + "description": "Metadata for FirewallPolicyRule operations.", "id": "FirewallPolicyRuleOperationMetadata", "properties": { "allocatedPriority": { - "description": "The priority allocated for the firewall policy rule if query parameters specified minPriority/maxPriority.", + "description": "Output only. [Output Only] The priority allocated for the firewall policy rule if query parameters specified minPriority/maxPriority.", "format": "int32", + "readOnly": true, "type": "integer" } }, "type": "object" }, + "GetHealthOperationMetadata": { + "description": "Metadata for GetHealth operations.", + "id": "GetHealthOperationMetadata", + "properties": { + "healthInfo": { + "$ref": "GetHealthOperationMetadataHealthInfo", + "description": "Output only. The health information.", + "readOnly": true + } + }, + "type": "object" + }, + "GetHealthOperationMetadataHealthInfo": { + "description": "Health information.", + "id": "GetHealthOperationMetadataHealthInfo", + "properties": { + "availabilitySloStatus": { + "description": "Output only. The availability SLO status.", + "enum": [ + "AVAILABILITY_SLO_STATUS_UNSPECIFIED", + "AVAILABILITY_SLO_STATUS_IN_SLO", + "AVAILABILITY_SLO_STATUS_OUT_OF_SLO", + "AVAILABILITY_SLO_STATUS_SLO_UNKNOWN" + ], + "enumDescriptions": [ + "Unspecified availability SLO status.", + "The slot availability is in SLO.", + "The slot availability is out of SLO.", + "The slot availability is unknown." + ], + "readOnly": true, + "type": "string" + }, + "healthStatus": { + "description": "Output only. The health status.", + "enum": [ + "HEALTH_STATUS_UNSPECIFIED", + "HEALTH_STATUS_HEALTHY", + "HEALTH_STATUS_UNHEALTHY" + ], + "enumDescriptions": [ + "Unspecified health status.", + "The reservation slot is healthy.", + "The reservation slot is unhealthy." + ], + "readOnly": true, + "type": "string" + }, + "repairCategory": { + "description": "Output only. The repair category.", + "enum": [ + "REPAIR_CATEGORY_UNSPECIFIED", + "REPAIR_CATEGORY_PLANNED_MAINTENANCE", + "REPAIR_CATEGORY_EMERGENT_MAINTENANCE", + "REPAIR_CATEGORY_USER_REPORTED_FAULT", + "REPAIR_CATEGORY_CRITICAL_FAILURE" + ], + "enumDescriptions": [ + "Unspecified repair category.", + "The repair is because of a planned maintenance", + "The repair is because of an emergent maintenance", + "The repair is because of a user reported fault", + "The repair is because of critical failures, that are scoped outside emergent maintenance" + ], + "readOnly": true, + "type": "string" + }, + "unhealthyReason": { + "description": "Output only. The reason for unhealthy status.", + "enum": [ + "UNHEALTHY_REASON_UNSPECIFIED", + "UNHEALTHY_REASON_REPAIRING", + "UNHEALTHY_REASON_PENDING_USER_APPROVAL", + "UNHEALTHY_REASON_UNSCHEDULABLE" + ], + "enumDescriptions": [ + "Unspecified unhealthy reason.", + "The slot is unhealthy because repair is in progress", + "The slot is unhealthy because there is a pending repair, waiting for customer approval", + "The slot is unhealthy because a vm cannot be scheduled on it, and no repairs are running on the slot" + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when health info was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GetVersionOperationMetadata": { "id": "GetVersionOperationMetadata", "properties": { @@ -2204,14 +2301,14 @@ "additionalProperties": { "type": "string" }, - "description": "SBOM versions currently applied to the resource. The key is the component name and the value is the version.", + "description": "A mapping of components to their currently-applied versions or other appropriate identifiers.", "type": "object" }, "targetComponentVersions": { "additionalProperties": { "type": "string" }, - "description": "SBOM versions scheduled for the next maintenance. The key is the component name and the value is the version.", + "description": "A mapping of components to their target versions or other appropriate identifiers.", "type": "object" } }, @@ -2341,6 +2438,18 @@ }, "type": "object" }, + "InstancesTroubleshootOperationMetadata": { + "description": "[Output Only] Operation metadata for instances.troubleshoot.", + "id": "InstancesTroubleshootOperationMetadata", + "properties": { + "troubleshootOutput": { + "description": "Output only. [Output Only] Serialized output of the troubleshooting diagnostic run.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "LocalizedMessage": { "description": "Provides a localized error message that is safe to return to the user which can be attached to an RPC error.", "id": "LocalizedMessage", @@ -2441,6 +2550,10 @@ "description": "[Output Only] A textual description of the operation, which is set when the operation is created.", "type": "string" }, + "details": { + "$ref": "OperationDetails", + "description": "[Output Only] Extended details about the operation's execution." + }, "endTime": { "description": "[Output Only] The time that this operation was completed. This value is in RFC3339 text format.", "type": "string" @@ -2451,6 +2564,7 @@ "errors": { "description": "[Output Only] The array of errors encountered while processing this operation.", "items": { + "description": "Represents a single error encountered during the processing of an operation.", "properties": { "arguments": { "description": "Output only. [Output Only] Optional error details WARNING: DO NOT MAKE VISIBLE This is for internal use-only (like componentization) (thus the visibility \"none\") and in case of public exposure it is strongly recommended to follow pattern of: https://aip.dev/193 and expose as details field.", @@ -2466,23 +2580,29 @@ }, "debugInfo": { "$ref": "DebugInfo", + "description": "Output only. [Output Only] Advanced debugging information with stack traces and other diagnostic details for the error.", "readOnly": true }, "errorDetails": { "description": "[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.", "items": { + "description": "Container for structured error details providing additional context specific to the encountered error code.", "properties": { "errorInfo": { - "$ref": "ErrorInfo" + "$ref": "ErrorInfo", + "description": "Error information containing structured domain, reason, and metadata." }, "help": { - "$ref": "Help" + "$ref": "Help", + "description": "Links and information to help the user resolve the error." }, "localizedMessage": { - "$ref": "LocalizedMessage" + "$ref": "LocalizedMessage", + "description": "A localized human-readable error message intended for end users." }, "quotaInfo": { - "$ref": "QuotaExceededInfo" + "$ref": "QuotaExceededInfo", + "description": "Details about quota limits and metrics when a quota is exceeded." } }, "type": "object" @@ -2506,7 +2626,14 @@ "type": "object" }, "firewallPolicyRuleOperationMetadata": { - "$ref": "FirewallPolicyRuleOperationMetadata" + "$ref": "FirewallPolicyRuleOperationMetadata", + "description": "Output only. [Output Only] Metadata containing the allocated priority from the networkFirewallPolicies.addRule and regionNetworkFirewallPolicies.addRule methods if not explicitly provided by the user.", + "readOnly": true + }, + "getHealthOperationMetadata": { + "$ref": "GetHealthOperationMetadata", + "description": "Output only. Metadata for GetHealth operations.", + "readOnly": true }, "getVersionOperationMetadata": { "$ref": "GetVersionOperationMetadata" @@ -2532,6 +2659,11 @@ "instancesBulkInsertOperationMetadata": { "$ref": "InstancesBulkInsertOperationMetadata" }, + "instancesTroubleshootOperationMetadata": { + "$ref": "InstancesTroubleshootOperationMetadata", + "description": "Output only. [Output Only] Operation metadata for instances.troubleshoot.", + "readOnly": true + }, "kind": { "default": "compute#operation", "description": "Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation resources.", @@ -2590,9 +2722,9 @@ "DONE" ], "enumDescriptions": [ - "", - "", - "" + "The operation is waiting to be processed.", + "The operation is actively being processed.", + "The operation has completed processing successfully or with an error." ], "type": "string" }, @@ -2751,7 +2883,7 @@ "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }] ", "items": { "properties": { "key": { @@ -2783,6 +2915,23 @@ }, "type": "object" }, + "OperationDetails": { + "id": "OperationDetails", + "properties": { + "data": { + "additionalProperties": { + "type": "any" + }, + "description": "Machine readable data from the message.", + "type": "object" + }, + "message": { + "description": "Human or AI readable details on execution of the operation.", + "type": "string" + } + }, + "type": "object" + }, "OperationsListResponse": { "description": "A response containing a partial list of operations and a page token used to build the next request if the request has been truncated.", "id": "OperationsListResponse", @@ -3119,7 +3268,7 @@ "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }] ", "items": { "properties": { "key": { @@ -3171,6 +3320,7 @@ "errors": { "description": "[Output Only] The array of errors encountered while processing this operation.", "items": { + "description": "Represents a single error encountered during the processing of an operation.", "properties": { "arguments": { "description": "Output only. [Output Only] Optional error details WARNING: DO NOT MAKE VISIBLE This is for internal use-only (like componentization) (thus the visibility \"none\") and in case of public exposure it is strongly recommended to follow pattern of: https://aip.dev/193 and expose as details field.", @@ -3186,23 +3336,29 @@ }, "debugInfo": { "$ref": "DebugInfo", + "description": "Output only. [Output Only] Advanced debugging information with stack traces and other diagnostic details for the error.", "readOnly": true }, "errorDetails": { "description": "[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.", "items": { + "description": "Container for structured error details providing additional context specific to the encountered error code.", "properties": { "errorInfo": { - "$ref": "ErrorInfo" + "$ref": "ErrorInfo", + "description": "Error information containing structured domain, reason, and metadata." }, "help": { - "$ref": "Help" + "$ref": "Help", + "description": "Links and information to help the user resolve the error." }, "localizedMessage": { - "$ref": "LocalizedMessage" + "$ref": "LocalizedMessage", + "description": "A localized human-readable error message intended for end users." }, "quotaInfo": { - "$ref": "QuotaExceededInfo" + "$ref": "QuotaExceededInfo", + "description": "Details about quota limits and metrics when a quota is exceeded." } }, "type": "object" @@ -3413,7 +3569,7 @@ "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }] ", "items": { "properties": { "key": { diff --git a/discovery/discoveryengine-v1.json b/discovery/discoveryengine-v1.json index 659f0e3a1d..1dfd246c47 100644 --- a/discovery/discoveryengine-v1.json +++ b/discovery/discoveryengine-v1.json @@ -9937,7 +9937,7 @@ } } }, - "revision": "20260908", + "revision": "20260915", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "A2aV1APIKeySecurityScheme": { @@ -19038,6 +19038,10 @@ "notebooklmConfig": { "$ref": "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig", "description": "Optional. Configuration for NotebookLM settings." + }, + "resourceAccessControlConfig": { + "$ref": "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig", + "description": "Optional. Resource-level access control config for Gemini Enterprise users." } }, "type": "object" @@ -19102,6 +19106,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig": { + "description": "Controls resource-level access control for Gemini Enterprise users.", + "id": "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig", + "properties": { + "dataStoreAccessControlEnabled": { + "description": "Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1ProjectServiceTerms": { "description": "Metadata about the terms of service.", "id": "GoogleCloudDiscoveryengineV1ProjectServiceTerms", @@ -20648,6 +20663,34 @@ "Automatic switching between search-as-you-type and standard search modes, ideal for single-API implementations (e.g., debouncing)." ], "type": "string" + }, + "fields": { + "description": "Optional. The list of fields to be used for Search As You Type scoring.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpecField" + }, + "type": "array" + }, + "scoreThreshold": { + "description": "Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` >= `score_threshold`.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpecField": { + "description": "A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.", + "id": "GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpecField", + "properties": { + "key": { + "description": "Required. A field key that has been indexed for Search As You Type.", + "type": "string" + }, + "weight": { + "description": "Optional. Weight for scores from this field. Defaults to 1.0 if not specified.", + "format": "double", + "type": "number" } }, "type": "object" @@ -23566,6 +23609,11 @@ "readOnly": true, "type": "string" }, + "family": { + "description": "Output only. Groups models that render together in the selector. Models sharing a value form one group; empty means the model belongs to no group. Compared for equality only -- never parsed, and never shown to a user, so it is not localized.", + "readOnly": true, + "type": "string" + }, "icon": { "description": "Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`).", "readOnly": true, @@ -29565,6 +29613,10 @@ "notebooklmConfig": { "$ref": "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig", "description": "Optional. Configuration for NotebookLM settings." + }, + "resourceAccessControlConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig", + "description": "Optional. Resource-level access control config for Gemini Enterprise users." } }, "type": "object" @@ -29629,6 +29681,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig": { + "description": "Controls resource-level access control for Gemini Enterprise users.", + "id": "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig", + "properties": { + "dataStoreAccessControlEnabled": { + "description": "Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaProjectServiceTerms": { "description": "Metadata about the terms of service.", "id": "GoogleCloudDiscoveryengineV1alphaProjectServiceTerms", @@ -29947,6 +30010,10 @@ "uiJsonPayload": { "description": "This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is only supported for A2UI messages.", "type": "string" + }, + "userSuppliedSobiArtifactReference": { + "$ref": "GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference", + "description": "Reference to a user-supplied file attached to a long-running-agent (Sobi) task. See `UserSuppliedSobiArtifactReference` above." } }, "type": "object" @@ -30051,6 +30118,21 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference": { + "description": "Reference to a user-supplied file attached to a long-running-agent (Sobi) task. Rendered by the client as an attachment chip on the user turn's bubble. The file itself is stored on the task's `AgentArtifact` list; the client resolves full metadata (source URI, size, ...) for download or preview by calling `GetTask` on the Sobi Task API and matching `AgentArtifact.name` against `file_name`. Only `file_name` and `mime_type` appear on this wire deliberately: the backing `gs://` or Drive URI is not exposed to conversation-history readers. Same variant is used for both byte-uploaded and Drive-picked files -- \"user attached a file\" is one concept regardless of source.", + "id": "GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference", + "properties": { + "fileName": { + "description": "Required. Client-supplied filename. Unique per task within the user-supplied artifact set (UI dedupes before upload). Doubles as the artifact identifier used to look up the artifact on `Task.artifacts`. The `_name` suffix is deliberate and the AIP-122 lint is suppressed: this field is not a resource name (which is what AIP-122 reserves the bare `name` for). It is the literal filename, and it serves as the join key against `AgentArtifact.name` on the backing Sobi task -- a structural role that `title` or `display_name` would not communicate to a client picking what to send. The internal mirror (`cloud/ml/discoveryengine/schema/assistant.proto`) uses the same field name so the round-trip converter stays name-for-name.", + "type": "string" + }, + "mimeType": { + "description": "Optional. IANA MIME type. Used for icon/preview rendering.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.RecrawlUris operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata", @@ -31369,6 +31451,34 @@ "Automatic switching between search-as-you-type and standard search modes, ideal for single-API implementations (e.g., debouncing)." ], "type": "string" + }, + "fields": { + "description": "Optional. The list of fields to be used for Search As You Type scoring.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField" + }, + "type": "array" + }, + "scoreThreshold": { + "description": "Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` >= `score_threshold`.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField": { + "description": "A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.", + "id": "GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField", + "properties": { + "key": { + "description": "Required. A field key that has been indexed for Search As You Type.", + "type": "string" + }, + "weight": { + "description": "Optional. Weight for scores from this field. Defaults to 1.0 if not specified.", + "format": "double", + "type": "number" } }, "type": "object" @@ -34790,6 +34900,10 @@ "notebooklmConfig": { "$ref": "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig", "description": "Optional. Configuration for NotebookLM settings." + }, + "resourceAccessControlConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig", + "description": "Optional. Resource-level access control config for Gemini Enterprise users." } }, "type": "object" @@ -34854,6 +34968,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig": { + "description": "Controls resource-level access control for Gemini Enterprise users.", + "id": "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig", + "properties": { + "dataStoreAccessControlEnabled": { + "description": "Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaProjectServiceTerms": { "description": "Metadata about the terms of service.", "id": "GoogleCloudDiscoveryengineV1betaProjectServiceTerms", @@ -36069,6 +36194,34 @@ "Automatic switching between search-as-you-type and standard search modes, ideal for single-API implementations (e.g., debouncing)." ], "type": "string" + }, + "fields": { + "description": "Optional. The list of fields to be used for Search As You Type scoring.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField" + }, + "type": "array" + }, + "scoreThreshold": { + "description": "Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` >= `score_threshold`.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField": { + "description": "A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.", + "id": "GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField", + "properties": { + "key": { + "description": "Required. A field key that has been indexed for Search As You Type.", + "type": "string" + }, + "weight": { + "description": "Optional. Weight for scores from this field. Defaults to 1.0 if not specified.", + "format": "double", + "type": "number" } }, "type": "object" diff --git a/discovery/discoveryengine-v1alpha.json b/discovery/discoveryengine-v1alpha.json index 843dbf67a9..538e70bdb1 100644 --- a/discovery/discoveryengine-v1alpha.json +++ b/discovery/discoveryengine-v1alpha.json @@ -12271,6 +12271,163 @@ } }, "notebooks": { + "methods": { + "batchDelete": { + "description": "Batch deletes Notebooks.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/notebooks:batchDelete", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.notebooks.batchDelete", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent branch resource name, such as `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/notebooks:batchDelete", + "request": { + "$ref": "GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.readwrite", + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite" + ] + }, + "create": { + "description": "Creates a notebook.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/notebooks", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.notebooks.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource name, such as `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/notebooks", + "request": { + "$ref": "GoogleCloudNotebooklmV1alphaNotebook" + }, + "response": { + "$ref": "GoogleCloudNotebooklmV1alphaNotebook" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.readwrite", + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite" + ] + }, + "get": { + "description": "Gets a notebook.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/notebooks/{notebooksId}", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.notebooks.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Full resource name of Notebook, such as `projects/{project}/locations/{location}/notebooks/{notebook_id}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleCloudNotebooklmV1alphaNotebook" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.readwrite", + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite" + ] + }, + "listRecentlyViewed": { + "description": "Lists the notebooks ordered by last view time.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/notebooks:listRecentlyViewed", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.notebooks.listRecentlyViewed", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of Notebooks to return. If unspecified, defaults to \"500\". The maximum allowed value is \"500\". If this field is negative, will use the default value.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The page token, provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent branch resource name, such as `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/notebooks:listRecentlyViewed", + "response": { + "$ref": "GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.readwrite", + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite" + ] + }, + "share": { + "description": "Shares a notebook to other accounts.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/notebooks/{notebooksId}:share", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.notebooks.share", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Full resource name of Notebook, such as `projects/{project}/locations/{location}/notebooks/{notebook_id}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:share", + "request": { + "$ref": "GoogleCloudNotebooklmV1alphaShareNotebookRequest" + }, + "response": { + "$ref": "GoogleCloudNotebooklmV1alphaShareNotebookResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.readwrite", + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite" + ] + } + }, "resources": { "audioOverviews": { "methods": { @@ -12332,6 +12489,98 @@ ] } } + }, + "sources": { + "methods": { + "batchCreate": { + "description": "Creates a list of Sources.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/notebooks/{notebooksId}/sources:batchCreate", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.notebooks.sources.batchCreate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where the sources will be created. Format: projects/{project}/locations/{location}/notebooks/{notebook}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/sources:batchCreate", + "request": { + "$ref": "GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest" + }, + "response": { + "$ref": "GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite", + "https://www.googleapis.com/auth/discoveryengine.readwrite", + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite" + ] + }, + "batchDelete": { + "description": "Deletes multiple sources", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/notebooks/{notebooksId}/sources:batchDelete", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.notebooks.sources.batchDelete", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where the sources will be deleted. Format: projects/{project}/locations/{location}/notebooks/{notebook}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/sources:batchDelete", + "request": { + "$ref": "GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.readwrite", + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite" + ] + }, + "get": { + "description": "Gets a Source.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/notebooks/{notebooksId}/sources/{sourcesId}", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.notebooks.sources.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name for source Format: projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+/sources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleCloudNotebooklmV1alphaSource" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.readwrite", + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite" + ] + } + } } } }, @@ -13404,7 +13653,7 @@ } } }, - "revision": "20260908", + "revision": "20260915", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -17338,6 +17587,10 @@ "notebooklmConfig": { "$ref": "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig", "description": "Optional. Configuration for NotebookLM settings." + }, + "resourceAccessControlConfig": { + "$ref": "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig", + "description": "Optional. Resource-level access control config for Gemini Enterprise users." } }, "type": "object" @@ -17402,6 +17655,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig": { + "description": "Controls resource-level access control for Gemini Enterprise users.", + "id": "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig", + "properties": { + "dataStoreAccessControlEnabled": { + "description": "Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1ProjectServiceTerms": { "description": "Metadata about the terms of service.", "id": "GoogleCloudDiscoveryengineV1ProjectServiceTerms", @@ -21286,7 +21550,7 @@ "description": "Optional. Configuration for the generation of the assistant response." }, "knowledgeCatalogEnabled": { - "description": "Optional. Indicates whether Knowledge Catalog is enabled for this specific assistant. When enabled, it powers discovery context using organizational data.", + "description": "Optional. Indicates whether Knowledge Catalog is enabled for this specific assistant. When enabled, it powers discovery context using organizational data. If unspecified, defaults to true.", "type": "boolean" }, "name": { @@ -29505,6 +29769,10 @@ "notebooklmConfig": { "$ref": "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig", "description": "Optional. Configuration for NotebookLM settings." + }, + "resourceAccessControlConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig", + "description": "Optional. Resource-level access control config for Gemini Enterprise users." } }, "type": "object" @@ -29569,6 +29837,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig": { + "description": "Controls resource-level access control for Gemini Enterprise users.", + "id": "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig", + "properties": { + "dataStoreAccessControlEnabled": { + "description": "Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaProjectServiceTerms": { "description": "Metadata about the terms of service.", "id": "GoogleCloudDiscoveryengineV1alphaProjectServiceTerms", @@ -30102,6 +30381,10 @@ "uiJsonPayload": { "description": "This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is only supported for A2UI messages.", "type": "string" + }, + "userSuppliedSobiArtifactReference": { + "$ref": "GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference", + "description": "Reference to a user-supplied file attached to a long-running-agent (Sobi) task. See `UserSuppliedSobiArtifactReference` above." } }, "type": "object" @@ -30206,6 +30489,21 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference": { + "description": "Reference to a user-supplied file attached to a long-running-agent (Sobi) task. Rendered by the client as an attachment chip on the user turn's bubble. The file itself is stored on the task's `AgentArtifact` list; the client resolves full metadata (source URI, size, ...) for download or preview by calling `GetTask` on the Sobi Task API and matching `AgentArtifact.name` against `file_name`. Only `file_name` and `mime_type` appear on this wire deliberately: the backing `gs://` or Drive URI is not exposed to conversation-history readers. Same variant is used for both byte-uploaded and Drive-picked files -- \"user attached a file\" is one concept regardless of source.", + "id": "GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference", + "properties": { + "fileName": { + "description": "Required. Client-supplied filename. Unique per task within the user-supplied artifact set (UI dedupes before upload). Doubles as the artifact identifier used to look up the artifact on `Task.artifacts`. The `_name` suffix is deliberate and the AIP-122 lint is suppressed: this field is not a resource name (which is what AIP-122 reserves the bare `name` for). It is the literal filename, and it serves as the join key against `AgentArtifact.name` on the backing Sobi task -- a structural role that `title` or `display_name` would not communicate to a client picking what to send. The internal mirror (`cloud/ml/discoveryengine/schema/assistant.proto`) uses the same field name so the round-trip converter stays name-for-name.", + "type": "string" + }, + "mimeType": { + "description": "Optional. IANA MIME type. Used for icon/preview rendering.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaRankRequest": { "description": "Request message for RankService.Rank method.", "id": "GoogleCloudDiscoveryengineV1alphaRankRequest", @@ -32133,6 +32431,34 @@ "Automatic switching between search-as-you-type and standard search modes, ideal for single-API implementations (e.g., debouncing)." ], "type": "string" + }, + "fields": { + "description": "Optional. The list of fields to be used for Search As You Type scoring.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField" + }, + "type": "array" + }, + "scoreThreshold": { + "description": "Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` >= `score_threshold`.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField": { + "description": "A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.", + "id": "GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField", + "properties": { + "key": { + "description": "Required. A field key that has been indexed for Search As You Type.", + "type": "string" + }, + "weight": { + "description": "Optional. Weight for scores from this field. Defaults to 1.0 if not specified.", + "format": "double", + "type": "number" } }, "type": "object" @@ -35635,6 +35961,11 @@ "readOnly": true, "type": "string" }, + "family": { + "description": "Output only. Groups models that render together in the selector. Models sharing a value form one group; empty means the model belongs to no group. Compared for equality only -- never parsed, and never shown to a user, so it is not localized.", + "readOnly": true, + "type": "string" + }, "icon": { "description": "Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`).", "readOnly": true, @@ -38432,6 +38763,10 @@ "notebooklmConfig": { "$ref": "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig", "description": "Optional. Configuration for NotebookLM settings." + }, + "resourceAccessControlConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig", + "description": "Optional. Resource-level access control config for Gemini Enterprise users." } }, "type": "object" @@ -38496,6 +38831,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig": { + "description": "Controls resource-level access control for Gemini Enterprise users.", + "id": "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig", + "properties": { + "dataStoreAccessControlEnabled": { + "description": "Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaProjectServiceTerms": { "description": "Metadata about the terms of service.", "id": "GoogleCloudDiscoveryengineV1betaProjectServiceTerms", @@ -39711,15 +40057,43 @@ "Automatic switching between search-as-you-type and standard search modes, ideal for single-API implementations (e.g., debouncing)." ], "type": "string" + }, + "fields": { + "description": "Optional. The list of fields to be used for Search As You Type scoring.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField" + }, + "type": "array" + }, + "scoreThreshold": { + "description": "Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` >= `score_threshold`.", + "format": "double", + "type": "number" } }, "type": "object" }, - "GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec": { - "description": "Session specification.", - "id": "GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec", + "GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField": { + "description": "A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.", + "id": "GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField", "properties": { - "queryId": { + "key": { + "description": "Required. A field key that has been indexed for Search As You Type.", + "type": "string" + }, + "weight": { + "description": "Optional. Weight for scores from this field. Defaults to 1.0 if not specified.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec": { + "description": "Session specification.", + "id": "GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec", + "properties": { + "queryId": { "description": "If set, the search result gets stored to the \"turn\" specified by this query ID. Example: Let's say the session looks like this: session { name: \".../sessions/xxx\" turns { query { text: \"What is foo?\" query_id: \".../questions/yyy\" } answer: \"Foo is ...\" } turns { query { text: \"How about bar then?\" query_id: \".../questions/zzz\" } } } The user can call /search API with a request like this: session: \".../sessions/xxx\" session_spec { query_id: \".../questions/zzz\" } Then, the API stores the search result, associated with the last turn. The stored search result can be used by a subsequent /answer API call (with the session ID and the query ID specified). Also, it is possible to call /search and /answer in parallel with the same session ID & query ID.", "type": "string" }, @@ -40272,6 +40646,52 @@ }, "type": "object" }, + "GoogleCloudNotebooklmV1alphaAccountAndRole": { + "description": "Account and role information.", + "id": "GoogleCloudNotebooklmV1alphaAccountAndRole", + "properties": { + "email": { + "description": "Required. The email address associated with the account.", + "type": "string" + }, + "role": { + "description": "Required. The role in the notebook.", + "enum": [ + "PROJECT_ROLE_UNKNOWN", + "PROJECT_ROLE_OWNER", + "PROJECT_ROLE_WRITER", + "PROJECT_ROLE_READER", + "PROJECT_ROLE_NOT_SHARED" + ], + "enumDescriptions": [ + "Unknown role.", + "The user owns the project.", + "The user has writer permissions on the project.", + "The user has reader permissions on the project.", + "The user has no access to the project." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaAgentspaceMetadata": { + "description": "Metadata about an agentspace source.", + "id": "GoogleCloudNotebooklmV1alphaAgentspaceMetadata", + "properties": { + "documentName": { + "description": "Output only. The full document name in Agentspace.", + "readOnly": true, + "type": "string" + }, + "documentTitle": { + "description": "Output only. The title of the document.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudNotebooklmV1alphaAudioOverview": { "description": "An audio overview of a notebook. This is a summary of the notebook in audio format.", "id": "GoogleCloudNotebooklmV1alphaAudioOverview", @@ -40350,6 +40770,73 @@ }, "type": "object" }, + "GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest": { + "description": "Request for SourceService.BatchCreateSources method.", + "id": "GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest", + "properties": { + "userContents": { + "description": "Required. The UserContents to be uploaded.", + "items": { + "$ref": "GoogleCloudNotebooklmV1alphaUserContent" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse": { + "description": "Response for SourceService.BatchCreateSources method.", + "id": "GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse", + "properties": { + "sources": { + "description": "The Sources.", + "items": { + "$ref": "GoogleCloudNotebooklmV1alphaSource" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest": { + "description": "Request for NotebookService.BatchDeleteNotebooks method.", + "id": "GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest", + "properties": { + "names": { + "description": "Required. Full resource names of Notebook, such as `projects/{project}/locations/{location}/notebooks/{notebook_id}`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest": { + "description": "Request for BatchDeleteSourcesRequest method.", + "id": "GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest", + "properties": { + "names": { + "description": "Required. Names of sources to be deleted. Format: projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source}", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaCmekConfig": { + "description": "Customer-managed encryption configuration for Notebooks.", + "id": "GoogleCloudNotebooklmV1alphaCmekConfig", + "properties": { + "kmsKey": { + "description": "Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest": { "description": "Request for AudioOverviewService.CreateAudioOverview method.", "id": "GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest", @@ -40372,6 +40859,389 @@ }, "type": "object" }, + "GoogleCloudNotebooklmV1alphaFailureReason": { + "description": "Failure reason containing details about why a source failed to ingest.", + "id": "GoogleCloudNotebooklmV1alphaFailureReason", + "properties": { + "audioTranscriptionError": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError", + "description": "An audio file transcription specific error." + }, + "domainBlocked": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked", + "description": "Error if the user tries to add a source from a blocked domain." + }, + "googleDriveError": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError", + "description": "A google drive specific error." + }, + "ingestionError": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonIngestionError", + "description": "Indicates an error occurred while ingesting the source." + }, + "mimeTypeBlocked": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked", + "description": "Indicates that the source MIME type is blocked." + }, + "paywallError": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonPaywallError", + "description": "Indicates that the source is paywalled and cannot be ingested." + }, + "policyCheckFailed": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed", + "description": "Indicates that the policy check failed." + }, + "sourceEmpty": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty", + "description": "Indicates that the source is empty." + }, + "sourceLimitExceeded": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded", + "description": "Error if the user tries to update beyond their limits." + }, + "sourceTooLong": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong", + "description": "Indicates source word count exceeded the user's limit." + }, + "sourceUnreachable": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable", + "description": "Indicates that the source is unreachable." + }, + "unknown": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonUnknown", + "description": "Indicates an unknown error occurred." + }, + "uploadError": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonUploadError", + "description": "Indicates an error occurred while uploading the source." + }, + "youtubeError": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError", + "description": "A youtube specific error." + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError": { + "description": "An audio file transcription specific error.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError", + "properties": { + "languageDetectionFailed": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed", + "description": "Could not detect language of the file (it may not be speech)." + }, + "noAudioDetected": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected", + "description": "No audio was detected in the input file (it may have been a video)." + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed": { + "description": "Could not detect language of the file (it may not be speech).", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected": { + "description": "No audio was detected in the input file.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked": { + "description": "Error to indicate that the source was removed because the domain was blocked.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError": { + "description": "A google drive specific error.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError", + "properties": { + "downloadPrevented": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented", + "description": "The user was prevented from downloading the file." + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented": { + "description": "The user was prevented from downloading the file.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonIngestionError": { + "description": "Indicates an error occurred while ingesting the source.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonIngestionError", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked": { + "description": "Indicates that the source MIME type is blocked.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonPaywallError": { + "description": "Indicates that the source is paywalled and cannot be ingested.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonPaywallError", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed": { + "description": "Indicates that the policy check failed.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty": { + "description": "Indicates that the source is empty.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded": { + "description": "Indicates that the user does not have space for this source.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong": { + "description": "Indicates source word count exceeded the user's limit.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong", + "properties": { + "wordCount": { + "description": "The number of words in the source.", + "format": "int32", + "type": "integer" + }, + "wordLimit": { + "description": "The word count limit for the current user at the time of the upload.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable": { + "description": "Indicates that the source is unreachable. This is primarily used for sources that are added via URL.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable", + "properties": { + "errorDetails": { + "description": "Describes why the source is unreachable.", + "enum": [ + "ERROR_REASON_UNSPECIFIED", + "ERROR_REASON_INVALID_URL", + "ERROR_REASON_NOT_ACCESSIBLE", + "ERROR_REASON_NOT_REACHABLE", + "ERROR_REASON_URL_NOT_FOUND", + "ERROR_REASON_TRANSIENT_ERROR", + "ERROR_REASON_FETCH_FAILED", + "ERROR_REASON_NOT_SUPPORTED" + ], + "enumDescriptions": [ + "Default", + "The source URL is invalid.", + "The source URL is not accessible.", + "The source URL is not reachable.", + "The source URL returned 404.", + "The source URL not reachable due to a transient network error or host timeout etc.", + "The source URL could not be fetched due to an internal error.", + "The URL is not yet supported. Examples include: the fetched content exceeds the trawler fetch max size, the fetched content is a type we do not yet support, etc." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonUnknown": { + "description": "Indicates an unknown error occurred.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonUnknown", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonUploadError": { + "description": "Indicates an error occurred while uploading the source.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonUploadError", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError": { + "description": "A youtube specific error.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError", + "properties": { + "videoDeleted": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted", + "description": "Error to indicate that the source was removed because the video was deleted." + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted": { + "description": "Error to indicate that the source was removed because the video was deleted.", + "id": "GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata": { + "description": "Metadata about a google doc source.", + "id": "GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata", + "properties": { + "documentId": { + "description": "Output only. The document id of the google doc.", + "readOnly": true, + "type": "string" + }, + "revisionId": { + "description": "Output only. Revision id for the doc.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse": { + "description": "Response for NotebookService.ListRecentlyViewedNotebooks method.", + "id": "GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse", + "properties": { + "nextPageToken": { + "description": "The page token, provide this to retrieve the subsequent page.", + "type": "string" + }, + "notebooks": { + "description": "The list of recently viewed notebooks.", + "items": { + "$ref": "GoogleCloudNotebooklmV1alphaNotebook" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaNotebook": { + "description": "Notebook is a resource where users can store their content (as sources) and interacts with the content.", + "id": "GoogleCloudNotebooklmV1alphaNotebook", + "properties": { + "cmekConfig": { + "$ref": "GoogleCloudNotebooklmV1alphaCmekConfig", + "description": "Output only. CMEK-related information for the Notebook.", + "readOnly": true + }, + "emoji": { + "description": "Output only. The emoji of the notebook.", + "readOnly": true, + "type": "string" + }, + "metadata": { + "$ref": "GoogleCloudNotebooklmV1alphaNotebookMetadata", + "description": "Output only. The metadata of the notebook.", + "readOnly": true + }, + "name": { + "description": "Identifier. The identifier of the notebook. Format: `projects/{project}/locations/{location}/notebooks/{notebook_id}`. This field must be a UTF-8 encoded string.", + "type": "string" + }, + "notebookId": { + "description": "Output only. Notebook id, which is the last segment of the notebook's resource name.", + "readOnly": true, + "type": "string" + }, + "sources": { + "description": "Output only. List of sources in the notebook. This is an output only field.", + "items": { + "$ref": "GoogleCloudNotebooklmV1alphaSource" + }, + "readOnly": true, + "type": "array" + }, + "title": { + "description": "Optional. The title of the notebook.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaNotebookMetadata": { + "description": "Metadata for a notebook.", + "id": "GoogleCloudNotebooklmV1alphaNotebookMetadata", + "properties": { + "createTime": { + "description": "The time at which this project was created.", + "format": "google-datetime", + "type": "string" + }, + "isShareable": { + "description": "True if the project is shareable.", + "type": "boolean" + }, + "isShared": { + "description": "True if this project is currently shared with other people, false otherwise.", + "type": "boolean" + }, + "lastViewed": { + "description": "A timestamp indicating the time that the current in session user has last viewed the project.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaShareNotebookRequest": { + "description": "Request for NotebookService.ShareNotebook method.", + "id": "GoogleCloudNotebooklmV1alphaShareNotebookRequest", + "properties": { + "accountAndRoles": { + "description": "Required. The list of accounts and roles to share the notebook with.", + "items": { + "$ref": "GoogleCloudNotebooklmV1alphaAccountAndRole" + }, + "type": "array" + }, + "notifyViaEmail": { + "description": "Required. Whether to notify the shared users via email.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaShareNotebookResponse": { + "description": "Response for NotebookService.ShareNotebook method.", + "id": "GoogleCloudNotebooklmV1alphaShareNotebookResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaSource": { + "description": "Source represents a single source of content.", + "id": "GoogleCloudNotebooklmV1alphaSource", + "properties": { + "metadata": { + "$ref": "GoogleCloudNotebooklmV1alphaSourceMetadata", + "description": "Output only. Metadata about the source.", + "readOnly": true + }, + "name": { + "description": "Identifier. The full resource name of the source. Format: `projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.", + "type": "string" + }, + "settings": { + "$ref": "GoogleCloudNotebooklmV1alphaSourceSettings", + "description": "Output only. Status of the source, and any failure reasons.", + "readOnly": true + }, + "sourceId": { + "$ref": "GoogleCloudNotebooklmV1alphaSourceId", + "description": "Optional. Output only. Source id, which is the last segment of the source's resource name.", + "readOnly": true + }, + "title": { + "description": "Optional. Title of the source.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudNotebooklmV1alphaSourceId": { "description": "SourceId is the last segment of the source's resource name.", "id": "GoogleCloudNotebooklmV1alphaSourceId", @@ -40383,6 +41253,194 @@ }, "type": "object" }, + "GoogleCloudNotebooklmV1alphaSourceMetadata": { + "description": "Represents the metadata of a source and some additional information.", + "id": "GoogleCloudNotebooklmV1alphaSourceMetadata", + "properties": { + "agentspaceMetadata": { + "$ref": "GoogleCloudNotebooklmV1alphaAgentspaceMetadata", + "description": "Metadata for an agentspace source." + }, + "googleDocsMetadata": { + "$ref": "GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata", + "description": "Metadata for a google doc source." + }, + "sourceAddedTimestamp": { + "description": "The timestamp the source was added.", + "format": "google-datetime", + "type": "string" + }, + "tokenCount": { + "description": "The number of tokens in the source.", + "format": "int32", + "type": "integer" + }, + "wordCount": { + "description": "The word count of the source.", + "format": "int32", + "type": "integer" + }, + "youtubeMetadata": { + "$ref": "GoogleCloudNotebooklmV1alphaYoutubeMetadata", + "description": "Metadata for a youtube video source." + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaSourceSettings": { + "description": "Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request).", + "id": "GoogleCloudNotebooklmV1alphaSourceSettings", + "properties": { + "failureReason": { + "$ref": "GoogleCloudNotebooklmV1alphaFailureReason", + "description": "Failure reason containing details about why a source failed to ingest." + }, + "status": { + "description": "Status of the source.", + "enum": [ + "SOURCE_STATUS_UNSPECIFIED", + "SOURCE_STATUS_PENDING", + "SOURCE_STATUS_COMPLETE", + "SOURCE_STATUS_ERROR", + "SOURCE_STATUS_PENDING_DELETION", + "SOURCE_STATUS_TENTATIVE" + ], + "enumDescriptions": [ + "Unspecified status.", + "The source is pending addition.", + "Source addition is complete and successful.", + "Source addition has permanently failed.", + "The source is pending deletion.", + "The user is attempting to add a source, but we have not yet uploaded it or checked user limits. Does not count towards the user's source limit." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaUserContent": { + "description": "The \"Content\" messages refer to data the user wants to upload.", + "id": "GoogleCloudNotebooklmV1alphaUserContent", + "properties": { + "agentspaceContent": { + "$ref": "GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent", + "description": "Agentspace content uploaded as source." + }, + "googleDriveContent": { + "$ref": "GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent", + "description": "The content from Google Drive." + }, + "textContent": { + "$ref": "GoogleCloudNotebooklmV1alphaUserContentTextContent", + "description": "The text content uploaded as source." + }, + "videoContent": { + "$ref": "GoogleCloudNotebooklmV1alphaUserContentVideoContent", + "description": "The video content uploaded as source." + }, + "webContent": { + "$ref": "GoogleCloudNotebooklmV1alphaUserContentWebContent", + "description": "The web content uploaded as source." + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent": { + "description": "Agentspace content uploaded as source.", + "id": "GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent", + "properties": { + "documentName": { + "description": "Optional. The full resource name of the Agentspace document. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.", + "type": "string" + }, + "engineName": { + "description": "Optional. Engine to verify the permission of the document. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`.", + "type": "string" + }, + "ideaforgeIdeaName": { + "description": "Optional. Resource name of the idea forge instance. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/ideaForgeInstances/{instance}`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent": { + "description": "The content from Google Drive.", + "id": "GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent", + "properties": { + "documentId": { + "description": "The document id of the selected document.", + "type": "string" + }, + "mimeType": { + "description": "The mime type of the selected document. This can be used to differentiate type of content selected in the drive picker. Use application/vnd.google-apps.document for Google Docs or application/vnd.google-apps.presentation for Google Slides.", + "type": "string" + }, + "sourceName": { + "description": "The name to be displayed for the source.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaUserContentTextContent": { + "description": "The text content uploaded as source.", + "id": "GoogleCloudNotebooklmV1alphaUserContentTextContent", + "properties": { + "content": { + "description": "The name to be displayed for the source.", + "type": "string" + }, + "sourceName": { + "description": "The display name of the text source.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaUserContentVideoContent": { + "description": "Video content uploaded as source.", + "id": "GoogleCloudNotebooklmV1alphaUserContentVideoContent", + "properties": { + "youtubeUrl": { + "description": "The youtube url of the video content.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaUserContentWebContent": { + "description": "The web content uploaded as source.", + "id": "GoogleCloudNotebooklmV1alphaUserContentWebContent", + "properties": { + "sourceName": { + "description": "The name to be displayed for the source.", + "type": "string" + }, + "url": { + "description": "If URL is supplied, will fetch the webpage in the backend.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudNotebooklmV1alphaYoutubeMetadata": { + "description": "Metadata about a youtube video source.", + "id": "GoogleCloudNotebooklmV1alphaYoutubeMetadata", + "properties": { + "channelName": { + "description": "Output only. The channel name of the youtube video.", + "readOnly": true, + "type": "string" + }, + "videoId": { + "description": "Output only. The id of the youtube video.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleIamV1Binding": { "description": "Associates `members`, or principals, with a `role`.", "id": "GoogleIamV1Binding", diff --git a/discovery/discoveryengine-v1beta.json b/discovery/discoveryengine-v1beta.json index 8094c7419c..433bc73919 100644 --- a/discovery/discoveryengine-v1beta.json +++ b/discovery/discoveryengine-v1beta.json @@ -9680,7 +9680,7 @@ } } }, - "revision": "20260908", + "revision": "20260915", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -13614,6 +13614,10 @@ "notebooklmConfig": { "$ref": "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig", "description": "Optional. Configuration for NotebookLM settings." + }, + "resourceAccessControlConfig": { + "$ref": "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig", + "description": "Optional. Resource-level access control config for Gemini Enterprise users." } }, "type": "object" @@ -13678,6 +13682,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig": { + "description": "Controls resource-level access control for Gemini Enterprise users.", + "id": "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig", + "properties": { + "dataStoreAccessControlEnabled": { + "description": "Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1ProjectServiceTerms": { "description": "Metadata about the terms of service.", "id": "GoogleCloudDiscoveryengineV1ProjectServiceTerms", @@ -20592,6 +20607,10 @@ "notebooklmConfig": { "$ref": "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig", "description": "Optional. Configuration for NotebookLM settings." + }, + "resourceAccessControlConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig", + "description": "Optional. Resource-level access control config for Gemini Enterprise users." } }, "type": "object" @@ -20656,6 +20675,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig": { + "description": "Controls resource-level access control for Gemini Enterprise users.", + "id": "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig", + "properties": { + "dataStoreAccessControlEnabled": { + "description": "Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaProjectServiceTerms": { "description": "Metadata about the terms of service.", "id": "GoogleCloudDiscoveryengineV1alphaProjectServiceTerms", @@ -20974,6 +21004,10 @@ "uiJsonPayload": { "description": "This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is only supported for A2UI messages.", "type": "string" + }, + "userSuppliedSobiArtifactReference": { + "$ref": "GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference", + "description": "Reference to a user-supplied file attached to a long-running-agent (Sobi) task. See `UserSuppliedSobiArtifactReference` above." } }, "type": "object" @@ -21078,6 +21112,21 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference": { + "description": "Reference to a user-supplied file attached to a long-running-agent (Sobi) task. Rendered by the client as an attachment chip on the user turn's bubble. The file itself is stored on the task's `AgentArtifact` list; the client resolves full metadata (source URI, size, ...) for download or preview by calling `GetTask` on the Sobi Task API and matching `AgentArtifact.name` against `file_name`. Only `file_name` and `mime_type` appear on this wire deliberately: the backing `gs://` or Drive URI is not exposed to conversation-history readers. Same variant is used for both byte-uploaded and Drive-picked files -- \"user attached a file\" is one concept regardless of source.", + "id": "GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference", + "properties": { + "fileName": { + "description": "Required. Client-supplied filename. Unique per task within the user-supplied artifact set (UI dedupes before upload). Doubles as the artifact identifier used to look up the artifact on `Task.artifacts`. The `_name` suffix is deliberate and the AIP-122 lint is suppressed: this field is not a resource name (which is what AIP-122 reserves the bare `name` for). It is the literal filename, and it serves as the join key against `AgentArtifact.name` on the backing Sobi task -- a structural role that `title` or `display_name` would not communicate to a client picking what to send. The internal mirror (`cloud/ml/discoveryengine/schema/assistant.proto`) uses the same field name so the round-trip converter stays name-for-name.", + "type": "string" + }, + "mimeType": { + "description": "Optional. IANA MIME type. Used for icon/preview rendering.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.RecrawlUris operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata", @@ -22396,6 +22445,34 @@ "Automatic switching between search-as-you-type and standard search modes, ideal for single-API implementations (e.g., debouncing)." ], "type": "string" + }, + "fields": { + "description": "Optional. The list of fields to be used for Search As You Type scoring.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField" + }, + "type": "array" + }, + "scoreThreshold": { + "description": "Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` >= `score_threshold`.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField": { + "description": "A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.", + "id": "GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField", + "properties": { + "key": { + "description": "Required. A field key that has been indexed for Search As You Type.", + "type": "string" + }, + "weight": { + "description": "Optional. Weight for scores from this field. Defaults to 1.0 if not specified.", + "format": "double", + "type": "number" } }, "type": "object" @@ -30534,6 +30611,10 @@ "notebooklmConfig": { "$ref": "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig", "description": "Optional. Configuration for NotebookLM settings." + }, + "resourceAccessControlConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig", + "description": "Optional. Resource-level access control config for Gemini Enterprise users." } }, "type": "object" @@ -30598,6 +30679,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig": { + "description": "Controls resource-level access control for Gemini Enterprise users.", + "id": "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig", + "properties": { + "dataStoreAccessControlEnabled": { + "description": "Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaProjectServiceTerms": { "description": "Metadata about the terms of service.", "id": "GoogleCloudDiscoveryengineV1betaProjectServiceTerms", @@ -32481,6 +32573,34 @@ "Automatic switching between search-as-you-type and standard search modes, ideal for single-API implementations (e.g., debouncing)." ], "type": "string" + }, + "fields": { + "description": "Optional. The list of fields to be used for Search As You Type scoring.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField" + }, + "type": "array" + }, + "scoreThreshold": { + "description": "Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` >= `score_threshold`.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField": { + "description": "A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.", + "id": "GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField", + "properties": { + "key": { + "description": "Required. A field key that has been indexed for Search As You Type.", + "type": "string" + }, + "weight": { + "description": "Optional. Weight for scores from this field. Defaults to 1.0 if not specified.", + "format": "double", + "type": "number" } }, "type": "object" diff --git a/discovery/displayvideo-v2.json b/discovery/displayvideo-v2.json index 8e4ee0b2d7..79a4d678f8 100644 --- a/discovery/displayvideo-v2.json +++ b/discovery/displayvideo-v2.json @@ -7823,7 +7823,7 @@ } } }, - "revision": "20260902", + "revision": "20260915", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -19011,7 +19011,8 @@ "type": "string" }, "domain": { - "description": "The domain of the display URL.", + "description": "Output only. The domain of the display URL.", + "readOnly": true, "type": "string" }, "finalUrl": { diff --git a/discovery/displayvideo-v3.json b/discovery/displayvideo-v3.json index b447e98674..922608277e 100644 --- a/discovery/displayvideo-v3.json +++ b/discovery/displayvideo-v3.json @@ -8360,7 +8360,7 @@ } } }, - "revision": "20260902", + "revision": "20260915", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -22273,7 +22273,8 @@ "type": "string" }, "domain": { - "description": "The domain of the display URL.", + "description": "Output only. The domain of the display URL.", + "readOnly": true, "type": "string" }, "finalUrl": { diff --git a/discovery/displayvideo-v4.json b/discovery/displayvideo-v4.json index 28fe13db4b..0afdfde555 100644 --- a/discovery/displayvideo-v4.json +++ b/discovery/displayvideo-v4.json @@ -9618,7 +9618,7 @@ } } }, - "revision": "20260902", + "revision": "20260915", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -25920,7 +25920,8 @@ "type": "string" }, "domain": { - "description": "The domain of the display URL.", + "description": "Output only. The domain of the display URL.", + "readOnly": true, "type": "string" }, "finalUrl": { diff --git a/discovery/dlp-v2.json b/discovery/dlp-v2.json index c46a22ef0f..e59b86b78b 100644 --- a/discovery/dlp-v2.json +++ b/discovery/dlp-v2.json @@ -5274,7 +5274,7 @@ } } }, - "revision": "20260829", + "revision": "20260912", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -5394,10 +5394,10 @@ ], "enumDescriptions": [ "Invalid.", - "Full match. - Dictionary: join of Dictionary results matched the complete finding quote - Regex: all regex matches fill a finding quote from start to end - Exclude infoType: completely inside affecting infoTypes findings", - "Partial match. - Dictionary: at least one of the tokens in the finding matches - Regex: substring of the finding matches - Exclude infoType: intersects with affecting infoTypes findings", - "Inverse match. - Dictionary: no tokens in the finding match the dictionary - Regex: finding doesn't match the regex - Exclude infoType: no intersection with affecting infoTypes findings", - "Rule-specific match. The matching logic is based on the specific rule being used. This is required for rules where the matching behavior is not a simple string comparison (e.g., image containment). This matching type can only be used with the `ExcludeByImageFindings` rule. - Exclude by image findings: The matching logic is defined within `ExcludeByImageFindings` based on spatial relationships between bounding boxes." + "Full match. - Dictionary: join of Dictionary results matched the complete finding quote - Regex: all regex matches fill a finding quote from start to end - Exclude infoType: completely inside affecting infoTypes findings - Exclude by prompt: finding matches the prompt definition", + "Partial match. - Dictionary: at least one of the tokens in the finding matches - Regex: substring of the finding matches - Exclude infoType: intersects with affecting infoTypes findings - Exclude by prompt: not supported", + "Inverse match. - Dictionary: no tokens in the finding match the dictionary - Regex: finding doesn't match the regex - Exclude infoType: no intersection with affecting infoTypes findings - Exclude by prompt: finding does not match the prompt definition", + "Rule-specific match. The matching logic is based on the specific rule being used. This is required for rules where the matching behavior is not a simple string comparison (e.g., image containment). This matching type can only be used with the `ExcludeByImageFindings` rule. - Exclude by image findings: The matching logic is defined within `ExcludeByImageFindings` based on spatial relationships between bounding boxes. - Exclude by prompt: not supported" ], "type": "string" }, @@ -8989,10 +8989,10 @@ ], "enumDescriptions": [ "Invalid.", - "Full match. - Dictionary: join of Dictionary results matched the complete finding quote - Regex: all regex matches fill a finding quote from start to end - Exclude infoType: completely inside affecting infoTypes findings", - "Partial match. - Dictionary: at least one of the tokens in the finding matches - Regex: substring of the finding matches - Exclude infoType: intersects with affecting infoTypes findings", - "Inverse match. - Dictionary: no tokens in the finding match the dictionary - Regex: finding doesn't match the regex - Exclude infoType: no intersection with affecting infoTypes findings", - "Rule-specific match. The matching logic is based on the specific rule being used. This is required for rules where the matching behavior is not a simple string comparison (e.g., image containment). This matching type can only be used with the `ExcludeByImageFindings` rule. - Exclude by image findings: The matching logic is defined within `ExcludeByImageFindings` based on spatial relationships between bounding boxes." + "Full match. - Dictionary: join of Dictionary results matched the complete finding quote - Regex: all regex matches fill a finding quote from start to end - Exclude infoType: completely inside affecting infoTypes findings - Exclude by prompt: finding matches the prompt definition", + "Partial match. - Dictionary: at least one of the tokens in the finding matches - Regex: substring of the finding matches - Exclude infoType: intersects with affecting infoTypes findings - Exclude by prompt: not supported", + "Inverse match. - Dictionary: no tokens in the finding match the dictionary - Regex: finding doesn't match the regex - Exclude infoType: no intersection with affecting infoTypes findings - Exclude by prompt: finding does not match the prompt definition", + "Rule-specific match. The matching logic is based on the specific rule being used. This is required for rules where the matching behavior is not a simple string comparison (e.g., image containment). This matching type can only be used with the `ExcludeByImageFindings` rule. - Exclude by image findings: The matching logic is defined within `ExcludeByImageFindings` based on spatial relationships between bounding boxes. - Exclude by prompt: not supported" ], "type": "string" }, diff --git a/discovery/dns-v1.json b/discovery/dns-v1.json index 106117549a..8c6e239c08 100644 --- a/discovery/dns-v1.json +++ b/discovery/dns-v1.json @@ -1043,11 +1043,6 @@ "project" ], "parameters": { - "clientOperationId": { - "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - "location": "query", - "type": "string" - }, "project": { "description": "Identifies the project addressed by this request.", "location": "path", @@ -1829,7 +1824,7 @@ } } }, - "revision": "20260714", + "revision": "20260915", "rootUrl": "https://dns.googleapis.com/", "schemas": { "Change": { @@ -1860,6 +1855,7 @@ }, "kind": { "default": "dns#change", + "readOnly": true, "type": "string" }, "startTime": { @@ -1894,7 +1890,8 @@ }, "kind": { "default": "dns#changesListResponse", - "description": "Type of resource.", + "description": "Output only. Type of resource.", + "readOnly": true, "type": "string" }, "nextPageToken": { @@ -1961,6 +1958,7 @@ }, "kind": { "default": "dns#dnsKey", + "readOnly": true, "type": "string" }, "publicKey": { @@ -2047,6 +2045,7 @@ }, "kind": { "default": "dns#dnsKeySpec", + "readOnly": true, "type": "string" } }, @@ -2065,7 +2064,8 @@ }, "kind": { "default": "dns#dnsKeysListResponse", - "description": "Type of resource.", + "description": "Output only. Type of resource.", + "readOnly": true, "type": "string" }, "nextPageToken": { @@ -2337,6 +2337,7 @@ }, "kind": { "default": "dns#managedZone", + "readOnly": true, "type": "string" }, "labels": { @@ -2402,6 +2403,7 @@ }, "kind": { "default": "dns#managedZoneCloudLoggingConfig", + "readOnly": true, "type": "string" } }, @@ -2419,6 +2421,7 @@ }, "kind": { "default": "dns#managedZoneDnsSecConfig", + "readOnly": true, "type": "string" }, "nonExistence": { @@ -2455,6 +2458,7 @@ "properties": { "kind": { "default": "dns#managedZoneForwardingConfig", + "readOnly": true, "type": "string" }, "targetNameServers": { @@ -2496,6 +2500,7 @@ }, "kind": { "default": "dns#managedZoneForwardingConfigNameServerTarget", + "readOnly": true, "type": "string" } }, @@ -2506,7 +2511,8 @@ "properties": { "kind": { "default": "dns#managedZoneOperationsListResponse", - "description": "Type of resource.", + "description": "Output only. Type of resource.", + "readOnly": true, "type": "string" }, "nextPageToken": { @@ -2528,6 +2534,7 @@ "properties": { "kind": { "default": "dns#managedZonePeeringConfig", + "readOnly": true, "type": "string" }, "targetNetwork": { @@ -2546,6 +2553,7 @@ }, "kind": { "default": "dns#managedZonePeeringConfigTargetNetwork", + "readOnly": true, "type": "string" }, "networkUrl": { @@ -2567,6 +2575,7 @@ }, "kind": { "default": "dns#managedZonePrivateVisibilityConfig", + "readOnly": true, "type": "string" }, "networks": { @@ -2588,6 +2597,7 @@ }, "kind": { "default": "dns#managedZonePrivateVisibilityConfigGKECluster", + "readOnly": true, "type": "string" } }, @@ -2598,6 +2608,7 @@ "properties": { "kind": { "default": "dns#managedZonePrivateVisibilityConfigNetwork", + "readOnly": true, "type": "string" }, "networkUrl": { @@ -2612,6 +2623,7 @@ "properties": { "kind": { "default": "dns#managedZoneReverseLookupConfig", + "readOnly": true, "type": "string" } }, @@ -2623,6 +2635,7 @@ "properties": { "kind": { "default": "dns#managedZoneServiceDirectoryConfig", + "readOnly": true, "type": "string" }, "namespace": { @@ -2641,6 +2654,7 @@ }, "kind": { "default": "dns#managedZoneServiceDirectoryConfigNamespace", + "readOnly": true, "type": "string" }, "namespaceUrl": { @@ -2655,7 +2669,8 @@ "properties": { "kind": { "default": "dns#managedZonesListResponse", - "description": "Type of resource.", + "description": "Output only. Type of resource.", + "readOnly": true, "type": "string" }, "managedZones": { @@ -2686,6 +2701,7 @@ }, "kind": { "default": "dns#operation", + "readOnly": true, "type": "string" }, "startTime": { @@ -2752,7 +2768,8 @@ "properties": { "kind": { "default": "dns#policiesListResponse", - "description": "Type of resource.", + "description": "Output only. Type of resource.", + "readOnly": true, "type": "string" }, "nextPageToken": { @@ -2818,6 +2835,7 @@ }, "kind": { "default": "dns#policy", + "readOnly": true, "type": "string" }, "name": { @@ -2839,6 +2857,7 @@ "properties": { "kind": { "default": "dns#policyAlternativeNameServerConfig", + "readOnly": true, "type": "string" }, "targetNameServers": { @@ -2876,6 +2895,7 @@ }, "kind": { "default": "dns#policyAlternativeNameServerConfigTargetNameServer", + "readOnly": true, "type": "string" } }, @@ -2887,6 +2907,7 @@ "properties": { "kind": { "default": "dns#policyDns64Config", + "readOnly": true, "type": "string" }, "scope": { @@ -2905,6 +2926,7 @@ }, "kind": { "default": "dns#policyDns64ConfigScope", + "readOnly": true, "type": "string" } }, @@ -2915,6 +2937,7 @@ "properties": { "kind": { "default": "dns#policyNetwork", + "readOnly": true, "type": "string" }, "networkUrl": { @@ -2934,6 +2957,7 @@ }, "kind": { "default": "dns#project", + "readOnly": true, "type": "string" }, "number": { @@ -2983,6 +3007,7 @@ }, "kind": { "default": "dns#quota", + "readOnly": true, "type": "string" }, "managedZones": { @@ -3098,6 +3123,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicy", + "readOnly": true, "type": "string" }, "primaryBackup": { @@ -3126,6 +3152,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicyGeoPolicy", + "readOnly": true, "type": "string" } }, @@ -3141,6 +3168,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", + "readOnly": true, "type": "string" }, "location": { @@ -3208,6 +3236,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicyLoadBalancerTarget", + "readOnly": true, "type": "string" }, "loadBalancerType": { @@ -3255,6 +3284,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicyPrimaryBackupPolicy", + "readOnly": true, "type": "string" }, "primaryTargets": { @@ -3281,6 +3311,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicyWrrPolicy", + "readOnly": true, "type": "string" } }, @@ -3296,6 +3327,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", + "readOnly": true, "type": "string" }, "rrdatas": { @@ -3325,6 +3357,7 @@ "properties": { "kind": { "default": "dns#resourceRecordSet", + "readOnly": true, "type": "string" }, "name": { @@ -3343,7 +3376,6 @@ "type": "array" }, "signatureRrdatas": { - "description": "As defined in RFC 4034 (section 3.2).", "items": { "type": "string" }, @@ -3371,7 +3403,8 @@ "properties": { "kind": { "default": "dns#resourceRecordSetsListResponse", - "description": "Type of resource.", + "description": "Output only. Type of resource.", + "readOnly": true, "type": "string" }, "nextPageToken": { @@ -3445,6 +3478,7 @@ }, "kind": { "default": "dns#responsePolicy", + "readOnly": true, "type": "string" }, "labels": { @@ -3477,6 +3511,7 @@ }, "kind": { "default": "dns#responsePolicyGKECluster", + "readOnly": true, "type": "string" } }, @@ -3487,6 +3522,7 @@ "properties": { "kind": { "default": "dns#responsePolicyNetwork", + "readOnly": true, "type": "string" }, "networkUrl": { @@ -3518,6 +3554,7 @@ }, "kind": { "default": "dns#responsePolicyRule", + "readOnly": true, "type": "string" }, "localData": { diff --git a/discovery/dns-v1beta2.json b/discovery/dns-v1beta2.json index 9caa56b976..077091dd82 100644 --- a/discovery/dns-v1beta2.json +++ b/discovery/dns-v1beta2.json @@ -1043,11 +1043,6 @@ "project" ], "parameters": { - "clientOperationId": { - "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - "location": "query", - "type": "string" - }, "project": { "description": "Identifies the project addressed by this request.", "location": "path", @@ -1826,7 +1821,7 @@ } } }, - "revision": "20260714", + "revision": "20260915", "rootUrl": "https://dns.googleapis.com/", "schemas": { "Change": { @@ -1857,6 +1852,7 @@ }, "kind": { "default": "dns#change", + "readOnly": true, "type": "string" }, "startTime": { @@ -1891,7 +1887,8 @@ }, "kind": { "default": "dns#changesListResponse", - "description": "Type of resource.", + "description": "Output only. Type of resource.", + "readOnly": true, "type": "string" }, "nextPageToken": { @@ -1958,6 +1955,7 @@ }, "kind": { "default": "dns#dnsKey", + "readOnly": true, "type": "string" }, "publicKey": { @@ -2044,6 +2042,7 @@ }, "kind": { "default": "dns#dnsKeySpec", + "readOnly": true, "type": "string" } }, @@ -2062,7 +2061,8 @@ }, "kind": { "default": "dns#dnsKeysListResponse", - "description": "Type of resource.", + "description": "Output only. Type of resource.", + "readOnly": true, "type": "string" }, "nextPageToken": { @@ -2334,6 +2334,7 @@ }, "kind": { "default": "dns#managedZone", + "readOnly": true, "type": "string" }, "labels": { @@ -2399,6 +2400,7 @@ }, "kind": { "default": "dns#managedZoneCloudLoggingConfig", + "readOnly": true, "type": "string" } }, @@ -2416,6 +2418,7 @@ }, "kind": { "default": "dns#managedZoneDnsSecConfig", + "readOnly": true, "type": "string" }, "nonExistence": { @@ -2452,6 +2455,7 @@ "properties": { "kind": { "default": "dns#managedZoneForwardingConfig", + "readOnly": true, "type": "string" }, "targetNameServers": { @@ -2493,6 +2497,7 @@ }, "kind": { "default": "dns#managedZoneForwardingConfigNameServerTarget", + "readOnly": true, "type": "string" } }, @@ -2503,7 +2508,8 @@ "properties": { "kind": { "default": "dns#managedZoneOperationsListResponse", - "description": "Type of resource.", + "description": "Output only. Type of resource.", + "readOnly": true, "type": "string" }, "nextPageToken": { @@ -2525,6 +2531,7 @@ "properties": { "kind": { "default": "dns#managedZonePeeringConfig", + "readOnly": true, "type": "string" }, "targetNetwork": { @@ -2543,6 +2550,7 @@ }, "kind": { "default": "dns#managedZonePeeringConfigTargetNetwork", + "readOnly": true, "type": "string" }, "networkUrl": { @@ -2564,6 +2572,7 @@ }, "kind": { "default": "dns#managedZonePrivateVisibilityConfig", + "readOnly": true, "type": "string" }, "networks": { @@ -2585,6 +2594,7 @@ }, "kind": { "default": "dns#managedZonePrivateVisibilityConfigGKECluster", + "readOnly": true, "type": "string" } }, @@ -2595,6 +2605,7 @@ "properties": { "kind": { "default": "dns#managedZonePrivateVisibilityConfigNetwork", + "readOnly": true, "type": "string" }, "networkUrl": { @@ -2609,6 +2620,7 @@ "properties": { "kind": { "default": "dns#managedZoneReverseLookupConfig", + "readOnly": true, "type": "string" } }, @@ -2620,6 +2632,7 @@ "properties": { "kind": { "default": "dns#managedZoneServiceDirectoryConfig", + "readOnly": true, "type": "string" }, "namespace": { @@ -2638,6 +2651,7 @@ }, "kind": { "default": "dns#managedZoneServiceDirectoryConfigNamespace", + "readOnly": true, "type": "string" }, "namespaceUrl": { @@ -2652,7 +2666,8 @@ "properties": { "kind": { "default": "dns#managedZonesListResponse", - "description": "Type of resource.", + "description": "Output only. Type of resource.", + "readOnly": true, "type": "string" }, "managedZones": { @@ -2683,6 +2698,7 @@ }, "kind": { "default": "dns#operation", + "readOnly": true, "type": "string" }, "startTime": { @@ -2749,7 +2765,8 @@ "properties": { "kind": { "default": "dns#policiesListResponse", - "description": "Type of resource.", + "description": "Output only. Type of resource.", + "readOnly": true, "type": "string" }, "nextPageToken": { @@ -2815,6 +2832,7 @@ }, "kind": { "default": "dns#policy", + "readOnly": true, "type": "string" }, "name": { @@ -2836,6 +2854,7 @@ "properties": { "kind": { "default": "dns#policyAlternativeNameServerConfig", + "readOnly": true, "type": "string" }, "targetNameServers": { @@ -2873,6 +2892,7 @@ }, "kind": { "default": "dns#policyAlternativeNameServerConfigTargetNameServer", + "readOnly": true, "type": "string" } }, @@ -2884,6 +2904,7 @@ "properties": { "kind": { "default": "dns#policyDns64Config", + "readOnly": true, "type": "string" }, "scope": { @@ -2902,6 +2923,7 @@ }, "kind": { "default": "dns#policyDns64ConfigScope", + "readOnly": true, "type": "string" } }, @@ -2912,6 +2934,7 @@ "properties": { "kind": { "default": "dns#policyNetwork", + "readOnly": true, "type": "string" }, "networkUrl": { @@ -2931,6 +2954,7 @@ }, "kind": { "default": "dns#project", + "readOnly": true, "type": "string" }, "number": { @@ -2980,6 +3004,7 @@ }, "kind": { "default": "dns#quota", + "readOnly": true, "type": "string" }, "managedZones": { @@ -3099,6 +3124,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicy", + "readOnly": true, "type": "string" }, "primaryBackup": { @@ -3131,6 +3157,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicyGeoPolicy", + "readOnly": true, "type": "string" } }, @@ -3146,6 +3173,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", + "readOnly": true, "type": "string" }, "location": { @@ -3213,6 +3241,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicyLoadBalancerTarget", + "readOnly": true, "type": "string" }, "loadBalancerType": { @@ -3260,6 +3289,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicyPrimaryBackupPolicy", + "readOnly": true, "type": "string" }, "primaryTargets": { @@ -3286,6 +3316,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicyWrrPolicy", + "readOnly": true, "type": "string" } }, @@ -3301,6 +3332,7 @@ }, "kind": { "default": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", + "readOnly": true, "type": "string" }, "rrdatas": { @@ -3330,6 +3362,7 @@ "properties": { "kind": { "default": "dns#resourceRecordSet", + "readOnly": true, "type": "string" }, "name": { @@ -3348,7 +3381,6 @@ "type": "array" }, "signatureRrdatas": { - "description": "As defined in RFC 4034 (section 3.2).", "items": { "type": "string" }, @@ -3371,7 +3403,8 @@ "properties": { "kind": { "default": "dns#resourceRecordSetsListResponse", - "description": "Type of resource.", + "description": "Output only. Type of resource.", + "readOnly": true, "type": "string" }, "nextPageToken": { @@ -3445,6 +3478,7 @@ }, "kind": { "default": "dns#responsePolicy", + "readOnly": true, "type": "string" }, "labels": { @@ -3477,6 +3511,7 @@ }, "kind": { "default": "dns#responsePolicyGKECluster", + "readOnly": true, "type": "string" } }, @@ -3487,6 +3522,7 @@ "properties": { "kind": { "default": "dns#responsePolicyNetwork", + "readOnly": true, "type": "string" }, "networkUrl": { @@ -3518,6 +3554,7 @@ }, "kind": { "default": "dns#responsePolicyRule", + "readOnly": true, "type": "string" }, "localData": { diff --git a/discovery/drive-v3.json b/discovery/drive-v3.json index 900fcb7e07..d542c17f73 100644 --- a/discovery/drive-v3.json +++ b/discovery/drive-v3.json @@ -1346,7 +1346,7 @@ "parameters": { "copyComments": { "default": "false", - "description": "Whether to copy the comments associated with the file.", + "description": "Whether to copy the open (unresolved) comments associated with the file.", "location": "query", "type": "boolean" }, @@ -3044,7 +3044,7 @@ } } }, - "revision": "20260901", + "revision": "20260913", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { diff --git a/discovery/fcm-v1.json b/discovery/fcm-v1.json index f3bc23c1f5..abf67fbd52 100644 --- a/discovery/fcm-v1.json +++ b/discovery/fcm-v1.json @@ -113,7 +113,7 @@ "messages": { "methods": { "send": { - "description": "Send a message to specified target (a registration token, topic or condition).", + "description": "Send a message to specified target (a [Firebase Installation ID (FID)](/docs/cloud-messaging/android/get-started#access-firebase-installation-id), registration token, topic, or condition).", "flatPath": "v1/projects/{projectsId}/messages:send", "httpMethod": "POST", "id": "fcm.projects.messages.send", @@ -142,11 +142,181 @@ ] } } + }, + "registrations": { + "resources": { + "topicSubscriptions": { + "methods": { + "create": { + "description": "Creates a TopicSubscription. Subscribes an app installation instance (by registration_id, either FID or FCM Token) to a topicSubscription. Returns a TopicSubscription if it is created successfully. If the subscription already exists, returns error of ALREADY_EXISTS.", + "flatPath": "v1/projects/{projectsId}/registrations/{registrationsId}/topicSubscriptions", + "httpMethod": "POST", + "id": "fcm.projects.registrations.topicSubscriptions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where this subscription will be created. Format: projects/{project}/registrations/{registration} The {registration} part can be an FID or an FCM Token.", + "location": "path", + "pattern": "^projects/[^/]+/registrations/[^/]+$", + "required": true, + "type": "string" + }, + "topicName": { + "description": "Required. The ID to use for the subscription, which is the topic name. This will become the last segment of the TopicSubscription's resource name. Topic names match the pattern of \"[a-zA-Z0-9-_.~%]{1,900}\".", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/topicSubscriptions", + "request": { + "$ref": "TopicSubscription" + }, + "response": { + "$ref": "TopicSubscription" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase.messaging" + ] + }, + "delete": { + "description": "Deletes a TopicSubscription.", + "flatPath": "v1/projects/{projectsId}/registrations/{registrationsId}/topicSubscriptions/{topicSubscriptionsId}", + "httpMethod": "DELETE", + "id": "fcm.projects.registrations.topicSubscriptions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "Optional. If set to true, and the topic subscription is not found, the request will succeed but no action will be taken on the server.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the topic subscription to delete. Format: projects/{project}/registrations/{registration}/topicSubscriptions/{topicSubscription}", + "location": "path", + "pattern": "^projects/[^/]+/registrations/[^/]+/topicSubscriptions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase.messaging" + ] + }, + "get": { + "description": "Gets a TopicSubscription.", + "flatPath": "v1/projects/{projectsId}/registrations/{registrationsId}/topicSubscriptions/{topicSubscriptionsId}", + "httpMethod": "GET", + "id": "fcm.projects.registrations.topicSubscriptions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the topic subscription to retrieve. Format: projects/{project}/registrations/{registration}/topicSubscriptions/{topicSubscription}", + "location": "path", + "pattern": "^projects/[^/]+/registrations/[^/]+/topicSubscriptions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "TopicSubscription" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase.messaging" + ] + }, + "list": { + "description": "Lists TopicSubscriptions for a given app instance.", + "flatPath": "v1/projects/{projectsId}/registrations/{registrationsId}/topicSubscriptions", + "httpMethod": "GET", + "id": "fcm.projects.registrations.topicSubscriptions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of subscriptions to return. The service may return fewer than this value. If unspecified, at most 1000 subscriptions will be returned. The maximum value is 2000; values above 2000 will be coerced to 2000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListTopicSubscriptions` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource, which owns this collection of subscriptions. Format: projects/{project}/registrations/{registration} The {registration} part can be an FID or an FCM Token.", + "location": "path", + "pattern": "^projects/[^/]+/registrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/topicSubscriptions", + "response": { + "$ref": "ListTopicSubscriptionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase.messaging" + ] + }, + "patch": { + "description": "Updates a TopicSubscription. Subscribes an app installation instance by registration_id, either FID or FCM Token, to a topicSubscription. Returns an existing TopicSubscription or creates a new one if it does not exist.", + "flatPath": "v1/projects/{projectsId}/registrations/{registrationsId}/topicSubscriptions/{topicSubscriptionsId}", + "httpMethod": "PATCH", + "id": "fcm.projects.registrations.topicSubscriptions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "Optional. If set to true, and the topic subscription is not found, a new topic subscription will be created.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Identifier. The resource name of the subscription. Format: projects/{project}/registrations/{registration}/topicSubscriptions/{topicSubscription} The {registration} part contains the registration ID (e.g., FID).", + "location": "path", + "pattern": "^projects/[^/]+/registrations/[^/]+/topicSubscriptions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "TopicSubscription" + }, + "response": { + "$ref": "TopicSubscription" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase.messaging" + ] + } + } + } + } } } } }, - "revision": "20260619", + "revision": "20260911", "rootUrl": "https://fcm.googleapis.com/", "schemas": { "AndroidConfig": { @@ -459,6 +629,12 @@ }, "type": "object" }, + "Empty": { + "description": "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); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, "FcmOptions": { "description": "Platform independent options for features provided by the FCM SDKs.", "id": "FcmOptions", @@ -491,6 +667,24 @@ }, "type": "object" }, + "ListTopicSubscriptionsResponse": { + "description": "Response message for ListTopicSubscriptions.", + "id": "ListTopicSubscriptionsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "topicSubscriptions": { + "description": "The topic subscriptions for the instance.", + "items": { + "$ref": "TopicSubscription" + }, + "type": "array" + } + }, + "type": "object" + }, "Message": { "description": "Message to send by Firebase Cloud Messaging Service.", "id": "Message", @@ -519,7 +713,7 @@ "description": "Input only. Template for FCM SDK feature options to use across all platforms." }, "fid": { - "description": "Firebase Installation ID to send a message to.", + "description": "[Firebase Installation ID (FID)](/docs/cloud-messaging/android/get-started#access-firebase-installation-id) to send a message to.", "type": "string" }, "name": { @@ -532,7 +726,7 @@ }, "token": { "deprecated": true, - "description": "Deprecated: Use `fid` instead. Registration token to send a message to. During the transition period, this field also accepts a Firebase Installation ID (FID).", + "description": "Deprecated: Use `fid` instead. During the transition period, this field also accepts a Firebase Installation ID (FID). Registration token to send a message to.", "type": "string" }, "topic": { @@ -580,6 +774,28 @@ }, "type": "object" }, + "TopicSubscription": { + "description": "Represents a subscription of a single app instance to a single FCM topic.", + "id": "TopicSubscription", + "properties": { + "createTime": { + "description": "Output only. Time when the subscription was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the subscription. Format: projects/{project}/registrations/{registration}/topicSubscriptions/{topicSubscription} The {registration} part contains the registration ID (e.g., FID).", + "type": "string" + }, + "topicName": { + "description": "Output only. The ID of the TopicSubscription, which is the topic name. This corresponds to the {topicSubscription} segment in the resource name. Topic names match the pattern of \"[a-zA-Z0-9-_.~%]{1,900}\".", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "WebpushConfig": { "description": "[Webpush protocol](https://tools.ietf.org/html/rfc8030) options.", "id": "WebpushConfig", diff --git a/discovery/firebaseml-v2beta.json b/discovery/firebaseml-v2beta.json index f4085925c6..bab317eee6 100644 --- a/discovery/firebaseml-v2beta.json +++ b/discovery/firebaseml-v2beta.json @@ -206,7 +206,7 @@ } } }, - "revision": "20260830", + "revision": "20260916", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -372,6 +372,20 @@ "deprecated": true, "description": "Optional. Deprecated: Use top-level `language_codes` instead. Specifies one or more languages in the audio." }, + "mode": { + "description": "Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`.", + "enum": [ + "MODE_UNSPECIFIED", + "VERBATIM", + "SMART" + ], + "enumDescriptions": [ + "Unspecified transcription mode.", + "Verbatim transcription mode.", + "Smart transcription mode." + ], + "type": "string" + }, "wordTimestamp": { "description": "Optional. Configures word-level timestamp generation.", "type": "boolean" diff --git a/discovery/ftp-v1.json b/discovery/ftp-v1.json index 1b5f4c9a2c..afb790662d 100644 --- a/discovery/ftp-v1.json +++ b/discovery/ftp-v1.json @@ -788,7 +788,7 @@ } } }, - "revision": "20260805", + "revision": "20260909", "rootUrl": "https://ftp.googleapis.com/", "schemas": { "AllowedConsumer": { @@ -1163,6 +1163,16 @@ "description": "Identifier. name of resource", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "serviceAgent": { "description": "Output only. Service agent used to access the customer bucket.", "readOnly": true, diff --git a/discovery/ftp-v1alpha.json b/discovery/ftp-v1alpha.json index f96b4af81b..8d98b6cbf7 100644 --- a/discovery/ftp-v1alpha.json +++ b/discovery/ftp-v1alpha.json @@ -788,7 +788,7 @@ } } }, - "revision": "20260805", + "revision": "20260909", "rootUrl": "https://ftp.googleapis.com/", "schemas": { "AllowedConsumer": { @@ -1163,6 +1163,16 @@ "description": "Identifier. name of resource", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "serviceAgent": { "description": "Output only. Service agent used to access the customer bucket.", "readOnly": true, diff --git a/discovery/gkebackup-v1.json b/discovery/gkebackup-v1.json index f29b1bbbc8..28b63a115e 100644 --- a/discovery/gkebackup-v1.json +++ b/discovery/gkebackup-v1.json @@ -2560,7 +2560,7 @@ } } }, - "revision": "20260826", + "revision": "20260909", "rootUrl": "https://gkebackup.googleapis.com/", "schemas": { "AuditConfig": { @@ -2697,13 +2697,17 @@ "type": "object" }, "BDRBackupRestoreJobLog": { - "description": "Log entry for Backup and Restore Job for resources using BackupPlan based protection. Next Id: 27", + "description": "Log entry for Backup and Restore Job for resources using BackupPlan based protection. Next Id: 28", "id": "BDRBackupRestoreJobLog", "properties": { "autoProtectionPolicy": { "description": "The auto-protection policy that created the backup.", "type": "string" }, + "autoProtectionPolicyBinding": { + "description": "The auto-protection policy binding that created the backup.", + "type": "string" + }, "backupConsistencyTime": { "description": "Backup consistency time.", "format": "google-datetime", diff --git a/discovery/gkehub-v1.json b/discovery/gkehub-v1.json index 692aafe4f9..ed5e15de1a 100644 --- a/discovery/gkehub-v1.json +++ b/discovery/gkehub-v1.json @@ -2596,7 +2596,7 @@ } } }, - "revision": "20260817", + "revision": "20260903", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -6819,7 +6819,7 @@ "type": "object" }, "Rollout": { - "description": "Rollout contains the Rollout metadata and configuration. Next ID: 31", + "description": "Rollout contains the Rollout metadata and configuration. Next ID: 32", "id": "Rollout", "properties": { "completeTime": { diff --git a/discovery/gkehub-v1alpha.json b/discovery/gkehub-v1alpha.json index a5309b918b..8bcf9fdb11 100644 --- a/discovery/gkehub-v1alpha.json +++ b/discovery/gkehub-v1alpha.json @@ -2740,7 +2740,7 @@ } } }, - "revision": "20260817", + "revision": "20260903", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -7332,7 +7332,7 @@ "type": "object" }, "Rollout": { - "description": "Rollout contains the Rollout metadata and configuration. Next ID: 31", + "description": "Rollout contains the Rollout metadata and configuration. Next ID: 32", "id": "Rollout", "properties": { "completeTime": { diff --git a/discovery/gkehub-v1beta.json b/discovery/gkehub-v1beta.json index a6ef28bf23..afb8aea3ce 100644 --- a/discovery/gkehub-v1beta.json +++ b/discovery/gkehub-v1beta.json @@ -2596,7 +2596,7 @@ } } }, - "revision": "20260817", + "revision": "20260903", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -6945,7 +6945,7 @@ "type": "object" }, "Rollout": { - "description": "Rollout contains the Rollout metadata and configuration. Next ID: 31", + "description": "Rollout contains the Rollout metadata and configuration. Next ID: 32", "id": "Rollout", "properties": { "completeTime": { diff --git a/discovery/iam-v1.json b/discovery/iam-v1.json index 3661c51bdc..3a7ea1b094 100644 --- a/discovery/iam-v1.json +++ b/discovery/iam-v1.json @@ -4341,7 +4341,7 @@ } } }, - "revision": "20260904", + "revision": "20260911", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AccessRestrictions": { @@ -5352,7 +5352,7 @@ "id": "OauthClient", "properties": { "allowedGrantTypes": { - "description": "Required. The list of OAuth grant types is allowed for the OauthClient.", + "description": "Optional. The list of OAuth grant types is allowed for the OauthClient.", "items": { "enum": [ "GRANT_TYPE_UNSPECIFIED", diff --git a/discovery/index.json b/discovery/index.json index 98eb4f279e..b0a6501288 100644 --- a/discovery/index.json +++ b/discovery/index.json @@ -302,7 +302,7 @@ "version": "v1" }, { - "description": "agentidentitycredentials.googleapis.com API.", + "description": "The Agent Identity Credentials API retrieves and finalizes authorization credentials for auth providers.", "discoveryRestUrl": "https://agentidentitycredentials.googleapis.com/$discovery/rest?version=v1alpha", "documentationLink": "https://cloud.google.com/iam/docs/", "icons": { @@ -317,7 +317,7 @@ "version": "v1alpha" }, { - "description": "agentidentitycredentials.googleapis.com API.", + "description": "The Agent Identity Credentials API retrieves and finalizes authorization credentials for auth providers.", "discoveryRestUrl": "https://agentidentitycredentials.googleapis.com/$discovery/rest?version=v1beta", "documentationLink": "https://cloud.google.com/iam/docs/", "icons": { @@ -332,7 +332,7 @@ "version": "v1beta" }, { - "description": "agentidentitycredentials.googleapis.com API.", + "description": "The Agent Identity Credentials API retrieves and finalizes authorization credentials for auth providers.", "discoveryRestUrl": "https://agentidentitycredentials.googleapis.com/$discovery/rest?version=v1", "documentationLink": "https://cloud.google.com/iam/docs/", "icons": { @@ -5919,7 +5919,7 @@ { "description": "", "discoveryRestUrl": "https://policyanalyzer.googleapis.com/$discovery/rest?version=v1beta1", - "documentationLink": "https://www.google.com", + "documentationLink": "https://cloud.google.com/policy-intelligence/docs/overview", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" @@ -5934,7 +5934,7 @@ { "description": "", "discoveryRestUrl": "https://policyanalyzer.googleapis.com/$discovery/rest?version=v1", - "documentationLink": "https://www.google.com", + "documentationLink": "https://cloud.google.com/policy-intelligence/docs/overview", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" diff --git a/discovery/logging-v2.json b/discovery/logging-v2.json index f1397c5668..3474479f44 100644 --- a/discovery/logging-v2.json +++ b/discovery/logging-v2.json @@ -9147,7 +9147,7 @@ } } }, - "revision": "20260706", + "revision": "20260911", "rootUrl": "https://logging.googleapis.com/", "schemas": { "AppHub": { @@ -12023,7 +12023,7 @@ "type": "object" }, "logName": { - "description": "Optional. A default log resource name that is assigned to all log entries in entries that do not specify a value for log_name: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example: \"projects/my-project-id/logs/syslog\" \"organizations/123/logs/cloudaudit.googleapis.com%2Factivity\" The permission logging.logEntries.create is needed on each project, organization, billing account, or folder that is receiving new log entries, whether the resource is specified in logName or in an individual log entry.", + "description": "Optional. A default log resource name that is assigned to all log entries in entries that do not specify a value for log_name: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example: \"projects/my-project-id/logs/syslog\" \"organizations/123/logs/cloudaudit.googleapis.com%2Factivity\" The permission logging.logEntries.create is needed on each project, organization, billing account, or folder that is receiving new log entries, whether the resource is specified in logName or in an individual log entry.Only platform services can write logs to billing accounts.", "type": "string" }, "partialSuccess": { diff --git a/discovery/marketingplatformadmin-v1alpha.json b/discovery/marketingplatformadmin-v1alpha.json index eaa7499aff..ae9c476205 100644 --- a/discovery/marketingplatformadmin-v1alpha.json +++ b/discovery/marketingplatformadmin-v1alpha.json @@ -224,6 +224,135 @@ } }, "resources": { + "adminAccessBindings": { + "methods": { + "create": { + "description": "Creates an admin access binding in the specified GMP organization.", + "flatPath": "v1alpha/organizations/{organizationsId}/adminAccessBindings", + "httpMethod": "POST", + "id": "marketingplatformadmin.organizations.adminAccessBindings.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent organization, which owns this Admin Access Binding. Format: organizations/{org_id}", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/adminAccessBindings", + "request": { + "$ref": "AdminAccessBinding" + }, + "response": { + "$ref": "AdminAccessBinding" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + }, + "get": { + "description": "Looks up a single admin access binding.", + "flatPath": "v1alpha/organizations/{organizationsId}/adminAccessBindings/{adminAccessBindingsId}", + "httpMethod": "GET", + "id": "marketingplatformadmin.organizations.adminAccessBindings.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the AdminAccessBinding to retrieve. Format: organizations/{org_id}/adminAccessBindings/{admin_access_binding_id}", + "location": "path", + "pattern": "^organizations/[^/]+/adminAccessBindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "AdminAccessBinding" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.read", + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + }, + "list": { + "description": "Returns a list of admin access bindings in the specified GMP organization.", + "flatPath": "v1alpha/organizations/{organizationsId}/adminAccessBindings", + "httpMethod": "GET", + "id": "marketingplatformadmin.organizations.adminAccessBindings.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of Admin Access Bindings to return in one call. The service may return fewer than this value. If unspecified, at most 50 Admin Access Bindings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous ListAdminAccessBindings call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAdminAccessBindings` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent organization, which owns this collection of Admin Access Bindings. Format: organizations/{org_id}", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/adminAccessBindings", + "response": { + "$ref": "ListAdminAccessBindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.read", + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + }, + "patch": { + "description": "Updates an admin access binding in the specified GMP organization.", + "flatPath": "v1alpha/organizations/{organizationsId}/adminAccessBindings/{adminAccessBindingsId}", + "httpMethod": "PATCH", + "id": "marketingplatformadmin.organizations.adminAccessBindings.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of this AdminAccessBinding. Format: organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} Example: \"organizations/123abc/adminAccessBindings/456def\"", + "location": "path", + "pattern": "^organizations/[^/]+/adminAccessBindings/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to update. Field names must be in snake case (for example, \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "AdminAccessBinding" + }, + "response": { + "$ref": "AdminAccessBinding" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + } + } + }, "analyticsAccountLinks": { "methods": { "create": { @@ -345,13 +474,361 @@ ] } } + }, + "userGroups": { + "methods": { + "create": { + "description": "Creates a user group in the specified GMP organization.", + "flatPath": "v1alpha/organizations/{organizationsId}/userGroups", + "httpMethod": "POST", + "id": "marketingplatformadmin.organizations.userGroups.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where this UserGroup will be created. Format: organizations/{org_id}", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/userGroups", + "request": { + "$ref": "UserGroup" + }, + "response": { + "$ref": "UserGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + }, + "delete": { + "description": "Deletes a user group in the specified GMP organization.", + "flatPath": "v1alpha/organizations/{organizationsId}/userGroups/{userGroupsId}", + "httpMethod": "DELETE", + "id": "marketingplatformadmin.organizations.userGroups.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the user group to delete. Format: organizations/{org_id}/userGroups/{user_group_id}", + "location": "path", + "pattern": "^organizations/[^/]+/userGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + }, + "get": { + "description": "Looks up a single user group.", + "flatPath": "v1alpha/organizations/{organizationsId}/userGroups/{userGroupsId}", + "httpMethod": "GET", + "id": "marketingplatformadmin.organizations.userGroups.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the UserGroup to retrieve. Format: organizations/{org_id}/userGroups/{user_group_id}", + "location": "path", + "pattern": "^organizations/[^/]+/userGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "UserGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.read", + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + }, + "list": { + "description": "Returns a list of user groups in the specified GMP organization.", + "flatPath": "v1alpha/organizations/{organizationsId}/userGroups", + "httpMethod": "GET", + "id": "marketingplatformadmin.organizations.userGroups.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of user groups to return in one call. The service may return fewer than this value. If unspecified, at most 50 user groups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous ListUserGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUserGroups` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent org where this UserGroup will be listed. Format: organizations/{org_id}", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/userGroups", + "response": { + "$ref": "ListUserGroupsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.read", + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + }, + "patch": { + "description": "Updates a user group in the specified GMP organization.", + "flatPath": "v1alpha/organizations/{organizationsId}/userGroups/{userGroupsId}", + "httpMethod": "PATCH", + "id": "marketingplatformadmin.organizations.userGroups.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Resource name of this UserGroup. Format: organizations/{org_id}/userGroups/{user_group_id} Example: \"organizations/123abc/userGroups/456def\"", + "location": "path", + "pattern": "^organizations/[^/]+/userGroups/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to update. Field names must be in snake case (for example, \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "UserGroup" + }, + "response": { + "$ref": "UserGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + } + }, + "resources": { + "members": { + "methods": { + "create": { + "description": "Adds a member to the specified GMP user group.", + "flatPath": "v1alpha/organizations/{organizationsId}/userGroups/{userGroupsId}/members", + "httpMethod": "POST", + "id": "marketingplatformadmin.organizations.userGroups.members.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where this UserGroupMember will be created. Format: organizations/{org_id}/userGroups/{user_group_id}", + "location": "path", + "pattern": "^organizations/[^/]+/userGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/members", + "request": { + "$ref": "UserGroupMember" + }, + "response": { + "$ref": "UserGroupMember" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + }, + "delete": { + "description": "Deletes a member in the specified GMP user group.", + "flatPath": "v1alpha/organizations/{organizationsId}/userGroups/{userGroupsId}/members/{membersId}", + "httpMethod": "DELETE", + "id": "marketingplatformadmin.organizations.userGroups.members.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the user group member to delete. Format: organizations/{org_id}/userGroups/{user_group_id}/members/{member_id}", + "location": "path", + "pattern": "^organizations/[^/]+/userGroups/[^/]+/members/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + }, + "get": { + "description": "Looks up a single user group member.", + "flatPath": "v1alpha/organizations/{organizationsId}/userGroups/{userGroupsId}/members/{membersId}", + "httpMethod": "GET", + "id": "marketingplatformadmin.organizations.userGroups.members.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the user group member to retrieve. Format: organizations/{org_id}/userGroups/{user_group_id}/members/{member_id}", + "location": "path", + "pattern": "^organizations/[^/]+/userGroups/[^/]+/members/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "UserGroupMember" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.read", + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + }, + "list": { + "description": "Returns a list of members in the specified user group.", + "flatPath": "v1alpha/organizations/{organizationsId}/userGroups/{userGroupsId}/members", + "httpMethod": "GET", + "id": "marketingplatformadmin.organizations.userGroups.members.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of user group members to return in one call. The service may return fewer than this value. If unspecified, at most 50 user group members will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous ListUserGroupMembers call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUserGroupMembers` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent user group where this UserGroupMember will be listed. Format: organizations/{org_id}/userGroups/{user_group_id}", + "location": "path", + "pattern": "^organizations/[^/]+/userGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/members", + "response": { + "$ref": "ListUserGroupMembersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.read", + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + }, + "patch": { + "description": "Updates a member in the specified GMP user group.", + "flatPath": "v1alpha/organizations/{organizationsId}/userGroups/{userGroupsId}/members/{membersId}", + "httpMethod": "PATCH", + "id": "marketingplatformadmin.organizations.userGroups.members.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of this UserGroupMember. Format: organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} Example: \"organizations/123abc/userGroups/456def/members/789ghi\"", + "location": "path", + "pattern": "^organizations/[^/]+/userGroups/[^/]+/members/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to update. Field names must be in snake case (for example, \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "UserGroupMember" + }, + "response": { + "$ref": "UserGroupMember" + }, + "scopes": [ + "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update" + ] + } + } + } + } } } } }, - "revision": "20260303", + "revision": "20260916", "rootUrl": "https://marketingplatformadmin.googleapis.com/", "schemas": { + "AdminAccessBinding": { + "description": "A resource message representing a binding to a set of roles.", + "id": "AdminAccessBinding", + "properties": { + "name": { + "description": "Identifier. The resource name of this AdminAccessBinding. Format: organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} Example: \"organizations/123abc/adminAccessBindings/456def\"", + "type": "string" + }, + "organizationRoles": { + "description": "Optional. A list of roles granted to the parent organization. USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned. No roles will be assigned if no roles are specified.", + "items": { + "enum": [ + "ORGANIZATION_ROLE_UNSPECIFIED", + "ORG_ADMIN_ROLE", + "USER_ADMIN_ROLE", + "BILLING_ADMIN_ROLE" + ], + "enumDescriptions": [ + "Unknown or unspecified organization role.", + "Organization admin role that grants all administrative privileges.", + "User admin role that grants access to the Users section to perform various user management functions.", + "Billing admin role that grants access to the Billing section to perform various billing-related functions." + ], + "type": "string" + }, + "type": "array" + }, + "userEmail": { + "description": "Email address of the user.", + "type": "string" + }, + "userGroup": { + "description": "Resource name of the user group.", + "type": "string" + } + }, + "type": "object" + }, "AnalyticsAccountLink": { "description": "A resource message representing the link between a Google Analytics account and a Google Marketing Platform organization.", "id": "AnalyticsAccountLink", @@ -482,6 +959,24 @@ }, "type": "object" }, + "ListAdminAccessBindingsResponse": { + "description": "Response message for ListAdminAccessBindings RPC.", + "id": "ListAdminAccessBindingsResponse", + "properties": { + "adminAccessBindings": { + "description": "Admin Access Bindings in the organization.", + "items": { + "$ref": "AdminAccessBinding" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "ListAnalyticsAccountLinksResponse": { "description": "Response message for ListAnalyticsAccountLinks RPC.", "id": "ListAnalyticsAccountLinksResponse", @@ -518,6 +1013,42 @@ }, "type": "object" }, + "ListUserGroupMembersResponse": { + "description": "Response message for ListUserGroupMembers RPC.", + "id": "ListUserGroupMembersResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "userGroupMembers": { + "description": "User group members in the user group.", + "items": { + "$ref": "UserGroupMember" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListUserGroupsResponse": { + "description": "Response message for ListUserGroups RPC.", + "id": "ListUserGroupsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "userGroups": { + "description": "User groups in the organization.", + "items": { + "$ref": "UserGroup" + }, + "type": "array" + } + }, + "type": "object" + }, "Money": { "description": "Represents an amount of money with its currency type.", "id": "Money", @@ -673,6 +1204,58 @@ "id": "SetPropertyServiceLevelResponse", "properties": {}, "type": "object" + }, + "UserGroup": { + "description": "A resource message representing a user group in a GMP organization.", + "id": "UserGroup", + "properties": { + "description": { + "description": "Optional. The description of the user group.", + "type": "string" + }, + "displayName": { + "description": "Optional. The human-readable name for the user group.", + "type": "string" + }, + "name": { + "description": "Identifier. Resource name of this UserGroup. Format: organizations/{org_id}/userGroups/{user_group_id} Example: \"organizations/123abc/userGroups/456def\"", + "type": "string" + } + }, + "type": "object" + }, + "UserGroupMember": { + "description": "A resource message representing a member of a user group.", + "id": "UserGroupMember", + "properties": { + "membershipRole": { + "description": "Optional. The role of the member in the user group.", + "enum": [ + "MEMBERSHIP_ROLE_UNSPECIFIED", + "MEMBERSHIP_ROLE_OWNER", + "MEMBERSHIP_ROLE_MEMBER" + ], + "enumDescriptions": [ + "Unspecified membership role.", + "Owner role that can add and remove group members.", + "Member role that receives all permissions assigned to the group." + ], + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of this UserGroupMember. Format: organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} Example: \"organizations/123abc/userGroups/456def/members/789ghi\"", + "type": "string" + }, + "userEmail": { + "description": "Email address of the user member.", + "type": "string" + }, + "userGroup": { + "description": "User group resource name of the group member.", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/discovery/meet-v2.json b/discovery/meet-v2.json index dc94b4eb73..8c7c8f5ff2 100644 --- a/discovery/meet-v2.json +++ b/discovery/meet-v2.json @@ -114,7 +114,7 @@ "conferenceRecords": { "methods": { "get": { - "description": "Gets a conference record by conference ID.", + "description": "Gets a conference record by conference ID. For more information, see [Work with conferences](https://developers.google.com/workspace/meet/api/guides/conferences).", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}", "httpMethod": "GET", "id": "meet.conferenceRecords.get", @@ -140,7 +140,7 @@ ] }, "list": { - "description": "Lists the conference records. By default, ordered by start time and in descending order.", + "description": "Lists the conference records. By default, ordered by start time and in descending order. For more information, see [Work with conferences](https://developers.google.com/workspace/meet/api/guides/conferences).", "flatPath": "v2/conferenceRecords", "httpMethod": "GET", "id": "meet.conferenceRecords.list", @@ -177,7 +177,7 @@ "participants": { "methods": { "get": { - "description": "Gets a participant by participant ID.", + "description": "Gets a participant by participant ID. For more information, see [Work with participants](https://developers.google.com/workspace/meet/api/guides/participants).", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}/participants/{participantsId}", "httpMethod": "GET", "id": "meet.conferenceRecords.participants.get", @@ -203,7 +203,7 @@ ] }, "list": { - "description": "Lists the participants in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted, this API defaults to `'participants/*, next_page_token'`.", + "description": "Lists the participants in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted, this API defaults to `'participants/*, next_page_token'`. For more information, see [Work with participants](https://developers.google.com/workspace/meet/api/guides/participants).", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}/participants", "httpMethod": "GET", "id": "meet.conferenceRecords.participants.list", @@ -249,7 +249,7 @@ "participantSessions": { "methods": { "get": { - "description": "Gets a participant session by participant session ID.", + "description": "Gets a participant session by participant session ID. For more information, see [Work with participants](https://developers.google.com/workspace/meet/api/guides/participants).", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}/participants/{participantsId}/participantSessions/{participantSessionsId}", "httpMethod": "GET", "id": "meet.conferenceRecords.participants.participantSessions.get", @@ -275,7 +275,7 @@ ] }, "list": { - "description": "Lists the participant sessions of a participant in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted this API defaults to `'participantsessions/*, next_page_token'`.", + "description": "Lists the participant sessions of a participant in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted this API defaults to `'participantsessions/*, next_page_token'`. For more information, see [Work with participants](https://developers.google.com/workspace/meet/api/guides/participants).", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}/participants/{participantsId}/participantSessions", "httpMethod": "GET", "id": "meet.conferenceRecords.participants.participantSessions.list", @@ -323,7 +323,7 @@ "recordings": { "methods": { "get": { - "description": "Gets a recording by recording ID.", + "description": "Gets a recording by recording ID. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts).", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}/recordings/{recordingsId}", "httpMethod": "GET", "id": "meet.conferenceRecords.recordings.get", @@ -349,7 +349,7 @@ ] }, "list": { - "description": "Lists the recording resources from the conference record. By default, ordered by start time and in ascending order.", + "description": "Lists the recording resources from the conference record. By default, ordered by start time and in ascending order. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts).", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}/recordings", "httpMethod": "GET", "id": "meet.conferenceRecords.recordings.list", @@ -390,7 +390,7 @@ "smartNotes": { "methods": { "get": { - "description": "Gets smart notes by smart note ID.", + "description": "Gets smart notes by smart note ID. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts).", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}/smartNotes/{smartNotesId}", "httpMethod": "GET", "id": "meet.conferenceRecords.smartNotes.get", @@ -416,7 +416,7 @@ ] }, "list": { - "description": "Lists the set of smart notes from the conference record. By default, ordered by start time and in ascending order.", + "description": "Lists the set of smart notes from the conference record. By default, ordered by start time and in ascending order. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts).", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}/smartNotes", "httpMethod": "GET", "id": "meet.conferenceRecords.smartNotes.list", @@ -457,7 +457,7 @@ "transcripts": { "methods": { "get": { - "description": "Gets a transcript by transcript ID.", + "description": "Gets a transcript by transcript ID. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts).", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}/transcripts/{transcriptsId}", "httpMethod": "GET", "id": "meet.conferenceRecords.transcripts.get", @@ -483,7 +483,7 @@ ] }, "list": { - "description": "Lists the set of transcripts from the conference record. By default, ordered by start time and in ascending order.", + "description": "Lists the set of transcripts from the conference record. By default, ordered by start time and in ascending order. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts).", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}/transcripts", "httpMethod": "GET", "id": "meet.conferenceRecords.transcripts.list", @@ -524,7 +524,7 @@ "entries": { "methods": { "get": { - "description": "Gets a `TranscriptEntry` resource by entry ID. Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when 1) we have interleaved speakers within milliseconds, or 2) the Google Docs transcript file is modified after generation.", + "description": "Gets a `TranscriptEntry` resource by entry ID. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts). Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when 1) we have interleaved speakers within milliseconds, or 2) the Google Docs transcript file is modified after generation.", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}/transcripts/{transcriptsId}/entries/{entriesId}", "httpMethod": "GET", "id": "meet.conferenceRecords.transcripts.entries.get", @@ -550,7 +550,7 @@ ] }, "list": { - "description": "Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when 1) we have interleaved speakers within milliseconds, or 2) the Google Docs transcript file is modified after generation.", + "description": "Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts). Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when 1) we have interleaved speakers within milliseconds, or 2) the Google Docs transcript file is modified after generation.", "flatPath": "v2/conferenceRecords/{conferenceRecordsId}/transcripts/{transcriptsId}/entries", "httpMethod": "GET", "id": "meet.conferenceRecords.transcripts.entries.list", @@ -595,7 +595,7 @@ "spaces": { "methods": { "create": { - "description": "Creates a space.", + "description": "Creates a space. For more information, see [Manage meeting spaces](https://developers.google.com/workspace/meet/api/guides/manage-meeting-spaces).", "flatPath": "v2/spaces", "httpMethod": "POST", "id": "meet.spaces.create", @@ -613,7 +613,7 @@ ] }, "endActiveConference": { - "description": "Ends an active conference (if there's one). For an example, see [End active conference](https://developers.google.com/workspace/meet/api/guides/meeting-spaces#end-active-conference).", + "description": "Ends an active conference (if there's one). For more information, see [Manage meeting spaces](https://developers.google.com/workspace/meet/api/guides/manage-meeting-spaces).", "flatPath": "v2/spaces/{spacesId}:endActiveConference", "httpMethod": "POST", "id": "meet.spaces.endActiveConference", @@ -641,7 +641,7 @@ ] }, "get": { - "description": "Gets details about a meeting space. For an example, see [Get a meeting space](https://developers.google.com/workspace/meet/api/guides/meeting-spaces#get-meeting-space).", + "description": "Gets details about a meeting space. For more information, see [Manage meeting spaces](https://developers.google.com/workspace/meet/api/guides/manage-meeting-spaces). For an example, see [Get a meeting space](https://developers.google.com/workspace/meet/api/guides/meeting-spaces#get-meeting-space).", "flatPath": "v2/spaces/{spacesId}", "httpMethod": "GET", "id": "meet.spaces.get", @@ -668,7 +668,7 @@ ] }, "patch": { - "description": "Updates details about a meeting space. For an example, see [Update a meeting space](https://developers.google.com/workspace/meet/api/guides/meeting-spaces#update-meeting-space).", + "description": "Updates details about a meeting space. For more information, see [Manage meeting spaces](https://developers.google.com/workspace/meet/api/guides/manage-meeting-spaces).", "flatPath": "v2/spaces/{spacesId}", "httpMethod": "PATCH", "id": "meet.spaces.patch", @@ -702,10 +702,194 @@ "https://www.googleapis.com/auth/meetings.space.settings" ] } + }, + "resources": { + "members": { + "methods": { + "batchUpdate": { + "description": "Updates members of one space within a batch. For more information, see [Manage meeting space members](https://developers.google.com/workspace/meet/api/guides/meeting-space-members).", + "flatPath": "v2/spaces/{spacesId}/members:batchUpdate", + "httpMethod": "POST", + "id": "meet.spaces.members.batchUpdate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource shared by all Members being updated. Format: spaces/{space}", + "location": "path", + "pattern": "^spaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/members:batchUpdate", + "request": { + "$ref": "BatchUpdateMembersRequest" + }, + "response": { + "$ref": "BatchUpdateMembersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/meetings.space.created" + ] + }, + "create": { + "description": "Creates a member. For more information, see [Manage meeting space members](https://developers.google.com/workspace/meet/api/guides/meeting-space-members). This API supports the `fields` parameter in [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the `fields` parameter is omitted, this API response will default to \"name,email,role,user\".", + "flatPath": "v2/spaces/{spacesId}/members", + "httpMethod": "POST", + "id": "meet.spaces.members.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Format: spaces/{space}", + "location": "path", + "pattern": "^spaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/members", + "request": { + "$ref": "Member" + }, + "response": { + "$ref": "Member" + }, + "scopes": [ + "https://www.googleapis.com/auth/meetings.space.created" + ] + }, + "delete": { + "description": "Deletes the member who was previously assigned roles in the space. For more information, see [Manage meeting space members](https://developers.google.com/workspace/meet/api/guides/meeting-space-members).", + "flatPath": "v2/spaces/{spacesId}/members/{membersId}", + "httpMethod": "DELETE", + "id": "meet.spaces.members.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: “spaces/{space}/members/{member}”", + "location": "path", + "pattern": "^spaces/[^/]+/members/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/meetings.space.created" + ] + }, + "get": { + "description": "Gets a member. For more information, see [Manage meeting space members](https://developers.google.com/workspace/meet/api/guides/meeting-space-members). This API supports the `fields` parameter in [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the `fields` parameter is omitted, this API response will default to \"name,email,role,user\".", + "flatPath": "v2/spaces/{spacesId}/members/{membersId}", + "httpMethod": "GET", + "id": "meet.spaces.members.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: “spaces/{space}/members/{member}”", + "location": "path", + "pattern": "^spaces/[^/]+/members/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "Member" + }, + "scopes": [ + "https://www.googleapis.com/auth/meetings.space.created", + "https://www.googleapis.com/auth/meetings.space.readonly" + ] + }, + "list": { + "description": "Lists members. For more information, see [Manage meeting space members](https://developers.google.com/workspace/meet/api/guides/meeting-space-members). This API supports the `fields` parameter in [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the `fields` parameter is omitted this API response will default to \"name,email,role,user\".", + "flatPath": "v2/spaces/{spacesId}/members", + "httpMethod": "GET", + "id": "meet.spaces.members.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of members to return. The service might return fewer than this value. If unspecified or set to 0, at most 250 members are returned. The maximum value is 500; values above 500 are coerced to 500. Maximum might change in the future.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token returned from previous List Call.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Format: spaces/{space}", + "location": "path", + "pattern": "^spaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/members", + "response": { + "$ref": "ListMembersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/meetings.space.created", + "https://www.googleapis.com/auth/meetings.space.readonly" + ] + }, + "patch": { + "description": "Updates a member. For more information, see [Manage meeting space members](https://developers.google.com/workspace/meet/api/guides/meeting-space-members).", + "flatPath": "v2/spaces/{spacesId}/members/{membersId}", + "httpMethod": "PATCH", + "id": "meet.spaces.members.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Resource name of the member. Format: spaces/{space}/members/{member}", + "location": "path", + "pattern": "^spaces/[^/]+/members/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask used to specify the fields to be updated in the member. If update_mask isn't provided(not set, set with empty paths, or only has \"\" as paths), it defaults to update all fields provided with values in the request. Using \"*\" as update_mask will update all fields, including deleting fields not set in the request. In case of BatchUpdate, it must be absent or the same as the update_mask in BatchUpdateMembersRequest when UpdateMemberRequest is built as a child request of BatchUpdateMembersRequest.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "Member" + }, + "response": { + "$ref": "Member" + }, + "scopes": [ + "https://www.googleapis.com/auth/meetings.space.created" + ] + } + } + } } } }, - "revision": "20260421", + "revision": "20260915", "rootUrl": "https://meet.googleapis.com/", "schemas": { "ActiveConference": { @@ -751,6 +935,39 @@ }, "type": "object" }, + "BatchUpdateMembersRequest": { + "description": "Request to update members of one space within a batch.", + "id": "BatchUpdateMembersRequest", + "properties": { + "requests": { + "description": "Required. The request message specifying the resources to update. A maximum of 500 members can be modified in a batch.", + "items": { + "$ref": "UpdateMemberRequest" + }, + "type": "array" + }, + "updateMask": { + "description": "Optional. Top-level field mask used to specify the fields to be updated in the member for all UpdateMemberRequests. There are 4 possible scenarios for top-level and child field mask: 1. top-level and child field mask is absent: All fields provided in the requests are updated, including deleting fields not set in the requests. 2. top-level field mask is present but child field mask is absent: The fields specified in the top-level field mask are updated. 3. top-level and child field mask is present: The child field mask must be the same as the top-level field mask. 4. top-level field mask is absent but child field mask is present: It isn't supported and will return an error.", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, + "BatchUpdateMembersResponse": { + "description": "Response of batch update members.", + "id": "BatchUpdateMembersResponse", + "properties": { + "members": { + "description": "Members updated.", + "items": { + "$ref": "Member" + }, + "type": "array" + } + }, + "type": "object" + }, "ConferenceRecord": { "description": "Single instance of a meeting held in a space.", "id": "ConferenceRecord", @@ -864,6 +1081,24 @@ }, "type": "object" }, + "ListMembersResponse": { + "description": "Response of list members.", + "id": "ListMembersResponse", + "properties": { + "members": { + "description": "The list of members for the current page.", + "items": { + "$ref": "Member" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Token to be circulated back for further list call if current list doesn't include all the members. Unset if all members are returned.", + "type": "string" + } + }, + "type": "object" + }, "ListParticipantSessionsResponse": { "description": "Response of ListParticipants method.", "id": "ListParticipantSessionsResponse", @@ -977,6 +1212,33 @@ }, "type": "object" }, + "Member": { + "description": "Users who are configured to have a role in the space. These users can join the space without knocking.", + "id": "Member", + "properties": { + "email": { + "description": "Email for the member. This is required for creating the member.", + "type": "string" + }, + "name": { + "description": "Identifier. Resource name of the member. Format: spaces/{space}/members/{member}", + "type": "string" + }, + "role": { + "description": "The meeting role assigned to the member.", + "enum": [ + "ROLE_UNSPECIFIED", + "COHOST" + ], + "enumDescriptions": [ + "This is used to indicate the user hasn't specified any value and the user’s role will be determined upon joining the meetings between 'contributor' and 'viewer' role depending on meeting configuration. For more information about the viewer role, see [Assign View only roles in Google Meet](https://support.google.com/meet/answer/13658394).", + "Co-host role." + ], + "type": "string" + } + }, + "type": "object" + }, "ModerationRestrictions": { "description": "Defines restrictions for features when the meeting is moderated.", "id": "ModerationRestrictions", @@ -1508,6 +1770,22 @@ } }, "type": "object" + }, + "UpdateMemberRequest": { + "description": "Request to update a member.", + "id": "UpdateMemberRequest", + "properties": { + "member": { + "$ref": "Member", + "description": "Required. The Member to update. Format: spaces/{space}/members/{member}" + }, + "updateMask": { + "description": "Optional. Field mask used to specify the fields to be updated in the member. If update_mask isn't provided(not set, set with empty paths, or only has \"\" as paths), it defaults to update all fields provided with values in the request. Using \"*\" as update_mask will update all fields, including deleting fields not set in the request. In case of BatchUpdate, it must be absent or the same as the update_mask in BatchUpdateMembersRequest when UpdateMemberRequest is built as a child request of BatchUpdateMembersRequest.", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/discovery/merchantapi-products_v1.json b/discovery/merchantapi-products_v1.json index 2427030360..da79930e5f 100644 --- a/discovery/merchantapi-products_v1.json +++ b/discovery/merchantapi-products_v1.json @@ -281,7 +281,7 @@ } } }, - "revision": "20260903", + "revision": "20260910", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AutomatedDiscounts": { @@ -2885,6 +2885,10 @@ "$ref": "Price", "description": "The up-front down payment amount the buyer has to pay." }, + "mileageAllowance": { + "$ref": "Mileage", + "description": "Optional. The mileage allowance for the lease of the vehicle. Only applicable to vehicle products." + }, "months": { "description": "The number of installments the buyer has to pay.", "format": "int64", diff --git a/discovery/metastore-v1.json b/discovery/metastore-v1.json index f0232f56e6..6f25af85ef 100644 --- a/discovery/metastore-v1.json +++ b/discovery/metastore-v1.json @@ -1695,7 +1695,7 @@ } } }, - "revision": "20260825", + "revision": "20260910", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -3238,7 +3238,7 @@ "type": "array" }, "createTime": { - "description": "Output only. The UTC time when this report was finalized.", + "description": "Output only. The UTC time when the source metadata read was initiated.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -3248,6 +3248,12 @@ "readOnly": true, "type": "boolean" }, + "endTime": { + "description": "Output only. The UTC time when the report was written.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "service": { "description": "Output only. The Dataproc Metastore service name (format: projects/*/locations/*/services/*) on which the migration was executed.", "readOnly": true, diff --git a/discovery/metastore-v1alpha.json b/discovery/metastore-v1alpha.json index 8c82ace6d5..b5f7cdd6c2 100644 --- a/discovery/metastore-v1alpha.json +++ b/discovery/metastore-v1alpha.json @@ -1807,7 +1807,7 @@ } } }, - "revision": "20260825", + "revision": "20260910", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -3434,7 +3434,7 @@ "type": "array" }, "createTime": { - "description": "Output only. The UTC time when this report was finalized.", + "description": "Output only. The UTC time when the source metadata read was initiated.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -3444,6 +3444,12 @@ "readOnly": true, "type": "boolean" }, + "endTime": { + "description": "Output only. The UTC time when the report was written.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "service": { "description": "Output only. The Dataproc Metastore service name (format: projects/*/locations/*/services/*) on which the migration was executed.", "readOnly": true, diff --git a/discovery/metastore-v1beta.json b/discovery/metastore-v1beta.json index 617b7a044c..3731493278 100644 --- a/discovery/metastore-v1beta.json +++ b/discovery/metastore-v1beta.json @@ -1807,7 +1807,7 @@ } } }, - "revision": "20260825", + "revision": "20260910", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -3434,7 +3434,7 @@ "type": "array" }, "createTime": { - "description": "Output only. The UTC time when this report was finalized.", + "description": "Output only. The UTC time when the source metadata read was initiated.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -3444,6 +3444,12 @@ "readOnly": true, "type": "boolean" }, + "endTime": { + "description": "Output only. The UTC time when the report was written.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "service": { "description": "Output only. The Dataproc Metastore service name (format: projects/*/locations/*/services/*) on which the migration was executed.", "readOnly": true, diff --git a/discovery/mybusinessbusinessinformation-v1.json b/discovery/mybusinessbusinessinformation-v1.json index c65a5a656d..5a6d3fdc4d 100644 --- a/discovery/mybusinessbusinessinformation-v1.json +++ b/discovery/mybusinessbusinessinformation-v1.json @@ -524,7 +524,7 @@ ], "parameters": { "name": { - "description": "Google identifier for this location in the form: `locations/{location_id}`.", + "description": "Identifier. Google identifier for this location in the form: `locations/{location_id}`.", "location": "path", "pattern": "^locations/[^/]+$", "required": true, @@ -612,7 +612,7 @@ } } }, - "revision": "20260826", + "revision": "20260916", "rootUrl": "https://mybusinessbusinessinformation.googleapis.com/", "schemas": { "AdWordsLocationExtensions": { @@ -1111,7 +1111,7 @@ "type": "array" }, "name": { - "description": "Google identifier for this location in the form: `locations/{location_id}`.", + "description": "Identifier. Google identifier for this location in the form: `locations/{location_id}`.", "type": "string" }, "openInfo": { @@ -1199,7 +1199,7 @@ }, "canOperateLocalPost": { "deprecated": true, - "description": "Output only. Indicates if the listing can manage local posts. Deprecated: This field is no longer populated and will be removed in a future version.", + "description": "Output only. Deprecated: This field is no longer populated and will be removed in a future version.", "readOnly": true, "type": "boolean" }, @@ -1229,7 +1229,7 @@ "type": "boolean" }, "isParticularlyPersonalPlace": { - "description": "Output only.", + "description": "Output only. Indicates whether the location is classified as a particularly personal place. This means there are restrictions on Location History features. If you believe this was a mistake, see the [help center article](https://support.google.com/business/answer/3480441).", "readOnly": true, "type": "boolean" }, @@ -1382,7 +1382,7 @@ "id": "Places", "properties": { "placeInfos": { - "description": "The areas represented by place IDs. Limited to a maximum of 20 places.", + "description": "Optional. The areas represented by place IDs. Limited to a maximum of 20 places.", "items": { "$ref": "PlaceInfo" }, @@ -1465,19 +1465,19 @@ "id": "RelationshipData", "properties": { "childrenLocations": { - "description": "The list of children locations that this location has relations with.", + "description": "Optional. The list of children locations that this location has relations with.", "items": { "$ref": "RelevantLocation" }, "type": "array" }, "parentChain": { - "description": "The resource name of the Chain that this location is member of. How to find Chain ID", + "description": "Optional. The resource name of the Chain that this location is member of. How to find Chain ID", "type": "string" }, "parentLocation": { "$ref": "RelevantLocation", - "description": "The parent location that this location has relations with." + "description": "Optional. The parent location that this location has relations with." } }, "type": "object" @@ -1596,7 +1596,7 @@ }, "places": { "$ref": "Places", - "description": "The area that this business serves defined through a set of places." + "description": "Optional. The area that this business serves defined through a set of places." }, "regionCode": { "description": "Immutable. CLDR region code of the country/region that this service area business is based in. See http://cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. Example: \"CH\" for Switzerland. This field is required for CUSTOMER_LOCATION_ONLY businesses, and is ignored otherwise. The region specified here can be different from regions for the areas that this business serves (e.g. service area businesses that provide services in regions other than the one that they are based in). If this location requires verification after creation, the address provided for verification purposes *must* be located within this region, and the business owner or their authorized representative *must* be able to receive postal mail at the provided verification address.", diff --git a/discovery/networkconnectivity-v1.json b/discovery/networkconnectivity-v1.json index 46be7f1693..19763f96f2 100644 --- a/discovery/networkconnectivity-v1.json +++ b/discovery/networkconnectivity-v1.json @@ -4046,7 +4046,7 @@ } } }, - "revision": "20260715", + "revision": "20260908", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AcceptHubSpokeRequest": { @@ -8180,6 +8180,10 @@ }, "type": "array" }, + "autoAccept": { + "description": "Optional. Immutable. Controls whether resources proposed by the Transport are automatically accepted on behalf of the user. List of actions that can be automatically accepted are: 1. VPC Peering creation 2. Routing VPC Spoke creation 3. Hybrid Spoke creation", + "type": "boolean" + }, "bandwidth": { "description": "Optional. Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile, and must be set when no activation key is being provided.", "enum": [ @@ -8231,6 +8235,10 @@ "readOnly": true, "type": "string" }, + "hub": { + "description": "Optional. Immutable. The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport. Format: `{hub}` or `projects/{project}/locations/global/hubs/{hub}`", + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" @@ -8261,6 +8269,10 @@ "description": "Optional. Immutable. Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.", "type": "string" }, + "pscRoutingEnabled": { + "description": "Optional. Immutable. Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub. This will provide Private Service Connect (PSC) connectivity through NCC. This can only be set when the Transport is first created.", + "type": "boolean" + }, "remoteAccountId": { "description": "Optional. Immutable. The user supplied account id for the CSP associated with the remote profile.", "type": "string" diff --git a/discovery/networkmanagement-v1.json b/discovery/networkmanagement-v1.json index 63a899a96a..78884587db 100644 --- a/discovery/networkmanagement-v1.json +++ b/discovery/networkmanagement-v1.json @@ -1797,7 +1797,7 @@ } } }, - "revision": "20260819", + "revision": "20260909", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1851,7 +1851,10 @@ "NO_SERVERLESS_IP_RANGES", "IP_VERSION_PROTOCOL_MISMATCH", "GKE_POD_UNKNOWN_ENDPOINT_LOCATION", - "RESPONSE_TOO_LARGE" + "RESPONSE_TOO_LARGE", + "DESTINATION_CLOUD_RUN_SERVICE_REVISION_UNSUPPORTED", + "DESTINATION_CLOUD_RUN_VPC_CONNECTOR_UNSUPPORTED", + "CLOUD_RUN_RESOURCE_NOT_CONNECTED_TO_VPC" ], "enumDeprecated": [ false, @@ -1898,6 +1901,9 @@ false, false, false, + false, + false, + false, false ], "enumDescriptions": [ @@ -1945,7 +1951,10 @@ "Aborted because the source endpoint is a Cloud Run revision with direct VPC access enabled, but there are no reserved serverless IP ranges.", "Aborted because the used protocol is not supported for the used IP version.", "Aborted because selected GKE Pod endpoint location is unknown. This is often the case for \"Pending\" Pods, which don't have assigned IP addresses yet.", - "Aborted because the response size exceeds the limit." + "Aborted because the response size exceeds the limit.", + "Aborted because revisions of Cloud Run Services are not supported as destinations.", + "Aborted because serverless endpoints having Cloud Run VPC connectors configured are not supported as destinations.", + "Aborted because Cloud Run destination resource is not connected to the VPC network." ], "type": "string" }, @@ -2413,6 +2422,33 @@ }, "type": "object" }, + "DirectVpcIngressConnectionInfo": { + "description": "For display only. Metadata associated with a serverless direct VPC ingress connection.", + "id": "DirectVpcIngressConnectionInfo", + "properties": { + "networkUri": { + "description": "URI of the VPC network for direct ingress. Format: `projects/{project_id}/global/networks/{network_id}`", + "type": "string" + }, + "region": { + "description": "Region in which the Direct VPC ingress is deployed.", + "type": "string" + }, + "selectedIpAddress": { + "description": "Selected destination IP address, from the selected IP range.", + "type": "string" + }, + "selectedIpRange": { + "description": "Selected IP range.", + "type": "string" + }, + "subnetworkUri": { + "description": "URI of the subnetwork for direct ingress. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`", + "type": "string" + } + }, + "type": "object" + }, "DropInfo": { "description": "Details of the final state \"drop\" and associated resource.", "id": "DropInfo", @@ -5404,6 +5440,10 @@ "$ref": "DirectVpcEgressConnectionInfo", "description": "Display information of a serverless direct VPC egress connection." }, + "directVpcIngressConnection": { + "$ref": "DirectVpcIngressConnectionInfo", + "description": "Display information of a serverless direct VPC ingress connection for Cloud Run." + }, "dmsPrivateConnection": { "$ref": "PrivateConnectionInfo", "description": "Display information of a DMS Private Connection." @@ -5551,6 +5591,7 @@ "ARRIVE_AT_VPC_CONNECTOR", "ARRIVE_AT_GKE_POD", "DIRECT_VPC_EGRESS_CONNECTION", + "ARRIVE_AT_DIRECT_VPC_INGRESS_CONNECTION", "SERVERLESS_EXTERNAL_CONNECTION", "NGFW_PACKET_INSPECTION", "NAT", @@ -5615,6 +5656,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -5653,6 +5695,7 @@ "Forwarding state: arriving at a VPC connector.", "Forwarding state: arriving at a GKE Pod.", "Forwarding state: for packets originating from a serverless endpoint forwarded through Direct VPC egress.", + "Forwarding state: arriving at a direct VPC ingress connection.", "Forwarding state: for packets originating from a serverless endpoint forwarded through public (external) connectivity.", "Forwarding state: Layer 7 packet inspection by the firewall endpoint based on the configured security profile group.", "Transition state: packet header translated. The `nat` field is populated with the translation information.", diff --git a/discovery/networkmanagement-v1beta1.json b/discovery/networkmanagement-v1beta1.json index 973d32affe..39333b387d 100644 --- a/discovery/networkmanagement-v1beta1.json +++ b/discovery/networkmanagement-v1beta1.json @@ -1237,7 +1237,7 @@ } } }, - "revision": "20260819", + "revision": "20260909", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1291,7 +1291,10 @@ "NO_SERVERLESS_IP_RANGES", "IP_VERSION_PROTOCOL_MISMATCH", "GKE_POD_UNKNOWN_ENDPOINT_LOCATION", - "RESPONSE_TOO_LARGE" + "RESPONSE_TOO_LARGE", + "DESTINATION_CLOUD_RUN_SERVICE_REVISION_UNSUPPORTED", + "DESTINATION_CLOUD_RUN_VPC_CONNECTOR_UNSUPPORTED", + "CLOUD_RUN_RESOURCE_NOT_CONNECTED_TO_VPC" ], "enumDeprecated": [ false, @@ -1338,6 +1341,9 @@ false, false, false, + false, + false, + false, false ], "enumDescriptions": [ @@ -1385,7 +1391,10 @@ "Aborted because the source endpoint is a Cloud Run revision with direct VPC access enabled, but there are no reserved serverless IP ranges.", "Aborted because the used protocol is not supported for the used IP version.", "Aborted because selected GKE Pod endpoint location is unknown. This is often the case for \"Pending\" Pods, which don't have assigned IP addresses yet.", - "Aborted because the response size exceeds the limit." + "Aborted because the response size exceeds the limit.", + "Aborted because revisions of Cloud Run Services are not supported as destinations.", + "Aborted because serverless endpoints having Cloud Run VPC connectors configured are not supported as destinations.", + "Aborted because Cloud Run destination resource is not connected to the VPC network." ], "type": "string" }, @@ -1853,6 +1862,33 @@ }, "type": "object" }, + "DirectVpcIngressConnectionInfo": { + "description": "For display only. Metadata associated with a serverless direct VPC ingress connection.", + "id": "DirectVpcIngressConnectionInfo", + "properties": { + "networkUri": { + "description": "URI of the VPC network for direct ingress. Format: `projects/{project_id}/global/networks/{network_id}`", + "type": "string" + }, + "region": { + "description": "Region in which the Direct VPC ingress is deployed.", + "type": "string" + }, + "selectedIpAddress": { + "description": "Selected destination IP address, from the selected IP range.", + "type": "string" + }, + "selectedIpRange": { + "description": "Selected IP range.", + "type": "string" + }, + "subnetworkUri": { + "description": "URI of the subnetwork for direct ingress. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`", + "type": "string" + } + }, + "type": "object" + }, "DropInfo": { "description": "Details of the final state \"drop\" and associated resource.", "id": "DropInfo", @@ -4228,6 +4264,10 @@ "$ref": "DirectVpcEgressConnectionInfo", "description": "Display information of a serverless direct VPC egress connection." }, + "directVpcIngressConnection": { + "$ref": "DirectVpcIngressConnectionInfo", + "description": "Display information of a serverless direct VPC ingress connection." + }, "dmsPrivateConnection": { "$ref": "PrivateConnectionInfo", "description": "Display information of a DMS Private Connection." @@ -4374,6 +4414,7 @@ "ARRIVE_AT_INTERCONNECT_ATTACHMENT", "ARRIVE_AT_VPC_CONNECTOR", "ARRIVE_AT_GKE_POD", + "ARRIVE_AT_DIRECT_VPC_INGRESS_CONNECTION", "DIRECT_VPC_EGRESS_CONNECTION", "SERVERLESS_EXTERNAL_CONNECTION", "NGFW_PACKET_INSPECTION", @@ -4439,6 +4480,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -4476,6 +4518,7 @@ "Forwarding state: arriving at an interconnect attachment.", "Forwarding state: arriving at a VPC connector.", "Forwarding state: arriving at a GKE Pod.", + "Forwarding state: arriving at a direct VPC ingress connection.", "Forwarding state: for packets originating from a serverless endpoint forwarded through Direct VPC egress.", "Forwarding state: for packets originating from a serverless endpoint forwarded through public (external) connectivity.", "Forwarding state: Layer 7 packet inspection by the firewall endpoint based on the configured security profile group.", diff --git a/discovery/networksecurity-v1.json b/discovery/networksecurity-v1.json index 46167ad93a..add1178071 100644 --- a/discovery/networksecurity-v1.json +++ b/discovery/networksecurity-v1.json @@ -6141,7 +6141,7 @@ } } }, - "revision": "20260824", + "revision": "20260910", "rootUrl": "https://networksecurity.googleapis.com/", "schemas": { "AddAddressGroupItemsRequest": { @@ -6702,7 +6702,7 @@ "id": "AuthzPolicyAuthzRuleToRequestOperationMCP", "properties": { "baseProtocolMethodsOption": { - "description": "Optional. If specified, matches on the MCP protocol’s non-access specific methods namely: * initialize * completion/ * logging/ * notifications/ * ping Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.", + "description": "Optional. If specified, matches on the MCP protocol's non-access specific methods namely: * initialize * completion/ * logging/ * notifications/ * ping Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.", "enum": [ "BASE_PROTOCOL_METHODS_OPTION_UNSPECIFIED", "SKIP_BASE_PROTOCOL_METHODS", diff --git a/discovery/networksecurity-v1beta1.json b/discovery/networksecurity-v1beta1.json index 3f65ece5a0..71fd337a67 100644 --- a/discovery/networksecurity-v1beta1.json +++ b/discovery/networksecurity-v1beta1.json @@ -6346,7 +6346,7 @@ } } }, - "revision": "20260824", + "revision": "20260910", "rootUrl": "https://networksecurity.googleapis.com/", "schemas": { "AddAddressGroupItemsRequest": { @@ -6907,7 +6907,7 @@ "id": "AuthzPolicyAuthzRuleToRequestOperationMCP", "properties": { "baseProtocolMethodsOption": { - "description": "Optional. If specified, matches on the MCP protocol’s non-access specific methods namely: * initialize * completion/ * logging/ * notifications/ * ping Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.", + "description": "Optional. If specified, matches on the MCP protocol's non-access specific methods namely: * initialize * completion/ * logging/ * notifications/ * ping Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.", "enum": [ "BASE_PROTOCOL_METHODS_OPTION_UNSPECIFIED", "SKIP_BASE_PROTOCOL_METHODS", diff --git a/discovery/networkservices-v1.json b/discovery/networkservices-v1.json index c51c9a4e7f..770783737c 100644 --- a/discovery/networkservices-v1.json +++ b/discovery/networkservices-v1.json @@ -449,6 +449,11 @@ "parent" ], "parameters": { + "filter": { + "description": "Optional. A filter expression to filter the results listed in the response. The expression must follow the syntax described in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, "pageSize": { "description": "Optional. Maximum number of AgentGateways to return per call.", "format": "int32", @@ -4189,7 +4194,7 @@ } } }, - "revision": "20260816", + "revision": "20260901", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AgentConnectivityTemplate": { diff --git a/discovery/networkservices-v1beta1.json b/discovery/networkservices-v1beta1.json index 5f64777401..2ef6a5cdc0 100644 --- a/discovery/networkservices-v1beta1.json +++ b/discovery/networkservices-v1beta1.json @@ -449,6 +449,11 @@ "parent" ], "parameters": { + "filter": { + "description": "Optional. A filter expression to filter the results listed in the response. The expression must follow the syntax described in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, "pageSize": { "description": "Optional. Maximum number of AgentGateways to return per call.", "format": "int32", @@ -3916,7 +3921,7 @@ } } }, - "revision": "20260821", + "revision": "20260901", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AgentConnectivityTemplate": { diff --git a/discovery/oracledatabase-v1.json b/discovery/oracledatabase-v1.json index db81c4072e..8a76acb4a2 100644 --- a/discovery/oracledatabase-v1.json +++ b/discovery/oracledatabase-v1.json @@ -549,7 +549,7 @@ "type": "string" }, "updateMask": { - "description": "Optional. Field mask is used to specify the fields to be overwritten in the Exadata resource by the update. 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 then all fields will be overwritten.", + "description": "Optional. Field mask is used to specify the fields to be overwritten in the Exadata resource by the update. 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 then the service treats this as an implied field mask equivalent to all fields that are populated (have a non-empty value). To clear or unset a field, the field must be explicitly specified in the `update_mask`.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1770,7 +1770,7 @@ "type": "string" }, "updateMask": { - "description": "Optional. A mask specifying which fields in th VM Cluster should be updated. A field specified in the mask is overwritten. If a mask isn't provided then all the fields in the VM Cluster are overwritten.", + "description": "Optional. A mask specifying which fields in th VM Cluster should be updated. A field specified in the mask is overwritten. If a mask isn't provided then the service treats this as an implied field mask equivalent to all fields that are populated (have a non-empty value). To clear or unset a field, the field must be explicitly specified in the `update_mask`.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -3278,7 +3278,7 @@ } } }, - "revision": "20260810", + "revision": "20260910", "rootUrl": "https://oracledatabase.googleapis.com/", "schemas": { "AllConnectionStrings": { diff --git a/discovery/osconfig-v1alpha.json b/discovery/osconfig-v1alpha.json index 4d41a179a5..1659b2e7af 100644 --- a/discovery/osconfig-v1alpha.json +++ b/discovery/osconfig-v1alpha.json @@ -356,7 +356,7 @@ "methods": { "get": { "deprecated": true, - "description": "Get OS policies compliance data for the specified Compute Engine VM instance.", + "description": "Deprecated: Use GetOSPolicyAssignmentReport instead. Get OS policies compliance data for the specified Compute Engine VM instance.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/instanceOSPoliciesCompliances/{instanceOSPoliciesCompliancesId}", "httpMethod": "GET", "id": "osconfig.projects.locations.instanceOSPoliciesCompliances.get", @@ -382,7 +382,7 @@ }, "list": { "deprecated": true, - "description": "List OS policies compliance data for all Compute Engine VM instances in the specified zone.", + "description": "Deprecated: Use ListOSPolicyAssignmentReports instead. List OS policies compliance data for all Compute Engine VM instances in the specified zone.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/instanceOSPoliciesCompliances", "httpMethod": "GET", "id": "osconfig.projects.locations.instanceOSPoliciesCompliances.list", @@ -949,7 +949,7 @@ } } }, - "revision": "20260611", + "revision": "20260910", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "CVSSv3": { diff --git a/discovery/playintegrity-v1.json b/discovery/playintegrity-v1.json index 3c056d0888..fd8e3f14aa 100644 --- a/discovery/playintegrity-v1.json +++ b/discovery/playintegrity-v1.json @@ -198,7 +198,7 @@ } } }, - "revision": "20250828", + "revision": "20260910", "rootUrl": "https://playintegrity.googleapis.com/", "schemas": { "AccountActivity": { @@ -472,6 +472,31 @@ "$ref": "AppAccessRiskVerdict", "description": "The evaluation of the App Access Risk verdicts." }, + "locationSpoofingRiskVerdict": { + "description": "The evaluation of the Location Spoofing Risk verdict.", + "items": { + "enum": [ + "LOCATION_SPOOFING_RISK_VERDICT_UNSPECIFIED", + "LOW_RISK_DEVICE", + "LOW_RISK_NETWORK", + "MEDIUM_RISK_DEVICE", + "MEDIUM_RISK_NETWORK", + "HIGH_RISK_DEVICE", + "HIGH_RISK_NETWORK" + ], + "enumDescriptions": [ + "Catch-all for unrecognized enum values.", + "Device-related spoofing was evaluated, and no issues were detected.", + "Network-related spoofing was evaluated, and no issues were detected.", + "Potential device-related spoofing was detected.", + "Potential network-related spoofing was detected.", + "Likely device-related spoofing was detected.", + "Likely network-related spoofing was detected." + ], + "type": "string" + }, + "type": "array" + }, "playProtectVerdict": { "description": "The evaluation of Play Protect verdict.", "enum": [ diff --git a/discovery/policyanalyzer-v1.json b/discovery/policyanalyzer-v1.json index e085925751..611c7a2bf6 100644 --- a/discovery/policyanalyzer-v1.json +++ b/discovery/policyanalyzer-v1.json @@ -14,7 +14,7 @@ "canonicalName": "Policy Analyzer", "description": "", "discoveryVersion": "v1", - "documentationLink": "https://www.google.com", + "documentationLink": "https://cloud.google.com/policy-intelligence/docs/overview", "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -277,7 +277,7 @@ } } }, - "revision": "20240602", + "revision": "20260910", "rootUrl": "https://policyanalyzer.googleapis.com/", "schemas": { "GoogleCloudPolicyanalyzerV1Activity": { diff --git a/discovery/policyanalyzer-v1beta1.json b/discovery/policyanalyzer-v1beta1.json index 98d55037ed..a86669e16b 100644 --- a/discovery/policyanalyzer-v1beta1.json +++ b/discovery/policyanalyzer-v1beta1.json @@ -14,7 +14,7 @@ "canonicalName": "Policy Analyzer", "description": "", "discoveryVersion": "v1", - "documentationLink": "https://www.google.com", + "documentationLink": "https://cloud.google.com/policy-intelligence/docs/overview", "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -277,7 +277,7 @@ } } }, - "revision": "20240602", + "revision": "20260910", "rootUrl": "https://policyanalyzer.googleapis.com/", "schemas": { "GoogleCloudPolicyanalyzerV1beta1Activity": { diff --git a/discovery/readerrevenuesubscriptionlinking-v1.json b/discovery/readerrevenuesubscriptionlinking-v1.json index 22aea67616..2e75ecbd78 100644 --- a/discovery/readerrevenuesubscriptionlinking-v1.json +++ b/discovery/readerrevenuesubscriptionlinking-v1.json @@ -98,6 +98,51 @@ "resources": { "publications": { "resources": { + "-": { + "resources": { + "readers": { + "resources": { + "entitlements": { + "methods": { + "list": { + "description": "Lists reader entitlements across parent publications via wildcard. - Returns PERMISSION_DENIED if the caller does not have access. - Returns NOT_FOUND if the reader does not exist.", + "flatPath": "v1/publications/-/readers/{readersId}/entitlements", + "httpMethod": "GET", + "id": "readerrevenuesubscriptionlinking.publications.-.readers.entitlements.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of entitlements to return. The service may return fewer than this value. If unspecified, at most 50 entitlements will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListReaderEntitlements` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReaderEntitlements` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent reader scope. Format: \"publications/-/readers/{reader_id}\"", + "location": "path", + "pattern": "^publications/-/readers/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/entitlements", + "response": { + "$ref": "ListReaderEntitlementsResponse" + } + } + } + } + } + } + } + }, "readers": { "methods": { "delete": { @@ -207,7 +252,7 @@ } } }, - "revision": "20260719", + "revision": "20260915", "rootUrl": "https://readerrevenuesubscriptionlinking.googleapis.com/", "schemas": { "DeleteReaderResponse": { @@ -240,6 +285,24 @@ }, "type": "object" }, + "ListReaderEntitlementsResponse": { + "description": "Response containing the aggregated collection of matching ReaderEntitlements objects.", + "id": "ListReaderEntitlementsResponse", + "properties": { + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "readerEntitlements": { + "description": "The collection of ReaderEntitlements found across the scoped child publications. Every element's `name` field will contain the canonical sub-publication path, never the wildcard dash.", + "items": { + "$ref": "ReaderEntitlements" + }, + "type": "array" + } + }, + "type": "object" + }, "Reader": { "description": "A reader of a publication.", "id": "Reader", diff --git a/discovery/realtimebidding-v1.json b/discovery/realtimebidding-v1.json index e6f5b9ea16..0a6fa53d5b 100644 --- a/discovery/realtimebidding-v1.json +++ b/discovery/realtimebidding-v1.json @@ -940,6 +940,34 @@ "resources": { "creatives": { "methods": { + "addDeals": { + "description": "Adds a list of deals to a creative, which submits the creative for publisher review. Returns the updated creative.", + "flatPath": "v1/buyers/{buyersId}/creatives/{creativesId}:addDeals", + "httpMethod": "POST", + "id": "realtimebidding.buyers.creatives.addDeals", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the creative to add the deals to. See creative.name.", + "location": "path", + "pattern": "^buyers/[^/]+/creatives/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:addDeals", + "request": { + "$ref": "AddDealsRequest" + }, + "response": { + "$ref": "Creative" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, "create": { "description": "Creates a creative.", "flatPath": "v1/buyers/{buyersId}/creatives", @@ -1305,7 +1333,7 @@ } } }, - "revision": "20260716", + "revision": "20260914", "rootUrl": "https://realtimebidding.googleapis.com/", "schemas": { "ActivatePretargetingConfigRequest": { @@ -1344,6 +1372,20 @@ }, "type": "object" }, + "AddDealsRequest": { + "description": "A request to add deals to a creative resource.", + "id": "AddDealsRequest", + "properties": { + "dealIds": { + "description": "Required. The IDs of the deals to associate with the creative. This can include Programmatic Guaranteed, Private Auction, Preferred Deal, and Marketplace Package deal IDs. You can associate no more than 100 deal IDs per request.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "AddTargetedAppsRequest": { "description": "A request to start targeting the provided app IDs in a specific pretargeting configuration. The pretargeting configuration itself specifies how these apps are targeted. in PretargetingConfig.appTargeting.mobileAppTargeting.", "id": "AddTargetedAppsRequest", diff --git a/discovery/recommender-v1.json b/discovery/recommender-v1.json index 09e09e5f89..f67cc36d68 100644 --- a/discovery/recommender-v1.json +++ b/discovery/recommender-v1.json @@ -1868,9 +1868,2158 @@ } } }, - "revision": "20260621", + "revision": "20260913", "rootUrl": "https://recommender.googleapis.com/", "schemas": { + "CloudRecommendationsRecommendersDatabasesV1ContentChunk": { + "id": "CloudRecommendationsRecommendersDatabasesV1ContentChunk", + "properties": { + "table": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1Table", + "description": "Table with headers and rows content for the content chunk." + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1CtaConfig": { + "id": "CloudRecommendationsRecommendersDatabasesV1CtaConfig", + "properties": { + "isPrimary": { + "type": "boolean" + }, + "label": { + "description": "Enum used to map to the string to be shown in the UI for the button.", + "enum": [ + "STRING_KEY_UNSPECIFIED", + "STRING_KEY_VIEW_INSTANCE_CTA", + "STRING_KEY_EDIT_INSTANCE", + "STRING_KEY_EDIT_USERS", + "STRING_KEY_MYSQL_FLAG_DEFAULT_AUTHENTICATION_PLUGIN", + "STRING_KEY_PG_FLAG_PASSWORD_ENCRYPTION", + "STRING_KEY_ENABLE_USER_PASSWORD_POLICIES", + "STRING_KEY_CONFIGURE_AUTHENTICATION", + "STRING_KEY_CONFIGURE_DATABASE_FLAGS", + "STRING_KEY_AVERAGE_CPU_USAGE", + "STRING_KEY_OBSERVATION_TIME", + "STRING_KEY_CONFIGURE_AUTOSCALING", + "STRING_KEY_VIEW_CLUSTER_CTA", + "STRING_KEY_EDIT_DISASTER_RECOVERY_SETTINGS", + "STRING_KEY_ENABLE_SCHEDULED_BACKUPS", + "STRING_KEY_ENABLE_POINT_IN_TIME_RECOVERY", + "STRING_KEY_SCHEDULED_BACKUPS_ENABLEMENT", + "STRING_KEY_PITR_ENABLEMENT", + "STRING_KEY_INSECURE_RULES_DETECTED", + "STRING_KEY_EXPIRING_RULES_DETECTED", + "STRING_KEY_FIX_INSECURE_AND_EXPIRING_RULES", + "STRING_KEY_EDIT_FIREBASE_RULES", + "STRING_KEY_MAXIMUM_OF_PREDICTED_DISK_USAGE_FOR_THE_NEXT_7_DAYS", + "STRING_KEY_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_PER_NODE_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_CURRENT_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_CURRENT_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_ABOUT_MAINTENANCE", + "STRING_KEY_ABOUT_SCALING_UP", + "STRING_KEY_CURRENT_MEMORY_SIZE_GB", + "STRING_KEY_RECOMMENDED_MEMORY_SIZE_GB", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_CURRENT_STORAGE_USED_BYTES_OF_THE_CLUSTER", + "STRING_KEY_ABOUT_SCALING_OUT", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO_ACROSS_SHARDS", + "STRING_KEY_CURRENT_NUMBER_OF_SHARDS", + "STRING_KEY_RECOMMENDED_NUMBER_OF_SHARDS", + "STRING_KEY_ABOUT_AVOIDING_EXPENSIVE_COMMANDS", + "STRING_KEY_EXPENSIVE_COMMANDS", + "STRING_KEY_UPGRADE_TO_ENTERPRISE_PLUS_EDITION", + "STRING_KEY_ENABLE_DATA_CACHE", + "STRING_KEY_OBSERVATION_PERIOD", + "STRING_KEY_LAST_DEFERRED_MAINTENANCE_OPERATION_TIME", + "STRING_KEY_LAST_INSTANCE_MAINTENANCE_EVENT", + "STRING_KEY_USE_AUTO_MSM", + "STRING_KEY_CURRENT_MAX_SERVER_MEMORY_MB", + "STRING_KEY_AUTOSCALING_CONFIGURATION", + "STRING_KEY_SCALING_DOCS", + "STRING_KEY_MODIFY_INSTANCE", + "STRING_KEY_HOTSPOTS_AFFECTED_TABLES", + "STRING_KEY_HOT_TABLETS_DOCS", + "STRING_KEY_KEY_VISUALIZER_DOCS", + "STRING_KEY_BIGTABLE_PERFORMANCE_DOCS", + "STRING_KEY_VIEW_USERS", + "STRING_KEY_SPANNER_PREVENT_ACCIDENTAL_DELETION_DOCS", + "STRING_KEY_SPANNER_ENABLE_DATABASE_DELETION_PROTECTION_DOCS", + "STRING_KEY_SPANNER_BACKUPS_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_SCHEDULES_DOCS", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE_BACKUPS", + "STRING_KEY_SPANNER_AFFECTED_DATABASES", + "STRING_KEY_SPANNER_PANTHEON_BACKUP_SETTINGS", + "STRING_KEY_CLOUD_SQL_EDITIONS", + "STRING_KEY_ALLOYDB_ENABLE_HA_DOCS", + "STRING_KEY_ALLOYDB_CONFIGURE_BACKUP_POLICY_DOCS", + "STRING_KEY_VIEW_BACKUP_POLICY_CTA", + "STRING_KEY_ALLOYDB_BACKUP_COUNT", + "STRING_KEY_ALLOYDB_BACKUP_POLICY_TYPE", + "STRING_KEY_DATA_CACHE", + "STRING_KEY_BACKUP_AND_RESTORE_DATA", + "STRING_KEY_POINT_IN_TIME_RECOVERY", + "STRING_KEY_EDIT_BACKUP_SETTINGS", + "STRING_KEY_GO_TO_RESOURCE", + "STRING_KEY_OBSERVATION_START", + "STRING_KEY_OBSERVATION_END", + "STRING_KEY_STORAGE_UTILIZATION_RATIO", + "STRING_KEY_CURRENT_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_MAINTENANCE_WINDOW", + "STRING_KEY_FIND_AND_SET_MAINTENANCE_WINDOWS", + "STRING_KEY_MAXMEMORY_POLICY", + "STRING_KEY_SYSTEM_MEMORY_USAGE_RATIO", + "STRING_KEY_FAILED_SNAPSHOTS", + "STRING_KEY_EXPIRABLE_KEYS_PERCENTAGE", + "STRING_KEY_OOM_COUNT", + "STRING_KEY_EDIT_RESOURCE_CTA", + "STRING_KEY_MEMORYSTORE_MEMORY_MANAGEMENT_BEST_PRACTICES", + "STRING_KEY_MEMORYSTORE_REDIS_CRASHES", + "STRING_KEY_BIGTABLE_MIN_NUMBER_OF_NODES_FOR_CUD", + "STRING_KEY_BIGTABLE_AVERAGE_CLUSTER_NODE_COUNT", + "STRING_KEY_BIGTABLE_CUD_DOCS", + "STRING_KEY_SPANNER_MITIGATE_CMEK_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_SPANNER_MITIGATE_DRZ_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_ALLOYDB_RECOMMENDED_BACKUP_COUNT", + "STRING_KEY_SQLSERVER_BEST_PRACTICES_GLOBAL", + "STRING_KEY_SQLSERVER_SERVER_MEMORY_CONFIGURATION", + "STRING_KEY_INSECURE_RULES_AUTHENTICATION", + "STRING_KEY_KEY_VISUALIZER_CTA", + "STRING_KEY_SPANNER_SCHEMA", + "STRING_KEY_SPANNER_SCHEMA_BEST_PRACTICES", + "STRING_KEY_SPANNER_MANAGE_DATA_USING_CONSOLE", + "STRING_KEY_SPANNER_MIGRATE_YOUR_DATA", + "STRING_KEY_SPANNER_MAKE_SCHEMA_UPDATE", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_TABLES", + "STRING_KEY_SPANNER_PROTOCOL_BUFFER_LIMITATIONS", + "STRING_KEY_SPANNER_QUERY_INSIGHTS", + "STRING_KEY_SPANNER_USE_INDEX_ADVISOR", + "STRING_KEY_SPANNER_SEARCH_INDEXES", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_INDEXES", + "STRING_KEY_SPANNER_FOREIGN_KEYS", + "STRING_KEY_SPANNER_CREATE_MANAGE_FOREIGN_KEY_RELATIONSHIPS", + "STRING_KEY_SPANNER_IMPLEMENT_MULTI_TENANCY", + "STRING_KEY_SPANNER_DATABASE_SPLITS", + "STRING_KEY_SPANNER_CREATE_ALERTS_FOR_SPANNER_METRICS", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_SCHEMAS", + "STRING_KEY_SPANNER_VIEW_OBJECT_CTA", + "STRING_KEY_SPANNER_QUERY_INSIGHTS_CTA", + "STRING_KEY_SPANNER_MONITORING_CTA", + "STRING_KEY_BIGTABLE_CURRENT_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_LATEST_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_APP_PROFILE_IDS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARY_LANGUAGE", + "STRING_KEY_BIGTABLE_UPGRADING_CLIENTS", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_TABLES", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_DOCS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARIES", + "STRING_KEY_BIGTABLE_DATABOOST_DOCS", + "STRING_KEY_INSTANCE_NAME", + "STRING_KEY_APP_PROFILE_ID", + "STRING_KEY_CREATE_APP_PROFILE_CTA", + "STRING_KEY_BIGTABLE_DATABOOST_OVERVIEW_DOCS", + "STRING_KEY_BIGTABLE_APP_PROFILES_DOCS", + "STRING_KEY_THREAD_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_THREAD_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_ENABLE_DATABASE_AUDITING", + "STRING_KEY_JOIN_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_JOIN_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_CURRENT_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_RECOMMENDED_VALUE", + "STRING_KEY_NUMBER_OF_TABLES", + "STRING_KEY_MYSQL_HIGH_NUMBER_OF_TABLES_PLAYBOOK", + "STRING_KEY_TMP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_TMP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TRANSACTION_ID_UTILIZATION_PERCENTAGE", + "STRING_KEY_DAYS_TO_WRAPAROUND", + "STRING_KEY_PG_TRANSACTION_ID_UTILIZATION_PLAYBOOK", + "STRING_KEY_MAX_CPU_UTILIZATION", + "STRING_KEY_MAX_MEMORY_UTILIZATION", + "STRING_KEY_DISK_USAGE_BYTES_CHANGE", + "STRING_KEY_MAX_DISK_READ_OPS_COUNT", + "STRING_KEY_MAX_DISK_WRITE_OPS_COUNT", + "STRING_KEY_SQL_IDLE_PLAYBOOK", + "STRING_KEY_CURRENT_STORAGE_USAGE", + "STRING_KEY_CURRENT_STORAGE_LIMIT", + "STRING_KEY_ESTIMATED_STORAGE_RUN_OUT_PERIOD", + "STRING_KEY_CURRENT_MACHINE_TYPE", + "STRING_KEY_RECOMMENDED_MACHINE_TYPE", + "STRING_KEY_CURRENT_CORES", + "STRING_KEY_RECOMMENDED_CORES", + "STRING_KEY_REVIEW_ORG_POLICY", + "STRING_KEY_USE_AUTH_PROXY_OR_CONNECTORS", + "STRING_KEY_REMOVE_AUTHORIZED_NETWORKS", + "STRING_KEY_ROTATE_SERVER_CERTIFICATE", + "STRING_KEY_MANAGE_SERVER_CERTIFICATES", + "STRING_KEY_PUBLIC_IP_ENABLED", + "STRING_KEY_PRIVATE_IP_ENABLED", + "STRING_KEY_CONFIGURE_PRIVATE_IP", + "STRING_KEY_DISABLE_PUBLIC_IP", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_ESTIMATED_OOM_PROBABILITY", + "STRING_KEY_MAX_CONNECTIONS_CURRENT_VALUE", + "STRING_KEY_MAX_CONNECTIONS_RECOMMENDED_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "redirectPage": { + "enum": [ + "REDIRECT_PAGE_UNSPECIFIED", + "REDIRECT_PAGE_CUSTOM_URL", + "REDIRECT_PAGE_RESOURCE_OVERVIEW", + "REDIRECT_PAGE_EDIT_RESOURCE", + "REDIRECT_PAGE_BACKUPS", + "REDIRECT_PAGE_USERS", + "REDIRECT_PAGE_SECURITY_RULES", + "REDIRECT_PAGE_KEY_VISUALIZER", + "REDIRECT_PAGE_SYSTEM_INSIGHTS", + "REDIRECT_PAGE_CONNECTIONS", + "REDIRECT_PAGE_CONNECTIONS_SECURITY" + ], + "enumDescriptions": [ + "", + "Use this option to provide a custom URL for the CTA button. For issues using this option, the custom URL specific to the issue is to be defined in the UI.", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1DatabasesPresentationConfig": { + "description": "Presentational config that maps to the UI components of templatized issue subtasks.", + "id": "CloudRecommendationsRecommendersDatabasesV1DatabasesPresentationConfig", + "properties": { + "ctaConfigs": { + "description": "Call to action buttons for the issue.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1CtaConfig" + }, + "type": "array" + }, + "issueContentChunks": { + "description": "Content chunks for the issue.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1ContentChunk" + }, + "type": "array" + }, + "issueDescription": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1Description", + "description": "Issue description for the issue." + }, + "issueTableFields": { + "description": "Fields for the table containing metadata associated with the issue.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1TableField" + }, + "type": "array" + }, + "nextStepsContentChunks": { + "description": "Content chunks for the next steps.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1ContentChunk" + }, + "type": "array" + }, + "nextStepsDescription": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1Description", + "description": "Next steps description for the issue." + }, + "nextStepsTableFields": { + "description": "Fields for the table containing metadata associated with the next steps.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1TableField" + }, + "type": "array" + }, + "playbookLinks": { + "description": "Playbook links for the issue.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1PlaybookLink" + }, + "type": "array" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1Description": { + "id": "CloudRecommendationsRecommendersDatabasesV1Description", + "properties": { + "descriptionEnum": { + "description": "Enum used to map to the html template to be shown in the UI.", + "enum": [ + "DESC_ENUM_UNSPECIFIED" + ], + "enumDescriptions": [ + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1Link": { + "id": "CloudRecommendationsRecommendersDatabasesV1Link", + "properties": { + "label": { + "description": "String label for the link. This value is not translated", + "type": "string" + }, + "redirectPage": { + "description": "Enum used to map to the redirect page for the link.", + "enum": [ + "REDIRECT_PAGE_UNSPECIFIED", + "REDIRECT_PAGE_CUSTOM_URL", + "REDIRECT_PAGE_RESOURCE_OVERVIEW", + "REDIRECT_PAGE_EDIT_RESOURCE", + "REDIRECT_PAGE_BACKUPS", + "REDIRECT_PAGE_USERS", + "REDIRECT_PAGE_SECURITY_RULES", + "REDIRECT_PAGE_KEY_VISUALIZER", + "REDIRECT_PAGE_SYSTEM_INSIGHTS", + "REDIRECT_PAGE_CONNECTIONS", + "REDIRECT_PAGE_CONNECTIONS_SECURITY" + ], + "enumDescriptions": [ + "", + "Use this option to provide a custom URL for the CTA button. For issues using this option, the custom URL specific to the issue is to be defined in the UI.", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "resourceName": { + "description": "Resource name for the table cell. This is used to construct the link.", + "type": "string" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1PlaybookLink": { + "id": "CloudRecommendationsRecommendersDatabasesV1PlaybookLink", + "properties": { + "label": { + "description": "Enum used to map to the string to be shown in the UI for the link.", + "enum": [ + "STRING_KEY_UNSPECIFIED", + "STRING_KEY_VIEW_INSTANCE_CTA", + "STRING_KEY_EDIT_INSTANCE", + "STRING_KEY_EDIT_USERS", + "STRING_KEY_MYSQL_FLAG_DEFAULT_AUTHENTICATION_PLUGIN", + "STRING_KEY_PG_FLAG_PASSWORD_ENCRYPTION", + "STRING_KEY_ENABLE_USER_PASSWORD_POLICIES", + "STRING_KEY_CONFIGURE_AUTHENTICATION", + "STRING_KEY_CONFIGURE_DATABASE_FLAGS", + "STRING_KEY_AVERAGE_CPU_USAGE", + "STRING_KEY_OBSERVATION_TIME", + "STRING_KEY_CONFIGURE_AUTOSCALING", + "STRING_KEY_VIEW_CLUSTER_CTA", + "STRING_KEY_EDIT_DISASTER_RECOVERY_SETTINGS", + "STRING_KEY_ENABLE_SCHEDULED_BACKUPS", + "STRING_KEY_ENABLE_POINT_IN_TIME_RECOVERY", + "STRING_KEY_SCHEDULED_BACKUPS_ENABLEMENT", + "STRING_KEY_PITR_ENABLEMENT", + "STRING_KEY_INSECURE_RULES_DETECTED", + "STRING_KEY_EXPIRING_RULES_DETECTED", + "STRING_KEY_FIX_INSECURE_AND_EXPIRING_RULES", + "STRING_KEY_EDIT_FIREBASE_RULES", + "STRING_KEY_MAXIMUM_OF_PREDICTED_DISK_USAGE_FOR_THE_NEXT_7_DAYS", + "STRING_KEY_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_PER_NODE_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_CURRENT_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_CURRENT_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_ABOUT_MAINTENANCE", + "STRING_KEY_ABOUT_SCALING_UP", + "STRING_KEY_CURRENT_MEMORY_SIZE_GB", + "STRING_KEY_RECOMMENDED_MEMORY_SIZE_GB", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_CURRENT_STORAGE_USED_BYTES_OF_THE_CLUSTER", + "STRING_KEY_ABOUT_SCALING_OUT", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO_ACROSS_SHARDS", + "STRING_KEY_CURRENT_NUMBER_OF_SHARDS", + "STRING_KEY_RECOMMENDED_NUMBER_OF_SHARDS", + "STRING_KEY_ABOUT_AVOIDING_EXPENSIVE_COMMANDS", + "STRING_KEY_EXPENSIVE_COMMANDS", + "STRING_KEY_UPGRADE_TO_ENTERPRISE_PLUS_EDITION", + "STRING_KEY_ENABLE_DATA_CACHE", + "STRING_KEY_OBSERVATION_PERIOD", + "STRING_KEY_LAST_DEFERRED_MAINTENANCE_OPERATION_TIME", + "STRING_KEY_LAST_INSTANCE_MAINTENANCE_EVENT", + "STRING_KEY_USE_AUTO_MSM", + "STRING_KEY_CURRENT_MAX_SERVER_MEMORY_MB", + "STRING_KEY_AUTOSCALING_CONFIGURATION", + "STRING_KEY_SCALING_DOCS", + "STRING_KEY_MODIFY_INSTANCE", + "STRING_KEY_HOTSPOTS_AFFECTED_TABLES", + "STRING_KEY_HOT_TABLETS_DOCS", + "STRING_KEY_KEY_VISUALIZER_DOCS", + "STRING_KEY_BIGTABLE_PERFORMANCE_DOCS", + "STRING_KEY_VIEW_USERS", + "STRING_KEY_SPANNER_PREVENT_ACCIDENTAL_DELETION_DOCS", + "STRING_KEY_SPANNER_ENABLE_DATABASE_DELETION_PROTECTION_DOCS", + "STRING_KEY_SPANNER_BACKUPS_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_SCHEDULES_DOCS", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE_BACKUPS", + "STRING_KEY_SPANNER_AFFECTED_DATABASES", + "STRING_KEY_SPANNER_PANTHEON_BACKUP_SETTINGS", + "STRING_KEY_CLOUD_SQL_EDITIONS", + "STRING_KEY_ALLOYDB_ENABLE_HA_DOCS", + "STRING_KEY_ALLOYDB_CONFIGURE_BACKUP_POLICY_DOCS", + "STRING_KEY_VIEW_BACKUP_POLICY_CTA", + "STRING_KEY_ALLOYDB_BACKUP_COUNT", + "STRING_KEY_ALLOYDB_BACKUP_POLICY_TYPE", + "STRING_KEY_DATA_CACHE", + "STRING_KEY_BACKUP_AND_RESTORE_DATA", + "STRING_KEY_POINT_IN_TIME_RECOVERY", + "STRING_KEY_EDIT_BACKUP_SETTINGS", + "STRING_KEY_GO_TO_RESOURCE", + "STRING_KEY_OBSERVATION_START", + "STRING_KEY_OBSERVATION_END", + "STRING_KEY_STORAGE_UTILIZATION_RATIO", + "STRING_KEY_CURRENT_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_MAINTENANCE_WINDOW", + "STRING_KEY_FIND_AND_SET_MAINTENANCE_WINDOWS", + "STRING_KEY_MAXMEMORY_POLICY", + "STRING_KEY_SYSTEM_MEMORY_USAGE_RATIO", + "STRING_KEY_FAILED_SNAPSHOTS", + "STRING_KEY_EXPIRABLE_KEYS_PERCENTAGE", + "STRING_KEY_OOM_COUNT", + "STRING_KEY_EDIT_RESOURCE_CTA", + "STRING_KEY_MEMORYSTORE_MEMORY_MANAGEMENT_BEST_PRACTICES", + "STRING_KEY_MEMORYSTORE_REDIS_CRASHES", + "STRING_KEY_BIGTABLE_MIN_NUMBER_OF_NODES_FOR_CUD", + "STRING_KEY_BIGTABLE_AVERAGE_CLUSTER_NODE_COUNT", + "STRING_KEY_BIGTABLE_CUD_DOCS", + "STRING_KEY_SPANNER_MITIGATE_CMEK_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_SPANNER_MITIGATE_DRZ_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_ALLOYDB_RECOMMENDED_BACKUP_COUNT", + "STRING_KEY_SQLSERVER_BEST_PRACTICES_GLOBAL", + "STRING_KEY_SQLSERVER_SERVER_MEMORY_CONFIGURATION", + "STRING_KEY_INSECURE_RULES_AUTHENTICATION", + "STRING_KEY_KEY_VISUALIZER_CTA", + "STRING_KEY_SPANNER_SCHEMA", + "STRING_KEY_SPANNER_SCHEMA_BEST_PRACTICES", + "STRING_KEY_SPANNER_MANAGE_DATA_USING_CONSOLE", + "STRING_KEY_SPANNER_MIGRATE_YOUR_DATA", + "STRING_KEY_SPANNER_MAKE_SCHEMA_UPDATE", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_TABLES", + "STRING_KEY_SPANNER_PROTOCOL_BUFFER_LIMITATIONS", + "STRING_KEY_SPANNER_QUERY_INSIGHTS", + "STRING_KEY_SPANNER_USE_INDEX_ADVISOR", + "STRING_KEY_SPANNER_SEARCH_INDEXES", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_INDEXES", + "STRING_KEY_SPANNER_FOREIGN_KEYS", + "STRING_KEY_SPANNER_CREATE_MANAGE_FOREIGN_KEY_RELATIONSHIPS", + "STRING_KEY_SPANNER_IMPLEMENT_MULTI_TENANCY", + "STRING_KEY_SPANNER_DATABASE_SPLITS", + "STRING_KEY_SPANNER_CREATE_ALERTS_FOR_SPANNER_METRICS", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_SCHEMAS", + "STRING_KEY_SPANNER_VIEW_OBJECT_CTA", + "STRING_KEY_SPANNER_QUERY_INSIGHTS_CTA", + "STRING_KEY_SPANNER_MONITORING_CTA", + "STRING_KEY_BIGTABLE_CURRENT_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_LATEST_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_APP_PROFILE_IDS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARY_LANGUAGE", + "STRING_KEY_BIGTABLE_UPGRADING_CLIENTS", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_TABLES", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_DOCS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARIES", + "STRING_KEY_BIGTABLE_DATABOOST_DOCS", + "STRING_KEY_INSTANCE_NAME", + "STRING_KEY_APP_PROFILE_ID", + "STRING_KEY_CREATE_APP_PROFILE_CTA", + "STRING_KEY_BIGTABLE_DATABOOST_OVERVIEW_DOCS", + "STRING_KEY_BIGTABLE_APP_PROFILES_DOCS", + "STRING_KEY_THREAD_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_THREAD_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_ENABLE_DATABASE_AUDITING", + "STRING_KEY_JOIN_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_JOIN_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_CURRENT_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_RECOMMENDED_VALUE", + "STRING_KEY_NUMBER_OF_TABLES", + "STRING_KEY_MYSQL_HIGH_NUMBER_OF_TABLES_PLAYBOOK", + "STRING_KEY_TMP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_TMP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TRANSACTION_ID_UTILIZATION_PERCENTAGE", + "STRING_KEY_DAYS_TO_WRAPAROUND", + "STRING_KEY_PG_TRANSACTION_ID_UTILIZATION_PLAYBOOK", + "STRING_KEY_MAX_CPU_UTILIZATION", + "STRING_KEY_MAX_MEMORY_UTILIZATION", + "STRING_KEY_DISK_USAGE_BYTES_CHANGE", + "STRING_KEY_MAX_DISK_READ_OPS_COUNT", + "STRING_KEY_MAX_DISK_WRITE_OPS_COUNT", + "STRING_KEY_SQL_IDLE_PLAYBOOK", + "STRING_KEY_CURRENT_STORAGE_USAGE", + "STRING_KEY_CURRENT_STORAGE_LIMIT", + "STRING_KEY_ESTIMATED_STORAGE_RUN_OUT_PERIOD", + "STRING_KEY_CURRENT_MACHINE_TYPE", + "STRING_KEY_RECOMMENDED_MACHINE_TYPE", + "STRING_KEY_CURRENT_CORES", + "STRING_KEY_RECOMMENDED_CORES", + "STRING_KEY_REVIEW_ORG_POLICY", + "STRING_KEY_USE_AUTH_PROXY_OR_CONNECTORS", + "STRING_KEY_REMOVE_AUTHORIZED_NETWORKS", + "STRING_KEY_ROTATE_SERVER_CERTIFICATE", + "STRING_KEY_MANAGE_SERVER_CERTIFICATES", + "STRING_KEY_PUBLIC_IP_ENABLED", + "STRING_KEY_PRIVATE_IP_ENABLED", + "STRING_KEY_CONFIGURE_PRIVATE_IP", + "STRING_KEY_DISABLE_PUBLIC_IP", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_ESTIMATED_OOM_PROBABILITY", + "STRING_KEY_MAX_CONNECTIONS_CURRENT_VALUE", + "STRING_KEY_MAX_CONNECTIONS_RECOMMENDED_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "link": { + "type": "string" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1SimpleValue": { + "id": "CloudRecommendationsRecommendersDatabasesV1SimpleValue", + "properties": { + "enumValue": { + "description": "Enum value for the table cell. This should be used when value MUST be translated and represents common status/field like Enabled, Disabled, Success, Failure, etc.", + "enum": [ + "STRING_KEY_UNSPECIFIED", + "STRING_KEY_VIEW_INSTANCE_CTA", + "STRING_KEY_EDIT_INSTANCE", + "STRING_KEY_EDIT_USERS", + "STRING_KEY_MYSQL_FLAG_DEFAULT_AUTHENTICATION_PLUGIN", + "STRING_KEY_PG_FLAG_PASSWORD_ENCRYPTION", + "STRING_KEY_ENABLE_USER_PASSWORD_POLICIES", + "STRING_KEY_CONFIGURE_AUTHENTICATION", + "STRING_KEY_CONFIGURE_DATABASE_FLAGS", + "STRING_KEY_AVERAGE_CPU_USAGE", + "STRING_KEY_OBSERVATION_TIME", + "STRING_KEY_CONFIGURE_AUTOSCALING", + "STRING_KEY_VIEW_CLUSTER_CTA", + "STRING_KEY_EDIT_DISASTER_RECOVERY_SETTINGS", + "STRING_KEY_ENABLE_SCHEDULED_BACKUPS", + "STRING_KEY_ENABLE_POINT_IN_TIME_RECOVERY", + "STRING_KEY_SCHEDULED_BACKUPS_ENABLEMENT", + "STRING_KEY_PITR_ENABLEMENT", + "STRING_KEY_INSECURE_RULES_DETECTED", + "STRING_KEY_EXPIRING_RULES_DETECTED", + "STRING_KEY_FIX_INSECURE_AND_EXPIRING_RULES", + "STRING_KEY_EDIT_FIREBASE_RULES", + "STRING_KEY_MAXIMUM_OF_PREDICTED_DISK_USAGE_FOR_THE_NEXT_7_DAYS", + "STRING_KEY_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_PER_NODE_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_CURRENT_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_CURRENT_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_ABOUT_MAINTENANCE", + "STRING_KEY_ABOUT_SCALING_UP", + "STRING_KEY_CURRENT_MEMORY_SIZE_GB", + "STRING_KEY_RECOMMENDED_MEMORY_SIZE_GB", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_CURRENT_STORAGE_USED_BYTES_OF_THE_CLUSTER", + "STRING_KEY_ABOUT_SCALING_OUT", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO_ACROSS_SHARDS", + "STRING_KEY_CURRENT_NUMBER_OF_SHARDS", + "STRING_KEY_RECOMMENDED_NUMBER_OF_SHARDS", + "STRING_KEY_ABOUT_AVOIDING_EXPENSIVE_COMMANDS", + "STRING_KEY_EXPENSIVE_COMMANDS", + "STRING_KEY_UPGRADE_TO_ENTERPRISE_PLUS_EDITION", + "STRING_KEY_ENABLE_DATA_CACHE", + "STRING_KEY_OBSERVATION_PERIOD", + "STRING_KEY_LAST_DEFERRED_MAINTENANCE_OPERATION_TIME", + "STRING_KEY_LAST_INSTANCE_MAINTENANCE_EVENT", + "STRING_KEY_USE_AUTO_MSM", + "STRING_KEY_CURRENT_MAX_SERVER_MEMORY_MB", + "STRING_KEY_AUTOSCALING_CONFIGURATION", + "STRING_KEY_SCALING_DOCS", + "STRING_KEY_MODIFY_INSTANCE", + "STRING_KEY_HOTSPOTS_AFFECTED_TABLES", + "STRING_KEY_HOT_TABLETS_DOCS", + "STRING_KEY_KEY_VISUALIZER_DOCS", + "STRING_KEY_BIGTABLE_PERFORMANCE_DOCS", + "STRING_KEY_VIEW_USERS", + "STRING_KEY_SPANNER_PREVENT_ACCIDENTAL_DELETION_DOCS", + "STRING_KEY_SPANNER_ENABLE_DATABASE_DELETION_PROTECTION_DOCS", + "STRING_KEY_SPANNER_BACKUPS_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_SCHEDULES_DOCS", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE_BACKUPS", + "STRING_KEY_SPANNER_AFFECTED_DATABASES", + "STRING_KEY_SPANNER_PANTHEON_BACKUP_SETTINGS", + "STRING_KEY_CLOUD_SQL_EDITIONS", + "STRING_KEY_ALLOYDB_ENABLE_HA_DOCS", + "STRING_KEY_ALLOYDB_CONFIGURE_BACKUP_POLICY_DOCS", + "STRING_KEY_VIEW_BACKUP_POLICY_CTA", + "STRING_KEY_ALLOYDB_BACKUP_COUNT", + "STRING_KEY_ALLOYDB_BACKUP_POLICY_TYPE", + "STRING_KEY_DATA_CACHE", + "STRING_KEY_BACKUP_AND_RESTORE_DATA", + "STRING_KEY_POINT_IN_TIME_RECOVERY", + "STRING_KEY_EDIT_BACKUP_SETTINGS", + "STRING_KEY_GO_TO_RESOURCE", + "STRING_KEY_OBSERVATION_START", + "STRING_KEY_OBSERVATION_END", + "STRING_KEY_STORAGE_UTILIZATION_RATIO", + "STRING_KEY_CURRENT_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_MAINTENANCE_WINDOW", + "STRING_KEY_FIND_AND_SET_MAINTENANCE_WINDOWS", + "STRING_KEY_MAXMEMORY_POLICY", + "STRING_KEY_SYSTEM_MEMORY_USAGE_RATIO", + "STRING_KEY_FAILED_SNAPSHOTS", + "STRING_KEY_EXPIRABLE_KEYS_PERCENTAGE", + "STRING_KEY_OOM_COUNT", + "STRING_KEY_EDIT_RESOURCE_CTA", + "STRING_KEY_MEMORYSTORE_MEMORY_MANAGEMENT_BEST_PRACTICES", + "STRING_KEY_MEMORYSTORE_REDIS_CRASHES", + "STRING_KEY_BIGTABLE_MIN_NUMBER_OF_NODES_FOR_CUD", + "STRING_KEY_BIGTABLE_AVERAGE_CLUSTER_NODE_COUNT", + "STRING_KEY_BIGTABLE_CUD_DOCS", + "STRING_KEY_SPANNER_MITIGATE_CMEK_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_SPANNER_MITIGATE_DRZ_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_ALLOYDB_RECOMMENDED_BACKUP_COUNT", + "STRING_KEY_SQLSERVER_BEST_PRACTICES_GLOBAL", + "STRING_KEY_SQLSERVER_SERVER_MEMORY_CONFIGURATION", + "STRING_KEY_INSECURE_RULES_AUTHENTICATION", + "STRING_KEY_KEY_VISUALIZER_CTA", + "STRING_KEY_SPANNER_SCHEMA", + "STRING_KEY_SPANNER_SCHEMA_BEST_PRACTICES", + "STRING_KEY_SPANNER_MANAGE_DATA_USING_CONSOLE", + "STRING_KEY_SPANNER_MIGRATE_YOUR_DATA", + "STRING_KEY_SPANNER_MAKE_SCHEMA_UPDATE", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_TABLES", + "STRING_KEY_SPANNER_PROTOCOL_BUFFER_LIMITATIONS", + "STRING_KEY_SPANNER_QUERY_INSIGHTS", + "STRING_KEY_SPANNER_USE_INDEX_ADVISOR", + "STRING_KEY_SPANNER_SEARCH_INDEXES", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_INDEXES", + "STRING_KEY_SPANNER_FOREIGN_KEYS", + "STRING_KEY_SPANNER_CREATE_MANAGE_FOREIGN_KEY_RELATIONSHIPS", + "STRING_KEY_SPANNER_IMPLEMENT_MULTI_TENANCY", + "STRING_KEY_SPANNER_DATABASE_SPLITS", + "STRING_KEY_SPANNER_CREATE_ALERTS_FOR_SPANNER_METRICS", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_SCHEMAS", + "STRING_KEY_SPANNER_VIEW_OBJECT_CTA", + "STRING_KEY_SPANNER_QUERY_INSIGHTS_CTA", + "STRING_KEY_SPANNER_MONITORING_CTA", + "STRING_KEY_BIGTABLE_CURRENT_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_LATEST_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_APP_PROFILE_IDS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARY_LANGUAGE", + "STRING_KEY_BIGTABLE_UPGRADING_CLIENTS", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_TABLES", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_DOCS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARIES", + "STRING_KEY_BIGTABLE_DATABOOST_DOCS", + "STRING_KEY_INSTANCE_NAME", + "STRING_KEY_APP_PROFILE_ID", + "STRING_KEY_CREATE_APP_PROFILE_CTA", + "STRING_KEY_BIGTABLE_DATABOOST_OVERVIEW_DOCS", + "STRING_KEY_BIGTABLE_APP_PROFILES_DOCS", + "STRING_KEY_THREAD_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_THREAD_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_ENABLE_DATABASE_AUDITING", + "STRING_KEY_JOIN_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_JOIN_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_CURRENT_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_RECOMMENDED_VALUE", + "STRING_KEY_NUMBER_OF_TABLES", + "STRING_KEY_MYSQL_HIGH_NUMBER_OF_TABLES_PLAYBOOK", + "STRING_KEY_TMP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_TMP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TRANSACTION_ID_UTILIZATION_PERCENTAGE", + "STRING_KEY_DAYS_TO_WRAPAROUND", + "STRING_KEY_PG_TRANSACTION_ID_UTILIZATION_PLAYBOOK", + "STRING_KEY_MAX_CPU_UTILIZATION", + "STRING_KEY_MAX_MEMORY_UTILIZATION", + "STRING_KEY_DISK_USAGE_BYTES_CHANGE", + "STRING_KEY_MAX_DISK_READ_OPS_COUNT", + "STRING_KEY_MAX_DISK_WRITE_OPS_COUNT", + "STRING_KEY_SQL_IDLE_PLAYBOOK", + "STRING_KEY_CURRENT_STORAGE_USAGE", + "STRING_KEY_CURRENT_STORAGE_LIMIT", + "STRING_KEY_ESTIMATED_STORAGE_RUN_OUT_PERIOD", + "STRING_KEY_CURRENT_MACHINE_TYPE", + "STRING_KEY_RECOMMENDED_MACHINE_TYPE", + "STRING_KEY_CURRENT_CORES", + "STRING_KEY_RECOMMENDED_CORES", + "STRING_KEY_REVIEW_ORG_POLICY", + "STRING_KEY_USE_AUTH_PROXY_OR_CONNECTORS", + "STRING_KEY_REMOVE_AUTHORIZED_NETWORKS", + "STRING_KEY_ROTATE_SERVER_CERTIFICATE", + "STRING_KEY_MANAGE_SERVER_CERTIFICATES", + "STRING_KEY_PUBLIC_IP_ENABLED", + "STRING_KEY_PRIVATE_IP_ENABLED", + "STRING_KEY_CONFIGURE_PRIVATE_IP", + "STRING_KEY_DISABLE_PUBLIC_IP", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_ESTIMATED_OOM_PROBABILITY", + "STRING_KEY_MAX_CONNECTIONS_CURRENT_VALUE", + "STRING_KEY_MAX_CONNECTIONS_RECOMMENDED_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "linkValue": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1Link", + "description": "Link value for the table cell." + }, + "numberValue": { + "description": "Number value for the table cell.", + "format": "double", + "type": "number" + }, + "stringValue": { + "description": "String value for the table cell. This should be used when value doesn't need to be translated.", + "type": "string" + }, + "timestampValue": { + "description": "Timestamp value for the table cell.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1Table": { + "description": "Field for adding custom complex table", + "id": "CloudRecommendationsRecommendersDatabasesV1Table", + "properties": { + "headers": { + "description": "Headers for the table. IMPORTANT: Each header defines a column and its title. All Headers must be unique and shouldn't be used more than once within the same list.", + "items": { + "enum": [ + "STRING_KEY_UNSPECIFIED", + "STRING_KEY_VIEW_INSTANCE_CTA", + "STRING_KEY_EDIT_INSTANCE", + "STRING_KEY_EDIT_USERS", + "STRING_KEY_MYSQL_FLAG_DEFAULT_AUTHENTICATION_PLUGIN", + "STRING_KEY_PG_FLAG_PASSWORD_ENCRYPTION", + "STRING_KEY_ENABLE_USER_PASSWORD_POLICIES", + "STRING_KEY_CONFIGURE_AUTHENTICATION", + "STRING_KEY_CONFIGURE_DATABASE_FLAGS", + "STRING_KEY_AVERAGE_CPU_USAGE", + "STRING_KEY_OBSERVATION_TIME", + "STRING_KEY_CONFIGURE_AUTOSCALING", + "STRING_KEY_VIEW_CLUSTER_CTA", + "STRING_KEY_EDIT_DISASTER_RECOVERY_SETTINGS", + "STRING_KEY_ENABLE_SCHEDULED_BACKUPS", + "STRING_KEY_ENABLE_POINT_IN_TIME_RECOVERY", + "STRING_KEY_SCHEDULED_BACKUPS_ENABLEMENT", + "STRING_KEY_PITR_ENABLEMENT", + "STRING_KEY_INSECURE_RULES_DETECTED", + "STRING_KEY_EXPIRING_RULES_DETECTED", + "STRING_KEY_FIX_INSECURE_AND_EXPIRING_RULES", + "STRING_KEY_EDIT_FIREBASE_RULES", + "STRING_KEY_MAXIMUM_OF_PREDICTED_DISK_USAGE_FOR_THE_NEXT_7_DAYS", + "STRING_KEY_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_PER_NODE_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_CURRENT_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_CURRENT_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_ABOUT_MAINTENANCE", + "STRING_KEY_ABOUT_SCALING_UP", + "STRING_KEY_CURRENT_MEMORY_SIZE_GB", + "STRING_KEY_RECOMMENDED_MEMORY_SIZE_GB", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_CURRENT_STORAGE_USED_BYTES_OF_THE_CLUSTER", + "STRING_KEY_ABOUT_SCALING_OUT", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO_ACROSS_SHARDS", + "STRING_KEY_CURRENT_NUMBER_OF_SHARDS", + "STRING_KEY_RECOMMENDED_NUMBER_OF_SHARDS", + "STRING_KEY_ABOUT_AVOIDING_EXPENSIVE_COMMANDS", + "STRING_KEY_EXPENSIVE_COMMANDS", + "STRING_KEY_UPGRADE_TO_ENTERPRISE_PLUS_EDITION", + "STRING_KEY_ENABLE_DATA_CACHE", + "STRING_KEY_OBSERVATION_PERIOD", + "STRING_KEY_LAST_DEFERRED_MAINTENANCE_OPERATION_TIME", + "STRING_KEY_LAST_INSTANCE_MAINTENANCE_EVENT", + "STRING_KEY_USE_AUTO_MSM", + "STRING_KEY_CURRENT_MAX_SERVER_MEMORY_MB", + "STRING_KEY_AUTOSCALING_CONFIGURATION", + "STRING_KEY_SCALING_DOCS", + "STRING_KEY_MODIFY_INSTANCE", + "STRING_KEY_HOTSPOTS_AFFECTED_TABLES", + "STRING_KEY_HOT_TABLETS_DOCS", + "STRING_KEY_KEY_VISUALIZER_DOCS", + "STRING_KEY_BIGTABLE_PERFORMANCE_DOCS", + "STRING_KEY_VIEW_USERS", + "STRING_KEY_SPANNER_PREVENT_ACCIDENTAL_DELETION_DOCS", + "STRING_KEY_SPANNER_ENABLE_DATABASE_DELETION_PROTECTION_DOCS", + "STRING_KEY_SPANNER_BACKUPS_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_SCHEDULES_DOCS", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE_BACKUPS", + "STRING_KEY_SPANNER_AFFECTED_DATABASES", + "STRING_KEY_SPANNER_PANTHEON_BACKUP_SETTINGS", + "STRING_KEY_CLOUD_SQL_EDITIONS", + "STRING_KEY_ALLOYDB_ENABLE_HA_DOCS", + "STRING_KEY_ALLOYDB_CONFIGURE_BACKUP_POLICY_DOCS", + "STRING_KEY_VIEW_BACKUP_POLICY_CTA", + "STRING_KEY_ALLOYDB_BACKUP_COUNT", + "STRING_KEY_ALLOYDB_BACKUP_POLICY_TYPE", + "STRING_KEY_DATA_CACHE", + "STRING_KEY_BACKUP_AND_RESTORE_DATA", + "STRING_KEY_POINT_IN_TIME_RECOVERY", + "STRING_KEY_EDIT_BACKUP_SETTINGS", + "STRING_KEY_GO_TO_RESOURCE", + "STRING_KEY_OBSERVATION_START", + "STRING_KEY_OBSERVATION_END", + "STRING_KEY_STORAGE_UTILIZATION_RATIO", + "STRING_KEY_CURRENT_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_MAINTENANCE_WINDOW", + "STRING_KEY_FIND_AND_SET_MAINTENANCE_WINDOWS", + "STRING_KEY_MAXMEMORY_POLICY", + "STRING_KEY_SYSTEM_MEMORY_USAGE_RATIO", + "STRING_KEY_FAILED_SNAPSHOTS", + "STRING_KEY_EXPIRABLE_KEYS_PERCENTAGE", + "STRING_KEY_OOM_COUNT", + "STRING_KEY_EDIT_RESOURCE_CTA", + "STRING_KEY_MEMORYSTORE_MEMORY_MANAGEMENT_BEST_PRACTICES", + "STRING_KEY_MEMORYSTORE_REDIS_CRASHES", + "STRING_KEY_BIGTABLE_MIN_NUMBER_OF_NODES_FOR_CUD", + "STRING_KEY_BIGTABLE_AVERAGE_CLUSTER_NODE_COUNT", + "STRING_KEY_BIGTABLE_CUD_DOCS", + "STRING_KEY_SPANNER_MITIGATE_CMEK_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_SPANNER_MITIGATE_DRZ_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_ALLOYDB_RECOMMENDED_BACKUP_COUNT", + "STRING_KEY_SQLSERVER_BEST_PRACTICES_GLOBAL", + "STRING_KEY_SQLSERVER_SERVER_MEMORY_CONFIGURATION", + "STRING_KEY_INSECURE_RULES_AUTHENTICATION", + "STRING_KEY_KEY_VISUALIZER_CTA", + "STRING_KEY_SPANNER_SCHEMA", + "STRING_KEY_SPANNER_SCHEMA_BEST_PRACTICES", + "STRING_KEY_SPANNER_MANAGE_DATA_USING_CONSOLE", + "STRING_KEY_SPANNER_MIGRATE_YOUR_DATA", + "STRING_KEY_SPANNER_MAKE_SCHEMA_UPDATE", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_TABLES", + "STRING_KEY_SPANNER_PROTOCOL_BUFFER_LIMITATIONS", + "STRING_KEY_SPANNER_QUERY_INSIGHTS", + "STRING_KEY_SPANNER_USE_INDEX_ADVISOR", + "STRING_KEY_SPANNER_SEARCH_INDEXES", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_INDEXES", + "STRING_KEY_SPANNER_FOREIGN_KEYS", + "STRING_KEY_SPANNER_CREATE_MANAGE_FOREIGN_KEY_RELATIONSHIPS", + "STRING_KEY_SPANNER_IMPLEMENT_MULTI_TENANCY", + "STRING_KEY_SPANNER_DATABASE_SPLITS", + "STRING_KEY_SPANNER_CREATE_ALERTS_FOR_SPANNER_METRICS", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_SCHEMAS", + "STRING_KEY_SPANNER_VIEW_OBJECT_CTA", + "STRING_KEY_SPANNER_QUERY_INSIGHTS_CTA", + "STRING_KEY_SPANNER_MONITORING_CTA", + "STRING_KEY_BIGTABLE_CURRENT_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_LATEST_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_APP_PROFILE_IDS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARY_LANGUAGE", + "STRING_KEY_BIGTABLE_UPGRADING_CLIENTS", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_TABLES", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_DOCS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARIES", + "STRING_KEY_BIGTABLE_DATABOOST_DOCS", + "STRING_KEY_INSTANCE_NAME", + "STRING_KEY_APP_PROFILE_ID", + "STRING_KEY_CREATE_APP_PROFILE_CTA", + "STRING_KEY_BIGTABLE_DATABOOST_OVERVIEW_DOCS", + "STRING_KEY_BIGTABLE_APP_PROFILES_DOCS", + "STRING_KEY_THREAD_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_THREAD_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_ENABLE_DATABASE_AUDITING", + "STRING_KEY_JOIN_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_JOIN_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_CURRENT_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_RECOMMENDED_VALUE", + "STRING_KEY_NUMBER_OF_TABLES", + "STRING_KEY_MYSQL_HIGH_NUMBER_OF_TABLES_PLAYBOOK", + "STRING_KEY_TMP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_TMP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TRANSACTION_ID_UTILIZATION_PERCENTAGE", + "STRING_KEY_DAYS_TO_WRAPAROUND", + "STRING_KEY_PG_TRANSACTION_ID_UTILIZATION_PLAYBOOK", + "STRING_KEY_MAX_CPU_UTILIZATION", + "STRING_KEY_MAX_MEMORY_UTILIZATION", + "STRING_KEY_DISK_USAGE_BYTES_CHANGE", + "STRING_KEY_MAX_DISK_READ_OPS_COUNT", + "STRING_KEY_MAX_DISK_WRITE_OPS_COUNT", + "STRING_KEY_SQL_IDLE_PLAYBOOK", + "STRING_KEY_CURRENT_STORAGE_USAGE", + "STRING_KEY_CURRENT_STORAGE_LIMIT", + "STRING_KEY_ESTIMATED_STORAGE_RUN_OUT_PERIOD", + "STRING_KEY_CURRENT_MACHINE_TYPE", + "STRING_KEY_RECOMMENDED_MACHINE_TYPE", + "STRING_KEY_CURRENT_CORES", + "STRING_KEY_RECOMMENDED_CORES", + "STRING_KEY_REVIEW_ORG_POLICY", + "STRING_KEY_USE_AUTH_PROXY_OR_CONNECTORS", + "STRING_KEY_REMOVE_AUTHORIZED_NETWORKS", + "STRING_KEY_ROTATE_SERVER_CERTIFICATE", + "STRING_KEY_MANAGE_SERVER_CERTIFICATES", + "STRING_KEY_PUBLIC_IP_ENABLED", + "STRING_KEY_PRIVATE_IP_ENABLED", + "STRING_KEY_CONFIGURE_PRIVATE_IP", + "STRING_KEY_DISABLE_PUBLIC_IP", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_ESTIMATED_OOM_PROBABILITY", + "STRING_KEY_MAX_CONNECTIONS_CURRENT_VALUE", + "STRING_KEY_MAX_CONNECTIONS_RECOMMENDED_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "type": "array" + }, + "rows": { + "description": "Rows for the table. Ensure that the order of the cells in the row matches the order of the headers.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1TableRow" + }, + "type": "array" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1TableField": { + "id": "CloudRecommendationsRecommendersDatabasesV1TableField", + "properties": { + "key": { + "description": "Enum used to map to the string to be shown in the UI for the field.", + "enum": [ + "STRING_KEY_UNSPECIFIED", + "STRING_KEY_VIEW_INSTANCE_CTA", + "STRING_KEY_EDIT_INSTANCE", + "STRING_KEY_EDIT_USERS", + "STRING_KEY_MYSQL_FLAG_DEFAULT_AUTHENTICATION_PLUGIN", + "STRING_KEY_PG_FLAG_PASSWORD_ENCRYPTION", + "STRING_KEY_ENABLE_USER_PASSWORD_POLICIES", + "STRING_KEY_CONFIGURE_AUTHENTICATION", + "STRING_KEY_CONFIGURE_DATABASE_FLAGS", + "STRING_KEY_AVERAGE_CPU_USAGE", + "STRING_KEY_OBSERVATION_TIME", + "STRING_KEY_CONFIGURE_AUTOSCALING", + "STRING_KEY_VIEW_CLUSTER_CTA", + "STRING_KEY_EDIT_DISASTER_RECOVERY_SETTINGS", + "STRING_KEY_ENABLE_SCHEDULED_BACKUPS", + "STRING_KEY_ENABLE_POINT_IN_TIME_RECOVERY", + "STRING_KEY_SCHEDULED_BACKUPS_ENABLEMENT", + "STRING_KEY_PITR_ENABLEMENT", + "STRING_KEY_INSECURE_RULES_DETECTED", + "STRING_KEY_EXPIRING_RULES_DETECTED", + "STRING_KEY_FIX_INSECURE_AND_EXPIRING_RULES", + "STRING_KEY_EDIT_FIREBASE_RULES", + "STRING_KEY_MAXIMUM_OF_PREDICTED_DISK_USAGE_FOR_THE_NEXT_7_DAYS", + "STRING_KEY_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_PER_NODE_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_CURRENT_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_CURRENT_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_ABOUT_MAINTENANCE", + "STRING_KEY_ABOUT_SCALING_UP", + "STRING_KEY_CURRENT_MEMORY_SIZE_GB", + "STRING_KEY_RECOMMENDED_MEMORY_SIZE_GB", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_CURRENT_STORAGE_USED_BYTES_OF_THE_CLUSTER", + "STRING_KEY_ABOUT_SCALING_OUT", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO_ACROSS_SHARDS", + "STRING_KEY_CURRENT_NUMBER_OF_SHARDS", + "STRING_KEY_RECOMMENDED_NUMBER_OF_SHARDS", + "STRING_KEY_ABOUT_AVOIDING_EXPENSIVE_COMMANDS", + "STRING_KEY_EXPENSIVE_COMMANDS", + "STRING_KEY_UPGRADE_TO_ENTERPRISE_PLUS_EDITION", + "STRING_KEY_ENABLE_DATA_CACHE", + "STRING_KEY_OBSERVATION_PERIOD", + "STRING_KEY_LAST_DEFERRED_MAINTENANCE_OPERATION_TIME", + "STRING_KEY_LAST_INSTANCE_MAINTENANCE_EVENT", + "STRING_KEY_USE_AUTO_MSM", + "STRING_KEY_CURRENT_MAX_SERVER_MEMORY_MB", + "STRING_KEY_AUTOSCALING_CONFIGURATION", + "STRING_KEY_SCALING_DOCS", + "STRING_KEY_MODIFY_INSTANCE", + "STRING_KEY_HOTSPOTS_AFFECTED_TABLES", + "STRING_KEY_HOT_TABLETS_DOCS", + "STRING_KEY_KEY_VISUALIZER_DOCS", + "STRING_KEY_BIGTABLE_PERFORMANCE_DOCS", + "STRING_KEY_VIEW_USERS", + "STRING_KEY_SPANNER_PREVENT_ACCIDENTAL_DELETION_DOCS", + "STRING_KEY_SPANNER_ENABLE_DATABASE_DELETION_PROTECTION_DOCS", + "STRING_KEY_SPANNER_BACKUPS_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_SCHEDULES_DOCS", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE_BACKUPS", + "STRING_KEY_SPANNER_AFFECTED_DATABASES", + "STRING_KEY_SPANNER_PANTHEON_BACKUP_SETTINGS", + "STRING_KEY_CLOUD_SQL_EDITIONS", + "STRING_KEY_ALLOYDB_ENABLE_HA_DOCS", + "STRING_KEY_ALLOYDB_CONFIGURE_BACKUP_POLICY_DOCS", + "STRING_KEY_VIEW_BACKUP_POLICY_CTA", + "STRING_KEY_ALLOYDB_BACKUP_COUNT", + "STRING_KEY_ALLOYDB_BACKUP_POLICY_TYPE", + "STRING_KEY_DATA_CACHE", + "STRING_KEY_BACKUP_AND_RESTORE_DATA", + "STRING_KEY_POINT_IN_TIME_RECOVERY", + "STRING_KEY_EDIT_BACKUP_SETTINGS", + "STRING_KEY_GO_TO_RESOURCE", + "STRING_KEY_OBSERVATION_START", + "STRING_KEY_OBSERVATION_END", + "STRING_KEY_STORAGE_UTILIZATION_RATIO", + "STRING_KEY_CURRENT_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_MAINTENANCE_WINDOW", + "STRING_KEY_FIND_AND_SET_MAINTENANCE_WINDOWS", + "STRING_KEY_MAXMEMORY_POLICY", + "STRING_KEY_SYSTEM_MEMORY_USAGE_RATIO", + "STRING_KEY_FAILED_SNAPSHOTS", + "STRING_KEY_EXPIRABLE_KEYS_PERCENTAGE", + "STRING_KEY_OOM_COUNT", + "STRING_KEY_EDIT_RESOURCE_CTA", + "STRING_KEY_MEMORYSTORE_MEMORY_MANAGEMENT_BEST_PRACTICES", + "STRING_KEY_MEMORYSTORE_REDIS_CRASHES", + "STRING_KEY_BIGTABLE_MIN_NUMBER_OF_NODES_FOR_CUD", + "STRING_KEY_BIGTABLE_AVERAGE_CLUSTER_NODE_COUNT", + "STRING_KEY_BIGTABLE_CUD_DOCS", + "STRING_KEY_SPANNER_MITIGATE_CMEK_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_SPANNER_MITIGATE_DRZ_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_ALLOYDB_RECOMMENDED_BACKUP_COUNT", + "STRING_KEY_SQLSERVER_BEST_PRACTICES_GLOBAL", + "STRING_KEY_SQLSERVER_SERVER_MEMORY_CONFIGURATION", + "STRING_KEY_INSECURE_RULES_AUTHENTICATION", + "STRING_KEY_KEY_VISUALIZER_CTA", + "STRING_KEY_SPANNER_SCHEMA", + "STRING_KEY_SPANNER_SCHEMA_BEST_PRACTICES", + "STRING_KEY_SPANNER_MANAGE_DATA_USING_CONSOLE", + "STRING_KEY_SPANNER_MIGRATE_YOUR_DATA", + "STRING_KEY_SPANNER_MAKE_SCHEMA_UPDATE", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_TABLES", + "STRING_KEY_SPANNER_PROTOCOL_BUFFER_LIMITATIONS", + "STRING_KEY_SPANNER_QUERY_INSIGHTS", + "STRING_KEY_SPANNER_USE_INDEX_ADVISOR", + "STRING_KEY_SPANNER_SEARCH_INDEXES", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_INDEXES", + "STRING_KEY_SPANNER_FOREIGN_KEYS", + "STRING_KEY_SPANNER_CREATE_MANAGE_FOREIGN_KEY_RELATIONSHIPS", + "STRING_KEY_SPANNER_IMPLEMENT_MULTI_TENANCY", + "STRING_KEY_SPANNER_DATABASE_SPLITS", + "STRING_KEY_SPANNER_CREATE_ALERTS_FOR_SPANNER_METRICS", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_SCHEMAS", + "STRING_KEY_SPANNER_VIEW_OBJECT_CTA", + "STRING_KEY_SPANNER_QUERY_INSIGHTS_CTA", + "STRING_KEY_SPANNER_MONITORING_CTA", + "STRING_KEY_BIGTABLE_CURRENT_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_LATEST_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_APP_PROFILE_IDS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARY_LANGUAGE", + "STRING_KEY_BIGTABLE_UPGRADING_CLIENTS", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_TABLES", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_DOCS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARIES", + "STRING_KEY_BIGTABLE_DATABOOST_DOCS", + "STRING_KEY_INSTANCE_NAME", + "STRING_KEY_APP_PROFILE_ID", + "STRING_KEY_CREATE_APP_PROFILE_CTA", + "STRING_KEY_BIGTABLE_DATABOOST_OVERVIEW_DOCS", + "STRING_KEY_BIGTABLE_APP_PROFILES_DOCS", + "STRING_KEY_THREAD_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_THREAD_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_ENABLE_DATABASE_AUDITING", + "STRING_KEY_JOIN_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_JOIN_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_CURRENT_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_RECOMMENDED_VALUE", + "STRING_KEY_NUMBER_OF_TABLES", + "STRING_KEY_MYSQL_HIGH_NUMBER_OF_TABLES_PLAYBOOK", + "STRING_KEY_TMP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_TMP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TRANSACTION_ID_UTILIZATION_PERCENTAGE", + "STRING_KEY_DAYS_TO_WRAPAROUND", + "STRING_KEY_PG_TRANSACTION_ID_UTILIZATION_PLAYBOOK", + "STRING_KEY_MAX_CPU_UTILIZATION", + "STRING_KEY_MAX_MEMORY_UTILIZATION", + "STRING_KEY_DISK_USAGE_BYTES_CHANGE", + "STRING_KEY_MAX_DISK_READ_OPS_COUNT", + "STRING_KEY_MAX_DISK_WRITE_OPS_COUNT", + "STRING_KEY_SQL_IDLE_PLAYBOOK", + "STRING_KEY_CURRENT_STORAGE_USAGE", + "STRING_KEY_CURRENT_STORAGE_LIMIT", + "STRING_KEY_ESTIMATED_STORAGE_RUN_OUT_PERIOD", + "STRING_KEY_CURRENT_MACHINE_TYPE", + "STRING_KEY_RECOMMENDED_MACHINE_TYPE", + "STRING_KEY_CURRENT_CORES", + "STRING_KEY_RECOMMENDED_CORES", + "STRING_KEY_REVIEW_ORG_POLICY", + "STRING_KEY_USE_AUTH_PROXY_OR_CONNECTORS", + "STRING_KEY_REMOVE_AUTHORIZED_NETWORKS", + "STRING_KEY_ROTATE_SERVER_CERTIFICATE", + "STRING_KEY_MANAGE_SERVER_CERTIFICATES", + "STRING_KEY_PUBLIC_IP_ENABLED", + "STRING_KEY_PRIVATE_IP_ENABLED", + "STRING_KEY_CONFIGURE_PRIVATE_IP", + "STRING_KEY_DISABLE_PUBLIC_IP", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_ESTIMATED_OOM_PROBABILITY", + "STRING_KEY_MAX_CONNECTIONS_CURRENT_VALUE", + "STRING_KEY_MAX_CONNECTIONS_RECOMMENDED_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "numberValue": { + "description": "Number value for the table field.", + "format": "double", + "type": "number" + }, + "stringValue": { + "description": "String value for the table field. Note that this string won't be translated. It is advised to provide values that don't require translation.", + "type": "string" + }, + "timestampValue": { + "description": "Timestamp value for the table field. Timestamp will be shown in the user's timezone with the format: \"Feb 27, 2009 3:22:54 PM\".", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1TableRow": { + "description": "Table row for a table", + "id": "CloudRecommendationsRecommendersDatabasesV1TableRow", + "properties": { + "cells": { + "description": "Table cells for the table row.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1SimpleValue" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRecommenderV1CostProjection": { "description": "Contains metadata about how much money a recommendation can save or incur.", "id": "GoogleCloudRecommenderV1CostProjection", diff --git a/discovery/recommender-v1beta1.json b/discovery/recommender-v1beta1.json index d41320c546..917836831e 100644 --- a/discovery/recommender-v1beta1.json +++ b/discovery/recommender-v1beta1.json @@ -2126,9 +2126,2158 @@ } } }, - "revision": "20260621", + "revision": "20260913", "rootUrl": "https://recommender.googleapis.com/", "schemas": { + "CloudRecommendationsRecommendersDatabasesV1ContentChunk": { + "id": "CloudRecommendationsRecommendersDatabasesV1ContentChunk", + "properties": { + "table": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1Table", + "description": "Table with headers and rows content for the content chunk." + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1CtaConfig": { + "id": "CloudRecommendationsRecommendersDatabasesV1CtaConfig", + "properties": { + "isPrimary": { + "type": "boolean" + }, + "label": { + "description": "Enum used to map to the string to be shown in the UI for the button.", + "enum": [ + "STRING_KEY_UNSPECIFIED", + "STRING_KEY_VIEW_INSTANCE_CTA", + "STRING_KEY_EDIT_INSTANCE", + "STRING_KEY_EDIT_USERS", + "STRING_KEY_MYSQL_FLAG_DEFAULT_AUTHENTICATION_PLUGIN", + "STRING_KEY_PG_FLAG_PASSWORD_ENCRYPTION", + "STRING_KEY_ENABLE_USER_PASSWORD_POLICIES", + "STRING_KEY_CONFIGURE_AUTHENTICATION", + "STRING_KEY_CONFIGURE_DATABASE_FLAGS", + "STRING_KEY_AVERAGE_CPU_USAGE", + "STRING_KEY_OBSERVATION_TIME", + "STRING_KEY_CONFIGURE_AUTOSCALING", + "STRING_KEY_VIEW_CLUSTER_CTA", + "STRING_KEY_EDIT_DISASTER_RECOVERY_SETTINGS", + "STRING_KEY_ENABLE_SCHEDULED_BACKUPS", + "STRING_KEY_ENABLE_POINT_IN_TIME_RECOVERY", + "STRING_KEY_SCHEDULED_BACKUPS_ENABLEMENT", + "STRING_KEY_PITR_ENABLEMENT", + "STRING_KEY_INSECURE_RULES_DETECTED", + "STRING_KEY_EXPIRING_RULES_DETECTED", + "STRING_KEY_FIX_INSECURE_AND_EXPIRING_RULES", + "STRING_KEY_EDIT_FIREBASE_RULES", + "STRING_KEY_MAXIMUM_OF_PREDICTED_DISK_USAGE_FOR_THE_NEXT_7_DAYS", + "STRING_KEY_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_PER_NODE_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_CURRENT_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_CURRENT_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_ABOUT_MAINTENANCE", + "STRING_KEY_ABOUT_SCALING_UP", + "STRING_KEY_CURRENT_MEMORY_SIZE_GB", + "STRING_KEY_RECOMMENDED_MEMORY_SIZE_GB", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_CURRENT_STORAGE_USED_BYTES_OF_THE_CLUSTER", + "STRING_KEY_ABOUT_SCALING_OUT", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO_ACROSS_SHARDS", + "STRING_KEY_CURRENT_NUMBER_OF_SHARDS", + "STRING_KEY_RECOMMENDED_NUMBER_OF_SHARDS", + "STRING_KEY_ABOUT_AVOIDING_EXPENSIVE_COMMANDS", + "STRING_KEY_EXPENSIVE_COMMANDS", + "STRING_KEY_UPGRADE_TO_ENTERPRISE_PLUS_EDITION", + "STRING_KEY_ENABLE_DATA_CACHE", + "STRING_KEY_OBSERVATION_PERIOD", + "STRING_KEY_LAST_DEFERRED_MAINTENANCE_OPERATION_TIME", + "STRING_KEY_LAST_INSTANCE_MAINTENANCE_EVENT", + "STRING_KEY_USE_AUTO_MSM", + "STRING_KEY_CURRENT_MAX_SERVER_MEMORY_MB", + "STRING_KEY_AUTOSCALING_CONFIGURATION", + "STRING_KEY_SCALING_DOCS", + "STRING_KEY_MODIFY_INSTANCE", + "STRING_KEY_HOTSPOTS_AFFECTED_TABLES", + "STRING_KEY_HOT_TABLETS_DOCS", + "STRING_KEY_KEY_VISUALIZER_DOCS", + "STRING_KEY_BIGTABLE_PERFORMANCE_DOCS", + "STRING_KEY_VIEW_USERS", + "STRING_KEY_SPANNER_PREVENT_ACCIDENTAL_DELETION_DOCS", + "STRING_KEY_SPANNER_ENABLE_DATABASE_DELETION_PROTECTION_DOCS", + "STRING_KEY_SPANNER_BACKUPS_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_SCHEDULES_DOCS", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE_BACKUPS", + "STRING_KEY_SPANNER_AFFECTED_DATABASES", + "STRING_KEY_SPANNER_PANTHEON_BACKUP_SETTINGS", + "STRING_KEY_CLOUD_SQL_EDITIONS", + "STRING_KEY_ALLOYDB_ENABLE_HA_DOCS", + "STRING_KEY_ALLOYDB_CONFIGURE_BACKUP_POLICY_DOCS", + "STRING_KEY_VIEW_BACKUP_POLICY_CTA", + "STRING_KEY_ALLOYDB_BACKUP_COUNT", + "STRING_KEY_ALLOYDB_BACKUP_POLICY_TYPE", + "STRING_KEY_DATA_CACHE", + "STRING_KEY_BACKUP_AND_RESTORE_DATA", + "STRING_KEY_POINT_IN_TIME_RECOVERY", + "STRING_KEY_EDIT_BACKUP_SETTINGS", + "STRING_KEY_GO_TO_RESOURCE", + "STRING_KEY_OBSERVATION_START", + "STRING_KEY_OBSERVATION_END", + "STRING_KEY_STORAGE_UTILIZATION_RATIO", + "STRING_KEY_CURRENT_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_MAINTENANCE_WINDOW", + "STRING_KEY_FIND_AND_SET_MAINTENANCE_WINDOWS", + "STRING_KEY_MAXMEMORY_POLICY", + "STRING_KEY_SYSTEM_MEMORY_USAGE_RATIO", + "STRING_KEY_FAILED_SNAPSHOTS", + "STRING_KEY_EXPIRABLE_KEYS_PERCENTAGE", + "STRING_KEY_OOM_COUNT", + "STRING_KEY_EDIT_RESOURCE_CTA", + "STRING_KEY_MEMORYSTORE_MEMORY_MANAGEMENT_BEST_PRACTICES", + "STRING_KEY_MEMORYSTORE_REDIS_CRASHES", + "STRING_KEY_BIGTABLE_MIN_NUMBER_OF_NODES_FOR_CUD", + "STRING_KEY_BIGTABLE_AVERAGE_CLUSTER_NODE_COUNT", + "STRING_KEY_BIGTABLE_CUD_DOCS", + "STRING_KEY_SPANNER_MITIGATE_CMEK_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_SPANNER_MITIGATE_DRZ_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_ALLOYDB_RECOMMENDED_BACKUP_COUNT", + "STRING_KEY_SQLSERVER_BEST_PRACTICES_GLOBAL", + "STRING_KEY_SQLSERVER_SERVER_MEMORY_CONFIGURATION", + "STRING_KEY_INSECURE_RULES_AUTHENTICATION", + "STRING_KEY_KEY_VISUALIZER_CTA", + "STRING_KEY_SPANNER_SCHEMA", + "STRING_KEY_SPANNER_SCHEMA_BEST_PRACTICES", + "STRING_KEY_SPANNER_MANAGE_DATA_USING_CONSOLE", + "STRING_KEY_SPANNER_MIGRATE_YOUR_DATA", + "STRING_KEY_SPANNER_MAKE_SCHEMA_UPDATE", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_TABLES", + "STRING_KEY_SPANNER_PROTOCOL_BUFFER_LIMITATIONS", + "STRING_KEY_SPANNER_QUERY_INSIGHTS", + "STRING_KEY_SPANNER_USE_INDEX_ADVISOR", + "STRING_KEY_SPANNER_SEARCH_INDEXES", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_INDEXES", + "STRING_KEY_SPANNER_FOREIGN_KEYS", + "STRING_KEY_SPANNER_CREATE_MANAGE_FOREIGN_KEY_RELATIONSHIPS", + "STRING_KEY_SPANNER_IMPLEMENT_MULTI_TENANCY", + "STRING_KEY_SPANNER_DATABASE_SPLITS", + "STRING_KEY_SPANNER_CREATE_ALERTS_FOR_SPANNER_METRICS", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_SCHEMAS", + "STRING_KEY_SPANNER_VIEW_OBJECT_CTA", + "STRING_KEY_SPANNER_QUERY_INSIGHTS_CTA", + "STRING_KEY_SPANNER_MONITORING_CTA", + "STRING_KEY_BIGTABLE_CURRENT_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_LATEST_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_APP_PROFILE_IDS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARY_LANGUAGE", + "STRING_KEY_BIGTABLE_UPGRADING_CLIENTS", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_TABLES", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_DOCS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARIES", + "STRING_KEY_BIGTABLE_DATABOOST_DOCS", + "STRING_KEY_INSTANCE_NAME", + "STRING_KEY_APP_PROFILE_ID", + "STRING_KEY_CREATE_APP_PROFILE_CTA", + "STRING_KEY_BIGTABLE_DATABOOST_OVERVIEW_DOCS", + "STRING_KEY_BIGTABLE_APP_PROFILES_DOCS", + "STRING_KEY_THREAD_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_THREAD_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_ENABLE_DATABASE_AUDITING", + "STRING_KEY_JOIN_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_JOIN_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_CURRENT_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_RECOMMENDED_VALUE", + "STRING_KEY_NUMBER_OF_TABLES", + "STRING_KEY_MYSQL_HIGH_NUMBER_OF_TABLES_PLAYBOOK", + "STRING_KEY_TMP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_TMP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TRANSACTION_ID_UTILIZATION_PERCENTAGE", + "STRING_KEY_DAYS_TO_WRAPAROUND", + "STRING_KEY_PG_TRANSACTION_ID_UTILIZATION_PLAYBOOK", + "STRING_KEY_MAX_CPU_UTILIZATION", + "STRING_KEY_MAX_MEMORY_UTILIZATION", + "STRING_KEY_DISK_USAGE_BYTES_CHANGE", + "STRING_KEY_MAX_DISK_READ_OPS_COUNT", + "STRING_KEY_MAX_DISK_WRITE_OPS_COUNT", + "STRING_KEY_SQL_IDLE_PLAYBOOK", + "STRING_KEY_CURRENT_STORAGE_USAGE", + "STRING_KEY_CURRENT_STORAGE_LIMIT", + "STRING_KEY_ESTIMATED_STORAGE_RUN_OUT_PERIOD", + "STRING_KEY_CURRENT_MACHINE_TYPE", + "STRING_KEY_RECOMMENDED_MACHINE_TYPE", + "STRING_KEY_CURRENT_CORES", + "STRING_KEY_RECOMMENDED_CORES", + "STRING_KEY_REVIEW_ORG_POLICY", + "STRING_KEY_USE_AUTH_PROXY_OR_CONNECTORS", + "STRING_KEY_REMOVE_AUTHORIZED_NETWORKS", + "STRING_KEY_ROTATE_SERVER_CERTIFICATE", + "STRING_KEY_MANAGE_SERVER_CERTIFICATES", + "STRING_KEY_PUBLIC_IP_ENABLED", + "STRING_KEY_PRIVATE_IP_ENABLED", + "STRING_KEY_CONFIGURE_PRIVATE_IP", + "STRING_KEY_DISABLE_PUBLIC_IP", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_ESTIMATED_OOM_PROBABILITY", + "STRING_KEY_MAX_CONNECTIONS_CURRENT_VALUE", + "STRING_KEY_MAX_CONNECTIONS_RECOMMENDED_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "redirectPage": { + "enum": [ + "REDIRECT_PAGE_UNSPECIFIED", + "REDIRECT_PAGE_CUSTOM_URL", + "REDIRECT_PAGE_RESOURCE_OVERVIEW", + "REDIRECT_PAGE_EDIT_RESOURCE", + "REDIRECT_PAGE_BACKUPS", + "REDIRECT_PAGE_USERS", + "REDIRECT_PAGE_SECURITY_RULES", + "REDIRECT_PAGE_KEY_VISUALIZER", + "REDIRECT_PAGE_SYSTEM_INSIGHTS", + "REDIRECT_PAGE_CONNECTIONS", + "REDIRECT_PAGE_CONNECTIONS_SECURITY" + ], + "enumDescriptions": [ + "", + "Use this option to provide a custom URL for the CTA button. For issues using this option, the custom URL specific to the issue is to be defined in the UI.", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1DatabasesPresentationConfig": { + "description": "Presentational config that maps to the UI components of templatized issue subtasks.", + "id": "CloudRecommendationsRecommendersDatabasesV1DatabasesPresentationConfig", + "properties": { + "ctaConfigs": { + "description": "Call to action buttons for the issue.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1CtaConfig" + }, + "type": "array" + }, + "issueContentChunks": { + "description": "Content chunks for the issue.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1ContentChunk" + }, + "type": "array" + }, + "issueDescription": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1Description", + "description": "Issue description for the issue." + }, + "issueTableFields": { + "description": "Fields for the table containing metadata associated with the issue.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1TableField" + }, + "type": "array" + }, + "nextStepsContentChunks": { + "description": "Content chunks for the next steps.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1ContentChunk" + }, + "type": "array" + }, + "nextStepsDescription": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1Description", + "description": "Next steps description for the issue." + }, + "nextStepsTableFields": { + "description": "Fields for the table containing metadata associated with the next steps.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1TableField" + }, + "type": "array" + }, + "playbookLinks": { + "description": "Playbook links for the issue.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1PlaybookLink" + }, + "type": "array" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1Description": { + "id": "CloudRecommendationsRecommendersDatabasesV1Description", + "properties": { + "descriptionEnum": { + "description": "Enum used to map to the html template to be shown in the UI.", + "enum": [ + "DESC_ENUM_UNSPECIFIED" + ], + "enumDescriptions": [ + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1Link": { + "id": "CloudRecommendationsRecommendersDatabasesV1Link", + "properties": { + "label": { + "description": "String label for the link. This value is not translated", + "type": "string" + }, + "redirectPage": { + "description": "Enum used to map to the redirect page for the link.", + "enum": [ + "REDIRECT_PAGE_UNSPECIFIED", + "REDIRECT_PAGE_CUSTOM_URL", + "REDIRECT_PAGE_RESOURCE_OVERVIEW", + "REDIRECT_PAGE_EDIT_RESOURCE", + "REDIRECT_PAGE_BACKUPS", + "REDIRECT_PAGE_USERS", + "REDIRECT_PAGE_SECURITY_RULES", + "REDIRECT_PAGE_KEY_VISUALIZER", + "REDIRECT_PAGE_SYSTEM_INSIGHTS", + "REDIRECT_PAGE_CONNECTIONS", + "REDIRECT_PAGE_CONNECTIONS_SECURITY" + ], + "enumDescriptions": [ + "", + "Use this option to provide a custom URL for the CTA button. For issues using this option, the custom URL specific to the issue is to be defined in the UI.", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "resourceName": { + "description": "Resource name for the table cell. This is used to construct the link.", + "type": "string" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1PlaybookLink": { + "id": "CloudRecommendationsRecommendersDatabasesV1PlaybookLink", + "properties": { + "label": { + "description": "Enum used to map to the string to be shown in the UI for the link.", + "enum": [ + "STRING_KEY_UNSPECIFIED", + "STRING_KEY_VIEW_INSTANCE_CTA", + "STRING_KEY_EDIT_INSTANCE", + "STRING_KEY_EDIT_USERS", + "STRING_KEY_MYSQL_FLAG_DEFAULT_AUTHENTICATION_PLUGIN", + "STRING_KEY_PG_FLAG_PASSWORD_ENCRYPTION", + "STRING_KEY_ENABLE_USER_PASSWORD_POLICIES", + "STRING_KEY_CONFIGURE_AUTHENTICATION", + "STRING_KEY_CONFIGURE_DATABASE_FLAGS", + "STRING_KEY_AVERAGE_CPU_USAGE", + "STRING_KEY_OBSERVATION_TIME", + "STRING_KEY_CONFIGURE_AUTOSCALING", + "STRING_KEY_VIEW_CLUSTER_CTA", + "STRING_KEY_EDIT_DISASTER_RECOVERY_SETTINGS", + "STRING_KEY_ENABLE_SCHEDULED_BACKUPS", + "STRING_KEY_ENABLE_POINT_IN_TIME_RECOVERY", + "STRING_KEY_SCHEDULED_BACKUPS_ENABLEMENT", + "STRING_KEY_PITR_ENABLEMENT", + "STRING_KEY_INSECURE_RULES_DETECTED", + "STRING_KEY_EXPIRING_RULES_DETECTED", + "STRING_KEY_FIX_INSECURE_AND_EXPIRING_RULES", + "STRING_KEY_EDIT_FIREBASE_RULES", + "STRING_KEY_MAXIMUM_OF_PREDICTED_DISK_USAGE_FOR_THE_NEXT_7_DAYS", + "STRING_KEY_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_PER_NODE_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_CURRENT_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_CURRENT_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_ABOUT_MAINTENANCE", + "STRING_KEY_ABOUT_SCALING_UP", + "STRING_KEY_CURRENT_MEMORY_SIZE_GB", + "STRING_KEY_RECOMMENDED_MEMORY_SIZE_GB", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_CURRENT_STORAGE_USED_BYTES_OF_THE_CLUSTER", + "STRING_KEY_ABOUT_SCALING_OUT", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO_ACROSS_SHARDS", + "STRING_KEY_CURRENT_NUMBER_OF_SHARDS", + "STRING_KEY_RECOMMENDED_NUMBER_OF_SHARDS", + "STRING_KEY_ABOUT_AVOIDING_EXPENSIVE_COMMANDS", + "STRING_KEY_EXPENSIVE_COMMANDS", + "STRING_KEY_UPGRADE_TO_ENTERPRISE_PLUS_EDITION", + "STRING_KEY_ENABLE_DATA_CACHE", + "STRING_KEY_OBSERVATION_PERIOD", + "STRING_KEY_LAST_DEFERRED_MAINTENANCE_OPERATION_TIME", + "STRING_KEY_LAST_INSTANCE_MAINTENANCE_EVENT", + "STRING_KEY_USE_AUTO_MSM", + "STRING_KEY_CURRENT_MAX_SERVER_MEMORY_MB", + "STRING_KEY_AUTOSCALING_CONFIGURATION", + "STRING_KEY_SCALING_DOCS", + "STRING_KEY_MODIFY_INSTANCE", + "STRING_KEY_HOTSPOTS_AFFECTED_TABLES", + "STRING_KEY_HOT_TABLETS_DOCS", + "STRING_KEY_KEY_VISUALIZER_DOCS", + "STRING_KEY_BIGTABLE_PERFORMANCE_DOCS", + "STRING_KEY_VIEW_USERS", + "STRING_KEY_SPANNER_PREVENT_ACCIDENTAL_DELETION_DOCS", + "STRING_KEY_SPANNER_ENABLE_DATABASE_DELETION_PROTECTION_DOCS", + "STRING_KEY_SPANNER_BACKUPS_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_SCHEDULES_DOCS", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE_BACKUPS", + "STRING_KEY_SPANNER_AFFECTED_DATABASES", + "STRING_KEY_SPANNER_PANTHEON_BACKUP_SETTINGS", + "STRING_KEY_CLOUD_SQL_EDITIONS", + "STRING_KEY_ALLOYDB_ENABLE_HA_DOCS", + "STRING_KEY_ALLOYDB_CONFIGURE_BACKUP_POLICY_DOCS", + "STRING_KEY_VIEW_BACKUP_POLICY_CTA", + "STRING_KEY_ALLOYDB_BACKUP_COUNT", + "STRING_KEY_ALLOYDB_BACKUP_POLICY_TYPE", + "STRING_KEY_DATA_CACHE", + "STRING_KEY_BACKUP_AND_RESTORE_DATA", + "STRING_KEY_POINT_IN_TIME_RECOVERY", + "STRING_KEY_EDIT_BACKUP_SETTINGS", + "STRING_KEY_GO_TO_RESOURCE", + "STRING_KEY_OBSERVATION_START", + "STRING_KEY_OBSERVATION_END", + "STRING_KEY_STORAGE_UTILIZATION_RATIO", + "STRING_KEY_CURRENT_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_MAINTENANCE_WINDOW", + "STRING_KEY_FIND_AND_SET_MAINTENANCE_WINDOWS", + "STRING_KEY_MAXMEMORY_POLICY", + "STRING_KEY_SYSTEM_MEMORY_USAGE_RATIO", + "STRING_KEY_FAILED_SNAPSHOTS", + "STRING_KEY_EXPIRABLE_KEYS_PERCENTAGE", + "STRING_KEY_OOM_COUNT", + "STRING_KEY_EDIT_RESOURCE_CTA", + "STRING_KEY_MEMORYSTORE_MEMORY_MANAGEMENT_BEST_PRACTICES", + "STRING_KEY_MEMORYSTORE_REDIS_CRASHES", + "STRING_KEY_BIGTABLE_MIN_NUMBER_OF_NODES_FOR_CUD", + "STRING_KEY_BIGTABLE_AVERAGE_CLUSTER_NODE_COUNT", + "STRING_KEY_BIGTABLE_CUD_DOCS", + "STRING_KEY_SPANNER_MITIGATE_CMEK_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_SPANNER_MITIGATE_DRZ_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_ALLOYDB_RECOMMENDED_BACKUP_COUNT", + "STRING_KEY_SQLSERVER_BEST_PRACTICES_GLOBAL", + "STRING_KEY_SQLSERVER_SERVER_MEMORY_CONFIGURATION", + "STRING_KEY_INSECURE_RULES_AUTHENTICATION", + "STRING_KEY_KEY_VISUALIZER_CTA", + "STRING_KEY_SPANNER_SCHEMA", + "STRING_KEY_SPANNER_SCHEMA_BEST_PRACTICES", + "STRING_KEY_SPANNER_MANAGE_DATA_USING_CONSOLE", + "STRING_KEY_SPANNER_MIGRATE_YOUR_DATA", + "STRING_KEY_SPANNER_MAKE_SCHEMA_UPDATE", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_TABLES", + "STRING_KEY_SPANNER_PROTOCOL_BUFFER_LIMITATIONS", + "STRING_KEY_SPANNER_QUERY_INSIGHTS", + "STRING_KEY_SPANNER_USE_INDEX_ADVISOR", + "STRING_KEY_SPANNER_SEARCH_INDEXES", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_INDEXES", + "STRING_KEY_SPANNER_FOREIGN_KEYS", + "STRING_KEY_SPANNER_CREATE_MANAGE_FOREIGN_KEY_RELATIONSHIPS", + "STRING_KEY_SPANNER_IMPLEMENT_MULTI_TENANCY", + "STRING_KEY_SPANNER_DATABASE_SPLITS", + "STRING_KEY_SPANNER_CREATE_ALERTS_FOR_SPANNER_METRICS", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_SCHEMAS", + "STRING_KEY_SPANNER_VIEW_OBJECT_CTA", + "STRING_KEY_SPANNER_QUERY_INSIGHTS_CTA", + "STRING_KEY_SPANNER_MONITORING_CTA", + "STRING_KEY_BIGTABLE_CURRENT_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_LATEST_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_APP_PROFILE_IDS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARY_LANGUAGE", + "STRING_KEY_BIGTABLE_UPGRADING_CLIENTS", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_TABLES", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_DOCS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARIES", + "STRING_KEY_BIGTABLE_DATABOOST_DOCS", + "STRING_KEY_INSTANCE_NAME", + "STRING_KEY_APP_PROFILE_ID", + "STRING_KEY_CREATE_APP_PROFILE_CTA", + "STRING_KEY_BIGTABLE_DATABOOST_OVERVIEW_DOCS", + "STRING_KEY_BIGTABLE_APP_PROFILES_DOCS", + "STRING_KEY_THREAD_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_THREAD_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_ENABLE_DATABASE_AUDITING", + "STRING_KEY_JOIN_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_JOIN_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_CURRENT_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_RECOMMENDED_VALUE", + "STRING_KEY_NUMBER_OF_TABLES", + "STRING_KEY_MYSQL_HIGH_NUMBER_OF_TABLES_PLAYBOOK", + "STRING_KEY_TMP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_TMP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TRANSACTION_ID_UTILIZATION_PERCENTAGE", + "STRING_KEY_DAYS_TO_WRAPAROUND", + "STRING_KEY_PG_TRANSACTION_ID_UTILIZATION_PLAYBOOK", + "STRING_KEY_MAX_CPU_UTILIZATION", + "STRING_KEY_MAX_MEMORY_UTILIZATION", + "STRING_KEY_DISK_USAGE_BYTES_CHANGE", + "STRING_KEY_MAX_DISK_READ_OPS_COUNT", + "STRING_KEY_MAX_DISK_WRITE_OPS_COUNT", + "STRING_KEY_SQL_IDLE_PLAYBOOK", + "STRING_KEY_CURRENT_STORAGE_USAGE", + "STRING_KEY_CURRENT_STORAGE_LIMIT", + "STRING_KEY_ESTIMATED_STORAGE_RUN_OUT_PERIOD", + "STRING_KEY_CURRENT_MACHINE_TYPE", + "STRING_KEY_RECOMMENDED_MACHINE_TYPE", + "STRING_KEY_CURRENT_CORES", + "STRING_KEY_RECOMMENDED_CORES", + "STRING_KEY_REVIEW_ORG_POLICY", + "STRING_KEY_USE_AUTH_PROXY_OR_CONNECTORS", + "STRING_KEY_REMOVE_AUTHORIZED_NETWORKS", + "STRING_KEY_ROTATE_SERVER_CERTIFICATE", + "STRING_KEY_MANAGE_SERVER_CERTIFICATES", + "STRING_KEY_PUBLIC_IP_ENABLED", + "STRING_KEY_PRIVATE_IP_ENABLED", + "STRING_KEY_CONFIGURE_PRIVATE_IP", + "STRING_KEY_DISABLE_PUBLIC_IP", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_ESTIMATED_OOM_PROBABILITY", + "STRING_KEY_MAX_CONNECTIONS_CURRENT_VALUE", + "STRING_KEY_MAX_CONNECTIONS_RECOMMENDED_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "link": { + "type": "string" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1SimpleValue": { + "id": "CloudRecommendationsRecommendersDatabasesV1SimpleValue", + "properties": { + "enumValue": { + "description": "Enum value for the table cell. This should be used when value MUST be translated and represents common status/field like Enabled, Disabled, Success, Failure, etc.", + "enum": [ + "STRING_KEY_UNSPECIFIED", + "STRING_KEY_VIEW_INSTANCE_CTA", + "STRING_KEY_EDIT_INSTANCE", + "STRING_KEY_EDIT_USERS", + "STRING_KEY_MYSQL_FLAG_DEFAULT_AUTHENTICATION_PLUGIN", + "STRING_KEY_PG_FLAG_PASSWORD_ENCRYPTION", + "STRING_KEY_ENABLE_USER_PASSWORD_POLICIES", + "STRING_KEY_CONFIGURE_AUTHENTICATION", + "STRING_KEY_CONFIGURE_DATABASE_FLAGS", + "STRING_KEY_AVERAGE_CPU_USAGE", + "STRING_KEY_OBSERVATION_TIME", + "STRING_KEY_CONFIGURE_AUTOSCALING", + "STRING_KEY_VIEW_CLUSTER_CTA", + "STRING_KEY_EDIT_DISASTER_RECOVERY_SETTINGS", + "STRING_KEY_ENABLE_SCHEDULED_BACKUPS", + "STRING_KEY_ENABLE_POINT_IN_TIME_RECOVERY", + "STRING_KEY_SCHEDULED_BACKUPS_ENABLEMENT", + "STRING_KEY_PITR_ENABLEMENT", + "STRING_KEY_INSECURE_RULES_DETECTED", + "STRING_KEY_EXPIRING_RULES_DETECTED", + "STRING_KEY_FIX_INSECURE_AND_EXPIRING_RULES", + "STRING_KEY_EDIT_FIREBASE_RULES", + "STRING_KEY_MAXIMUM_OF_PREDICTED_DISK_USAGE_FOR_THE_NEXT_7_DAYS", + "STRING_KEY_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_PER_NODE_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_CURRENT_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_CURRENT_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_ABOUT_MAINTENANCE", + "STRING_KEY_ABOUT_SCALING_UP", + "STRING_KEY_CURRENT_MEMORY_SIZE_GB", + "STRING_KEY_RECOMMENDED_MEMORY_SIZE_GB", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_CURRENT_STORAGE_USED_BYTES_OF_THE_CLUSTER", + "STRING_KEY_ABOUT_SCALING_OUT", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO_ACROSS_SHARDS", + "STRING_KEY_CURRENT_NUMBER_OF_SHARDS", + "STRING_KEY_RECOMMENDED_NUMBER_OF_SHARDS", + "STRING_KEY_ABOUT_AVOIDING_EXPENSIVE_COMMANDS", + "STRING_KEY_EXPENSIVE_COMMANDS", + "STRING_KEY_UPGRADE_TO_ENTERPRISE_PLUS_EDITION", + "STRING_KEY_ENABLE_DATA_CACHE", + "STRING_KEY_OBSERVATION_PERIOD", + "STRING_KEY_LAST_DEFERRED_MAINTENANCE_OPERATION_TIME", + "STRING_KEY_LAST_INSTANCE_MAINTENANCE_EVENT", + "STRING_KEY_USE_AUTO_MSM", + "STRING_KEY_CURRENT_MAX_SERVER_MEMORY_MB", + "STRING_KEY_AUTOSCALING_CONFIGURATION", + "STRING_KEY_SCALING_DOCS", + "STRING_KEY_MODIFY_INSTANCE", + "STRING_KEY_HOTSPOTS_AFFECTED_TABLES", + "STRING_KEY_HOT_TABLETS_DOCS", + "STRING_KEY_KEY_VISUALIZER_DOCS", + "STRING_KEY_BIGTABLE_PERFORMANCE_DOCS", + "STRING_KEY_VIEW_USERS", + "STRING_KEY_SPANNER_PREVENT_ACCIDENTAL_DELETION_DOCS", + "STRING_KEY_SPANNER_ENABLE_DATABASE_DELETION_PROTECTION_DOCS", + "STRING_KEY_SPANNER_BACKUPS_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_SCHEDULES_DOCS", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE_BACKUPS", + "STRING_KEY_SPANNER_AFFECTED_DATABASES", + "STRING_KEY_SPANNER_PANTHEON_BACKUP_SETTINGS", + "STRING_KEY_CLOUD_SQL_EDITIONS", + "STRING_KEY_ALLOYDB_ENABLE_HA_DOCS", + "STRING_KEY_ALLOYDB_CONFIGURE_BACKUP_POLICY_DOCS", + "STRING_KEY_VIEW_BACKUP_POLICY_CTA", + "STRING_KEY_ALLOYDB_BACKUP_COUNT", + "STRING_KEY_ALLOYDB_BACKUP_POLICY_TYPE", + "STRING_KEY_DATA_CACHE", + "STRING_KEY_BACKUP_AND_RESTORE_DATA", + "STRING_KEY_POINT_IN_TIME_RECOVERY", + "STRING_KEY_EDIT_BACKUP_SETTINGS", + "STRING_KEY_GO_TO_RESOURCE", + "STRING_KEY_OBSERVATION_START", + "STRING_KEY_OBSERVATION_END", + "STRING_KEY_STORAGE_UTILIZATION_RATIO", + "STRING_KEY_CURRENT_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_MAINTENANCE_WINDOW", + "STRING_KEY_FIND_AND_SET_MAINTENANCE_WINDOWS", + "STRING_KEY_MAXMEMORY_POLICY", + "STRING_KEY_SYSTEM_MEMORY_USAGE_RATIO", + "STRING_KEY_FAILED_SNAPSHOTS", + "STRING_KEY_EXPIRABLE_KEYS_PERCENTAGE", + "STRING_KEY_OOM_COUNT", + "STRING_KEY_EDIT_RESOURCE_CTA", + "STRING_KEY_MEMORYSTORE_MEMORY_MANAGEMENT_BEST_PRACTICES", + "STRING_KEY_MEMORYSTORE_REDIS_CRASHES", + "STRING_KEY_BIGTABLE_MIN_NUMBER_OF_NODES_FOR_CUD", + "STRING_KEY_BIGTABLE_AVERAGE_CLUSTER_NODE_COUNT", + "STRING_KEY_BIGTABLE_CUD_DOCS", + "STRING_KEY_SPANNER_MITIGATE_CMEK_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_SPANNER_MITIGATE_DRZ_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_ALLOYDB_RECOMMENDED_BACKUP_COUNT", + "STRING_KEY_SQLSERVER_BEST_PRACTICES_GLOBAL", + "STRING_KEY_SQLSERVER_SERVER_MEMORY_CONFIGURATION", + "STRING_KEY_INSECURE_RULES_AUTHENTICATION", + "STRING_KEY_KEY_VISUALIZER_CTA", + "STRING_KEY_SPANNER_SCHEMA", + "STRING_KEY_SPANNER_SCHEMA_BEST_PRACTICES", + "STRING_KEY_SPANNER_MANAGE_DATA_USING_CONSOLE", + "STRING_KEY_SPANNER_MIGRATE_YOUR_DATA", + "STRING_KEY_SPANNER_MAKE_SCHEMA_UPDATE", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_TABLES", + "STRING_KEY_SPANNER_PROTOCOL_BUFFER_LIMITATIONS", + "STRING_KEY_SPANNER_QUERY_INSIGHTS", + "STRING_KEY_SPANNER_USE_INDEX_ADVISOR", + "STRING_KEY_SPANNER_SEARCH_INDEXES", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_INDEXES", + "STRING_KEY_SPANNER_FOREIGN_KEYS", + "STRING_KEY_SPANNER_CREATE_MANAGE_FOREIGN_KEY_RELATIONSHIPS", + "STRING_KEY_SPANNER_IMPLEMENT_MULTI_TENANCY", + "STRING_KEY_SPANNER_DATABASE_SPLITS", + "STRING_KEY_SPANNER_CREATE_ALERTS_FOR_SPANNER_METRICS", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_SCHEMAS", + "STRING_KEY_SPANNER_VIEW_OBJECT_CTA", + "STRING_KEY_SPANNER_QUERY_INSIGHTS_CTA", + "STRING_KEY_SPANNER_MONITORING_CTA", + "STRING_KEY_BIGTABLE_CURRENT_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_LATEST_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_APP_PROFILE_IDS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARY_LANGUAGE", + "STRING_KEY_BIGTABLE_UPGRADING_CLIENTS", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_TABLES", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_DOCS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARIES", + "STRING_KEY_BIGTABLE_DATABOOST_DOCS", + "STRING_KEY_INSTANCE_NAME", + "STRING_KEY_APP_PROFILE_ID", + "STRING_KEY_CREATE_APP_PROFILE_CTA", + "STRING_KEY_BIGTABLE_DATABOOST_OVERVIEW_DOCS", + "STRING_KEY_BIGTABLE_APP_PROFILES_DOCS", + "STRING_KEY_THREAD_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_THREAD_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_ENABLE_DATABASE_AUDITING", + "STRING_KEY_JOIN_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_JOIN_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_CURRENT_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_RECOMMENDED_VALUE", + "STRING_KEY_NUMBER_OF_TABLES", + "STRING_KEY_MYSQL_HIGH_NUMBER_OF_TABLES_PLAYBOOK", + "STRING_KEY_TMP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_TMP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TRANSACTION_ID_UTILIZATION_PERCENTAGE", + "STRING_KEY_DAYS_TO_WRAPAROUND", + "STRING_KEY_PG_TRANSACTION_ID_UTILIZATION_PLAYBOOK", + "STRING_KEY_MAX_CPU_UTILIZATION", + "STRING_KEY_MAX_MEMORY_UTILIZATION", + "STRING_KEY_DISK_USAGE_BYTES_CHANGE", + "STRING_KEY_MAX_DISK_READ_OPS_COUNT", + "STRING_KEY_MAX_DISK_WRITE_OPS_COUNT", + "STRING_KEY_SQL_IDLE_PLAYBOOK", + "STRING_KEY_CURRENT_STORAGE_USAGE", + "STRING_KEY_CURRENT_STORAGE_LIMIT", + "STRING_KEY_ESTIMATED_STORAGE_RUN_OUT_PERIOD", + "STRING_KEY_CURRENT_MACHINE_TYPE", + "STRING_KEY_RECOMMENDED_MACHINE_TYPE", + "STRING_KEY_CURRENT_CORES", + "STRING_KEY_RECOMMENDED_CORES", + "STRING_KEY_REVIEW_ORG_POLICY", + "STRING_KEY_USE_AUTH_PROXY_OR_CONNECTORS", + "STRING_KEY_REMOVE_AUTHORIZED_NETWORKS", + "STRING_KEY_ROTATE_SERVER_CERTIFICATE", + "STRING_KEY_MANAGE_SERVER_CERTIFICATES", + "STRING_KEY_PUBLIC_IP_ENABLED", + "STRING_KEY_PRIVATE_IP_ENABLED", + "STRING_KEY_CONFIGURE_PRIVATE_IP", + "STRING_KEY_DISABLE_PUBLIC_IP", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_ESTIMATED_OOM_PROBABILITY", + "STRING_KEY_MAX_CONNECTIONS_CURRENT_VALUE", + "STRING_KEY_MAX_CONNECTIONS_RECOMMENDED_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "linkValue": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1Link", + "description": "Link value for the table cell." + }, + "numberValue": { + "description": "Number value for the table cell.", + "format": "double", + "type": "number" + }, + "stringValue": { + "description": "String value for the table cell. This should be used when value doesn't need to be translated.", + "type": "string" + }, + "timestampValue": { + "description": "Timestamp value for the table cell.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1Table": { + "description": "Field for adding custom complex table", + "id": "CloudRecommendationsRecommendersDatabasesV1Table", + "properties": { + "headers": { + "description": "Headers for the table. IMPORTANT: Each header defines a column and its title. All Headers must be unique and shouldn't be used more than once within the same list.", + "items": { + "enum": [ + "STRING_KEY_UNSPECIFIED", + "STRING_KEY_VIEW_INSTANCE_CTA", + "STRING_KEY_EDIT_INSTANCE", + "STRING_KEY_EDIT_USERS", + "STRING_KEY_MYSQL_FLAG_DEFAULT_AUTHENTICATION_PLUGIN", + "STRING_KEY_PG_FLAG_PASSWORD_ENCRYPTION", + "STRING_KEY_ENABLE_USER_PASSWORD_POLICIES", + "STRING_KEY_CONFIGURE_AUTHENTICATION", + "STRING_KEY_CONFIGURE_DATABASE_FLAGS", + "STRING_KEY_AVERAGE_CPU_USAGE", + "STRING_KEY_OBSERVATION_TIME", + "STRING_KEY_CONFIGURE_AUTOSCALING", + "STRING_KEY_VIEW_CLUSTER_CTA", + "STRING_KEY_EDIT_DISASTER_RECOVERY_SETTINGS", + "STRING_KEY_ENABLE_SCHEDULED_BACKUPS", + "STRING_KEY_ENABLE_POINT_IN_TIME_RECOVERY", + "STRING_KEY_SCHEDULED_BACKUPS_ENABLEMENT", + "STRING_KEY_PITR_ENABLEMENT", + "STRING_KEY_INSECURE_RULES_DETECTED", + "STRING_KEY_EXPIRING_RULES_DETECTED", + "STRING_KEY_FIX_INSECURE_AND_EXPIRING_RULES", + "STRING_KEY_EDIT_FIREBASE_RULES", + "STRING_KEY_MAXIMUM_OF_PREDICTED_DISK_USAGE_FOR_THE_NEXT_7_DAYS", + "STRING_KEY_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_PER_NODE_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_CURRENT_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_CURRENT_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_ABOUT_MAINTENANCE", + "STRING_KEY_ABOUT_SCALING_UP", + "STRING_KEY_CURRENT_MEMORY_SIZE_GB", + "STRING_KEY_RECOMMENDED_MEMORY_SIZE_GB", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_CURRENT_STORAGE_USED_BYTES_OF_THE_CLUSTER", + "STRING_KEY_ABOUT_SCALING_OUT", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO_ACROSS_SHARDS", + "STRING_KEY_CURRENT_NUMBER_OF_SHARDS", + "STRING_KEY_RECOMMENDED_NUMBER_OF_SHARDS", + "STRING_KEY_ABOUT_AVOIDING_EXPENSIVE_COMMANDS", + "STRING_KEY_EXPENSIVE_COMMANDS", + "STRING_KEY_UPGRADE_TO_ENTERPRISE_PLUS_EDITION", + "STRING_KEY_ENABLE_DATA_CACHE", + "STRING_KEY_OBSERVATION_PERIOD", + "STRING_KEY_LAST_DEFERRED_MAINTENANCE_OPERATION_TIME", + "STRING_KEY_LAST_INSTANCE_MAINTENANCE_EVENT", + "STRING_KEY_USE_AUTO_MSM", + "STRING_KEY_CURRENT_MAX_SERVER_MEMORY_MB", + "STRING_KEY_AUTOSCALING_CONFIGURATION", + "STRING_KEY_SCALING_DOCS", + "STRING_KEY_MODIFY_INSTANCE", + "STRING_KEY_HOTSPOTS_AFFECTED_TABLES", + "STRING_KEY_HOT_TABLETS_DOCS", + "STRING_KEY_KEY_VISUALIZER_DOCS", + "STRING_KEY_BIGTABLE_PERFORMANCE_DOCS", + "STRING_KEY_VIEW_USERS", + "STRING_KEY_SPANNER_PREVENT_ACCIDENTAL_DELETION_DOCS", + "STRING_KEY_SPANNER_ENABLE_DATABASE_DELETION_PROTECTION_DOCS", + "STRING_KEY_SPANNER_BACKUPS_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_SCHEDULES_DOCS", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE_BACKUPS", + "STRING_KEY_SPANNER_AFFECTED_DATABASES", + "STRING_KEY_SPANNER_PANTHEON_BACKUP_SETTINGS", + "STRING_KEY_CLOUD_SQL_EDITIONS", + "STRING_KEY_ALLOYDB_ENABLE_HA_DOCS", + "STRING_KEY_ALLOYDB_CONFIGURE_BACKUP_POLICY_DOCS", + "STRING_KEY_VIEW_BACKUP_POLICY_CTA", + "STRING_KEY_ALLOYDB_BACKUP_COUNT", + "STRING_KEY_ALLOYDB_BACKUP_POLICY_TYPE", + "STRING_KEY_DATA_CACHE", + "STRING_KEY_BACKUP_AND_RESTORE_DATA", + "STRING_KEY_POINT_IN_TIME_RECOVERY", + "STRING_KEY_EDIT_BACKUP_SETTINGS", + "STRING_KEY_GO_TO_RESOURCE", + "STRING_KEY_OBSERVATION_START", + "STRING_KEY_OBSERVATION_END", + "STRING_KEY_STORAGE_UTILIZATION_RATIO", + "STRING_KEY_CURRENT_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_MAINTENANCE_WINDOW", + "STRING_KEY_FIND_AND_SET_MAINTENANCE_WINDOWS", + "STRING_KEY_MAXMEMORY_POLICY", + "STRING_KEY_SYSTEM_MEMORY_USAGE_RATIO", + "STRING_KEY_FAILED_SNAPSHOTS", + "STRING_KEY_EXPIRABLE_KEYS_PERCENTAGE", + "STRING_KEY_OOM_COUNT", + "STRING_KEY_EDIT_RESOURCE_CTA", + "STRING_KEY_MEMORYSTORE_MEMORY_MANAGEMENT_BEST_PRACTICES", + "STRING_KEY_MEMORYSTORE_REDIS_CRASHES", + "STRING_KEY_BIGTABLE_MIN_NUMBER_OF_NODES_FOR_CUD", + "STRING_KEY_BIGTABLE_AVERAGE_CLUSTER_NODE_COUNT", + "STRING_KEY_BIGTABLE_CUD_DOCS", + "STRING_KEY_SPANNER_MITIGATE_CMEK_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_SPANNER_MITIGATE_DRZ_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_ALLOYDB_RECOMMENDED_BACKUP_COUNT", + "STRING_KEY_SQLSERVER_BEST_PRACTICES_GLOBAL", + "STRING_KEY_SQLSERVER_SERVER_MEMORY_CONFIGURATION", + "STRING_KEY_INSECURE_RULES_AUTHENTICATION", + "STRING_KEY_KEY_VISUALIZER_CTA", + "STRING_KEY_SPANNER_SCHEMA", + "STRING_KEY_SPANNER_SCHEMA_BEST_PRACTICES", + "STRING_KEY_SPANNER_MANAGE_DATA_USING_CONSOLE", + "STRING_KEY_SPANNER_MIGRATE_YOUR_DATA", + "STRING_KEY_SPANNER_MAKE_SCHEMA_UPDATE", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_TABLES", + "STRING_KEY_SPANNER_PROTOCOL_BUFFER_LIMITATIONS", + "STRING_KEY_SPANNER_QUERY_INSIGHTS", + "STRING_KEY_SPANNER_USE_INDEX_ADVISOR", + "STRING_KEY_SPANNER_SEARCH_INDEXES", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_INDEXES", + "STRING_KEY_SPANNER_FOREIGN_KEYS", + "STRING_KEY_SPANNER_CREATE_MANAGE_FOREIGN_KEY_RELATIONSHIPS", + "STRING_KEY_SPANNER_IMPLEMENT_MULTI_TENANCY", + "STRING_KEY_SPANNER_DATABASE_SPLITS", + "STRING_KEY_SPANNER_CREATE_ALERTS_FOR_SPANNER_METRICS", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_SCHEMAS", + "STRING_KEY_SPANNER_VIEW_OBJECT_CTA", + "STRING_KEY_SPANNER_QUERY_INSIGHTS_CTA", + "STRING_KEY_SPANNER_MONITORING_CTA", + "STRING_KEY_BIGTABLE_CURRENT_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_LATEST_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_APP_PROFILE_IDS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARY_LANGUAGE", + "STRING_KEY_BIGTABLE_UPGRADING_CLIENTS", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_TABLES", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_DOCS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARIES", + "STRING_KEY_BIGTABLE_DATABOOST_DOCS", + "STRING_KEY_INSTANCE_NAME", + "STRING_KEY_APP_PROFILE_ID", + "STRING_KEY_CREATE_APP_PROFILE_CTA", + "STRING_KEY_BIGTABLE_DATABOOST_OVERVIEW_DOCS", + "STRING_KEY_BIGTABLE_APP_PROFILES_DOCS", + "STRING_KEY_THREAD_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_THREAD_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_ENABLE_DATABASE_AUDITING", + "STRING_KEY_JOIN_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_JOIN_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_CURRENT_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_RECOMMENDED_VALUE", + "STRING_KEY_NUMBER_OF_TABLES", + "STRING_KEY_MYSQL_HIGH_NUMBER_OF_TABLES_PLAYBOOK", + "STRING_KEY_TMP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_TMP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TRANSACTION_ID_UTILIZATION_PERCENTAGE", + "STRING_KEY_DAYS_TO_WRAPAROUND", + "STRING_KEY_PG_TRANSACTION_ID_UTILIZATION_PLAYBOOK", + "STRING_KEY_MAX_CPU_UTILIZATION", + "STRING_KEY_MAX_MEMORY_UTILIZATION", + "STRING_KEY_DISK_USAGE_BYTES_CHANGE", + "STRING_KEY_MAX_DISK_READ_OPS_COUNT", + "STRING_KEY_MAX_DISK_WRITE_OPS_COUNT", + "STRING_KEY_SQL_IDLE_PLAYBOOK", + "STRING_KEY_CURRENT_STORAGE_USAGE", + "STRING_KEY_CURRENT_STORAGE_LIMIT", + "STRING_KEY_ESTIMATED_STORAGE_RUN_OUT_PERIOD", + "STRING_KEY_CURRENT_MACHINE_TYPE", + "STRING_KEY_RECOMMENDED_MACHINE_TYPE", + "STRING_KEY_CURRENT_CORES", + "STRING_KEY_RECOMMENDED_CORES", + "STRING_KEY_REVIEW_ORG_POLICY", + "STRING_KEY_USE_AUTH_PROXY_OR_CONNECTORS", + "STRING_KEY_REMOVE_AUTHORIZED_NETWORKS", + "STRING_KEY_ROTATE_SERVER_CERTIFICATE", + "STRING_KEY_MANAGE_SERVER_CERTIFICATES", + "STRING_KEY_PUBLIC_IP_ENABLED", + "STRING_KEY_PRIVATE_IP_ENABLED", + "STRING_KEY_CONFIGURE_PRIVATE_IP", + "STRING_KEY_DISABLE_PUBLIC_IP", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_ESTIMATED_OOM_PROBABILITY", + "STRING_KEY_MAX_CONNECTIONS_CURRENT_VALUE", + "STRING_KEY_MAX_CONNECTIONS_RECOMMENDED_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "type": "array" + }, + "rows": { + "description": "Rows for the table. Ensure that the order of the cells in the row matches the order of the headers.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1TableRow" + }, + "type": "array" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1TableField": { + "id": "CloudRecommendationsRecommendersDatabasesV1TableField", + "properties": { + "key": { + "description": "Enum used to map to the string to be shown in the UI for the field.", + "enum": [ + "STRING_KEY_UNSPECIFIED", + "STRING_KEY_VIEW_INSTANCE_CTA", + "STRING_KEY_EDIT_INSTANCE", + "STRING_KEY_EDIT_USERS", + "STRING_KEY_MYSQL_FLAG_DEFAULT_AUTHENTICATION_PLUGIN", + "STRING_KEY_PG_FLAG_PASSWORD_ENCRYPTION", + "STRING_KEY_ENABLE_USER_PASSWORD_POLICIES", + "STRING_KEY_CONFIGURE_AUTHENTICATION", + "STRING_KEY_CONFIGURE_DATABASE_FLAGS", + "STRING_KEY_AVERAGE_CPU_USAGE", + "STRING_KEY_OBSERVATION_TIME", + "STRING_KEY_CONFIGURE_AUTOSCALING", + "STRING_KEY_VIEW_CLUSTER_CTA", + "STRING_KEY_EDIT_DISASTER_RECOVERY_SETTINGS", + "STRING_KEY_ENABLE_SCHEDULED_BACKUPS", + "STRING_KEY_ENABLE_POINT_IN_TIME_RECOVERY", + "STRING_KEY_SCHEDULED_BACKUPS_ENABLEMENT", + "STRING_KEY_PITR_ENABLEMENT", + "STRING_KEY_INSECURE_RULES_DETECTED", + "STRING_KEY_EXPIRING_RULES_DETECTED", + "STRING_KEY_FIX_INSECURE_AND_EXPIRING_RULES", + "STRING_KEY_EDIT_FIREBASE_RULES", + "STRING_KEY_MAXIMUM_OF_PREDICTED_DISK_USAGE_FOR_THE_NEXT_7_DAYS", + "STRING_KEY_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_PER_NODE_STORAGE_CAPACITY_OF_THE_CLUSTER", + "STRING_KEY_CURRENT_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_CURRENT_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_ABOUT_MAINTENANCE", + "STRING_KEY_ABOUT_SCALING_UP", + "STRING_KEY_CURRENT_MEMORY_SIZE_GB", + "STRING_KEY_RECOMMENDED_MEMORY_SIZE_GB", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MIN_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_MAX_NODE_COUNT", + "STRING_KEY_CURRENT_STORAGE_USED_BYTES_OF_THE_CLUSTER", + "STRING_KEY_ABOUT_SCALING_OUT", + "STRING_KEY_PEAK_MEMORY_USAGE_RATIO_ACROSS_SHARDS", + "STRING_KEY_CURRENT_NUMBER_OF_SHARDS", + "STRING_KEY_RECOMMENDED_NUMBER_OF_SHARDS", + "STRING_KEY_ABOUT_AVOIDING_EXPENSIVE_COMMANDS", + "STRING_KEY_EXPENSIVE_COMMANDS", + "STRING_KEY_UPGRADE_TO_ENTERPRISE_PLUS_EDITION", + "STRING_KEY_ENABLE_DATA_CACHE", + "STRING_KEY_OBSERVATION_PERIOD", + "STRING_KEY_LAST_DEFERRED_MAINTENANCE_OPERATION_TIME", + "STRING_KEY_LAST_INSTANCE_MAINTENANCE_EVENT", + "STRING_KEY_USE_AUTO_MSM", + "STRING_KEY_CURRENT_MAX_SERVER_MEMORY_MB", + "STRING_KEY_AUTOSCALING_CONFIGURATION", + "STRING_KEY_SCALING_DOCS", + "STRING_KEY_MODIFY_INSTANCE", + "STRING_KEY_HOTSPOTS_AFFECTED_TABLES", + "STRING_KEY_HOT_TABLETS_DOCS", + "STRING_KEY_KEY_VISUALIZER_DOCS", + "STRING_KEY_BIGTABLE_PERFORMANCE_DOCS", + "STRING_KEY_VIEW_USERS", + "STRING_KEY_SPANNER_PREVENT_ACCIDENTAL_DELETION_DOCS", + "STRING_KEY_SPANNER_ENABLE_DATABASE_DELETION_PROTECTION_DOCS", + "STRING_KEY_SPANNER_BACKUPS_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_DOCS", + "STRING_KEY_SPANNER_CREATE_BACKUP_SCHEDULES_DOCS", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE", + "STRING_KEY_SPANNER_PANTHEON_INSTANCE_BACKUPS", + "STRING_KEY_SPANNER_AFFECTED_DATABASES", + "STRING_KEY_SPANNER_PANTHEON_BACKUP_SETTINGS", + "STRING_KEY_CLOUD_SQL_EDITIONS", + "STRING_KEY_ALLOYDB_ENABLE_HA_DOCS", + "STRING_KEY_ALLOYDB_CONFIGURE_BACKUP_POLICY_DOCS", + "STRING_KEY_VIEW_BACKUP_POLICY_CTA", + "STRING_KEY_ALLOYDB_BACKUP_COUNT", + "STRING_KEY_ALLOYDB_BACKUP_POLICY_TYPE", + "STRING_KEY_DATA_CACHE", + "STRING_KEY_BACKUP_AND_RESTORE_DATA", + "STRING_KEY_POINT_IN_TIME_RECOVERY", + "STRING_KEY_EDIT_BACKUP_SETTINGS", + "STRING_KEY_GO_TO_RESOURCE", + "STRING_KEY_OBSERVATION_START", + "STRING_KEY_OBSERVATION_END", + "STRING_KEY_STORAGE_UTILIZATION_RATIO", + "STRING_KEY_CURRENT_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_AUTOSCALING_NODE_COUNT", + "STRING_KEY_RECOMMENDED_MAINTENANCE_WINDOW", + "STRING_KEY_FIND_AND_SET_MAINTENANCE_WINDOWS", + "STRING_KEY_MAXMEMORY_POLICY", + "STRING_KEY_SYSTEM_MEMORY_USAGE_RATIO", + "STRING_KEY_FAILED_SNAPSHOTS", + "STRING_KEY_EXPIRABLE_KEYS_PERCENTAGE", + "STRING_KEY_OOM_COUNT", + "STRING_KEY_EDIT_RESOURCE_CTA", + "STRING_KEY_MEMORYSTORE_MEMORY_MANAGEMENT_BEST_PRACTICES", + "STRING_KEY_MEMORYSTORE_REDIS_CRASHES", + "STRING_KEY_BIGTABLE_MIN_NUMBER_OF_NODES_FOR_CUD", + "STRING_KEY_BIGTABLE_AVERAGE_CLUSTER_NODE_COUNT", + "STRING_KEY_BIGTABLE_CUD_DOCS", + "STRING_KEY_SPANNER_MITIGATE_CMEK_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_SPANNER_MITIGATE_DRZ_ORG_POLICY_VIOLATION_DOCS", + "STRING_KEY_ALLOYDB_RECOMMENDED_BACKUP_COUNT", + "STRING_KEY_SQLSERVER_BEST_PRACTICES_GLOBAL", + "STRING_KEY_SQLSERVER_SERVER_MEMORY_CONFIGURATION", + "STRING_KEY_INSECURE_RULES_AUTHENTICATION", + "STRING_KEY_KEY_VISUALIZER_CTA", + "STRING_KEY_SPANNER_SCHEMA", + "STRING_KEY_SPANNER_SCHEMA_BEST_PRACTICES", + "STRING_KEY_SPANNER_MANAGE_DATA_USING_CONSOLE", + "STRING_KEY_SPANNER_MIGRATE_YOUR_DATA", + "STRING_KEY_SPANNER_MAKE_SCHEMA_UPDATE", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_TABLES", + "STRING_KEY_SPANNER_PROTOCOL_BUFFER_LIMITATIONS", + "STRING_KEY_SPANNER_QUERY_INSIGHTS", + "STRING_KEY_SPANNER_USE_INDEX_ADVISOR", + "STRING_KEY_SPANNER_SEARCH_INDEXES", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_INDEXES", + "STRING_KEY_SPANNER_FOREIGN_KEYS", + "STRING_KEY_SPANNER_CREATE_MANAGE_FOREIGN_KEY_RELATIONSHIPS", + "STRING_KEY_SPANNER_IMPLEMENT_MULTI_TENANCY", + "STRING_KEY_SPANNER_DATABASE_SPLITS", + "STRING_KEY_SPANNER_CREATE_ALERTS_FOR_SPANNER_METRICS", + "STRING_KEY_SPANNER_QUOTA_AND_LIMITS_SCHEMAS", + "STRING_KEY_SPANNER_VIEW_OBJECT_CTA", + "STRING_KEY_SPANNER_QUERY_INSIGHTS_CTA", + "STRING_KEY_SPANNER_MONITORING_CTA", + "STRING_KEY_BIGTABLE_CURRENT_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_LATEST_CLIENT_LIBRARY_VERSION", + "STRING_KEY_BIGTABLE_APP_PROFILE_IDS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARY_LANGUAGE", + "STRING_KEY_BIGTABLE_UPGRADING_CLIENTS", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_TABLES", + "STRING_KEY_BIGTABLE_REPLICATION_DELAY_DOCS", + "STRING_KEY_BIGTABLE_CLIENT_LIBRARIES", + "STRING_KEY_BIGTABLE_DATABOOST_DOCS", + "STRING_KEY_INSTANCE_NAME", + "STRING_KEY_APP_PROFILE_ID", + "STRING_KEY_CREATE_APP_PROFILE_CTA", + "STRING_KEY_BIGTABLE_DATABOOST_OVERVIEW_DOCS", + "STRING_KEY_BIGTABLE_APP_PROFILES_DOCS", + "STRING_KEY_THREAD_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_THREAD_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_ENABLE_DATABASE_AUDITING", + "STRING_KEY_JOIN_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_JOIN_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_CURRENT_VALUE", + "STRING_KEY_TABLE_OPEN_CACHE_RECOMMENDED_VALUE", + "STRING_KEY_NUMBER_OF_TABLES", + "STRING_KEY_MYSQL_HIGH_NUMBER_OF_TABLES_PLAYBOOK", + "STRING_KEY_TMP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_TMP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_CURRENT_VALUE", + "STRING_KEY_MAX_HEAP_TABLE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_CURRENT_VALUE", + "STRING_KEY_BINLOG_STMT_CACHE_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_CURRENT_VALUE", + "STRING_KEY_INNODB_LOG_BUFFER_SIZE_RECOMMENDED_VALUE", + "STRING_KEY_TRANSACTION_ID_UTILIZATION_PERCENTAGE", + "STRING_KEY_DAYS_TO_WRAPAROUND", + "STRING_KEY_PG_TRANSACTION_ID_UTILIZATION_PLAYBOOK", + "STRING_KEY_MAX_CPU_UTILIZATION", + "STRING_KEY_MAX_MEMORY_UTILIZATION", + "STRING_KEY_DISK_USAGE_BYTES_CHANGE", + "STRING_KEY_MAX_DISK_READ_OPS_COUNT", + "STRING_KEY_MAX_DISK_WRITE_OPS_COUNT", + "STRING_KEY_SQL_IDLE_PLAYBOOK", + "STRING_KEY_CURRENT_STORAGE_USAGE", + "STRING_KEY_CURRENT_STORAGE_LIMIT", + "STRING_KEY_ESTIMATED_STORAGE_RUN_OUT_PERIOD", + "STRING_KEY_CURRENT_MACHINE_TYPE", + "STRING_KEY_RECOMMENDED_MACHINE_TYPE", + "STRING_KEY_CURRENT_CORES", + "STRING_KEY_RECOMMENDED_CORES", + "STRING_KEY_REVIEW_ORG_POLICY", + "STRING_KEY_USE_AUTH_PROXY_OR_CONNECTORS", + "STRING_KEY_REMOVE_AUTHORIZED_NETWORKS", + "STRING_KEY_ROTATE_SERVER_CERTIFICATE", + "STRING_KEY_MANAGE_SERVER_CERTIFICATES", + "STRING_KEY_PUBLIC_IP_ENABLED", + "STRING_KEY_PRIVATE_IP_ENABLED", + "STRING_KEY_CONFIGURE_PRIVATE_IP", + "STRING_KEY_DISABLE_PUBLIC_IP", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_CPU_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA", + "STRING_KEY_MEMORY_UTILIZATION_OUT_OF_SLA_LATEST_TIMESTAMP", + "STRING_KEY_ESTIMATED_OOM_PROBABILITY", + "STRING_KEY_MAX_CONNECTIONS_CURRENT_VALUE", + "STRING_KEY_MAX_CONNECTIONS_RECOMMENDED_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "numberValue": { + "description": "Number value for the table field.", + "format": "double", + "type": "number" + }, + "stringValue": { + "description": "String value for the table field. Note that this string won't be translated. It is advised to provide values that don't require translation.", + "type": "string" + }, + "timestampValue": { + "description": "Timestamp value for the table field. Timestamp will be shown in the user's timezone with the format: \"Feb 27, 2009 3:22:54 PM\".", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "CloudRecommendationsRecommendersDatabasesV1TableRow": { + "description": "Table row for a table", + "id": "CloudRecommendationsRecommendersDatabasesV1TableRow", + "properties": { + "cells": { + "description": "Table cells for the table row.", + "items": { + "$ref": "CloudRecommendationsRecommendersDatabasesV1SimpleValue" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudLocationListLocationsResponse": { "description": "The response message for Locations.ListLocations.", "id": "GoogleCloudLocationListLocationsResponse", diff --git a/discovery/sqladmin-v1beta4.json b/discovery/sqladmin-v1beta4.json index 7141f70324..6aad6232e0 100644 --- a/discovery/sqladmin-v1beta4.json +++ b/discovery/sqladmin-v1beta4.json @@ -3529,9 +3529,199 @@ ] } } + }, + "workloadCaptures": { + "methods": { + "list": { + "description": "Lists all captured workloads associated with the instance.", + "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures", + "httpMethod": "GET", + "id": "sql.workloadCaptures.list", + "parameterOrder": [ + "project", + "instance" + ], + "parameters": { + "instance": { + "description": "Required. Cloud SQL instance ID. This does not include the project ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Required. Project ID of the project that contains the instance.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures", + "response": { + "$ref": "WorkloadCapturesListResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/sqlservice.admin" + ] + }, + "start": { + "description": "Starts capturing the SQL queries, transactions, and other operations executed on the primary instance. This traffic is securely stored and forms a \"captured workload\". This workload can be replayed later on a different instance to safely test performance impacts, database upgrades, configuration changes etc. before applying them to production.", + "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:start", + "httpMethod": "POST", + "id": "sql.workloadCaptures.start", + "parameterOrder": [ + "project", + "instance" + ], + "parameters": { + "instance": { + "description": "Required. Cloud SQL instance ID. This does not include the project ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Required. Project ID of the project that contains the instance.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:start", + "request": { + "$ref": "SqlWorkloadCapturesStartRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/sqlservice.admin" + ] + }, + "startReplay": { + "description": "Starts executing a captured workload on a separate Cloud SQL instance provisioned for workload replay. This target instance simulates the production environment without affecting the primary instance.", + "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:startReplay", + "httpMethod": "POST", + "id": "sql.workloadCaptures.startReplay", + "parameterOrder": [ + "project", + "instance", + "workloadId" + ], + "parameters": { + "instance": { + "description": "Required. Cloud SQL instance ID. This does not include the project ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Required. Project ID of the project that contains the instance.", + "location": "path", + "required": true, + "type": "string" + }, + "workloadId": { + "description": "Required. The ID of the workload to replay.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:startReplay", + "request": { + "$ref": "SqlWorkloadCapturesStartReplayRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/sqlservice.admin" + ] + }, + "stop": { + "description": "Stops capturing the query traffic and related operations executed on the primary instance.", + "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:stop", + "httpMethod": "POST", + "id": "sql.workloadCaptures.stop", + "parameterOrder": [ + "project", + "instance" + ], + "parameters": { + "instance": { + "description": "Required. Cloud SQL instance ID. This does not include the project ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Required. Project ID of the project that contains the instance.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:stop", + "request": { + "$ref": "SqlWorkloadCapturesStopRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/sqlservice.admin" + ] + }, + "stopReplay": { + "description": "Stops executing a captured workload on the separate Cloud SQL instance.", + "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:stopReplay", + "httpMethod": "POST", + "id": "sql.workloadCaptures.stopReplay", + "parameterOrder": [ + "project", + "instance", + "workloadId" + ], + "parameters": { + "instance": { + "description": "Required. Cloud SQL instance ID. This does not include the project ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Required. Project ID of the project that contains the instance.", + "location": "path", + "required": true, + "type": "string" + }, + "workloadId": { + "description": "Required. The ID of the workload to replay.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:stopReplay", + "request": { + "$ref": "SqlWorkloadCapturesStopReplayRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/sqlservice.admin" + ] + } + } } }, - "revision": "20260819", + "revision": "20260908", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -5901,6 +6091,10 @@ "description": "Disk encryption configuration for an instance.", "id": "DiskEncryptionConfiguration", "properties": { + "cmekSourceLogEncryptionEnforced": { + "description": "Optional. Whether to enforce CMEK log encryption at source. When enforced, transaction logs are encrypted prior to being uploaded to Cloud Storage. If not enforced, then CMEK logs are encrypted by the Cloud Storage service.", + "type": "boolean" + }, "confidentialMode": { "description": "Optional. If true, enables Confidential Mode for the instance's Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently.", "type": "boolean" @@ -7856,6 +8050,14 @@ "format": "google-datetime", "type": "string" }, + "startWorkloadCaptureContext": { + "$ref": "StartWorkloadCaptureContext", + "description": "The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance." + }, + "startWorkloadReplayContext": { + "$ref": "StartWorkloadReplayContext", + "description": "The context for the `StartWorkloadReplay` operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed)." + }, "status": { "description": "The status of an operation.", "enum": [ @@ -7872,6 +8074,14 @@ ], "type": "string" }, + "stopWorkloadCaptureContext": { + "$ref": "StopWorkloadCaptureContext", + "description": "The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance." + }, + "stopWorkloadReplayContext": { + "$ref": "StopWorkloadReplayContext", + "description": "The context for the `StopWorkloadReplay` operation, which contains details about stopping the execution of a captured workload (recorded read and write SQL queries) on a replay instance." + }, "subOperationType": { "$ref": "SqlSubOperationType", "description": "Optional. The sub operation based on the operation type." @@ -9505,7 +9715,6 @@ "type": "object" }, "SqlInstancesExecuteSqlResponse": { - "description": "Execute SQL statements response.", "id": "SqlInstancesExecuteSqlResponse", "properties": { "messages": { @@ -9926,6 +10135,50 @@ }, "type": "object" }, + "SqlWorkloadCapturesStartReplayRequest": { + "description": "Request to start executing a captured workload on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).", + "id": "SqlWorkloadCapturesStartReplayRequest", + "properties": { + "startWorkloadReplayContext": { + "$ref": "StartWorkloadReplayContext", + "description": "Optional. Contains details about the start workload replay operation." + } + }, + "type": "object" + }, + "SqlWorkloadCapturesStartRequest": { + "description": "Request to start recording traffic from the primary instance (captured workload).", + "id": "SqlWorkloadCapturesStartRequest", + "properties": { + "startWorkloadCaptureContext": { + "$ref": "StartWorkloadCaptureContext", + "description": "Optional. Contains details about the start workload capture operation." + } + }, + "type": "object" + }, + "SqlWorkloadCapturesStopReplayRequest": { + "description": "Request to stop executing a captured workload on a replay instance.", + "id": "SqlWorkloadCapturesStopReplayRequest", + "properties": { + "stopWorkloadReplayContext": { + "$ref": "StopWorkloadReplayContext", + "description": "Optional. Contains details about the stop workload replay operation." + } + }, + "type": "object" + }, + "SqlWorkloadCapturesStopRequest": { + "description": "Request to stop recording traffic from the primary instance.", + "id": "SqlWorkloadCapturesStopRequest", + "properties": { + "stopWorkloadCaptureContext": { + "$ref": "StopWorkloadCaptureContext", + "description": "Optional. Contains details about the stop workload capture operation." + } + }, + "type": "object" + }, "SslCert": { "description": "SslCerts Resource", "id": "SslCert", @@ -10053,6 +10306,37 @@ }, "type": "object" }, + "StartWorkloadCaptureContext": { + "description": "The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance.", + "id": "StartWorkloadCaptureContext", + "properties": { + "enableLiveReplay": { + "description": "Optional. If true, the captured workload is simultaneously executed on a separate, ephemeral Cloud SQL instance. This \"live replay\" instance is automatically provisioned and is cloned from the source instance. If false (the default), the workload is only stored and no live replay occurs. It can be replayed later using a separate `StartWorkloadReplayRequest`. Note: The workload capture runs continuously until an explicit `StopWorkloadCaptureRequest` is issued.", + "type": "boolean" + }, + "replayInstance": { + "description": "Optional. Required if `enable_live_replay` is true. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less.", + "type": "string" + } + }, + "type": "object" + }, + "StartWorkloadReplayContext": { + "description": "The context for the `StartWorkloadReplay` operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).", + "id": "StartWorkloadReplayContext", + "properties": { + "replayInstance": { + "description": "Required. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less.", + "type": "string" + }, + "workloadId": { + "description": "Output only. The ID of the workload to start executing on the replay instance. Each workload capture generates a unique ID in the format `workload-` (for example, `workload-1786046400`). Use this ID to start executing the recorded SQL queries.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Status": { "description": "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).", "id": "Status", @@ -10080,6 +10364,33 @@ }, "type": "object" }, + "StopWorkloadCaptureContext": { + "description": "The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance.", + "id": "StopWorkloadCaptureContext", + "properties": { + "abortLiveReplay": { + "description": "Optional. If true, immediately aborts the concurrent live replay and discards any un-replayed traffic alongside stopping the capture. If false (the default), the capture stops recording new traffic, but the live replay will continue executing until the entire backlog of captured traffic has been replayed.", + "type": "boolean" + } + }, + "type": "object" + }, + "StopWorkloadReplayContext": { + "description": "The context for the `StopWorkloadReplay` operation, which contains details about stopping the execution of a captured workload (recorded read and write SQL queries) on a replay instance.", + "id": "StopWorkloadReplayContext", + "properties": { + "replayInstance": { + "description": "Required. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less.", + "type": "string" + }, + "workloadId": { + "description": "Output only. The ID of the workload to stop executing on the replay instance. Each workload capture generates a unique ID in the format `workload-` (for example, `workload-1786046400`). Use this ID to stop executing the recorded SQL queries.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "SwitchoverBlueGreenDeploymentRequest": { "description": "Request message for switching over a `BlueGreenDeployment` resource.", "id": "SwitchoverBlueGreenDeploymentRequest", @@ -10312,7 +10623,7 @@ "Cloud IAM group. Not used for login.", "Read-only. Login for a user that belongs to the Cloud IAM group.", "Read-only. Login for a service account that belongs to the Cloud IAM group.", - "Cloud IAM workforce identity user managed via workforce identity federation.", + "Cloud IAM workforce identity managed by Workforce Identity Federation.", "Microsoft Entra ID user." ], "type": "string" @@ -10387,6 +10698,81 @@ } }, "type": "object" + }, + "WorkloadCapture": { + "description": "Captured workload for an instance.", + "id": "WorkloadCapture", + "properties": { + "endTime": { + "description": "Output only. The end time of the workload capture.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "replayInstance": { + "description": "Output only. The name of the replay instance, if live replay was enabled.", + "readOnly": true, + "type": "string" + }, + "retentionDays": { + "description": "Output only. The retention period in days for the captured workload.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "sourceInstance": { + "description": "Output only. The name of the source instance.", + "readOnly": true, + "type": "string" + }, + "startTime": { + "description": "Output only. The start time of the workload capture.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "workloadCaptureState": { + "description": "Output only. The state of the workload capture.", + "enum": [ + "STATE_UNSPECIFIED", + "RUNNING", + "COMPLETED", + "FAILED" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Workload capture is currently running.", + "Workload capture completed successfully.", + "Workload capture failed." + ], + "readOnly": true, + "type": "string" + }, + "workloadId": { + "description": "Output only. The ID of the captured workload.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "WorkloadCapturesListResponse": { + "description": "Instance list captured workloads response.", + "id": "WorkloadCapturesListResponse", + "properties": { + "kind": { + "description": "This is always `sql#workloadCapturesList`.", + "type": "string" + }, + "workloadCaptures": { + "description": "List of captured workloads for the instance.", + "items": { + "$ref": "WorkloadCapture" + }, + "type": "array" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/discovery/storage-v1.json b/discovery/storage-v1.json index 584dfbc2ab..9c5a443dc6 100644 --- a/discovery/storage-v1.json +++ b/discovery/storage-v1.json @@ -253,7 +253,7 @@ "location": "northamerica-south1" } ], - "etag": "\"3138323634323934313536353633333331373333\"", + "etag": "\"35383135343338383530313436313234313131\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -4731,7 +4731,7 @@ } } }, - "revision": "20260821", + "revision": "20260911", "rootUrl": "https://storage.googleapis.com/", "schemas": { "AdvanceRelocateBucketOperationRequest": { @@ -6524,6 +6524,10 @@ "format": "date-time", "type": "string" }, + "extendedDataTypeUrl": { + "description": "The type URL of the object context's extended data.", + "type": "string" + }, "updateTime": { "description": "The time at which the object context was last updated in RFC 3339 format.", "format": "date-time", diff --git a/discovery/testing-v1.json b/discovery/testing-v1.json index a43f4e5267..f0102dddf4 100644 --- a/discovery/testing-v1.json +++ b/discovery/testing-v1.json @@ -454,7 +454,7 @@ } } }, - "revision": "20251111", + "revision": "20260911", "rootUrl": "https://testing.googleapis.com/", "schemas": { "Account": { @@ -1228,7 +1228,7 @@ }, "androidDevice": { "$ref": "AndroidDevice", - "description": "Required. The requested device" + "description": "Required. The requested device." }, "createTime": { "description": "Output only. The time that the Session was created.", diff --git a/discovery/threatintelligence-v1beta.json b/discovery/threatintelligence-v1beta.json index 1a1386b3c3..748b005d3c 100644 --- a/discovery/threatintelligence-v1beta.json +++ b/discovery/threatintelligence-v1beta.json @@ -842,7 +842,7 @@ } } }, - "revision": "20260830", + "revision": "20260913", "rootUrl": "https://threatintelligence.googleapis.com/", "schemas": { "Alert": { @@ -1276,6 +1276,34 @@ "$ref": "LegacyMetadata", "description": "Output only. Legacy metadata associated with this scenario/monitor.", "readOnly": true + }, + "scenarioType": { + "description": "Optional. The custom threat scenario type used to create this configuration.", + "enum": [ + "CUSTOM_THREAT_SCENARIO_TYPE_UNSPECIFIED", + "DATA_LEAKS", + "DEEP_DARK_WEB", + "DOMAIN_PROTECTION", + "RANSOMWARE_THREATS", + "INITIAL_ACCESS_BROKER", + "NETBLOCKS_AND_DOMAIN_MENTIONS", + "SUPPLY_CHAIN_COMPROMISE", + "CARD_SHOPS", + "CUSTOM_MONITOR" + ], + "enumDescriptions": [ + "Unspecified scenario type.", + "Data Leaks.", + "Deep & Dark Web.", + "Domain Protection.", + "Ransomware Threats.", + "Initial Access Broker.", + "Netblocks and Domain Mentions.", + "Supply Chain Compromise.", + "Card Shops.", + "Custom Monitor (Non-templated legacy monitor)." + ], + "type": "string" } }, "type": "object" @@ -1696,18 +1724,6 @@ "description": "Represents a query to match documents.", "id": "DocumentQuery", "properties": { - "dataModel": { - "description": "Required. The data model to query against.", - "enum": [ - "DATA_MODEL_UNSPECIFIED", - "DATA_MODEL_GTI" - ], - "enumDescriptions": [ - "Default value, should never be set.", - "GTI data model." - ], - "type": "string" - }, "query": { "description": "Required. The query string.", "type": "string" @@ -1716,11 +1732,13 @@ "description": "Required. The type of query.", "enum": [ "QUERY_TYPE_UNSPECIFIED", - "QUERY_TYPE_LUCENE" + "JSON", + "STRING" ], "enumDescriptions": [ "Default value, should never be set.", - "Lucene query type." + "Structured JSON condition tree built via query builder.", + "Raw search query string e.g., VTI search syntax." ], "type": "string" } diff --git a/discovery/workloadmanager-v1.json b/discovery/workloadmanager-v1.json index 70f18badfe..055c819023 100644 --- a/discovery/workloadmanager-v1.json +++ b/discovery/workloadmanager-v1.json @@ -15,6 +15,273 @@ "description": "Workload Manager is a service that provides tooling for enterprise workloads to automate the deployment and validation of your workloads against best practices and recommendations.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/workload-manager/docs", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.us-central1.rep.googleapis.com/", + "location": "us-central1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.us-east1.rep.googleapis.com/", + "location": "us-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.us-east4.rep.googleapis.com/", + "location": "us-east4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.us-west1.rep.googleapis.com/", + "location": "us-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.us-west4.rep.googleapis.com/", + "location": "us-west4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.australia-southeast1.rep.googleapis.com/", + "location": "australia-southeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-west3.rep.googleapis.com/", + "location": "europe-west3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-west1.rep.googleapis.com/", + "location": "europe-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-west2.rep.googleapis.com/", + "location": "europe-west2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.us-east5.rep.googleapis.com/", + "location": "us-east5" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.us-south1.rep.googleapis.com/", + "location": "us-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.us-west2.rep.googleapis.com/", + "location": "us-west2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.us-west3.rep.googleapis.com/", + "location": "us-west3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-west9.rep.googleapis.com/", + "location": "europe-west9" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.asia-south1.rep.googleapis.com/", + "location": "asia-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.asia-south2.rep.googleapis.com/", + "location": "asia-south2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-west4.rep.googleapis.com/", + "location": "europe-west4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-west8.rep.googleapis.com/", + "location": "europe-west8" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.northamerica-northeast1.rep.googleapis.com/", + "location": "northamerica-northeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.northamerica-northeast2.rep.googleapis.com/", + "location": "northamerica-northeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.australia-southeast2.rep.googleapis.com/", + "location": "australia-southeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-central2.rep.googleapis.com/", + "location": "europe-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-west6.rep.googleapis.com/", + "location": "europe-west6" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-west10.rep.googleapis.com/", + "location": "europe-west10" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-west12.rep.googleapis.com/", + "location": "europe-west12" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.asia-east1.rep.googleapis.com/", + "location": "asia-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.asia-east2.rep.googleapis.com/", + "location": "asia-east2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.asia-northeast1.rep.googleapis.com/", + "location": "asia-northeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.asia-northeast2.rep.googleapis.com/", + "location": "asia-northeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.asia-northeast3.rep.googleapis.com/", + "location": "asia-northeast3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.asia-southeast1.rep.googleapis.com/", + "location": "asia-southeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.asia-southeast2.rep.googleapis.com/", + "location": "asia-southeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-north1.rep.googleapis.com/", + "location": "europe-north1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-southwest1.rep.googleapis.com/", + "location": "europe-southwest1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.me-central1.rep.googleapis.com/", + "location": "me-central1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.me-central2.rep.googleapis.com/", + "location": "me-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.southamerica-east1.rep.googleapis.com/", + "location": "southamerica-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.southamerica-west1.rep.googleapis.com/", + "location": "southamerica-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.me-west1.rep.googleapis.com/", + "location": "me-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.africa-south1.rep.googleapis.com/", + "location": "africa-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.northamerica-south1.rep.googleapis.com/", + "location": "northamerica-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.us-central2.rep.googleapis.com/", + "location": "us-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.europe-north2.rep.googleapis.com/", + "location": "europe-north2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.asia-southeast3.rep.googleapis.com/", + "location": "asia-southeast3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.au.rep.googleapis.com/", + "location": "au" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.ca.rep.googleapis.com/", + "location": "ca" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.ch.rep.googleapis.com/", + "location": "ch" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.eu.rep.googleapis.com/", + "location": "eu" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.gb.rep.googleapis.com/", + "location": "gb" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.in.rep.googleapis.com/", + "location": "in" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.jp.rep.googleapis.com/", + "location": "jp" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.sa.rep.googleapis.com/", + "location": "sa" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workloadmanager.us.rep.googleapis.com/", + "location": "us" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -1248,7 +1515,7 @@ } } }, - "revision": "20260708", + "revision": "20260908", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "ActiveDirectory": { diff --git a/discovery/workstations-v1.json b/discovery/workstations-v1.json index 65fae2998a..fa38daa64c 100644 --- a/discovery/workstations-v1.json +++ b/discovery/workstations-v1.json @@ -20,6 +20,31 @@ "description": "Regional Endpoint", "endpointUrl": "https://workstations.us-central1.rep.googleapis.com/", "location": "us-central1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workstations.us-east1.rep.googleapis.com/", + "location": "us-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workstations.us-east4.rep.googleapis.com/", + "location": "us-east4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workstations.us-east5.rep.googleapis.com/", + "location": "us-east5" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workstations.us-west1.rep.googleapis.com/", + "location": "us-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workstations.us-west4.rep.googleapis.com/", + "location": "us-west4" } ], "fullyEncodeReservedExpansion": true, @@ -1256,7 +1281,7 @@ } } }, - "revision": "20260901", + "revision": "20260909", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "Accelerator": { diff --git a/discovery/workstations-v1beta.json b/discovery/workstations-v1beta.json index 5bbe0812bd..ffc2c01929 100644 --- a/discovery/workstations-v1beta.json +++ b/discovery/workstations-v1beta.json @@ -20,6 +20,31 @@ "description": "Regional Endpoint", "endpointUrl": "https://workstations.us-central1.rep.googleapis.com/", "location": "us-central1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workstations.us-east1.rep.googleapis.com/", + "location": "us-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workstations.us-east4.rep.googleapis.com/", + "location": "us-east4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workstations.us-east5.rep.googleapis.com/", + "location": "us-east5" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workstations.us-west1.rep.googleapis.com/", + "location": "us-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://workstations.us-west4.rep.googleapis.com/", + "location": "us-west4" } ], "fullyEncodeReservedExpansion": true, @@ -1210,7 +1235,7 @@ } } }, - "revision": "20260901", + "revision": "20260909", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "Accelerator": { diff --git a/src/apis/abusiveexperiencereport/index.ts b/src/apis/abusiveexperiencereport/index.ts index fde4fce14f..05411e80f5 100644 --- a/src/apis/abusiveexperiencereport/index.ts +++ b/src/apis/abusiveexperiencereport/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/acceleratedmobilepageurl/index.ts b/src/apis/acceleratedmobilepageurl/index.ts index c7dd75a892..68d0db100a 100644 --- a/src/apis/acceleratedmobilepageurl/index.ts +++ b/src/apis/acceleratedmobilepageurl/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/accessapproval/index.ts b/src/apis/accessapproval/index.ts index a4ba3ca725..60c830acc3 100644 --- a/src/apis/accessapproval/index.ts +++ b/src/apis/accessapproval/index.ts @@ -58,4 +58,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/accesscontextmanager/index.ts b/src/apis/accesscontextmanager/index.ts index 253529d70f..7b7bb45c54 100644 --- a/src/apis/accesscontextmanager/index.ts +++ b/src/apis/accesscontextmanager/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/acmedns/index.ts b/src/apis/acmedns/index.ts index 9775e4ab19..22c8dee9e6 100644 --- a/src/apis/acmedns/index.ts +++ b/src/apis/acmedns/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/addressvalidation/index.ts b/src/apis/addressvalidation/index.ts index ac6bf89d1d..42abd7c70c 100644 --- a/src/apis/addressvalidation/index.ts +++ b/src/apis/addressvalidation/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/adexchangebuyer/index.ts b/src/apis/adexchangebuyer/index.ts index 7968ddbecf..bf17639a0d 100644 --- a/src/apis/adexchangebuyer/index.ts +++ b/src/apis/adexchangebuyer/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/adexchangebuyer2/index.ts b/src/apis/adexchangebuyer2/index.ts index fdc2d7334e..40f2b15409 100644 --- a/src/apis/adexchangebuyer2/index.ts +++ b/src/apis/adexchangebuyer2/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/adexperiencereport/index.ts b/src/apis/adexperiencereport/index.ts index 1ee0568426..c6c350a067 100644 --- a/src/apis/adexperiencereport/index.ts +++ b/src/apis/adexperiencereport/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/admin/directory_v1.ts b/src/apis/admin/directory_v1.ts index afba435fd6..adc910884d 100644 --- a/src/apis/admin/directory_v1.ts +++ b/src/apis/admin/directory_v1.ts @@ -21202,7 +21202,7 @@ export namespace admin_directory_v1 { } /** - * Creates a user. Mutate calls immediately following user creation might sometimes fail as the user isn't fully created due to propagation delay in our backends. Check the error details for the "User creation is not complete" message to see if this is the case. Retrying the calls after some time can help in this case. If `resolveConflictAccount` is set to `true`, a `202` response code means that a conflicting unmanaged account exists and was invited to join the organization. A `409` response code means that a conflicting account exists so the user wasn't created based on the [handling unmanaged user accounts](https://support.google.com/a/answer/11112794) option selected. + * Creates a user. Mutate calls immediately following user creation might sometimes fail as the user isn't fully created due to propagation delay in our backends. Check the error details for the "User creation is not complete" message to see if this is the case. Retrying the calls after some time can help in this case. If `resolve_conflict_account` is set to `true`, the option selected for [Find and add unmanaged users](https://knowledge.workspace.google.com/admin/users/find-and-add-unmanaged-users) will apply to resolve conflicting accounts: - A `200` response code indicates the user was created (or replaced an existing unmanaged personal account). - A `202` response code means that a conflicting unmanaged personal account exists and was invited to join the organization. - A `409` response code means that a conflicting account exists so the user wasn't created (e.g. based on the option selected to preserve the account, or if the email conflicts with an unmanaged work account or existing managed user). For details on resolving duplicate account errors, see [Resolve duplicate account errors](https://knowledge.workspace.google.com/p/duplicate-account-errors) and [Transfer unmanaged work accounts](https://knowledge.workspace.google.com/p/unmanaged-work-accounts). * @example * ```js * // Before running the sample: @@ -21232,7 +21232,7 @@ export namespace admin_directory_v1 { * * // Do the magic * const res = await directory.users.insert({ - * // Optional. If set to `true`, the option selected for [handling unmanaged user accounts](https://support.google.com/a/answer/11112794) will apply. Default: `false` + * // Optional. Applies the option selected for [Find and add unmanaged users](https://knowledge.workspace.google.com/admin/users/find-and-add-unmanaged-users) to resolve conflicting accounts when set to `true`. Default: `false` * resolveConflictAccount: 'placeholder-value', * * // Request body metadata @@ -22709,7 +22709,7 @@ export namespace admin_directory_v1 { } export interface Params$Resource$Users$Insert extends StandardParameters { /** - * Optional. If set to `true`, the option selected for [handling unmanaged user accounts](https://support.google.com/a/answer/11112794) will apply. Default: `false` + * Optional. Applies the option selected for [Find and add unmanaged users](https://knowledge.workspace.google.com/admin/users/find-and-add-unmanaged-users) to resolve conflicting accounts when set to `true`. Default: `false` */ resolveConflictAccount?: boolean; diff --git a/src/apis/admin/index.ts b/src/apis/admin/index.ts index 1648eec824..ae5e4e0ce3 100644 --- a/src/apis/admin/index.ts +++ b/src/apis/admin/index.ts @@ -68,4 +68,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/admob/index.ts b/src/apis/admob/index.ts index 7ccbe439b4..c2c4e5ae71 100644 --- a/src/apis/admob/index.ts +++ b/src/apis/admob/index.ts @@ -46,4 +46,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/adsense/index.ts b/src/apis/adsense/index.ts index 1afaf52b56..d4f18103ed 100644 --- a/src/apis/adsense/index.ts +++ b/src/apis/adsense/index.ts @@ -46,4 +46,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/adsensehost/index.ts b/src/apis/adsensehost/index.ts index 12cd5b1f8f..1cee14169f 100644 --- a/src/apis/adsensehost/index.ts +++ b/src/apis/adsensehost/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/adsenseplatform/index.ts b/src/apis/adsenseplatform/index.ts index 3734b272f2..0d6c76ac54 100644 --- a/src/apis/adsenseplatform/index.ts +++ b/src/apis/adsenseplatform/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/advisorynotifications/index.ts b/src/apis/advisorynotifications/index.ts index befb46b101..d19fff8b82 100644 --- a/src/apis/advisorynotifications/index.ts +++ b/src/apis/advisorynotifications/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/agenciesandbrands/index.ts b/src/apis/agenciesandbrands/index.ts index 77819bc59a..2bde8669ef 100644 --- a/src/apis/agenciesandbrands/index.ts +++ b/src/apis/agenciesandbrands/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/agentidentity/index.ts b/src/apis/agentidentity/index.ts index c6c0020909..dcd48644cf 100644 --- a/src/apis/agentidentity/index.ts +++ b/src/apis/agentidentity/index.ts @@ -72,4 +72,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/agentidentitycredentials/README.md b/src/apis/agentidentitycredentials/README.md index 67d3801f5f..85ba09467b 100644 --- a/src/apis/agentidentitycredentials/README.md +++ b/src/apis/agentidentitycredentials/README.md @@ -2,7 +2,7 @@ # agentidentitycredentials -> agentidentitycredentials.googleapis.com API. +> The Agent Identity Credentials API retrieves and finalizes authorization credentials for auth providers. ## Installation diff --git a/src/apis/agentidentitycredentials/index.ts b/src/apis/agentidentitycredentials/index.ts index e8cceb0e4b..3ace64b6d9 100644 --- a/src/apis/agentidentitycredentials/index.ts +++ b/src/apis/agentidentitycredentials/index.ts @@ -79,4 +79,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/agentidentitycredentials/v1alpha.ts b/src/apis/agentidentitycredentials/v1alpha.ts index 25cb1655a9..0b82f4a84b 100644 --- a/src/apis/agentidentitycredentials/v1alpha.ts +++ b/src/apis/agentidentitycredentials/v1alpha.ts @@ -128,6 +128,48 @@ export namespace agentidentitycredentials_v1alpha { * Indicates the user has rejected the permission delegation or canceled the request. */ export interface Schema$GoogleCloudAgentidentitycredentialsV1alpha_ConsentRejected {} + /** + * Request message for `ExchangeCredentials`. + */ + export interface Schema$GoogleCloudAgentidentitycredentialsV1alpha_ExchangeCredentialsRequest { + /** + * Optional. The desired downstream OAuth scopes to request for the exchanged token. + */ + scopes?: string[] | null; + /** + * Required. The incoming identity or assertion token to be exchanged. + */ + sourceCredential?: string | null; + /** + * Optional. The desired target token type to be returned from the exchange. If unspecified, defaults to the token type configured on the AuthProvider. + */ + targetTokenType?: string | null; + /** + * Optional. The token binding parameters to be applied to downstream tokens and embedded into the ID-JAG assertion. + */ + tokenBinding?: Schema$GoogleCloudAgentidentitycredentialsV1alpha_TokenBinding; + } + /** + * Response message for `ExchangeCredentials` containing the resulting credentials. + */ + export interface Schema$GoogleCloudAgentidentitycredentialsV1alpha_ExchangeCredentialsResponse { + /** + * Optional. The time when the token was acquired. + */ + acquireTime?: string | null; + /** + * Optional. The expiration time of the exchanged access token. + */ + expireTime?: string | null; + /** + * The scopes actually associated with the retrieved token. + */ + scopes?: string[] | null; + /** + * The user-consented workforce access token resulting from the exchange. + */ + token?: string | null; + } /** * Request message for `FinalizeCredentials`. */ @@ -216,6 +258,15 @@ export namespace agentidentitycredentials_v1alpha { */ token?: string | null; } + /** + * Configuration for binding downstream credentials to client communication channel properties. + */ + export interface Schema$GoogleCloudAgentidentitycredentialsV1alpha_TokenBinding { + /** + * Optional. The base64url-encoded SHA-256 hash of the DER-encoded X.509 client certificate, as defined in RFC 8705 Section 3.1 (corresponding to "x5t#S256"). Format requirements: - Base64url encoding (RFC 4648 Section 5) using URL-safe characters ('-' and '_') without padding ('='). - Exactly 43 characters long for a 256-bit SHA-256 digest. + */ + certificateFingerprint?: string | null; + } /** * Indicates that the user must visit the provided URI to consent to delegate permission to the agent to act on their behalf. The caller can either poll the `RetrieveCredentials` method, or await the /ValidateUserId callback. */ @@ -270,6 +321,172 @@ export namespace agentidentitycredentials_v1alpha { this.context = context; } + /** + * Swaps an input credential for a target credential as per the rules and provider defined in the given auth provider. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/agentidentitycredentials.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const agentidentitycredentials = google.agentidentitycredentials('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await agentidentitycredentials.projects.locations.authProviders.credentials.exchange( + * { + * // Required. The resource name of the auth provider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}` + * authProvider: + * 'projects/my-project/locations/my-location/authProviders/my-authProvider', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "scopes": [], + * // "sourceCredential": "my_sourceCredential", + * // "targetTokenType": "my_targetTokenType", + * // "tokenBinding": {} + * // } + * }, + * }, + * ); + * console.log(res.data); + * + * // Example response + * // { + * // "acquireTime": "my_acquireTime", + * // "expireTime": "my_expireTime", + * // "scopes": [], + * // "token": "my_token" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + exchange( + params: Params$Resource$Projects$Locations$Authproviders$Credentials$Exchange, + options: StreamMethodOptions + ): Promise>; + exchange( + params?: Params$Resource$Projects$Locations$Authproviders$Credentials$Exchange, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + exchange( + params: Params$Resource$Projects$Locations$Authproviders$Credentials$Exchange, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + exchange( + params: Params$Resource$Projects$Locations$Authproviders$Credentials$Exchange, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + exchange( + params: Params$Resource$Projects$Locations$Authproviders$Credentials$Exchange, + callback: BodyResponseCallback + ): void; + exchange( + callback: BodyResponseCallback + ): void; + exchange( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Authproviders$Credentials$Exchange + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Authproviders$Credentials$Exchange; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Authproviders$Credentials$Exchange; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://agentidentitycredentials.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/v1alpha/{+authProvider}/credentials:exchange' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['authProvider'], + pathParams: ['authProvider'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + /** * Finalizes the credentials after a successful consent flow. * @example @@ -597,6 +814,17 @@ export namespace agentidentitycredentials_v1alpha { } } + export interface Params$Resource$Projects$Locations$Authproviders$Credentials$Exchange extends StandardParameters { + /** + * Required. The resource name of the auth provider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}` + */ + authProvider?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAgentidentitycredentialsV1alpha_ExchangeCredentialsRequest; + } export interface Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize extends StandardParameters { /** * Required. The resource name of the auth provider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}` diff --git a/src/apis/agentregistry/index.ts b/src/apis/agentregistry/index.ts index d4dbc2a0c8..a57ebff47b 100644 --- a/src/apis/agentregistry/index.ts +++ b/src/apis/agentregistry/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/aiplatform/index.ts b/src/apis/aiplatform/index.ts index a33c46a145..112d16fe81 100644 --- a/src/apis/aiplatform/index.ts +++ b/src/apis/aiplatform/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/airquality/index.ts b/src/apis/airquality/index.ts index 1d07662f48..e8670e6e5f 100644 --- a/src/apis/airquality/index.ts +++ b/src/apis/airquality/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/alertcenter/index.ts b/src/apis/alertcenter/index.ts index ee236b9e08..cb02d28020 100644 --- a/src/apis/alertcenter/index.ts +++ b/src/apis/alertcenter/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/alloydb/index.ts b/src/apis/alloydb/index.ts index 5dc7dcd576..13f4357ecb 100644 --- a/src/apis/alloydb/index.ts +++ b/src/apis/alloydb/index.ts @@ -63,4 +63,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/alloydb/v1alpha.ts b/src/apis/alloydb/v1alpha.ts index 6b681dfaa1..5e57156d6a 100644 --- a/src/apis/alloydb/v1alpha.ts +++ b/src/apis/alloydb/v1alpha.ts @@ -227,6 +227,10 @@ export namespace alloydb_v1alpha { * User-settable and human-readable display name for the Backup. */ displayName?: string | null; + /** + * Output only. The edition of the cluster this backup was created from. Any restored cluster created from this backup will have the same edition. + */ + edition?: string | null; /** * Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data. */ @@ -488,6 +492,10 @@ export namespace alloydb_v1alpha { * User-settable and human-readable display name for the Cluster. */ displayName?: string | null; + /** + * Optional. Edition of the cluster. If left unspecified, the cluster behaves as `EDITION_ALLOYDB`. + */ + edition?: string | null; /** * Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data. */ @@ -3573,6 +3581,7 @@ export namespace alloydb_v1alpha { * // "deleteTime": "my_deleteTime", * // "description": "my_description", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", @@ -3891,6 +3900,7 @@ export namespace alloydb_v1alpha { * // "deleteTime": "my_deleteTime", * // "description": "my_description", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", @@ -4206,6 +4216,7 @@ export namespace alloydb_v1alpha { * // "deleteTime": "my_deleteTime", * // "description": "my_description", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", @@ -4504,6 +4515,7 @@ export namespace alloydb_v1alpha { * // "dataplexConfig": {}, * // "deleteTime": "my_deleteTime", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", @@ -4698,6 +4710,7 @@ export namespace alloydb_v1alpha { * // "dataplexConfig": {}, * // "deleteTime": "my_deleteTime", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", @@ -5184,6 +5197,7 @@ export namespace alloydb_v1alpha { * // "dataplexConfig": {}, * // "deleteTime": "my_deleteTime", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", @@ -5665,6 +5679,7 @@ export namespace alloydb_v1alpha { * // "dataplexConfig": {}, * // "deleteTime": "my_deleteTime", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", diff --git a/src/apis/alloydb/v1beta.ts b/src/apis/alloydb/v1beta.ts index 122bc15edf..07cf6f628d 100644 --- a/src/apis/alloydb/v1beta.ts +++ b/src/apis/alloydb/v1beta.ts @@ -227,6 +227,10 @@ export namespace alloydb_v1beta { * User-settable and human-readable display name for the Backup. */ displayName?: string | null; + /** + * Output only. The edition of the cluster this backup was created from. Any restored cluster created from this backup will have the same edition. + */ + edition?: string | null; /** * Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data. */ @@ -480,6 +484,10 @@ export namespace alloydb_v1beta { * User-settable and human-readable display name for the Cluster. */ displayName?: string | null; + /** + * Optional. Edition of the cluster. If left unspecified, the cluster behaves as `EDITION_ALLOYDB`. + */ + edition?: string | null; /** * Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data. */ @@ -3557,6 +3565,7 @@ export namespace alloydb_v1beta { * // "deleteTime": "my_deleteTime", * // "description": "my_description", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", @@ -3874,6 +3883,7 @@ export namespace alloydb_v1beta { * // "deleteTime": "my_deleteTime", * // "description": "my_description", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", @@ -4188,6 +4198,7 @@ export namespace alloydb_v1beta { * // "deleteTime": "my_deleteTime", * // "description": "my_description", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", @@ -4485,6 +4496,7 @@ export namespace alloydb_v1beta { * // "dataplexConfig": {}, * // "deleteTime": "my_deleteTime", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", @@ -4678,6 +4690,7 @@ export namespace alloydb_v1beta { * // "dataplexConfig": {}, * // "deleteTime": "my_deleteTime", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", @@ -5163,6 +5176,7 @@ export namespace alloydb_v1beta { * // "dataplexConfig": {}, * // "deleteTime": "my_deleteTime", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", @@ -5643,6 +5657,7 @@ export namespace alloydb_v1beta { * // "dataplexConfig": {}, * // "deleteTime": "my_deleteTime", * // "displayName": "my_displayName", + * // "edition": "my_edition", * // "encryptionConfig": {}, * // "encryptionInfo": {}, * // "etag": "my_etag", diff --git a/src/apis/analytics/index.ts b/src/apis/analytics/index.ts index ae55fd7322..659bc8627b 100644 --- a/src/apis/analytics/index.ts +++ b/src/apis/analytics/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/analyticsadmin/index.ts b/src/apis/analyticsadmin/index.ts index 87e1b616ab..eac1674cc9 100644 --- a/src/apis/analyticsadmin/index.ts +++ b/src/apis/analyticsadmin/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/analyticsdata/index.ts b/src/apis/analyticsdata/index.ts index 0a9252cbcf..7fb779f387 100644 --- a/src/apis/analyticsdata/index.ts +++ b/src/apis/analyticsdata/index.ts @@ -60,4 +60,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/analyticsdata/v1beta.ts b/src/apis/analyticsdata/v1beta.ts index e657a38d59..963080c4d0 100644 --- a/src/apis/analyticsdata/v1beta.ts +++ b/src/apis/analyticsdata/v1beta.ts @@ -397,6 +397,40 @@ export namespace analyticsdata_v1beta { */ dimensionNames?: string[] | null; } + /** + * Define the truncated date range from start_date to end_date. + */ + export interface Schema$DataTruncationDateRange { + /** + * The end date in the format YYYY-MM-DD (inclusive). + */ + endDate?: string | null; + /** + * The start date in the format YYYY-MM-DD (inclusive). + */ + startDate?: string | null; + } + /** + * Describes a reason for data truncation in the report. + */ + export interface Schema$DataTruncationReason { + /** + * The data truncation date in the format YYYY-MM-DD. Indicates data before this date is truncated. + */ + dataTruncationDate?: string | null; + /** + * The truncated date ranges. + */ + dataTruncationDateRanges?: Schema$DataTruncationDateRange[]; + /** + * A descriptive message explaining the data truncation. + */ + dataTruncationMessage?: string | null; + /** + * The type of data truncation. + */ + dataTruncationType?: string | null; + } /** * A contiguous set of days: `startDate`, `startDate + 1`, ..., `endDate`. Requests are allowed up to 4 date ranges. */ @@ -975,6 +1009,10 @@ export namespace analyticsdata_v1beta { * If true, indicates some buckets of dimension combinations are rolled into "(other)" row. This can happen for high cardinality reports. The metadata parameter dataLossFromOtherRow is populated based on the aggregated data table used in the report. The parameter will be accurately populated regardless of the filters and limits in the report. For example, the (other) row could be dropped from the report because the request contains a filter on sessionSource = google. This parameter will still be populated if data loss from other row was present in the input aggregate data used to generate this report. To learn more, see [About the (other) row and data sampling](https://support.google.com/analytics/answer/13208658#reports). */ dataLossFromOtherRow?: boolean | null; + /** + * If set, indicate there is data truncation in the report. + */ + dataTruncationReasons?: Schema$DataTruncationReason[]; /** * If empty reason is specified, the report is empty for this reason. */ diff --git a/src/apis/analyticshub/index.ts b/src/apis/analyticshub/index.ts index 14f1d91a44..f9c09e74f0 100644 --- a/src/apis/analyticshub/index.ts +++ b/src/apis/analyticshub/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/analyticsreporting/index.ts b/src/apis/analyticsreporting/index.ts index c07db8fcde..35b6bb8b7d 100644 --- a/src/apis/analyticsreporting/index.ts +++ b/src/apis/analyticsreporting/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/androiddeveloperidstatus/index.ts b/src/apis/androiddeveloperidstatus/index.ts index 1649851861..648c919c28 100644 --- a/src/apis/androiddeveloperidstatus/index.ts +++ b/src/apis/androiddeveloperidstatus/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/androiddeviceprovisioning/index.ts b/src/apis/androiddeviceprovisioning/index.ts index 0e2a91d217..3b922b0f58 100644 --- a/src/apis/androiddeviceprovisioning/index.ts +++ b/src/apis/androiddeviceprovisioning/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/androidenterprise/index.ts b/src/apis/androidenterprise/index.ts index 4b7274bf43..6519b332d4 100644 --- a/src/apis/androidenterprise/index.ts +++ b/src/apis/androidenterprise/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/androidmanagement/index.ts b/src/apis/androidmanagement/index.ts index dfe430ccc8..40d18c954e 100644 --- a/src/apis/androidmanagement/index.ts +++ b/src/apis/androidmanagement/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/androidmanagement/v1.ts b/src/apis/androidmanagement/v1.ts index ea51269172..b67f838f6b 100644 --- a/src/apis/androidmanagement/v1.ts +++ b/src/apis/androidmanagement/v1.ts @@ -2751,6 +2751,10 @@ export namespace androidmanagement_v1 { * Whether auto time is required, which prevents the user from manually setting the date and time. If autoDateAndTimeZone is set, this field is ignored. */ autoTimeRequired?: boolean | null; + /** + * Optional. Controls whether the backup service is disabled. Supported only on fully managed devices running Android 8 and above. + */ + backupService?: string | null; /** * This field has no effect. */ @@ -7932,6 +7936,7 @@ export namespace androidmanagement_v1 { * // "autoDateAndTimeZone": "my_autoDateAndTimeZone", * // "autoTimeRequired": false, * // "autofillPolicy": "my_autofillPolicy", + * // "backupService": "my_backupService", * // "blockApplicationsEnabled": false, * // "bluetoothConfigDisabled": false, * // "bluetoothContactSharingDisabled": false, @@ -8470,6 +8475,7 @@ export namespace androidmanagement_v1 { * // "autoDateAndTimeZone": "my_autoDateAndTimeZone", * // "autoTimeRequired": false, * // "autofillPolicy": "my_autofillPolicy", + * // "backupService": "my_backupService", * // "blockApplicationsEnabled": false, * // "bluetoothConfigDisabled": false, * // "bluetoothContactSharingDisabled": false, @@ -8578,6 +8584,7 @@ export namespace androidmanagement_v1 { * // "autoDateAndTimeZone": "my_autoDateAndTimeZone", * // "autoTimeRequired": false, * // "autofillPolicy": "my_autofillPolicy", + * // "backupService": "my_backupService", * // "blockApplicationsEnabled": false, * // "bluetoothConfigDisabled": false, * // "bluetoothContactSharingDisabled": false, diff --git a/src/apis/androidpublisher/index.ts b/src/apis/androidpublisher/index.ts index 3a21dc1591..90538b4f5a 100644 --- a/src/apis/androidpublisher/index.ts +++ b/src/apis/androidpublisher/index.ts @@ -86,4 +86,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/androidpublisher/v3.ts b/src/apis/androidpublisher/v3.ts index bfeb31c43f..d626e5440d 100644 --- a/src/apis/androidpublisher/v3.ts +++ b/src/apis/androidpublisher/v3.ts @@ -542,6 +542,10 @@ export namespace androidpublisher_v3 { * An installable set of active APKs. All APKs in this set should belong to the same version of the app. A set of APKs might only contain 1 APK if the app in question publishes using APKs. If the app uses app bundles (or a similar technology), this set should contain all APKs (even optional ones) that might be installed for this app. A set of APKs should be installable together. If certain APKs are exclusive to one another and cannot be installed together, then a separate AppStoreAppActiveApkSet should be created. */ export interface Schema$AppStoreAppActiveApkSet { + /** + * Optional. Whether all APKs referenced in this active APK set are published on Play Store (or derived from an app bundle published on Play Store). When this is set, version_code must be provided. + */ + alreadyPublishedOnPlay?: boolean | null; /** * Required. The ID for the main base application module. Example: base.apk or app.apk. */ @@ -550,6 +554,10 @@ export namespace androidpublisher_v3 { * Optional. IDs for split modules that might be installed in combination with the base APK. Can be empty if app bundles (or a similar technology) are not used. Example: config.en.apk. */ splitApkId?: string[] | null; + /** + * Optional. Version code for the version this APK set represents. + */ + versionCode?: string | null; } /** * Details about the app. diff --git a/src/apis/apigateway/index.ts b/src/apis/apigateway/index.ts index 918c5d6dc7..f3f8007fda 100644 --- a/src/apis/apigateway/index.ts +++ b/src/apis/apigateway/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/apigateway/v1.ts b/src/apis/apigateway/v1.ts index 24ae4ac07f..54b0e15d28 100644 --- a/src/apis/apigateway/v1.ts +++ b/src/apis/apigateway/v1.ts @@ -322,7 +322,7 @@ export namespace apigateway_v1 { */ createTime?: string | null; /** - * Output only. The default API Gateway host name of the form `{gateway_id\}-{hash\}.{region_code\}.gateway.dev`. + * Output only. The default hostname that serves traffic for this Gateway. */ defaultHostname?: string | null; /** diff --git a/src/apis/apigateway/v1beta.ts b/src/apis/apigateway/v1beta.ts index 8a586875dd..3ecb13c9d6 100644 --- a/src/apis/apigateway/v1beta.ts +++ b/src/apis/apigateway/v1beta.ts @@ -335,7 +335,7 @@ export namespace apigateway_v1beta { */ createTime?: string | null; /** - * Output only. The default API Gateway host name of the form `{gateway_id\}-{hash\}.{region_code\}.gateway.dev`. + * Output only. The default hostname that serves traffic for this Gateway. */ defaultHostname?: string | null; /** diff --git a/src/apis/apigeeregistry/index.ts b/src/apis/apigeeregistry/index.ts index 2153e233fc..e6fb0bef6f 100644 --- a/src/apis/apigeeregistry/index.ts +++ b/src/apis/apigeeregistry/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/apihub/index.ts b/src/apis/apihub/index.ts index 0ce8f0327a..e075e9fa32 100644 --- a/src/apis/apihub/index.ts +++ b/src/apis/apihub/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/apihub/v1.ts b/src/apis/apihub/v1.ts index a67f1a9e1a..720ccd1a7e 100644 --- a/src/apis/apihub/v1.ts +++ b/src/apis/apihub/v1.ts @@ -534,6 +534,10 @@ export namespace apihub_v1 { * Output only. The time at which the operation was created. */ createTime?: string | null; + /** + * Optional. The deployments linked directly to this API operation. For operations parsed from a spec, `UpdateApiOperation` returns `FAILED_PRECONDITION`; link the parent spec to the deployment via `Spec.deployments` instead. Format is `projects/{project\}/locations/{location\}/deployments/{deployment\}` + */ + deployments?: string[] | null; /** * Optional. Operation details. Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided. */ @@ -1035,6 +1039,10 @@ export namespace apihub_v1 { * Details of the deployment where APIs are hosted. A deployment could represent an Apigee proxy, API gateway, other Google Cloud services or non-Google Cloud services as well. A deployment entity is a root level entity in the API hub and exists independent of any API. */ export interface Schema$GoogleCloudApihubV1Deployment { + /** + * Output only. The API operations linked directly to this deployment. + */ + apiOperations?: string[] | null; /** * Output only. The API versions linked to this deployment. Note: A particular deployment could be linked to multiple different API versions (of same or different APIs). */ @@ -1101,10 +1109,18 @@ export namespace apihub_v1 { * Optional. The project to which the deployment belongs. For Google Cloud gateways, this will refer to the project identifier. For others like Edge/OPDK, this will refer to the org identifier. */ sourceProject?: string | null; + /** + * Optional. A revision identifier for the underlying gateway configuration that this deployment serves. For Apigee gateway variants, this is typically the proxy revision number populated automatically when the deployment is discovered. + */ + sourceRevision?: string | null; /** * Optional. The uri where additional source specific information for this deployment can be found. This maps to the following system defined attribute: `projects/{project\}/locations/{location\}/attributes/system-source-uri` The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. The value of the attribute should be a valid URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory. */ sourceUri?: Schema$GoogleCloudApihubV1AttributeValues; + /** + * Output only. The specs linked directly to this deployment. Note: a deployment could serve multiple specs (e.g., across different revisions of the same underlying gateway configuration). + */ + specs?: string[] | null; /** * Output only. The time at which the deployment was last updated. */ @@ -2591,6 +2607,10 @@ export namespace apihub_v1 { * Output only. The time at which the spec was created. */ createTime?: string | null; + /** + * Optional. The deployments linked directly to this spec. Format is `projects/{project\}/locations/{location\}/deployments/{deployment\}` + */ + deployments?: string[] | null; /** * Output only. Details parsed from the spec. */ @@ -2662,6 +2682,10 @@ export namespace apihub_v1 { * The metadata associated with a spec of the API version. */ export interface Schema$GoogleCloudApihubV1SpecMetadata { + /** + * Optional. The gateway-side URIs of deployments that serve this spec. If provided, the API Hub service creates links between this spec and the deployments identified by these URIs. URIs that don't match any known deployment are ignored; a subsequent ingestion cycle that includes the missing deployment will re-establish the link. The maximum number of URIs allowed is 100. + */ + deploymentResourceUris?: string[] | null; /** * Optional. Timestamp indicating when the spec was created at the source. */ @@ -7430,6 +7454,7 @@ export namespace apihub_v1 { * // { * // "attributes": {}, * // "createTime": "my_createTime", + * // "deployments": [], * // "details": {}, * // "name": "my_name", * // "sourceMetadata": [], @@ -7444,6 +7469,7 @@ export namespace apihub_v1 { * // { * // "attributes": {}, * // "createTime": "my_createTime", + * // "deployments": [], * // "details": {}, * // "name": "my_name", * // "sourceMetadata": [], @@ -7555,7 +7581,7 @@ export namespace apihub_v1 { } /** - * Delete an operation in an API version and we can delete only the operations created via create API. If the operation was created by parsing the spec, then it can be deleted by editing or deleting the spec. + * Delete an operation in an API version and we can delete only the operations created via create API. If the operation was created by parsing the spec, then it can be deleted by editing or deleting the spec. Deleting an operation will also remove any links between the operation and deployments. * @example * ```js * // Before running the sample: @@ -7733,6 +7759,7 @@ export namespace apihub_v1 { * // { * // "attributes": {}, * // "createTime": "my_createTime", + * // "deployments": [], * // "details": {}, * // "name": "my_name", * // "sourceMetadata": [], @@ -8045,6 +8072,7 @@ export namespace apihub_v1 { * // { * // "attributes": {}, * // "createTime": "my_createTime", + * // "deployments": [], * // "details": {}, * // "name": "my_name", * // "sourceMetadata": [], @@ -8059,6 +8087,7 @@ export namespace apihub_v1 { * // { * // "attributes": {}, * // "createTime": "my_createTime", + * // "deployments": [], * // "details": {}, * // "name": "my_name", * // "sourceMetadata": [], @@ -8282,6 +8311,7 @@ export namespace apihub_v1 { * // "attributes": {}, * // "contents": {}, * // "createTime": "my_createTime", + * // "deployments": [], * // "details": {}, * // "displayName": "my_displayName", * // "documentation": {}, @@ -8303,6 +8333,7 @@ export namespace apihub_v1 { * // "attributes": {}, * // "contents": {}, * // "createTime": "my_createTime", + * // "deployments": [], * // "details": {}, * // "displayName": "my_displayName", * // "documentation": {}, @@ -8416,7 +8447,7 @@ export namespace apihub_v1 { } /** - * Delete a spec. Deleting a spec will also delete the associated operations from the version. + * Delete a spec. Deleting a spec will also delete the associated operations from the version and remove any links between the spec and deployments. * @example * ```js * // Before running the sample: @@ -8753,6 +8784,7 @@ export namespace apihub_v1 { * // "attributes": {}, * // "contents": {}, * // "createTime": "my_createTime", + * // "deployments": [], * // "details": {}, * // "displayName": "my_displayName", * // "documentation": {}, @@ -9357,6 +9389,7 @@ export namespace apihub_v1 { * // "attributes": {}, * // "contents": {}, * // "createTime": "my_createTime", + * // "deployments": [], * // "details": {}, * // "displayName": "my_displayName", * // "documentation": {}, @@ -9378,6 +9411,7 @@ export namespace apihub_v1 { * // "attributes": {}, * // "contents": {}, * // "createTime": "my_createTime", + * // "deployments": [], * // "details": {}, * // "displayName": "my_displayName", * // "documentation": {}, @@ -12196,6 +12230,7 @@ export namespace apihub_v1 { * requestBody: { * // request body parameters * // { + * // "apiOperations": [], * // "apiVersions": [], * // "attributes": {}, * // "createTime": "my_createTime", @@ -12212,7 +12247,9 @@ export namespace apihub_v1 { * // "sourceEnvironment": "my_sourceEnvironment", * // "sourceMetadata": [], * // "sourceProject": "my_sourceProject", + * // "sourceRevision": "my_sourceRevision", * // "sourceUri": {}, + * // "specs": [], * // "updateTime": "my_updateTime" * // } * }, @@ -12221,6 +12258,7 @@ export namespace apihub_v1 { * * // Example response * // { + * // "apiOperations": [], * // "apiVersions": [], * // "attributes": {}, * // "createTime": "my_createTime", @@ -12237,7 +12275,9 @@ export namespace apihub_v1 { * // "sourceEnvironment": "my_sourceEnvironment", * // "sourceMetadata": [], * // "sourceProject": "my_sourceProject", + * // "sourceRevision": "my_sourceRevision", * // "sourceUri": {}, + * // "specs": [], * // "updateTime": "my_updateTime" * // } * } @@ -12344,7 +12384,7 @@ export namespace apihub_v1 { } /** - * Delete a deployment resource in the API hub. + * Deletes a deployment resource in the API hub. A deployment can only be deleted after its links to any versions, specs, and API operations have been removed. * @example * ```js * // Before running the sample: @@ -12519,6 +12559,7 @@ export namespace apihub_v1 { * * // Example response * // { + * // "apiOperations": [], * // "apiVersions": [], * // "attributes": {}, * // "createTime": "my_createTime", @@ -12535,7 +12576,9 @@ export namespace apihub_v1 { * // "sourceEnvironment": "my_sourceEnvironment", * // "sourceMetadata": [], * // "sourceProject": "my_sourceProject", + * // "sourceRevision": "my_sourceRevision", * // "sourceUri": {}, + * // "specs": [], * // "updateTime": "my_updateTime" * // } * } @@ -12839,6 +12882,7 @@ export namespace apihub_v1 { * requestBody: { * // request body parameters * // { + * // "apiOperations": [], * // "apiVersions": [], * // "attributes": {}, * // "createTime": "my_createTime", @@ -12855,7 +12899,9 @@ export namespace apihub_v1 { * // "sourceEnvironment": "my_sourceEnvironment", * // "sourceMetadata": [], * // "sourceProject": "my_sourceProject", + * // "sourceRevision": "my_sourceRevision", * // "sourceUri": {}, + * // "specs": [], * // "updateTime": "my_updateTime" * // } * }, @@ -12864,6 +12910,7 @@ export namespace apihub_v1 { * * // Example response * // { + * // "apiOperations": [], * // "apiVersions": [], * // "attributes": {}, * // "createTime": "my_createTime", @@ -12880,7 +12927,9 @@ export namespace apihub_v1 { * // "sourceEnvironment": "my_sourceEnvironment", * // "sourceMetadata": [], * // "sourceProject": "my_sourceProject", + * // "sourceRevision": "my_sourceRevision", * // "sourceUri": {}, + * // "specs": [], * // "updateTime": "my_updateTime" * // } * } diff --git a/src/apis/apikeys/index.ts b/src/apis/apikeys/index.ts index dca8400004..29a42166ce 100644 --- a/src/apis/apikeys/index.ts +++ b/src/apis/apikeys/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/apim/index.ts b/src/apis/apim/index.ts index 6fce0d0fbc..685038a2a7 100644 --- a/src/apis/apim/index.ts +++ b/src/apis/apim/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/appengine/index.ts b/src/apis/appengine/index.ts index 58e970fb63..3e2b4fd53f 100644 --- a/src/apis/appengine/index.ts +++ b/src/apis/appengine/index.ts @@ -68,4 +68,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/apphub/index.ts b/src/apis/apphub/index.ts index 492d085d86..65cfbec635 100644 --- a/src/apis/apphub/index.ts +++ b/src/apis/apphub/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/appsactivity/index.ts b/src/apis/appsactivity/index.ts index a74cda77e4..f2d9c20115 100644 --- a/src/apis/appsactivity/index.ts +++ b/src/apis/appsactivity/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/appsmarket/index.ts b/src/apis/appsmarket/index.ts index cbeba94ef2..6a30b2b0ec 100644 --- a/src/apis/appsmarket/index.ts +++ b/src/apis/appsmarket/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/area120tables/index.ts b/src/apis/area120tables/index.ts index c568641679..b0d527ecd8 100644 --- a/src/apis/area120tables/index.ts +++ b/src/apis/area120tables/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/areainsights/index.ts b/src/apis/areainsights/index.ts index 6e91279c30..c827b8d0d9 100644 --- a/src/apis/areainsights/index.ts +++ b/src/apis/areainsights/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/artifactregistry/index.ts b/src/apis/artifactregistry/index.ts index d0c233ed5a..7f536baf17 100644 --- a/src/apis/artifactregistry/index.ts +++ b/src/apis/artifactregistry/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/assuredworkloads/index.ts b/src/apis/assuredworkloads/index.ts index 456ca946b5..703a314d4f 100644 --- a/src/apis/assuredworkloads/index.ts +++ b/src/apis/assuredworkloads/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/assuredworkloads/v1.ts b/src/apis/assuredworkloads/v1.ts index d5d9abc09b..d1d1606d87 100644 --- a/src/apis/assuredworkloads/v1.ts +++ b/src/apis/assuredworkloads/v1.ts @@ -301,6 +301,14 @@ export namespace assuredworkloads_v1 { * The number of findings for the cloud control. */ findingsCount?: number | null; + /** + * Output only. Number of organization policy findings for the cloud control. + */ + orgPolicyFindingCount?: string | null; + /** + * Output only. Number of resource findings for the cloud control. + */ + resourceFindingCount?: string | null; } /** * The cloud control report. @@ -465,10 +473,18 @@ export namespace assuredworkloads_v1 { * Identifier. The name of the control compliance summary. */ name?: string | null; + /** + * Output only. Number of organization policy findings for this control. + */ + orgPolicyFindingCount?: string | null; /** * Output only. The overall evaluation status of the control. */ overallEvaluationState?: string | null; + /** + * Output only. Number of resource findings for this control. + */ + resourceFindingCount?: string | null; /** * The list of similar controls. */ @@ -5045,11 +5061,11 @@ export namespace assuredworkloads_v1 { * * // Do the magic * const res = await assuredworkloads.organizations.locations.workloads.list({ - * // A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported. + * // Optional. A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported. * filter: 'placeholder-value', - * // Page size. + * // Optional. Page size. * pageSize: 'placeholder-value', - * // Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests. + * // Optional. Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests. * pageToken: 'placeholder-value', * // Required. Parent Resource to list workloads from. Must be of the form `organizations/{org_id\}/locations/{location\}`. * parent: 'organizations/my-organization/locations/my-location', @@ -5778,15 +5794,15 @@ export namespace assuredworkloads_v1 { } export interface Params$Resource$Organizations$Locations$Workloads$List extends StandardParameters { /** - * A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported. + * Optional. A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported. */ filter?: string; /** - * Page size. + * Optional. Page size. */ pageSize?: number; /** - * Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests. + * Optional. Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests. */ pageToken?: string; /** diff --git a/src/apis/assuredworkloads/v1beta1.ts b/src/apis/assuredworkloads/v1beta1.ts index fb7001b00a..76234d21a0 100644 --- a/src/apis/assuredworkloads/v1beta1.ts +++ b/src/apis/assuredworkloads/v1beta1.ts @@ -301,6 +301,14 @@ export namespace assuredworkloads_v1beta1 { * The number of findings for the cloud control. */ findingsCount?: number | null; + /** + * Output only. Number of organization policy findings for the cloud control. + */ + orgPolicyFindingCount?: string | null; + /** + * Output only. Number of resource findings for the cloud control. + */ + resourceFindingCount?: string | null; } /** * The cloud control report. @@ -469,10 +477,18 @@ export namespace assuredworkloads_v1beta1 { * Identifier. The name of the control compliance summary. */ name?: string | null; + /** + * Output only. Number of organization policy findings for this control. + */ + orgPolicyFindingCount?: string | null; /** * Output only. The overall evaluation status of the control. */ overallEvaluationState?: string | null; + /** + * Output only. Number of resource findings for this control. + */ + resourceFindingCount?: string | null; /** * The list of similar controls. */ @@ -5109,11 +5125,11 @@ export namespace assuredworkloads_v1beta1 { * * // Do the magic * const res = await assuredworkloads.organizations.locations.workloads.list({ - * // A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported. + * // Optional. A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported. * filter: 'placeholder-value', - * // Page size. + * // Optional. Page size. * pageSize: 'placeholder-value', - * // Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests. + * // Optional. Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests. * pageToken: 'placeholder-value', * // Required. Parent Resource to list workloads from. Must be of the form `organizations/{org_id\}/locations/{location\}`. * parent: 'organizations/my-organization/locations/my-location', @@ -5669,15 +5685,15 @@ export namespace assuredworkloads_v1beta1 { } export interface Params$Resource$Organizations$Locations$Workloads$List extends StandardParameters { /** - * A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported. + * Optional. A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported. */ filter?: string; /** - * Page size. + * Optional. Page size. */ pageSize?: number; /** - * Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests. + * Optional. Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests. */ pageToken?: string; /** diff --git a/src/apis/auditmanager/index.ts b/src/apis/auditmanager/index.ts index 90bc5a663d..6ba5152f01 100644 --- a/src/apis/auditmanager/index.ts +++ b/src/apis/auditmanager/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/auditmanager/v1.ts b/src/apis/auditmanager/v1.ts index 08b2c4ae77..0b1976ac95 100644 --- a/src/apis/auditmanager/v1.ts +++ b/src/apis/auditmanager/v1.ts @@ -177,6 +177,59 @@ export namespace auditmanager_v1 { */ scopeId?: string | null; } + /** + * An audit schedule, in one of the following formats: * `projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\}` + */ + export interface Schema$AuditSchedule { + /** + * Required. Framework (set of controls) that the audit scope report is generated against. For example, `NIST_800_53`. + */ + complianceFramework?: string | null; + /** + * Output only. Timestamp when the schedule was created. + */ + createTime?: string | null; + /** + * Optional. Display name for the audit schedule. + */ + displayName?: string | null; + /** + * Output only. Describes the error if the schedule is in an error state. + */ + errorMessage?: string | null; + /** + * Required. Cloud Storage bucket where Audit Manager can upload the audit report and evidence. The format is `gs://{bucket_name\}`. + */ + gcsUri?: string | null; + /** + * Output only. Timestamp when the audit run was last triggered. + */ + lastTriggerTime?: string | null; + /** + * Identifier. Unique identifier for the audit schedule. Format: projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\} folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\} organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\} + */ + name?: string | null; + /** + * Output only. Calculated timestamp for the next scheduled run. + */ + nextRunTime?: string | null; + /** + * Required. Format for the audit report. + */ + reportFormat?: string | null; + /** + * Required. Configuration that defines when and how often audit runs are automatically triggered for this schedule. + */ + scheduleConfig?: Schema$ScheduleConfig; + /** + * Optional. State of the audit schedule. While most states are managed by the system, you can use UpdateAuditSchedule to start, pause, or delete the schedule. + */ + state?: string | null; + /** + * Output only. Timestamp when the schedule was last updated. + */ + updateTime?: string | null; + } /** * Audit scope report. */ @@ -312,6 +365,10 @@ export namespace auditmanager_v1 { * Required. Cloud Storage buckets that you can upload your audit reports to during the audit process. When you enroll an organization or folder, you can choose a Cloud Storage bucket from any project in the organization or folder. If you run an audit at the project level using the service agent at the organization or folder level, all the buckets that are associated with the service agent are available. */ destinations?: Schema$EligibleDestination[]; + /** + * Optional. If `true`, only validates the request and does not enroll the resource. This executes standard request validation (such as schema, IAM, and destination checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. + */ + validateOnly?: boolean | null; } /** * Request message for GenerateAuditReport. @@ -372,6 +429,23 @@ export namespace auditmanager_v1 { */ nextPageToken?: string | null; } + /** + * Response message for ListAuditSchedules. + */ + export interface Schema$ListAuditSchedulesResponse { + /** + * List of audit schedules. + */ + auditSchedules?: Schema$AuditSchedule[]; + /** + * A token that you can send as the `page_token` in a subsequent request to retrieve the next page of results. If this field is empty, there are no subsequent pages. + */ + nextPageToken?: string | null; + /** + * Locations that can't be reached. + */ + unreachable?: string[] | null; + } /** * Response message for ListControls. */ @@ -594,6 +668,27 @@ export namespace auditmanager_v1 { */ name?: string | null; } + /** + * Timing and frequency parameters for recurring audit runs. + */ + export interface Schema$ScheduleConfig { + /** + * Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely. + */ + endTime?: string | null; + /** + * Required. Frequency of audit runs. + */ + frequency?: string | null; + /** + * Required. Date and time when the first audit run is triggered. Subsequent runs are based on this time and the chosen frequency. + */ + startTime?: string | null; + /** + * Optional. Time zone for the audit schedule in IANA format (for example, `America/New_York`). The time zone is used to interpret the `start_time` and the `end_time`, and to calculate subsequent run dates. If not specified, the time zone default is UTC. + */ + timeZone?: 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). */ @@ -624,6 +719,7 @@ export namespace auditmanager_v1 { export class Resource$Folders$Locations { context: APIRequestContext; auditReports: Resource$Folders$Locations$Auditreports; + auditSchedules: Resource$Folders$Locations$Auditschedules; auditScopeReports: Resource$Folders$Locations$Auditscopereports; operationDetails: Resource$Folders$Locations$Operationdetails; operationIds: Resource$Folders$Locations$Operationids; @@ -634,6 +730,9 @@ export namespace auditmanager_v1 { this.auditReports = new Resource$Folders$Locations$Auditreports( this.context ); + this.auditSchedules = new Resource$Folders$Locations$Auditschedules( + this.context + ); this.auditScopeReports = new Resource$Folders$Locations$Auditscopereports( this.context ); @@ -689,7 +788,8 @@ export namespace auditmanager_v1 { * requestBody: { * // request body parameters * // { - * // "destinations": [] + * // "destinations": [], + * // "validateOnly": false * // } * }, * }); @@ -1296,14 +1396,14 @@ export namespace auditmanager_v1 { parent?: string; } - export class Resource$Folders$Locations$Auditscopereports { + export class Resource$Folders$Locations$Auditschedules { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Generates an audit scope report for the given standard. The report includes the following: * The technical attributes and constraints that Audit Manager uses to verify your compliance with a framework. * A list of Google Cloud services and resources that are within the scope of the framework. + * Creates a new audit schedule in a given project and location. * @example * ```js * // Before running the sample: @@ -1335,18 +1435,30 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.folders.locations.auditScopeReports.generate({ - * // Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` - * scope: 'folders/my-folder/locations/my-location', + * const res = await auditmanager.folders.locations.auditSchedules.create({ + * // Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name. + * auditScheduleId: 'placeholder-value', + * // Required. Project or folder that this audit schedule is for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` + * parent: 'folders/my-folder/locations/my-location', + * // Optional. If `true`, only validates the request and does not create the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. + * validateOnly: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "complianceFramework": "my_complianceFramework", - * // "complianceStandard": "my_complianceStandard", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", + * // "name": "my_name", + * // "nextRunTime": "my_nextRunTime", * // "reportFormat": "my_reportFormat", - * // "validateOnly": false + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" * // } * }, * }); @@ -1354,8 +1466,18 @@ export namespace auditmanager_v1 { * * // Example response * // { + * // "complianceFramework": "my_complianceFramework", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", * // "name": "my_name", - * // "scopeReportContents": "my_scopeReportContents" + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" * // } * } * @@ -1371,54 +1493,53 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - generate( - params: Params$Resource$Folders$Locations$Auditscopereports$Generate, + create( + params: Params$Resource$Folders$Locations$Auditschedules$Create, options: StreamMethodOptions ): Promise>; - generate( - params?: Params$Resource$Folders$Locations$Auditscopereports$Generate, + create( + params?: Params$Resource$Folders$Locations$Auditschedules$Create, options?: MethodOptions - ): Promise>; - generate( - params: Params$Resource$Folders$Locations$Auditscopereports$Generate, + ): Promise>; + create( + params: Params$Resource$Folders$Locations$Auditschedules$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - generate( - params: Params$Resource$Folders$Locations$Auditscopereports$Generate, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + create( + params: Params$Resource$Folders$Locations$Auditschedules$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - generate( - params: Params$Resource$Folders$Locations$Auditscopereports$Generate, - callback: BodyResponseCallback + create( + params: Params$Resource$Folders$Locations$Auditschedules$Create, + callback: BodyResponseCallback ): void; - generate(callback: BodyResponseCallback): void; - generate( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Folders$Locations$Auditscopereports$Generate - | BodyResponseCallback + | Params$Resource$Folders$Locations$Auditschedules$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Folders$Locations$Auditscopereports$Generate; + {}) as Params$Resource$Folders$Locations$Auditschedules$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Folders$Locations$Auditscopereports$Generate; + params = {} as Params$Resource$Folders$Locations$Auditschedules$Create; options = {}; } @@ -1431,7 +1552,7 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+scope}/auditScopeReports:generate').replace( + url: (rootUrl + '/v1/{+parent}/auditSchedules').replace( /([^:]\/)\/+/g, '$1' ), @@ -1441,41 +1562,22 @@ export namespace auditmanager_v1 { options ), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Folders$Locations$Auditscopereports$Generate extends StandardParameters { - /** - * Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` - */ - scope?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GenerateAuditScopeReportRequest; - } - - export class Resource$Folders$Locations$Operationdetails { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * Gets details about the long-running operation to generate audit reports. + * Gets details of a single audit schedule. * @example * ```js * // Before running the sample: @@ -1507,19 +1609,26 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.folders.locations.operationDetails.get({ - * // The name of the operation resource. - * name: 'folders/my-folder/locations/my-location/operationDetails/my-operationDetail', + * const res = await auditmanager.folders.locations.auditSchedules.get({ + * // Required. Name of the audit schedule to retrieve, in one of the following formats: * `projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\}` + * name: 'folders/my-folder/locations/my-location/auditSchedules/my-auditSchedule', * }); * console.log(res.data); * * // Example response * // { - * // "done": false, - * // "error": {}, - * // "metadata": {}, + * // "complianceFramework": "my_complianceFramework", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", * // "name": "my_name", - * // "response": {} + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" * // } * } * @@ -1536,51 +1645,52 @@ export namespace auditmanager_v1 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Folders$Locations$Operationdetails$Get, + params: Params$Resource$Folders$Locations$Auditschedules$Get, options: StreamMethodOptions ): Promise>; get( - params?: Params$Resource$Folders$Locations$Operationdetails$Get, + params?: Params$Resource$Folders$Locations$Auditschedules$Get, options?: MethodOptions - ): Promise>; + ): Promise>; get( - params: Params$Resource$Folders$Locations$Operationdetails$Get, + params: Params$Resource$Folders$Locations$Auditschedules$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Folders$Locations$Operationdetails$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Folders$Locations$Auditschedules$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Folders$Locations$Operationdetails$Get, - callback: BodyResponseCallback + params: Params$Resource$Folders$Locations$Auditschedules$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Folders$Locations$Operationdetails$Get - | BodyResponseCallback + | Params$Resource$Folders$Locations$Auditschedules$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Folders$Locations$Operationdetails$Get; + {}) as Params$Resource$Folders$Locations$Auditschedules$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Folders$Locations$Operationdetails$Get; + params = {} as Params$Resource$Folders$Locations$Auditschedules$Get; options = {}; } @@ -1605,31 +1715,17 @@ export namespace auditmanager_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Folders$Locations$Operationdetails$Get extends StandardParameters { - /** - * The name of the operation resource. - */ - name?: string; - } - - export class Resource$Folders$Locations$Operationids { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * Gets details about the long-running operation to generate audit reports. + * Lists audit schedules in a given project and location. * @example * ```js * // Before running the sample: @@ -1661,19 +1757,21 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.folders.locations.operationIds.get({ - * // The name of the operation resource. - * name: 'folders/my-folder/locations/my-location/operationIds/my-operationId', + * const res = await auditmanager.folders.locations.auditSchedules.list({ + * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. + * pageSize: 'placeholder-value', + * // Optional. A page token, received from a previous call, to retrieve the next page of results. + * pageToken: 'placeholder-value', + * // Required. Parent for the audit schedule, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * parent: 'folders/my-folder/locations/my-location', * }); * console.log(res.data); * * // Example response * // { - * // "done": false, - * // "error": {}, - * // "metadata": {}, - * // "name": "my_name", - * // "response": {} + * // "auditSchedules": [], + * // "nextPageToken": "my_nextPageToken", + * // "unreachable": [] * // } * } * @@ -1689,52 +1787,56 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - get( - params: Params$Resource$Folders$Locations$Operationids$Get, + list( + params: Params$Resource$Folders$Locations$Auditschedules$List, options: StreamMethodOptions ): Promise>; - get( - params?: Params$Resource$Folders$Locations$Operationids$Get, + list( + params?: Params$Resource$Folders$Locations$Auditschedules$List, options?: MethodOptions - ): Promise>; - get( - params: Params$Resource$Folders$Locations$Operationids$Get, + ): Promise>; + list( + params: Params$Resource$Folders$Locations$Auditschedules$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Folders$Locations$Operationids$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Folders$Locations$Auditschedules$List, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Folders$Locations$Operationids$Get, - callback: BodyResponseCallback + list( + params: Params$Resource$Folders$Locations$Auditschedules$List, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + list( + callback: BodyResponseCallback + ): void; + list( paramsOrCallback?: - | Params$Resource$Folders$Locations$Operationids$Get - | BodyResponseCallback + | Params$Resource$Folders$Locations$Auditschedules$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Folders$Locations$Operationids$Get; + {}) as Params$Resource$Folders$Locations$Auditschedules$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Folders$Locations$Operationids$Get; + params = {} as Params$Resource$Folders$Locations$Auditschedules$List; options = {}; } @@ -1747,43 +1849,32 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/auditSchedules').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Folders$Locations$Operationids$Get extends StandardParameters { - /** - * The name of the operation resource. - */ - name?: string; - } - - export class Resource$Folders$Locations$Resourceenrollmentstatuses { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * Gets a resource and its enrollment status. + * Updates an existing audit schedule. * @example * ```js * // Before running the sample: @@ -1815,20 +1906,49 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = - * await auditmanager.folders.locations.resourceEnrollmentStatuses.get({ - * // Required. Name of the resource enrollment status, in one of the following formats: * `folders/{folder\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `projects/{project\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `organizations/{organization\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` - * name: 'folders/my-folder/locations/my-location/resourceEnrollmentStatuses/my-resourceEnrollmentStatuse', - * }); - * console.log(res.data); + * const res = await auditmanager.folders.locations.auditSchedules.patch({ + * // Identifier. Unique identifier for the audit schedule. Format: projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\} folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\} organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\} + * name: 'folders/my-folder/locations/my-location/auditSchedules/my-auditSchedule', + * // Optional. List of fields to update. + * updateMask: 'placeholder-value', + * // Optional. If `true`, only validates the request and does not update the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. + * validateOnly: 'placeholder-value', * - * // Example response - * // { - * // "displayName": "my_displayName", - * // "enrolled": false, - * // "enrollment": {}, - * // "enrollmentState": "my_enrollmentState", - * // "name": "my_name" + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "complianceFramework": "my_complianceFramework", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", + * // "name": "my_name", + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "complianceFramework": "my_complianceFramework", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", + * // "name": "my_name", + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" * // } * } * @@ -1844,55 +1964,53 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - get( - params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get, + patch( + params: Params$Resource$Folders$Locations$Auditschedules$Patch, options: StreamMethodOptions ): Promise>; - get( - params?: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get, + patch( + params?: Params$Resource$Folders$Locations$Auditschedules$Patch, options?: MethodOptions - ): Promise>; - get( - params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get, + ): Promise>; + patch( + params: Params$Resource$Folders$Locations$Auditschedules$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get, - options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + patch( + params: Params$Resource$Folders$Locations$Auditschedules$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get, - callback: BodyResponseCallback + patch( + params: Params$Resource$Folders$Locations$Auditschedules$Patch, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + patch(callback: BodyResponseCallback): void; + patch( paramsOrCallback?: - | Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get - | BodyResponseCallback + | Params$Resource$Folders$Locations$Auditschedules$Patch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get; + {}) as Params$Resource$Folders$Locations$Auditschedules$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get; + params = {} as Params$Resource$Folders$Locations$Auditschedules$Patch; options = {}; } @@ -1906,7 +2024,7 @@ export namespace auditmanager_v1 { options: Object.assign( { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', apiVersion: '', }, options @@ -1917,17 +2035,83 @@ export namespace auditmanager_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Folders$Locations$Auditschedules$Create extends StandardParameters { /** - * Lists all the folders and projects in an organization or folder, along with their enrollments. + * Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name. + */ + auditScheduleId?: string; + /** + * Required. Project or folder that this audit schedule is for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` + */ + parent?: string; + /** + * Optional. If `true`, only validates the request and does not create the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. + */ + validateOnly?: boolean; + + /** + * Request body metadata + */ + requestBody?: Schema$AuditSchedule; + } + export interface Params$Resource$Folders$Locations$Auditschedules$Get extends StandardParameters { + /** + * Required. Name of the audit schedule to retrieve, in one of the following formats: * `projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\}` + */ + name?: string; + } + export interface Params$Resource$Folders$Locations$Auditschedules$List extends StandardParameters { + /** + * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. + */ + pageSize?: number; + /** + * Optional. A page token, received from a previous call, to retrieve the next page of results. + */ + pageToken?: string; + /** + * Required. Parent for the audit schedule, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + */ + parent?: string; + } + export interface Params$Resource$Folders$Locations$Auditschedules$Patch extends StandardParameters { + /** + * Identifier. Unique identifier for the audit schedule. Format: projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\} folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\} organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\} + */ + name?: string; + /** + * Optional. List of fields to update. + */ + updateMask?: string; + /** + * Optional. If `true`, only validates the request and does not update the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. + */ + validateOnly?: boolean; + + /** + * Request body metadata + */ + requestBody?: Schema$AuditSchedule; + } + + export class Resource$Folders$Locations$Auditscopereports { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Generates an audit scope report for the given standard. The report includes the following: * The technical attributes and constraints that Audit Manager uses to verify your compliance with a framework. * A list of Google Cloud services and resources that are within the scope of the framework. * @example * ```js * // Before running the sample: @@ -1959,21 +2143,27 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = - * await auditmanager.folders.locations.resourceEnrollmentStatuses.list({ - * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. - * pageSize: 'placeholder-value', - * // Optional. A page token, received from a previous call, to retrieve the next page of results. - * pageToken: 'placeholder-value', - * // Required. Parent organization or folder to list enrollment statuses for, in one of the following formats: * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` - * parent: 'folders/my-folder/locations/my-location', - * }); + * const res = await auditmanager.folders.locations.auditScopeReports.generate({ + * // Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * scope: 'folders/my-folder/locations/my-location', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "complianceFramework": "my_complianceFramework", + * // "complianceStandard": "my_complianceStandard", + * // "reportFormat": "my_reportFormat", + * // "validateOnly": false + * // } + * }, + * }); * console.log(res.data); * * // Example response * // { - * // "nextPageToken": "my_nextPageToken", - * // "resourceEnrollmentStatuses": [] + * // "name": "my_name", + * // "scopeReportContents": "my_scopeReportContents" * // } * } * @@ -1989,62 +2179,54 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - list( - params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List, + generate( + params: Params$Resource$Folders$Locations$Auditscopereports$Generate, options: StreamMethodOptions ): Promise>; - list( - params?: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List, + generate( + params?: Params$Resource$Folders$Locations$Auditscopereports$Generate, options?: MethodOptions - ): Promise< - GaxiosResponseWithHTTP2 - >; - list( - params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List, + ): Promise>; + generate( + params: Params$Resource$Folders$Locations$Auditscopereports$Generate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List, - callback: BodyResponseCallback + generate( + params: Params$Resource$Folders$Locations$Auditscopereports$Generate, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - callback: BodyResponseCallback + generate( + params: Params$Resource$Folders$Locations$Auditscopereports$Generate, + callback: BodyResponseCallback ): void; - list( + generate(callback: BodyResponseCallback): void; + generate( paramsOrCallback?: - | Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List - | BodyResponseCallback + | Params$Resource$Folders$Locations$Auditscopereports$Generate + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise< - GaxiosResponseWithHTTP2 - > + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List; + {}) as Params$Resource$Folders$Locations$Auditscopereports$Generate; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List; + {} as Params$Resource$Folders$Locations$Auditscopereports$Generate; options = {}; } @@ -2057,73 +2239,51 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/resourceEnrollmentStatuses').replace( + url: (rootUrl + '/v1/{+scope}/auditScopeReports:generate').replace( /([^:]\/)\/+/g, '$1' ), - method: 'GET', + method: 'POST', apiVersion: '', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get extends StandardParameters { - /** - * Required. Name of the resource enrollment status, in one of the following formats: * `folders/{folder\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `projects/{project\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `organizations/{organization\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` - */ - name?: string; - } - export interface Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List extends StandardParameters { - /** - * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. - */ - pageSize?: number; + export interface Params$Resource$Folders$Locations$Auditscopereports$Generate extends StandardParameters { /** - * Optional. A page token, received from a previous call, to retrieve the next page of results. + * Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` */ - pageToken?: string; + scope?: string; + /** - * Required. Parent organization or folder to list enrollment statuses for, in one of the following formats: * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * Request body metadata */ - parent?: string; - } - - export class Resource$Folders$Locations$Standards { - context: APIRequestContext; - controls: Resource$Folders$Locations$Standards$Controls; - constructor(context: APIRequestContext) { - this.context = context; - this.controls = new Resource$Folders$Locations$Standards$Controls( - this.context - ); - } + requestBody?: Schema$GenerateAuditScopeReportRequest; } - export class Resource$Folders$Locations$Standards$Controls { + export class Resource$Folders$Locations$Operationdetails { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Lists the controls that you must implement to become compliant to a regulatory standard. + * Gets details about the long-running operation to generate audit reports. * @example * ```js * // Before running the sample: @@ -2155,20 +2315,19 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.folders.locations.standards.controls.list({ - * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. - * pageSize: 'placeholder-value', - * // Optional. A page token, received from a previous call, to retrieve the next page of results. - * pageToken: 'placeholder-value', - * // Required. Standard to list controls for, in one of the following formats: * `projects/{project\}/locations/{location\}/standards/{standard\}` * `folders/{folder\}/locations/{location\}/standards/{standard\}` * `organizations/{organization\}/locations/{location\}/standards/{standard\}` - * parent: 'folders/my-folder/locations/my-location/standards/my-standard', + * const res = await auditmanager.folders.locations.operationDetails.get({ + * // The name of the operation resource. + * name: 'folders/my-folder/locations/my-location/operationDetails/my-operationDetail', * }); * console.log(res.data); * * // Example response * // { - * // "controls": [], - * // "nextPageToken": "my_nextPageToken" + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} * // } * } * @@ -2184,55 +2343,52 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - list( - params: Params$Resource$Folders$Locations$Standards$Controls$List, + get( + params: Params$Resource$Folders$Locations$Operationdetails$Get, options: StreamMethodOptions ): Promise>; - list( - params?: Params$Resource$Folders$Locations$Standards$Controls$List, - options?: MethodOptions - ): Promise>; - list( - params: Params$Resource$Folders$Locations$Standards$Controls$List, + get( + params?: Params$Resource$Folders$Locations$Operationdetails$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Folders$Locations$Operationdetails$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Folders$Locations$Standards$Controls$List, - options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Folders$Locations$Operationdetails$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Folders$Locations$Standards$Controls$List, - callback: BodyResponseCallback + get( + params: Params$Resource$Folders$Locations$Operationdetails$Get, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; - list( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Folders$Locations$Standards$Controls$List - | BodyResponseCallback + | Params$Resource$Folders$Locations$Operationdetails$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback - | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Folders$Locations$Standards$Controls$List; + {}) as Params$Resource$Folders$Locations$Operationdetails$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Folders$Locations$Standards$Controls$List; + params = {} as Params$Resource$Folders$Locations$Operationdetails$Get; options = {}; } @@ -2245,90 +2401,43 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/controls').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Folders$Locations$Standards$Controls$List extends StandardParameters { - /** - * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. - */ - pageSize?: number; - /** - * Optional. A page token, received from a previous call, to retrieve the next page of results. - */ - pageToken?: string; + export interface Params$Resource$Folders$Locations$Operationdetails$Get extends StandardParameters { /** - * Required. Standard to list controls for, in one of the following formats: * `projects/{project\}/locations/{location\}/standards/{standard\}` * `folders/{folder\}/locations/{location\}/standards/{standard\}` * `organizations/{organization\}/locations/{location\}/standards/{standard\}` + * The name of the operation resource. */ - parent?: string; - } - - export class Resource$Organizations { - context: APIRequestContext; - locations: Resource$Organizations$Locations; - constructor(context: APIRequestContext) { - this.context = context; - this.locations = new Resource$Organizations$Locations(this.context); - } + name?: string; } - export class Resource$Organizations$Locations { + export class Resource$Folders$Locations$Operationids { context: APIRequestContext; - auditReports: Resource$Organizations$Locations$Auditreports; - auditScopeReports: Resource$Organizations$Locations$Auditscopereports; - operationDetails: Resource$Organizations$Locations$Operationdetails; - operationIds: Resource$Organizations$Locations$Operationids; - operations: Resource$Organizations$Locations$Operations; - resourceEnrollmentStatuses: Resource$Organizations$Locations$Resourceenrollmentstatuses; - standards: Resource$Organizations$Locations$Standards; constructor(context: APIRequestContext) { this.context = context; - this.auditReports = new Resource$Organizations$Locations$Auditreports( - this.context - ); - this.auditScopeReports = - new Resource$Organizations$Locations$Auditscopereports(this.context); - this.operationDetails = - new Resource$Organizations$Locations$Operationdetails(this.context); - this.operationIds = new Resource$Organizations$Locations$Operationids( - this.context - ); - this.operations = new Resource$Organizations$Locations$Operations( - this.context - ); - this.resourceEnrollmentStatuses = - new Resource$Organizations$Locations$Resourceenrollmentstatuses( - this.context - ); - this.standards = new Resource$Organizations$Locations$Standards( - this.context - ); } /** - * Adds your project, folder, or organization to Audit Manager. This method creates the Audit Manager service agent in your workload and grants required permissions to the service agent. If you make this request on a workload that's already enrolled, then this method overrides the existing set of destinations. + * Gets details about the long-running operation to generate audit reports. * @example * ```js * // Before running the sample: @@ -2360,24 +2469,19 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.organizations.locations.enrollResource({ - * // Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` - * scope: 'organizations/my-organization/locations/my-location', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "destinations": [] - * // } - * }, + * const res = await auditmanager.folders.locations.operationIds.get({ + * // The name of the operation resource. + * name: 'folders/my-folder/locations/my-location/operationIds/my-operationId', * }); * console.log(res.data); * * // Example response * // { - * // "destinationDetails": [], - * // "name": "my_name" + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} * // } * } * @@ -2393,52 +2497,52 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - enrollResource( - params: Params$Resource$Organizations$Locations$Enrollresource, + get( + params: Params$Resource$Folders$Locations$Operationids$Get, options: StreamMethodOptions ): Promise>; - enrollResource( - params?: Params$Resource$Organizations$Locations$Enrollresource, + get( + params?: Params$Resource$Folders$Locations$Operationids$Get, options?: MethodOptions - ): Promise>; - enrollResource( - params: Params$Resource$Organizations$Locations$Enrollresource, + ): Promise>; + get( + params: Params$Resource$Folders$Locations$Operationids$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - enrollResource( - params: Params$Resource$Organizations$Locations$Enrollresource, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Folders$Locations$Operationids$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - enrollResource( - params: Params$Resource$Organizations$Locations$Enrollresource, - callback: BodyResponseCallback + get( + params: Params$Resource$Folders$Locations$Operationids$Get, + callback: BodyResponseCallback ): void; - enrollResource(callback: BodyResponseCallback): void; - enrollResource( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Enrollresource - | BodyResponseCallback + | Params$Resource$Folders$Locations$Operationids$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Enrollresource; + {}) as Params$Resource$Folders$Locations$Operationids$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Locations$Enrollresource; + params = {} as Params$Resource$Folders$Locations$Operationids$Get; options = {}; } @@ -2451,51 +2555,43 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+scope}:enrollResource').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Organizations$Locations$Enrollresource extends StandardParameters { - /** - * Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` - */ - scope?: string; - + export interface Params$Resource$Folders$Locations$Operationids$Get extends StandardParameters { /** - * Request body metadata + * The name of the operation resource. */ - requestBody?: Schema$EnrollResourceRequest; + name?: string; } - export class Resource$Organizations$Locations$Auditreports { + export class Resource$Folders$Locations$Resourceenrollmentstatuses { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Registers audit report generation requests. This method returns the operation identifier that you can use to track the report generation progress. + * Gets a resource and its enrollment status. * @example * ```js * // Before running the sample: @@ -2527,31 +2623,20 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.organizations.locations.auditReports.generate({ - * // Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` - * scope: 'organizations/my-organization/locations/my-location', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "complianceFramework": "my_complianceFramework", - * // "complianceStandard": "my_complianceStandard", - * // "gcsUri": "my_gcsUri", - * // "reportFormat": "my_reportFormat", - * // "validateOnly": false - * // } - * }, - * }); + * const res = + * await auditmanager.folders.locations.resourceEnrollmentStatuses.get({ + * // Required. Name of the resource enrollment status, in one of the following formats: * `folders/{folder\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `projects/{project\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `organizations/{organization\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` + * name: 'folders/my-folder/locations/my-location/resourceEnrollmentStatuses/my-resourceEnrollmentStatuse', + * }); * console.log(res.data); * * // Example response * // { - * // "done": false, - * // "error": {}, - * // "metadata": {}, - * // "name": "my_name", - * // "response": {} + * // "displayName": "my_displayName", + * // "enrolled": false, + * // "enrollment": {}, + * // "enrollmentState": "my_enrollmentState", + * // "name": "my_name" * // } * } * @@ -2567,53 +2652,55 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - generate( - params: Params$Resource$Organizations$Locations$Auditreports$Generate, + get( + params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get, options: StreamMethodOptions ): Promise>; - generate( - params?: Params$Resource$Organizations$Locations$Auditreports$Generate, + get( + params?: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get, options?: MethodOptions - ): Promise>; - generate( - params: Params$Resource$Organizations$Locations$Auditreports$Generate, + ): Promise>; + get( + params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - generate( - params: Params$Resource$Organizations$Locations$Auditreports$Generate, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - generate( - params: Params$Resource$Organizations$Locations$Auditreports$Generate, - callback: BodyResponseCallback + get( + params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get, + callback: BodyResponseCallback ): void; - generate(callback: BodyResponseCallback): void; - generate( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Auditreports$Generate - | BodyResponseCallback + | Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Auditreports$Generate; + {}) as Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Auditreports$Generate; + {} as Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get; options = {}; } @@ -2626,32 +2713,29 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+scope}/auditReports:generate').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Gets the full metadata and findings for an audit report. + * Lists all the folders and projects in an organization or folder, along with their enrollments. * @example * ```js * // Before running the sample: @@ -2683,25 +2767,21 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.organizations.locations.auditReports.get({ - * // Required. Name of the audit report, in one of the following formats: * `projects/{project\}/locations/{location\}/auditReports/{audit_report\}` * `folders/{folder\}/locations/{location\}/auditReports/{audit_report\}` * `organizations/{organization\}/locations/{location\}/auditReports/{audit_report\}` - * name: 'organizations/my-organization/locations/my-location/auditReports/my-auditReport', - * }); + * const res = + * await auditmanager.folders.locations.resourceEnrollmentStatuses.list({ + * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. + * pageSize: 'placeholder-value', + * // Optional. A page token, received from a previous call, to retrieve the next page of results. + * pageToken: 'placeholder-value', + * // Required. Parent organization or folder to list enrollment statuses for, in one of the following formats: * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * parent: 'folders/my-folder/locations/my-location', + * }); * console.log(res.data); * * // Example response * // { - * // "complianceFramework": "my_complianceFramework", - * // "complianceStandard": "my_complianceStandard", - * // "controlDetails": [], - * // "createTime": "my_createTime", - * // "destinationDetails": {}, - * // "name": "my_name", - * // "operationId": "my_operationId", - * // "reportGenerationState": "my_reportGenerationState", - * // "reportSummary": {}, - * // "scope": "my_scope", - * // "scopeId": "my_scopeId" + * // "nextPageToken": "my_nextPageToken", + * // "resourceEnrollmentStatuses": [] * // } * } * @@ -2717,53 +2797,62 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - get( - params: Params$Resource$Organizations$Locations$Auditreports$Get, + list( + params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List, options: StreamMethodOptions ): Promise>; - get( - params?: Params$Resource$Organizations$Locations$Auditreports$Get, + list( + params?: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List, options?: MethodOptions - ): Promise>; - get( - params: Params$Resource$Organizations$Locations$Auditreports$Get, + ): Promise< + GaxiosResponseWithHTTP2 + >; + list( + params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Organizations$Locations$Auditreports$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Organizations$Locations$Auditreports$Get, - callback: BodyResponseCallback + list( + params: Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + list( + callback: BodyResponseCallback + ): void; + list( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Auditreports$Get - | BodyResponseCallback + | Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise< + GaxiosResponseWithHTTP2 + > | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Auditreports$Get; + {}) as Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Locations$Auditreports$Get; + params = + {} as Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List; options = {}; } @@ -2776,29 +2865,73 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/resourceEnrollmentStatuses').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } + } + export interface Params$Resource$Folders$Locations$Resourceenrollmentstatuses$Get extends StandardParameters { /** - * Lists the audit reports for the organization, folder, or project that you specify as the parent scope. + * Required. Name of the resource enrollment status, in one of the following formats: * `folders/{folder\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `projects/{project\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `organizations/{organization\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` + */ + name?: string; + } + export interface Params$Resource$Folders$Locations$Resourceenrollmentstatuses$List extends StandardParameters { + /** + * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. + */ + pageSize?: number; + /** + * Optional. A page token, received from a previous call, to retrieve the next page of results. + */ + pageToken?: string; + /** + * Required. Parent organization or folder to list enrollment statuses for, in one of the following formats: * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + */ + parent?: string; + } + + export class Resource$Folders$Locations$Standards { + context: APIRequestContext; + controls: Resource$Folders$Locations$Standards$Controls; + constructor(context: APIRequestContext) { + this.context = context; + this.controls = new Resource$Folders$Locations$Standards$Controls( + this.context + ); + } + } + + export class Resource$Folders$Locations$Standards$Controls { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Lists the controls that you must implement to become compliant to a regulatory standard. * @example * ```js * // Before running the sample: @@ -2830,19 +2963,19 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.organizations.locations.auditReports.list({ + * const res = await auditmanager.folders.locations.standards.controls.list({ * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. * pageSize: 'placeholder-value', * // Optional. A page token, received from a previous call, to retrieve the next page of results. * pageToken: 'placeholder-value', - * // Required. Parent organization, folder, or project to list reports for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` - * parent: 'organizations/my-organization/locations/my-location', + * // Required. Standard to list controls for, in one of the following formats: * `projects/{project\}/locations/{location\}/standards/{standard\}` * `folders/{folder\}/locations/{location\}/standards/{standard\}` * `organizations/{organization\}/locations/{location\}/standards/{standard\}` + * parent: 'folders/my-folder/locations/my-location/standards/my-standard', * }); * console.log(res.data); * * // Example response * // { - * // "auditReports": [], + * // "controls": [], * // "nextPageToken": "my_nextPageToken" * // } * } @@ -2860,54 +2993,54 @@ export namespace auditmanager_v1 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Organizations$Locations$Auditreports$List, + params: Params$Resource$Folders$Locations$Standards$Controls$List, options: StreamMethodOptions ): Promise>; list( - params?: Params$Resource$Organizations$Locations$Auditreports$List, + params?: Params$Resource$Folders$Locations$Standards$Controls$List, options?: MethodOptions - ): Promise>; + ): Promise>; list( - params: Params$Resource$Organizations$Locations$Auditreports$List, + params: Params$Resource$Folders$Locations$Standards$Controls$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Locations$Auditreports$List, + params: Params$Resource$Folders$Locations$Standards$Controls$List, options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Locations$Auditreports$List, - callback: BodyResponseCallback + params: Params$Resource$Folders$Locations$Standards$Controls$List, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Auditreports$List - | BodyResponseCallback + | Params$Resource$Folders$Locations$Standards$Controls$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Auditreports$List; + {}) as Params$Resource$Folders$Locations$Standards$Controls$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Auditreports$List; + {} as Params$Resource$Folders$Locations$Standards$Controls$List; options = {}; } @@ -2920,7 +3053,7 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/auditReports').replace( + url: (rootUrl + '/v1/{+parent}/controls').replace( /([^:]\/)\/+/g, '$1' ), @@ -2935,34 +3068,17 @@ export namespace auditmanager_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Organizations$Locations$Auditreports$Generate extends StandardParameters { - /** - * Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` - */ - scope?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GenerateAuditReportRequest; - } - export interface Params$Resource$Organizations$Locations$Auditreports$Get extends StandardParameters { - /** - * Required. Name of the audit report, in one of the following formats: * `projects/{project\}/locations/{location\}/auditReports/{audit_report\}` * `folders/{folder\}/locations/{location\}/auditReports/{audit_report\}` * `organizations/{organization\}/locations/{location\}/auditReports/{audit_report\}` - */ - name?: string; - } - export interface Params$Resource$Organizations$Locations$Auditreports$List extends StandardParameters { + export interface Params$Resource$Folders$Locations$Standards$Controls$List extends StandardParameters { /** * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. */ @@ -2972,19 +3088,59 @@ export namespace auditmanager_v1 { */ pageToken?: string; /** - * Required. Parent organization, folder, or project to list reports for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * Required. Standard to list controls for, in one of the following formats: * `projects/{project\}/locations/{location\}/standards/{standard\}` * `folders/{folder\}/locations/{location\}/standards/{standard\}` * `organizations/{organization\}/locations/{location\}/standards/{standard\}` */ parent?: string; } - export class Resource$Organizations$Locations$Auditscopereports { + export class Resource$Organizations { context: APIRequestContext; + locations: Resource$Organizations$Locations; constructor(context: APIRequestContext) { this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + + export class Resource$Organizations$Locations { + context: APIRequestContext; + auditReports: Resource$Organizations$Locations$Auditreports; + auditSchedules: Resource$Organizations$Locations$Auditschedules; + auditScopeReports: Resource$Organizations$Locations$Auditscopereports; + operationDetails: Resource$Organizations$Locations$Operationdetails; + operationIds: Resource$Organizations$Locations$Operationids; + operations: Resource$Organizations$Locations$Operations; + resourceEnrollmentStatuses: Resource$Organizations$Locations$Resourceenrollmentstatuses; + standards: Resource$Organizations$Locations$Standards; + constructor(context: APIRequestContext) { + this.context = context; + this.auditReports = new Resource$Organizations$Locations$Auditreports( + this.context + ); + this.auditSchedules = new Resource$Organizations$Locations$Auditschedules( + this.context + ); + this.auditScopeReports = + new Resource$Organizations$Locations$Auditscopereports(this.context); + this.operationDetails = + new Resource$Organizations$Locations$Operationdetails(this.context); + this.operationIds = new Resource$Organizations$Locations$Operationids( + this.context + ); + this.operations = new Resource$Organizations$Locations$Operations( + this.context + ); + this.resourceEnrollmentStatuses = + new Resource$Organizations$Locations$Resourceenrollmentstatuses( + this.context + ); + this.standards = new Resource$Organizations$Locations$Standards( + this.context + ); } /** - * Generates an audit scope report for the given standard. The report includes the following: * The technical attributes and constraints that Audit Manager uses to verify your compliance with a framework. * A list of Google Cloud services and resources that are within the scope of the framework. + * Adds your project, folder, or organization to Audit Manager. This method creates the Audit Manager service agent in your workload and grants required permissions to the service agent. If you make this request on a workload that's already enrolled, then this method overrides the existing set of destinations. * @example * ```js * // Before running the sample: @@ -3016,28 +3172,25 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = - * await auditmanager.organizations.locations.auditScopeReports.generate({ - * // Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` - * scope: 'organizations/my-organization/locations/my-location', + * const res = await auditmanager.organizations.locations.enrollResource({ + * // Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * scope: 'organizations/my-organization/locations/my-location', * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "complianceFramework": "my_complianceFramework", - * // "complianceStandard": "my_complianceStandard", - * // "reportFormat": "my_reportFormat", - * // "validateOnly": false - * // } - * }, - * }); + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "destinations": [], + * // "validateOnly": false + * // } + * }, + * }); * console.log(res.data); * * // Example response * // { - * // "name": "my_name", - * // "scopeReportContents": "my_scopeReportContents" + * // "destinationDetails": [], + * // "name": "my_name" * // } * } * @@ -3053,54 +3206,52 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - generate( - params: Params$Resource$Organizations$Locations$Auditscopereports$Generate, + enrollResource( + params: Params$Resource$Organizations$Locations$Enrollresource, options: StreamMethodOptions ): Promise>; - generate( - params?: Params$Resource$Organizations$Locations$Auditscopereports$Generate, + enrollResource( + params?: Params$Resource$Organizations$Locations$Enrollresource, options?: MethodOptions - ): Promise>; - generate( - params: Params$Resource$Organizations$Locations$Auditscopereports$Generate, + ): Promise>; + enrollResource( + params: Params$Resource$Organizations$Locations$Enrollresource, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - generate( - params: Params$Resource$Organizations$Locations$Auditscopereports$Generate, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + enrollResource( + params: Params$Resource$Organizations$Locations$Enrollresource, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - generate( - params: Params$Resource$Organizations$Locations$Auditscopereports$Generate, - callback: BodyResponseCallback + enrollResource( + params: Params$Resource$Organizations$Locations$Enrollresource, + callback: BodyResponseCallback ): void; - generate(callback: BodyResponseCallback): void; - generate( + enrollResource(callback: BodyResponseCallback): void; + enrollResource( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Auditscopereports$Generate - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Enrollresource + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback - | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Auditscopereports$Generate; + {}) as Params$Resource$Organizations$Locations$Enrollresource; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Organizations$Locations$Auditscopereports$Generate; + params = {} as Params$Resource$Organizations$Locations$Enrollresource; options = {}; } @@ -3113,7 +3264,7 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+scope}/auditScopeReports:generate').replace( + url: (rootUrl + '/v1/{+scope}:enrollResource').replace( /([^:]\/)\/+/g, '$1' ), @@ -3128,36 +3279,36 @@ export namespace auditmanager_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Organizations$Locations$Auditscopereports$Generate extends StandardParameters { + export interface Params$Resource$Organizations$Locations$Enrollresource extends StandardParameters { /** - * Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` */ scope?: string; /** * Request body metadata */ - requestBody?: Schema$GenerateAuditScopeReportRequest; + requestBody?: Schema$EnrollResourceRequest; } - export class Resource$Organizations$Locations$Operationdetails { + export class Resource$Organizations$Locations$Auditreports { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Gets details about the long-running operation to generate audit reports. + * Registers audit report generation requests. This method returns the operation identifier that you can use to track the report generation progress. * @example * ```js * // Before running the sample: @@ -3189,9 +3340,21 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.organizations.locations.operationDetails.get({ - * // The name of the operation resource. - * name: 'organizations/my-organization/locations/my-location/operationDetails/my-operationDetail', + * const res = await auditmanager.organizations.locations.auditReports.generate({ + * // Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * scope: 'organizations/my-organization/locations/my-location', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "complianceFramework": "my_complianceFramework", + * // "complianceStandard": "my_complianceStandard", + * // "gcsUri": "my_gcsUri", + * // "reportFormat": "my_reportFormat", + * // "validateOnly": false + * // } + * }, * }); * console.log(res.data); * @@ -3217,32 +3380,32 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - get( - params: Params$Resource$Organizations$Locations$Operationdetails$Get, + generate( + params: Params$Resource$Organizations$Locations$Auditreports$Generate, options: StreamMethodOptions ): Promise>; - get( - params?: Params$Resource$Organizations$Locations$Operationdetails$Get, + generate( + params?: Params$Resource$Organizations$Locations$Auditreports$Generate, options?: MethodOptions ): Promise>; - get( - params: Params$Resource$Organizations$Locations$Operationdetails$Get, + generate( + params: Params$Resource$Organizations$Locations$Auditreports$Generate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Organizations$Locations$Operationdetails$Get, + generate( + params: Params$Resource$Organizations$Locations$Auditreports$Generate, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Organizations$Locations$Operationdetails$Get, + generate( + params: Params$Resource$Organizations$Locations$Auditreports$Generate, callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + generate(callback: BodyResponseCallback): void; + generate( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Operationdetails$Get + | Params$Resource$Organizations$Locations$Auditreports$Generate | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -3257,13 +3420,13 @@ export namespace auditmanager_v1 { | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Operationdetails$Get; + {}) as Params$Resource$Organizations$Locations$Auditreports$Generate; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Operationdetails$Get; + {} as Params$Resource$Organizations$Locations$Auditreports$Generate; options = {}; } @@ -3276,15 +3439,18 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+scope}/auditReports:generate').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', apiVersion: '', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { @@ -3296,23 +3462,9 @@ export namespace auditmanager_v1 { return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Organizations$Locations$Operationdetails$Get extends StandardParameters { - /** - * The name of the operation resource. - */ - name?: string; - } - - export class Resource$Organizations$Locations$Operationids { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * Gets details about the long-running operation to generate audit reports. + * Gets the full metadata and findings for an audit report. * @example * ```js * // Before running the sample: @@ -3344,19 +3496,25 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.organizations.locations.operationIds.get({ - * // The name of the operation resource. - * name: 'organizations/my-organization/locations/my-location/operationIds/my-operationId', + * const res = await auditmanager.organizations.locations.auditReports.get({ + * // Required. Name of the audit report, in one of the following formats: * `projects/{project\}/locations/{location\}/auditReports/{audit_report\}` * `folders/{folder\}/locations/{location\}/auditReports/{audit_report\}` * `organizations/{organization\}/locations/{location\}/auditReports/{audit_report\}` + * name: 'organizations/my-organization/locations/my-location/auditReports/my-auditReport', * }); * console.log(res.data); * * // Example response * // { - * // "done": false, - * // "error": {}, - * // "metadata": {}, + * // "complianceFramework": "my_complianceFramework", + * // "complianceStandard": "my_complianceStandard", + * // "controlDetails": [], + * // "createTime": "my_createTime", + * // "destinationDetails": {}, * // "name": "my_name", - * // "response": {} + * // "operationId": "my_operationId", + * // "reportGenerationState": "my_reportGenerationState", + * // "reportSummary": {}, + * // "scope": "my_scope", + * // "scopeId": "my_scopeId" * // } * } * @@ -3373,51 +3531,52 @@ export namespace auditmanager_v1 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Organizations$Locations$Operationids$Get, + params: Params$Resource$Organizations$Locations$Auditreports$Get, options: StreamMethodOptions ): Promise>; get( - params?: Params$Resource$Organizations$Locations$Operationids$Get, + params?: Params$Resource$Organizations$Locations$Auditreports$Get, options?: MethodOptions - ): Promise>; + ): Promise>; get( - params: Params$Resource$Organizations$Locations$Operationids$Get, + params: Params$Resource$Organizations$Locations$Auditreports$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Organizations$Locations$Operationids$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Auditreports$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Organizations$Locations$Operationids$Get, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Auditreports$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Operationids$Get - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Auditreports$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback - ): + | BodyResponseCallback + | BodyResponseCallback + ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Operationids$Get; + {}) as Params$Resource$Organizations$Locations$Auditreports$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Locations$Operationids$Get; + params = {} as Params$Resource$Organizations$Locations$Auditreports$Get; options = {}; } @@ -3442,31 +3601,17 @@ export namespace auditmanager_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Organizations$Locations$Operationids$Get extends StandardParameters { - /** - * The name of the operation resource. - */ - name?: string; - } - - export class Resource$Organizations$Locations$Operations { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * 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`. + * Lists the audit reports for the organization, folder, or project that you specify as the parent scope. * @example * ```js * // Before running the sample: @@ -3498,20 +3643,21 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.organizations.locations.operations.cancel({ - * // The name of the operation resource to be cancelled. - * name: 'organizations/my-organization/locations/my-location/operations/my-operation', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // {} - * }, + * const res = await auditmanager.organizations.locations.auditReports.list({ + * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. + * pageSize: 'placeholder-value', + * // Optional. A page token, received from a previous call, to retrieve the next page of results. + * pageToken: 'placeholder-value', + * // Required. Parent organization, folder, or project to list reports for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * parent: 'organizations/my-organization/locations/my-location', * }); * console.log(res.data); * * // Example response - * // {} + * // { + * // "auditReports": [], + * // "nextPageToken": "my_nextPageToken" + * // } * } * * main().catch(e => { @@ -3526,53 +3672,55 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - cancel( - params: Params$Resource$Organizations$Locations$Operations$Cancel, + list( + params: Params$Resource$Organizations$Locations$Auditreports$List, options: StreamMethodOptions ): Promise>; - cancel( - params?: Params$Resource$Organizations$Locations$Operations$Cancel, + list( + params?: Params$Resource$Organizations$Locations$Auditreports$List, options?: MethodOptions - ): Promise>; - cancel( - params: Params$Resource$Organizations$Locations$Operations$Cancel, + ): Promise>; + list( + params: Params$Resource$Organizations$Locations$Auditreports$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - cancel( - params: Params$Resource$Organizations$Locations$Operations$Cancel, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Organizations$Locations$Auditreports$List, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - cancel( - params: Params$Resource$Organizations$Locations$Operations$Cancel, - callback: BodyResponseCallback + list( + params: Params$Resource$Organizations$Locations$Auditreports$List, + callback: BodyResponseCallback ): void; - cancel(callback: BodyResponseCallback): void; - cancel( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Operations$Cancel - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Auditreports$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Operations$Cancel; + {}) as Params$Resource$Organizations$Locations$Auditreports$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Operations$Cancel; + {} as Params$Resource$Organizations$Locations$Auditreports$List; options = {}; } @@ -3585,29 +3733,71 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/auditReports').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Organizations$Locations$Auditreports$Generate extends StandardParameters { /** - * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + */ + scope?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GenerateAuditReportRequest; + } + export interface Params$Resource$Organizations$Locations$Auditreports$Get extends StandardParameters { + /** + * Required. Name of the audit report, in one of the following formats: * `projects/{project\}/locations/{location\}/auditReports/{audit_report\}` * `folders/{folder\}/locations/{location\}/auditReports/{audit_report\}` * `organizations/{organization\}/locations/{location\}/auditReports/{audit_report\}` + */ + name?: string; + } + export interface Params$Resource$Organizations$Locations$Auditreports$List extends StandardParameters { + /** + * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. + */ + pageSize?: number; + /** + * Optional. A page token, received from a previous call, to retrieve the next page of results. + */ + pageToken?: string; + /** + * Required. Parent organization, folder, or project to list reports for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + */ + parent?: string; + } + + export class Resource$Organizations$Locations$Auditschedules { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates a new audit schedule in a given project and location. * @example * ```js * // Before running the sample: @@ -3639,14 +3829,50 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.organizations.locations.operations.delete({ - * // The name of the operation resource to be deleted. - * name: 'organizations/my-organization/locations/my-location/operations/my-operation', + * const res = await auditmanager.organizations.locations.auditSchedules.create({ + * // Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name. + * auditScheduleId: 'placeholder-value', + * // Required. Project or folder that this audit schedule is for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` + * parent: 'organizations/my-organization/locations/my-location', + * // Optional. If `true`, only validates the request and does not create the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. + * validateOnly: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "complianceFramework": "my_complianceFramework", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", + * // "name": "my_name", + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" + * // } + * }, * }); * console.log(res.data); * * // Example response - * // {} + * // { + * // "complianceFramework": "my_complianceFramework", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", + * // "name": "my_name", + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" + * // } * } * * main().catch(e => { @@ -3661,53 +3887,54 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - delete( - params: Params$Resource$Organizations$Locations$Operations$Delete, + create( + params: Params$Resource$Organizations$Locations$Auditschedules$Create, options: StreamMethodOptions ): Promise>; - delete( - params?: Params$Resource$Organizations$Locations$Operations$Delete, + create( + params?: Params$Resource$Organizations$Locations$Auditschedules$Create, options?: MethodOptions - ): Promise>; - delete( - params: Params$Resource$Organizations$Locations$Operations$Delete, + ): Promise>; + create( + params: Params$Resource$Organizations$Locations$Auditschedules$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Organizations$Locations$Operations$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + create( + params: Params$Resource$Organizations$Locations$Auditschedules$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Organizations$Locations$Operations$Delete, - callback: BodyResponseCallback + create( + params: Params$Resource$Organizations$Locations$Auditschedules$Create, + callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Operations$Delete - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Auditschedules$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Operations$Delete; + {}) as Params$Resource$Organizations$Locations$Auditschedules$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Operations$Delete; + {} as Params$Resource$Organizations$Locations$Auditschedules$Create; options = {}; } @@ -3720,29 +3947,32 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/auditSchedules').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', apiVersion: '', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * 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. + * Gets details of a single audit schedule. * @example * ```js * // Before running the sample: @@ -3774,19 +4004,26 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.organizations.locations.operations.get({ - * // The name of the operation resource. - * name: 'organizations/my-organization/locations/my-location/operations/my-operation', + * const res = await auditmanager.organizations.locations.auditSchedules.get({ + * // Required. Name of the audit schedule to retrieve, in one of the following formats: * `projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\}` + * name: 'organizations/my-organization/locations/my-location/auditSchedules/my-auditSchedule', * }); * console.log(res.data); * * // Example response * // { - * // "done": false, - * // "error": {}, - * // "metadata": {}, + * // "complianceFramework": "my_complianceFramework", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", * // "name": "my_name", - * // "response": {} + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" * // } * } * @@ -3803,51 +4040,53 @@ export namespace auditmanager_v1 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Organizations$Locations$Operations$Get, + params: Params$Resource$Organizations$Locations$Auditschedules$Get, options: StreamMethodOptions ): Promise>; get( - params?: Params$Resource$Organizations$Locations$Operations$Get, + params?: Params$Resource$Organizations$Locations$Auditschedules$Get, options?: MethodOptions - ): Promise>; + ): Promise>; get( - params: Params$Resource$Organizations$Locations$Operations$Get, + params: Params$Resource$Organizations$Locations$Auditschedules$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Organizations$Locations$Operations$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Auditschedules$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Organizations$Locations$Operations$Get, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Auditschedules$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Operations$Get - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Auditschedules$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Operations$Get; + {}) as Params$Resource$Organizations$Locations$Auditschedules$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Locations$Operations$Get; + params = + {} as Params$Resource$Organizations$Locations$Auditschedules$Get; options = {}; } @@ -3872,17 +4111,17 @@ export namespace auditmanager_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. + * Lists audit schedules in a given project and location. * @example * ```js * // Before running the sample: @@ -3914,24 +4153,20 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.organizations.locations.operations.list({ - * // The standard list filter. - * filter: 'placeholder-value', - * // The name of the operation's parent resource. - * name: 'organizations/my-organization/locations/my-location', - * // The standard list page size. + * const res = await auditmanager.organizations.locations.auditSchedules.list({ + * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. * pageSize: 'placeholder-value', - * // The standard list page token. + * // Optional. A page token, received from a previous call, to retrieve the next page of results. * pageToken: 'placeholder-value', - * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. - * returnPartialSuccess: 'placeholder-value', + * // Required. Parent for the audit schedule, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * parent: 'organizations/my-organization/locations/my-location', * }); * console.log(res.data); * * // Example response * // { + * // "auditSchedules": [], * // "nextPageToken": "my_nextPageToken", - * // "operations": [], * // "unreachable": [] * // } * } @@ -3949,53 +4184,56 @@ export namespace auditmanager_v1 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Organizations$Locations$Operations$List, + params: Params$Resource$Organizations$Locations$Auditschedules$List, options: StreamMethodOptions ): Promise>; list( - params?: Params$Resource$Organizations$Locations$Operations$List, + params?: Params$Resource$Organizations$Locations$Auditschedules$List, options?: MethodOptions - ): Promise>; + ): Promise>; list( - params: Params$Resource$Organizations$Locations$Operations$List, + params: Params$Resource$Organizations$Locations$Auditschedules$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Locations$Operations$List, + params: Params$Resource$Organizations$Locations$Auditschedules$List, options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Locations$Operations$List, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Auditschedules$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Operations$List - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Auditschedules$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Operations$List; + {}) as Params$Resource$Organizations$Locations$Auditschedules$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Locations$Operations$List; + params = + {} as Params$Resource$Organizations$Locations$Auditschedules$List; options = {}; } @@ -4008,7 +4246,7 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}/operations').replace( + url: (rootUrl + '/v1/{+parent}/auditSchedules').replace( /([^:]\/)\/+/g, '$1' ), @@ -4018,75 +4256,260 @@ export namespace auditmanager_v1 { options ), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Updates an existing audit schedule. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/auditmanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const auditmanager = google.auditmanager('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-auditmanager', + * 'https://www.googleapis.com/auth/cloud-platform', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await auditmanager.organizations.locations.auditSchedules.patch({ + * // Identifier. Unique identifier for the audit schedule. Format: projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\} folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\} organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\} + * name: 'organizations/my-organization/locations/my-location/auditSchedules/my-auditSchedule', + * // Optional. List of fields to update. + * updateMask: 'placeholder-value', + * // Optional. If `true`, only validates the request and does not update the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. + * validateOnly: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "complianceFramework": "my_complianceFramework", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", + * // "name": "my_name", + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "complianceFramework": "my_complianceFramework", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", + * // "name": "my_name", + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Organizations$Locations$Auditschedules$Patch, + options: StreamMethodOptions + ): Promise>; + patch( + params?: Params$Resource$Organizations$Locations$Auditschedules$Patch, + options?: MethodOptions + ): Promise>; + patch( + params: Params$Resource$Organizations$Locations$Auditschedules$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Organizations$Locations$Auditschedules$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Organizations$Locations$Auditschedules$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Auditschedules$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Auditschedules$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Organizations$Locations$Auditschedules$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://auditmanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Organizations$Locations$Operations$Cancel extends StandardParameters { + export interface Params$Resource$Organizations$Locations$Auditschedules$Create extends StandardParameters { /** - * The name of the operation resource to be cancelled. + * Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name. */ - name?: string; + auditScheduleId?: string; + /** + * Required. Project or folder that this audit schedule is for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` + */ + parent?: string; + /** + * Optional. If `true`, only validates the request and does not create the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. + */ + validateOnly?: boolean; /** * Request body metadata */ - requestBody?: Schema$CancelOperationRequest; + requestBody?: Schema$AuditSchedule; } - export interface Params$Resource$Organizations$Locations$Operations$Delete extends StandardParameters { + export interface Params$Resource$Organizations$Locations$Auditschedules$Get extends StandardParameters { /** - * The name of the operation resource to be deleted. + * Required. Name of the audit schedule to retrieve, in one of the following formats: * `projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\}` */ name?: string; } - export interface Params$Resource$Organizations$Locations$Operations$Get extends StandardParameters { + export interface Params$Resource$Organizations$Locations$Auditschedules$List extends StandardParameters { /** - * The name of the operation resource. + * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. */ - name?: string; - } - export interface Params$Resource$Organizations$Locations$Operations$List extends StandardParameters { + pageSize?: number; /** - * The standard list filter. + * Optional. A page token, received from a previous call, to retrieve the next page of results. */ - filter?: string; + pageToken?: string; /** - * The name of the operation's parent resource. + * Required. Parent for the audit schedule, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + */ + parent?: string; + } + export interface Params$Resource$Organizations$Locations$Auditschedules$Patch extends StandardParameters { + /** + * Identifier. Unique identifier for the audit schedule. Format: projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\} folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\} organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\} */ name?: string; /** - * The standard list page size. + * Optional. List of fields to update. */ - pageSize?: number; + updateMask?: string; /** - * The standard list page token. + * Optional. If `true`, only validates the request and does not update the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. */ - pageToken?: string; + validateOnly?: boolean; + /** - * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. + * Request body metadata */ - returnPartialSuccess?: boolean; + requestBody?: Schema$AuditSchedule; } - export class Resource$Organizations$Locations$Resourceenrollmentstatuses { + export class Resource$Organizations$Locations$Auditscopereports { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Gets a resource and its enrollment status. + * Generates an audit scope report for the given standard. The report includes the following: * The technical attributes and constraints that Audit Manager uses to verify your compliance with a framework. * A list of Google Cloud services and resources that are within the scope of the framework. * @example * ```js * // Before running the sample: @@ -4119,19 +4542,27 @@ export namespace auditmanager_v1 { * * // Do the magic * const res = - * await auditmanager.organizations.locations.resourceEnrollmentStatuses.get({ - * // Required. Name of the resource enrollment status, in one of the following formats: * `folders/{folder\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `projects/{project\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `organizations/{organization\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` - * name: 'organizations/my-organization/locations/my-location/resourceEnrollmentStatuses/my-resourceEnrollmentStatuse', + * await auditmanager.organizations.locations.auditScopeReports.generate({ + * // Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * scope: 'organizations/my-organization/locations/my-location', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "complianceFramework": "my_complianceFramework", + * // "complianceStandard": "my_complianceStandard", + * // "reportFormat": "my_reportFormat", + * // "validateOnly": false + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "displayName": "my_displayName", - * // "enrolled": false, - * // "enrollment": {}, - * // "enrollmentState": "my_enrollmentState", - * // "name": "my_name" + * // "name": "my_name", + * // "scopeReportContents": "my_scopeReportContents" * // } * } * @@ -4147,55 +4578,54 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - get( - params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get, + generate( + params: Params$Resource$Organizations$Locations$Auditscopereports$Generate, options: StreamMethodOptions ): Promise>; - get( - params?: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get, + generate( + params?: Params$Resource$Organizations$Locations$Auditscopereports$Generate, options?: MethodOptions - ): Promise>; - get( - params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get, + ): Promise>; + generate( + params: Params$Resource$Organizations$Locations$Auditscopereports$Generate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get, - options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + generate( + params: Params$Resource$Organizations$Locations$Auditscopereports$Generate, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get, - callback: BodyResponseCallback + generate( + params: Params$Resource$Organizations$Locations$Auditscopereports$Generate, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + generate(callback: BodyResponseCallback): void; + generate( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Auditscopereports$Generate + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get; + {}) as Params$Resource$Organizations$Locations$Auditscopereports$Generate; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get; + {} as Params$Resource$Organizations$Locations$Auditscopereports$Generate; options = {}; } @@ -4208,29 +4638,1679 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+scope}/auditScopeReports:generate').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Organizations$Locations$Auditscopereports$Generate extends StandardParameters { + /** + * Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + */ + scope?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GenerateAuditScopeReportRequest; + } + + export class Resource$Organizations$Locations$Operationdetails { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Gets details about the long-running operation to generate audit reports. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/auditmanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const auditmanager = google.auditmanager('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-auditmanager', + * 'https://www.googleapis.com/auth/cloud-platform', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await auditmanager.organizations.locations.operationDetails.get({ + * // The name of the operation resource. + * name: 'organizations/my-organization/locations/my-location/operationDetails/my-operationDetail', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Organizations$Locations$Operationdetails$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Organizations$Locations$Operationdetails$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Organizations$Locations$Operationdetails$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Locations$Operationdetails$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Locations$Operationdetails$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Operationdetails$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Operationdetails$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Organizations$Locations$Operationdetails$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://auditmanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Organizations$Locations$Operationdetails$Get extends StandardParameters { + /** + * The name of the operation resource. + */ + name?: string; + } + + export class Resource$Organizations$Locations$Operationids { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Gets details about the long-running operation to generate audit reports. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/auditmanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const auditmanager = google.auditmanager('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-auditmanager', + * 'https://www.googleapis.com/auth/cloud-platform', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await auditmanager.organizations.locations.operationIds.get({ + * // The name of the operation resource. + * name: 'organizations/my-organization/locations/my-location/operationIds/my-operationId', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Organizations$Locations$Operationids$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Organizations$Locations$Operationids$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Organizations$Locations$Operationids$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Locations$Operationids$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Locations$Operationids$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Operationids$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Operationids$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Operationids$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://auditmanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Organizations$Locations$Operationids$Get extends StandardParameters { + /** + * The name of the operation resource. + */ + name?: string; + } + + export class Resource$Organizations$Locations$Operations { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * 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`. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/auditmanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const auditmanager = google.auditmanager('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-auditmanager', + * 'https://www.googleapis.com/auth/cloud-platform', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await auditmanager.organizations.locations.operations.cancel({ + * // The name of the operation resource to be cancelled. + * name: 'organizations/my-organization/locations/my-location/operations/my-operation', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // {} + * }, + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + cancel( + params: Params$Resource$Organizations$Locations$Operations$Cancel, + options: StreamMethodOptions + ): Promise>; + cancel( + params?: Params$Resource$Organizations$Locations$Operations$Cancel, + options?: MethodOptions + ): Promise>; + cancel( + params: Params$Resource$Organizations$Locations$Operations$Cancel, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + cancel( + params: Params$Resource$Organizations$Locations$Operations$Cancel, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + cancel( + params: Params$Resource$Organizations$Locations$Operations$Cancel, + callback: BodyResponseCallback + ): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Operations$Cancel + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Organizations$Locations$Operations$Cancel; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://auditmanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/auditmanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const auditmanager = google.auditmanager('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-auditmanager', + * 'https://www.googleapis.com/auth/cloud-platform', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await auditmanager.organizations.locations.operations.delete({ + * // The name of the operation resource to be deleted. + * name: 'organizations/my-organization/locations/my-location/operations/my-operation', + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Organizations$Locations$Operations$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Organizations$Locations$Operations$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Organizations$Locations$Operations$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Organizations$Locations$Operations$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Organizations$Locations$Operations$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Operations$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Organizations$Locations$Operations$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://auditmanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * 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. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/auditmanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const auditmanager = google.auditmanager('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-auditmanager', + * 'https://www.googleapis.com/auth/cloud-platform', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await auditmanager.organizations.locations.operations.get({ + * // The name of the operation resource. + * name: 'organizations/my-organization/locations/my-location/operations/my-operation', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Organizations$Locations$Operations$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Organizations$Locations$Operations$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Organizations$Locations$Operations$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Locations$Operations$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Locations$Operations$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Operations$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Operations$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://auditmanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/auditmanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const auditmanager = google.auditmanager('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-auditmanager', + * 'https://www.googleapis.com/auth/cloud-platform', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await auditmanager.organizations.locations.operations.list({ + * // The standard list filter. + * filter: 'placeholder-value', + * // The name of the operation's parent resource. + * name: 'organizations/my-organization/locations/my-location', + * // The standard list page size. + * pageSize: 'placeholder-value', + * // The standard list page token. + * pageToken: 'placeholder-value', + * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. + * returnPartialSuccess: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "operations": [], + * // "unreachable": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Organizations$Locations$Operations$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Organizations$Locations$Operations$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Organizations$Locations$Operations$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Organizations$Locations$Operations$List, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Organizations$Locations$Operations$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Operations$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Operations$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://auditmanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}/operations').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Organizations$Locations$Operations$Cancel extends StandardParameters { + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Organizations$Locations$Operations$Delete extends StandardParameters { + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Organizations$Locations$Operations$Get extends StandardParameters { + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Organizations$Locations$Operations$List extends StandardParameters { + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + /** + * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. + */ + returnPartialSuccess?: boolean; + } + + export class Resource$Organizations$Locations$Resourceenrollmentstatuses { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Gets a resource and its enrollment status. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/auditmanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const auditmanager = google.auditmanager('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-auditmanager', + * 'https://www.googleapis.com/auth/cloud-platform', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await auditmanager.organizations.locations.resourceEnrollmentStatuses.get({ + * // Required. Name of the resource enrollment status, in one of the following formats: * `folders/{folder\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `projects/{project\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `organizations/{organization\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` + * name: 'organizations/my-organization/locations/my-location/resourceEnrollmentStatuses/my-resourceEnrollmentStatuse', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "displayName": "my_displayName", + * // "enrolled": false, + * // "enrollment": {}, + * // "enrollmentState": "my_enrollmentState", + * // "name": "my_name" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://auditmanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Lists all the folders and projects in an organization or folder, along with their enrollments. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/auditmanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const auditmanager = google.auditmanager('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-auditmanager', + * 'https://www.googleapis.com/auth/cloud-platform', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await auditmanager.organizations.locations.resourceEnrollmentStatuses.list({ + * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. + * pageSize: 'placeholder-value', + * // Optional. A page token, received from a previous call, to retrieve the next page of results. + * pageToken: 'placeholder-value', + * // Required. Parent organization or folder to list enrollment statuses for, in one of the following formats: * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * parent: 'organizations/my-organization/locations/my-location', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "resourceEnrollmentStatuses": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + list( + params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://auditmanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/resourceEnrollmentStatuses').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get extends StandardParameters { + /** + * Required. Name of the resource enrollment status, in one of the following formats: * `folders/{folder\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `projects/{project\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `organizations/{organization\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` + */ + name?: string; + } + export interface Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List extends StandardParameters { + /** + * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. + */ + pageSize?: number; + /** + * Optional. A page token, received from a previous call, to retrieve the next page of results. + */ + pageToken?: string; + /** + * Required. Parent organization or folder to list enrollment statuses for, in one of the following formats: * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + */ + parent?: string; + } + + export class Resource$Organizations$Locations$Standards { + context: APIRequestContext; + controls: Resource$Organizations$Locations$Standards$Controls; + constructor(context: APIRequestContext) { + this.context = context; + this.controls = new Resource$Organizations$Locations$Standards$Controls( + this.context + ); + } + } + + export class Resource$Organizations$Locations$Standards$Controls { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Lists the controls that you must implement to become compliant to a regulatory standard. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/auditmanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const auditmanager = google.auditmanager('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-auditmanager', + * 'https://www.googleapis.com/auth/cloud-platform', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await auditmanager.organizations.locations.standards.controls.list({ + * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. + * pageSize: 'placeholder-value', + * // Optional. A page token, received from a previous call, to retrieve the next page of results. + * pageToken: 'placeholder-value', + * // Required. Standard to list controls for, in one of the following formats: * `projects/{project\}/locations/{location\}/standards/{standard\}` * `folders/{folder\}/locations/{location\}/standards/{standard\}` * `organizations/{organization\}/locations/{location\}/standards/{standard\}` + * parent: + * 'organizations/my-organization/locations/my-location/standards/my-standard', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "controls": [], + * // "nextPageToken": "my_nextPageToken" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Organizations$Locations$Standards$Controls$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Organizations$Locations$Standards$Controls$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Organizations$Locations$Standards$Controls$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Organizations$Locations$Standards$Controls$List, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Organizations$Locations$Standards$Controls$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Standards$Controls$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Standards$Controls$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Organizations$Locations$Standards$Controls$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://auditmanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/controls').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Organizations$Locations$Standards$Controls$List extends StandardParameters { + /** + * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. + */ + pageSize?: number; + /** + * Optional. A page token, received from a previous call, to retrieve the next page of results. + */ + pageToken?: string; + /** + * Required. Standard to list controls for, in one of the following formats: * `projects/{project\}/locations/{location\}/standards/{standard\}` * `folders/{folder\}/locations/{location\}/standards/{standard\}` * `organizations/{organization\}/locations/{location\}/standards/{standard\}` + */ + parent?: 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; + auditReports: Resource$Projects$Locations$Auditreports; + auditSchedules: Resource$Projects$Locations$Auditschedules; + auditScopeReports: Resource$Projects$Locations$Auditscopereports; + operationDetails: Resource$Projects$Locations$Operationdetails; + operationIds: Resource$Projects$Locations$Operationids; + operations: Resource$Projects$Locations$Operations; + resourceEnrollmentStatuses: Resource$Projects$Locations$Resourceenrollmentstatuses; + standards: Resource$Projects$Locations$Standards; + constructor(context: APIRequestContext) { + this.context = context; + this.auditReports = new Resource$Projects$Locations$Auditreports( + this.context + ); + this.auditSchedules = new Resource$Projects$Locations$Auditschedules( + this.context + ); + this.auditScopeReports = + new Resource$Projects$Locations$Auditscopereports(this.context); + this.operationDetails = new Resource$Projects$Locations$Operationdetails( + this.context + ); + this.operationIds = new Resource$Projects$Locations$Operationids( + this.context + ); + this.operations = new Resource$Projects$Locations$Operations( + this.context + ); + this.resourceEnrollmentStatuses = + new Resource$Projects$Locations$Resourceenrollmentstatuses( + this.context + ); + this.standards = new Resource$Projects$Locations$Standards(this.context); + } + + /** + * Adds your project, folder, or organization to Audit Manager. This method creates the Audit Manager service agent in your workload and grants required permissions to the service agent. If you make this request on a workload that's already enrolled, then this method overrides the existing set of destinations. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/auditmanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const auditmanager = google.auditmanager('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-auditmanager', + * 'https://www.googleapis.com/auth/cloud-platform', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await auditmanager.projects.locations.enrollResource({ + * // Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * scope: 'projects/my-project/locations/my-location', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "destinations": [], + * // "validateOnly": false + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "destinationDetails": [], + * // "name": "my_name" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + enrollResource( + params: Params$Resource$Projects$Locations$Enrollresource, + options: StreamMethodOptions + ): Promise>; + enrollResource( + params?: Params$Resource$Projects$Locations$Enrollresource, + options?: MethodOptions + ): Promise>; + enrollResource( + params: Params$Resource$Projects$Locations$Enrollresource, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + enrollResource( + params: Params$Resource$Projects$Locations$Enrollresource, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + enrollResource( + params: Params$Resource$Projects$Locations$Enrollresource, + callback: BodyResponseCallback + ): void; + enrollResource(callback: BodyResponseCallback): void; + enrollResource( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Enrollresource + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Enrollresource; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Enrollresource; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://auditmanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+scope}:enrollResource').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', apiVersion: '', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Lists all the folders and projects in an organization or folder, along with their enrollments. + * Gets information about a location. * @example * ```js * // Before running the sample: @@ -4262,21 +6342,19 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = - * await auditmanager.organizations.locations.resourceEnrollmentStatuses.list({ - * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. - * pageSize: 'placeholder-value', - * // Optional. A page token, received from a previous call, to retrieve the next page of results. - * pageToken: 'placeholder-value', - * // Required. Parent organization or folder to list enrollment statuses for, in one of the following formats: * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` - * parent: 'organizations/my-organization/locations/my-location', - * }); + * const res = await auditmanager.projects.locations.get({ + * // Resource name for the location. + * name: 'projects/my-project/locations/my-location', + * }); * console.log(res.data); * * // Example response * // { - * // "nextPageToken": "my_nextPageToken", - * // "resourceEnrollmentStatuses": [] + * // "displayName": "my_displayName", + * // "labels": {}, + * // "locationId": "my_locationId", + * // "metadata": {}, + * // "name": "my_name" * // } * } * @@ -4292,62 +6370,52 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - list( - params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List, + get( + params: Params$Resource$Projects$Locations$Get, options: StreamMethodOptions ): Promise>; - list( - params?: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List, + get( + params?: Params$Resource$Projects$Locations$Get, options?: MethodOptions - ): Promise< - GaxiosResponseWithHTTP2 - >; - list( - params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List, + ): Promise>; + get( + params: Params$Resource$Projects$Locations$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List, - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Locations$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Locations$Get, + callback: BodyResponseCallback ): void; - list( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List - | BodyResponseCallback + | Params$Resource$Projects$Locations$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback - | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise< - GaxiosResponseWithHTTP2 - > + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List; + {}) as Params$Resource$Projects$Locations$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List; + params = {} as Params$Resource$Projects$Locations$Get; options = {}; } @@ -4360,73 +6428,29 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/resourceEnrollmentStatuses').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$Get extends StandardParameters { - /** - * Required. Name of the resource enrollment status, in one of the following formats: * `folders/{folder\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `projects/{project\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` * `organizations/{organization\}/locations/{location\}/resourceEnrollmentStatuses/{resource_enrollment_status\}` - */ - name?: string; - } - export interface Params$Resource$Organizations$Locations$Resourceenrollmentstatuses$List extends StandardParameters { - /** - * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. - */ - pageSize?: number; - /** - * Optional. A page token, received from a previous call, to retrieve the next page of results. - */ - pageToken?: string; - /** - * Required. Parent organization or folder to list enrollment statuses for, in one of the following formats: * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` - */ - parent?: string; - } - - export class Resource$Organizations$Locations$Standards { - context: APIRequestContext; - controls: Resource$Organizations$Locations$Standards$Controls; - constructor(context: APIRequestContext) { - this.context = context; - this.controls = new Resource$Organizations$Locations$Standards$Controls( - this.context - ); - } - } - - export class Resource$Organizations$Locations$Standards$Controls { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * Lists the controls that you must implement to become compliant to a regulatory standard. + * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. * @example * ```js * // Before running the sample: @@ -4458,21 +6482,23 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = - * await auditmanager.organizations.locations.standards.controls.list({ - * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. - * pageSize: 'placeholder-value', - * // Optional. A page token, received from a previous call, to retrieve the next page of results. - * pageToken: 'placeholder-value', - * // Required. Standard to list controls for, in one of the following formats: * `projects/{project\}/locations/{location\}/standards/{standard\}` * `folders/{folder\}/locations/{location\}/standards/{standard\}` * `organizations/{organization\}/locations/{location\}/standards/{standard\}` - * parent: - * 'organizations/my-organization/locations/my-location/standards/my-standard', - * }); + * const res = await auditmanager.projects.locations.list({ + * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. + * extraLocationTypes: 'placeholder-value', + * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). + * filter: 'placeholder-value', + * // The resource that owns the locations collection, if applicable. + * name: 'projects/my-project', + * // The maximum number of results to return. If not set, the service selects a default. + * pageSize: 'placeholder-value', + * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. + * pageToken: 'placeholder-value', + * }); * console.log(res.data); * * // Example response * // { - * // "controls": [], + * // "locations": [], * // "nextPageToken": "my_nextPageToken" * // } * } @@ -4490,54 +6516,53 @@ export namespace auditmanager_v1 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Organizations$Locations$Standards$Controls$List, + params: Params$Resource$Projects$Locations$List, options: StreamMethodOptions ): Promise>; list( - params?: Params$Resource$Organizations$Locations$Standards$Controls$List, + params?: Params$Resource$Projects$Locations$List, options?: MethodOptions - ): Promise>; + ): Promise>; list( - params: Params$Resource$Organizations$Locations$Standards$Controls$List, + params: Params$Resource$Projects$Locations$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Locations$Standards$Controls$List, + params: Params$Resource$Projects$Locations$List, options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Locations$Standards$Controls$List, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$List, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Standards$Controls$List - | BodyResponseCallback + | Params$Resource$Projects$Locations$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Standards$Controls$List; + {}) as Params$Resource$Projects$Locations$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Organizations$Locations$Standards$Controls$List; + params = {} as Params$Resource$Projects$Locations$List; options = {}; } @@ -4550,7 +6575,7 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/controls').replace( + url: (rootUrl + '/v1/{+name}/locations').replace( /([^:]\/)\/+/g, '$1' ), @@ -4560,79 +6585,69 @@ export namespace auditmanager_v1 { options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Organizations$Locations$Standards$Controls$List extends StandardParameters { + export interface Params$Resource$Projects$Locations$Enrollresource extends StandardParameters { /** - * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. + * Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` */ - pageSize?: number; + scope?: string; + /** - * Optional. A page token, received from a previous call, to retrieve the next page of results. + * Request body metadata */ - pageToken?: string; + requestBody?: Schema$EnrollResourceRequest; + } + export interface Params$Resource$Projects$Locations$Get extends StandardParameters { /** - * Required. Standard to list controls for, in one of the following formats: * `projects/{project\}/locations/{location\}/standards/{standard\}` * `folders/{folder\}/locations/{location\}/standards/{standard\}` * `organizations/{organization\}/locations/{location\}/standards/{standard\}` + * Resource name for the location. */ - parent?: string; + name?: 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 interface Params$Resource$Projects$Locations$List extends StandardParameters { + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. + */ + extraLocationTypes?: string[]; + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). + */ + filter?: string; + /** + * The resource that owns the locations collection, if applicable. + */ + name?: string; + /** + * The maximum number of results to return. If not set, the service selects a default. + */ + pageSize?: number; + /** + * A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. + */ + pageToken?: string; } - export class Resource$Projects$Locations { + export class Resource$Projects$Locations$Auditreports { context: APIRequestContext; - auditReports: Resource$Projects$Locations$Auditreports; - auditScopeReports: Resource$Projects$Locations$Auditscopereports; - operationDetails: Resource$Projects$Locations$Operationdetails; - operationIds: Resource$Projects$Locations$Operationids; - operations: Resource$Projects$Locations$Operations; - resourceEnrollmentStatuses: Resource$Projects$Locations$Resourceenrollmentstatuses; - standards: Resource$Projects$Locations$Standards; constructor(context: APIRequestContext) { this.context = context; - this.auditReports = new Resource$Projects$Locations$Auditreports( - this.context - ); - this.auditScopeReports = - new Resource$Projects$Locations$Auditscopereports(this.context); - this.operationDetails = new Resource$Projects$Locations$Operationdetails( - this.context - ); - this.operationIds = new Resource$Projects$Locations$Operationids( - this.context - ); - this.operations = new Resource$Projects$Locations$Operations( - this.context - ); - this.resourceEnrollmentStatuses = - new Resource$Projects$Locations$Resourceenrollmentstatuses( - this.context - ); - this.standards = new Resource$Projects$Locations$Standards(this.context); } /** - * Adds your project, folder, or organization to Audit Manager. This method creates the Audit Manager service agent in your workload and grants required permissions to the service agent. If you make this request on a workload that's already enrolled, then this method overrides the existing set of destinations. + * Registers audit report generation requests. This method returns the operation identifier that you can use to track the report generation progress. * @example * ```js * // Before running the sample: @@ -4664,15 +6679,19 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.projects.locations.enrollResource({ - * // Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * const res = await auditmanager.projects.locations.auditReports.generate({ + * // Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` * scope: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "destinations": [] + * // "complianceFramework": "my_complianceFramework", + * // "complianceStandard": "my_complianceStandard", + * // "gcsUri": "my_gcsUri", + * // "reportFormat": "my_reportFormat", + * // "validateOnly": false * // } * }, * }); @@ -4680,8 +6699,11 @@ export namespace auditmanager_v1 { * * // Example response * // { - * // "destinationDetails": [], - * // "name": "my_name" + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} * // } * } * @@ -4697,52 +6719,52 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - enrollResource( - params: Params$Resource$Projects$Locations$Enrollresource, + generate( + params: Params$Resource$Projects$Locations$Auditreports$Generate, options: StreamMethodOptions ): Promise>; - enrollResource( - params?: Params$Resource$Projects$Locations$Enrollresource, + generate( + params?: Params$Resource$Projects$Locations$Auditreports$Generate, options?: MethodOptions - ): Promise>; - enrollResource( - params: Params$Resource$Projects$Locations$Enrollresource, + ): Promise>; + generate( + params: Params$Resource$Projects$Locations$Auditreports$Generate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - enrollResource( - params: Params$Resource$Projects$Locations$Enrollresource, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + generate( + params: Params$Resource$Projects$Locations$Auditreports$Generate, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - enrollResource( - params: Params$Resource$Projects$Locations$Enrollresource, - callback: BodyResponseCallback + generate( + params: Params$Resource$Projects$Locations$Auditreports$Generate, + callback: BodyResponseCallback ): void; - enrollResource(callback: BodyResponseCallback): void; - enrollResource( + generate(callback: BodyResponseCallback): void; + generate( paramsOrCallback?: - | Params$Resource$Projects$Locations$Enrollresource - | BodyResponseCallback + | Params$Resource$Projects$Locations$Auditreports$Generate + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Enrollresource; + {}) as Params$Resource$Projects$Locations$Auditreports$Generate; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Enrollresource; + params = {} as Params$Resource$Projects$Locations$Auditreports$Generate; options = {}; } @@ -4755,7 +6777,7 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+scope}:enrollResource').replace( + url: (rootUrl + '/v1/{+scope}/auditReports:generate').replace( /([^:]\/)\/+/g, '$1' ), @@ -4770,17 +6792,17 @@ export namespace auditmanager_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Gets information about a location. + * Gets the full metadata and findings for an audit report. * @example * ```js * // Before running the sample: @@ -4812,19 +6834,25 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.projects.locations.get({ - * // Resource name for the location. - * name: 'projects/my-project/locations/my-location', + * const res = await auditmanager.projects.locations.auditReports.get({ + * // Required. Name of the audit report, in one of the following formats: * `projects/{project\}/locations/{location\}/auditReports/{audit_report\}` * `folders/{folder\}/locations/{location\}/auditReports/{audit_report\}` * `organizations/{organization\}/locations/{location\}/auditReports/{audit_report\}` + * name: 'projects/my-project/locations/my-location/auditReports/my-auditReport', * }); * console.log(res.data); * * // Example response * // { - * // "displayName": "my_displayName", - * // "labels": {}, - * // "locationId": "my_locationId", - * // "metadata": {}, - * // "name": "my_name" + * // "complianceFramework": "my_complianceFramework", + * // "complianceStandard": "my_complianceStandard", + * // "controlDetails": [], + * // "createTime": "my_createTime", + * // "destinationDetails": {}, + * // "name": "my_name", + * // "operationId": "my_operationId", + * // "reportGenerationState": "my_reportGenerationState", + * // "reportSummary": {}, + * // "scope": "my_scope", + * // "scopeId": "my_scopeId" * // } * } * @@ -4841,51 +6869,52 @@ export namespace auditmanager_v1 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Projects$Locations$Get, + params: Params$Resource$Projects$Locations$Auditreports$Get, options: StreamMethodOptions ): Promise>; get( - params?: Params$Resource$Projects$Locations$Get, + params?: Params$Resource$Projects$Locations$Auditreports$Get, options?: MethodOptions - ): Promise>; + ): Promise>; get( - params: Params$Resource$Projects$Locations$Get, + params: Params$Resource$Projects$Locations$Auditreports$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Auditreports$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Get, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Auditreports$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Get - | BodyResponseCallback + | Params$Resource$Projects$Locations$Auditreports$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Get; + {}) as Params$Resource$Projects$Locations$Auditreports$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Get; + params = {} as Params$Resource$Projects$Locations$Auditreports$Get; options = {}; } @@ -4910,17 +6939,17 @@ export namespace auditmanager_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. + * Lists the audit reports for the organization, folder, or project that you specify as the parent scope. * @example * ```js * // Before running the sample: @@ -4952,23 +6981,19 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.projects.locations.list({ - * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. - * extraLocationTypes: 'placeholder-value', - * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). - * filter: 'placeholder-value', - * // The resource that owns the locations collection, if applicable. - * name: 'projects/my-project', - * // The maximum number of results to return. If not set, the service selects a default. + * const res = await auditmanager.projects.locations.auditReports.list({ + * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. * pageSize: 'placeholder-value', - * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. + * // Optional. A page token, received from a previous call, to retrieve the next page of results. * pageToken: 'placeholder-value', + * // Required. Parent organization, folder, or project to list reports for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { - * // "locations": [], + * // "auditReports": [], * // "nextPageToken": "my_nextPageToken" * // } * } @@ -4986,53 +7011,53 @@ export namespace auditmanager_v1 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Projects$Locations$List, + params: Params$Resource$Projects$Locations$Auditreports$List, options: StreamMethodOptions ): Promise>; list( - params?: Params$Resource$Projects$Locations$List, + params?: Params$Resource$Projects$Locations$Auditreports$List, options?: MethodOptions - ): Promise>; + ): Promise>; list( - params: Params$Resource$Projects$Locations$List, + params: Params$Resource$Projects$Locations$Auditreports$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$List, + params: Params$Resource$Projects$Locations$Auditreports$List, options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$List, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Auditreports$List, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Projects$Locations$List - | BodyResponseCallback + | Params$Resource$Projects$Locations$Auditreports$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$List; + {}) as Params$Resource$Projects$Locations$Auditreports$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$List; + params = {} as Params$Resource$Projects$Locations$Auditreports$List; options = {}; } @@ -5045,7 +7070,7 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}/locations').replace( + url: (rootUrl + '/v1/{+parent}/auditReports').replace( /([^:]\/)\/+/g, '$1' ), @@ -5055,69 +7080,61 @@ export namespace auditmanager_v1 { options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Projects$Locations$Enrollresource extends StandardParameters { + export interface Params$Resource$Projects$Locations$Auditreports$Generate extends StandardParameters { /** - * Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` */ scope?: string; /** * Request body metadata */ - requestBody?: Schema$EnrollResourceRequest; + requestBody?: Schema$GenerateAuditReportRequest; } - export interface Params$Resource$Projects$Locations$Get extends StandardParameters { + export interface Params$Resource$Projects$Locations$Auditreports$Get extends StandardParameters { /** - * Resource name for the location. + * Required. Name of the audit report, in one of the following formats: * `projects/{project\}/locations/{location\}/auditReports/{audit_report\}` * `folders/{folder\}/locations/{location\}/auditReports/{audit_report\}` * `organizations/{organization\}/locations/{location\}/auditReports/{audit_report\}` */ name?: string; } - export interface Params$Resource$Projects$Locations$List extends StandardParameters { - /** - * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. - */ - extraLocationTypes?: string[]; - /** - * A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). - */ - filter?: string; - /** - * The resource that owns the locations collection, if applicable. - */ - name?: string; + export interface Params$Resource$Projects$Locations$Auditreports$List extends StandardParameters { /** - * The maximum number of results to return. If not set, the service selects a default. + * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. */ pageSize?: number; /** - * A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. + * Optional. A page token, received from a previous call, to retrieve the next page of results. */ pageToken?: string; + /** + * Required. Parent organization, folder, or project to list reports for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + */ + parent?: string; } - export class Resource$Projects$Locations$Auditreports { + export class Resource$Projects$Locations$Auditschedules { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Registers audit report generation requests. This method returns the operation identifier that you can use to track the report generation progress. + * Creates a new audit schedule in a given project and location. * @example * ```js * // Before running the sample: @@ -5149,19 +7166,30 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.projects.locations.auditReports.generate({ - * // Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` - * scope: 'projects/my-project/locations/my-location', + * const res = await auditmanager.projects.locations.auditSchedules.create({ + * // Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name. + * auditScheduleId: 'placeholder-value', + * // Required. Project or folder that this audit schedule is for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` + * parent: 'projects/my-project/locations/my-location', + * // Optional. If `true`, only validates the request and does not create the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. + * validateOnly: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "complianceFramework": "my_complianceFramework", - * // "complianceStandard": "my_complianceStandard", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", + * // "name": "my_name", + * // "nextRunTime": "my_nextRunTime", * // "reportFormat": "my_reportFormat", - * // "validateOnly": false + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" * // } * }, * }); @@ -5169,11 +7197,18 @@ export namespace auditmanager_v1 { * * // Example response * // { - * // "done": false, - * // "error": {}, - * // "metadata": {}, + * // "complianceFramework": "my_complianceFramework", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", * // "name": "my_name", - * // "response": {} + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" * // } * } * @@ -5189,52 +7224,53 @@ export namespace auditmanager_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - generate( - params: Params$Resource$Projects$Locations$Auditreports$Generate, + create( + params: Params$Resource$Projects$Locations$Auditschedules$Create, options: StreamMethodOptions ): Promise>; - generate( - params?: Params$Resource$Projects$Locations$Auditreports$Generate, + create( + params?: Params$Resource$Projects$Locations$Auditschedules$Create, options?: MethodOptions - ): Promise>; - generate( - params: Params$Resource$Projects$Locations$Auditreports$Generate, + ): Promise>; + create( + params: Params$Resource$Projects$Locations$Auditschedules$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - generate( - params: Params$Resource$Projects$Locations$Auditreports$Generate, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + create( + params: Params$Resource$Projects$Locations$Auditschedules$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - generate( - params: Params$Resource$Projects$Locations$Auditreports$Generate, - callback: BodyResponseCallback + create( + params: Params$Resource$Projects$Locations$Auditschedules$Create, + callback: BodyResponseCallback ): void; - generate(callback: BodyResponseCallback): void; - generate( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Projects$Locations$Auditreports$Generate - | BodyResponseCallback + | Params$Resource$Projects$Locations$Auditschedules$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Auditreports$Generate; + {}) as Params$Resource$Projects$Locations$Auditschedules$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Auditreports$Generate; + params = {} as Params$Resource$Projects$Locations$Auditschedules$Create; options = {}; } @@ -5247,7 +7283,7 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+scope}/auditReports:generate').replace( + url: (rootUrl + '/v1/{+parent}/auditSchedules').replace( /([^:]\/)\/+/g, '$1' ), @@ -5257,22 +7293,22 @@ export namespace auditmanager_v1 { options ), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Gets the full metadata and findings for an audit report. + * Gets details of a single audit schedule. * @example * ```js * // Before running the sample: @@ -5304,25 +7340,26 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.projects.locations.auditReports.get({ - * // Required. Name of the audit report, in one of the following formats: * `projects/{project\}/locations/{location\}/auditReports/{audit_report\}` * `folders/{folder\}/locations/{location\}/auditReports/{audit_report\}` * `organizations/{organization\}/locations/{location\}/auditReports/{audit_report\}` - * name: 'projects/my-project/locations/my-location/auditReports/my-auditReport', + * const res = await auditmanager.projects.locations.auditSchedules.get({ + * // Required. Name of the audit schedule to retrieve, in one of the following formats: * `projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\}` + * name: 'projects/my-project/locations/my-location/auditSchedules/my-auditSchedule', * }); * console.log(res.data); * * // Example response * // { * // "complianceFramework": "my_complianceFramework", - * // "complianceStandard": "my_complianceStandard", - * // "controlDetails": [], * // "createTime": "my_createTime", - * // "destinationDetails": {}, + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", * // "name": "my_name", - * // "operationId": "my_operationId", - * // "reportGenerationState": "my_reportGenerationState", - * // "reportSummary": {}, - * // "scope": "my_scope", - * // "scopeId": "my_scopeId" + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" * // } * } * @@ -5339,52 +7376,52 @@ export namespace auditmanager_v1 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Projects$Locations$Auditreports$Get, + params: Params$Resource$Projects$Locations$Auditschedules$Get, options: StreamMethodOptions ): Promise>; get( - params?: Params$Resource$Projects$Locations$Auditreports$Get, + params?: Params$Resource$Projects$Locations$Auditschedules$Get, options?: MethodOptions - ): Promise>; + ): Promise>; get( - params: Params$Resource$Projects$Locations$Auditreports$Get, + params: Params$Resource$Projects$Locations$Auditschedules$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Auditreports$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Auditschedules$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Auditreports$Get, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Auditschedules$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Auditreports$Get - | BodyResponseCallback + | Params$Resource$Projects$Locations$Auditschedules$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Auditreports$Get; + {}) as Params$Resource$Projects$Locations$Auditschedules$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Auditreports$Get; + params = {} as Params$Resource$Projects$Locations$Auditschedules$Get; options = {}; } @@ -5409,17 +7446,17 @@ export namespace auditmanager_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Lists the audit reports for the organization, folder, or project that you specify as the parent scope. + * Lists audit schedules in a given project and location. * @example * ```js * // Before running the sample: @@ -5451,20 +7488,21 @@ export namespace auditmanager_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await auditmanager.projects.locations.auditReports.list({ + * const res = await auditmanager.projects.locations.auditSchedules.list({ * // Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. * pageSize: 'placeholder-value', * // Optional. A page token, received from a previous call, to retrieve the next page of results. * pageToken: 'placeholder-value', - * // Required. Parent organization, folder, or project to list reports for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * // Required. Parent for the audit schedule, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { - * // "auditReports": [], - * // "nextPageToken": "my_nextPageToken" + * // "auditSchedules": [], + * // "nextPageToken": "my_nextPageToken", + * // "unreachable": [] * // } * } * @@ -5481,53 +7519,55 @@ export namespace auditmanager_v1 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Projects$Locations$Auditreports$List, + params: Params$Resource$Projects$Locations$Auditschedules$List, options: StreamMethodOptions ): Promise>; list( - params?: Params$Resource$Projects$Locations$Auditreports$List, + params?: Params$Resource$Projects$Locations$Auditschedules$List, options?: MethodOptions - ): Promise>; + ): Promise>; list( - params: Params$Resource$Projects$Locations$Auditreports$List, + params: Params$Resource$Projects$Locations$Auditschedules$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$Auditreports$List, + params: Params$Resource$Projects$Locations$Auditschedules$List, options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$Auditreports$List, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Auditschedules$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Auditreports$List - | BodyResponseCallback + | Params$Resource$Projects$Locations$Auditschedules$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Auditreports$List; + {}) as Params$Resource$Projects$Locations$Auditschedules$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Auditreports$List; + params = {} as Params$Resource$Projects$Locations$Auditschedules$List; options = {}; } @@ -5540,7 +7580,7 @@ export namespace auditmanager_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/auditReports').replace( + url: (rootUrl + '/v1/{+parent}/auditSchedules').replace( /([^:]\/)\/+/g, '$1' ), @@ -5555,34 +7595,213 @@ export namespace auditmanager_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); + } + } + + /** + * Updates an existing audit schedule. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/auditmanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const auditmanager = google.auditmanager('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-auditmanager', + * 'https://www.googleapis.com/auth/cloud-platform', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await auditmanager.projects.locations.auditSchedules.patch({ + * // Identifier. Unique identifier for the audit schedule. Format: projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\} folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\} organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\} + * name: 'projects/my-project/locations/my-location/auditSchedules/my-auditSchedule', + * // Optional. List of fields to update. + * updateMask: 'placeholder-value', + * // Optional. If `true`, only validates the request and does not update the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. + * validateOnly: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "complianceFramework": "my_complianceFramework", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", + * // "name": "my_name", + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "complianceFramework": "my_complianceFramework", + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "errorMessage": "my_errorMessage", + * // "gcsUri": "my_gcsUri", + * // "lastTriggerTime": "my_lastTriggerTime", + * // "name": "my_name", + * // "nextRunTime": "my_nextRunTime", + * // "reportFormat": "my_reportFormat", + * // "scheduleConfig": {}, + * // "state": "my_state", + * // "updateTime": "my_updateTime" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Projects$Locations$Auditschedules$Patch, + options: StreamMethodOptions + ): Promise>; + patch( + params?: Params$Resource$Projects$Locations$Auditschedules$Patch, + options?: MethodOptions + ): Promise>; + patch( + params: Params$Resource$Projects$Locations$Auditschedules$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Auditschedules$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Auditschedules$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Auditschedules$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Auditschedules$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Auditschedules$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://auditmanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); } } } - export interface Params$Resource$Projects$Locations$Auditreports$Generate extends StandardParameters { + export interface Params$Resource$Projects$Locations$Auditschedules$Create extends StandardParameters { /** - * Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name. */ - scope?: string; + auditScheduleId?: string; + /** + * Required. Project or folder that this audit schedule is for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` + */ + parent?: string; + /** + * Optional. If `true`, only validates the request and does not create the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. + */ + validateOnly?: boolean; /** * Request body metadata */ - requestBody?: Schema$GenerateAuditReportRequest; + requestBody?: Schema$AuditSchedule; } - export interface Params$Resource$Projects$Locations$Auditreports$Get extends StandardParameters { + export interface Params$Resource$Projects$Locations$Auditschedules$Get extends StandardParameters { /** - * Required. Name of the audit report, in one of the following formats: * `projects/{project\}/locations/{location\}/auditReports/{audit_report\}` * `folders/{folder\}/locations/{location\}/auditReports/{audit_report\}` * `organizations/{organization\}/locations/{location\}/auditReports/{audit_report\}` + * Required. Name of the audit schedule to retrieve, in one of the following formats: * `projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\}` * `organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\}` */ name?: string; } - export interface Params$Resource$Projects$Locations$Auditreports$List extends StandardParameters { + export interface Params$Resource$Projects$Locations$Auditschedules$List extends StandardParameters { /** * Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. */ @@ -5592,10 +7811,29 @@ export namespace auditmanager_v1 { */ pageToken?: string; /** - * Required. Parent organization, folder, or project to list reports for, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` + * Required. Parent for the audit schedule, in one of the following formats: * `projects/{project\}/locations/{location\}` * `folders/{folder\}/locations/{location\}` * `organizations/{organization\}/locations/{location\}` */ parent?: string; } + export interface Params$Resource$Projects$Locations$Auditschedules$Patch extends StandardParameters { + /** + * Identifier. Unique identifier for the audit schedule. Format: projects/{project\}/locations/{location\}/auditSchedules/{audit_schedule\} folders/{folder\}/locations/{location\}/auditSchedules/{audit_schedule\} organizations/{organization\}/locations/{location\}/auditSchedules/{audit_schedule\} + */ + name?: string; + /** + * Optional. List of fields to update. + */ + updateMask?: string; + /** + * Optional. If `true`, only validates the request and does not update the audit schedule. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. + */ + validateOnly?: boolean; + + /** + * Request body metadata + */ + requestBody?: Schema$AuditSchedule; + } export class Resource$Projects$Locations$Auditscopereports { context: APIRequestContext; diff --git a/src/apis/authorizedbuyersmarketplace/index.ts b/src/apis/authorizedbuyersmarketplace/index.ts index 795ef005b8..c93a309b53 100644 --- a/src/apis/authorizedbuyersmarketplace/index.ts +++ b/src/apis/authorizedbuyersmarketplace/index.ts @@ -79,4 +79,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/backupdr/index.ts b/src/apis/backupdr/index.ts index a40c86e26a..ec723a6b0a 100644 --- a/src/apis/backupdr/index.ts +++ b/src/apis/backupdr/index.ts @@ -49,4 +49,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/backupdr/v1.ts b/src/apis/backupdr/v1.ts index 3680d923b1..2ca726a072 100644 --- a/src/apis/backupdr/v1.ts +++ b/src/apis/backupdr/v1.ts @@ -2709,43 +2709,6 @@ export namespace backupdr_v1 { */ response?: {[key: string]: any} | null; } - /** - * Represents the metadata of the long-running operation. - */ - export interface Schema$OperationMetadata { - /** - * Output only. AdditionalInfo contains additional Info related to backup plan association resource. - */ - additionalInfo?: {[key: string]: string} | null; - /** - * Output only. API version used to start the operation. - */ - apiVersion?: string | null; - /** - * Output only. The time the operation was created. - */ - createTime?: string | null; - /** - * Output only. The time the operation finished running. - */ - endTime?: string | null; - /** - * Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to 'Code.CANCELLED'. - */ - requestedCancellation?: boolean | null; - /** - * Output only. Human-readable status of the operation, if any. - */ - statusMessage?: string | null; - /** - * Output only. Server-defined resource path for the target of the operation. - */ - target?: string | null; - /** - * Output only. Name of the verb executed by the operation. - */ - verb?: string | null; - } /** * Point in time recovery settings of the backup configuration resource. */ diff --git a/src/apis/backupdr/v1beta.ts b/src/apis/backupdr/v1beta.ts index ae3d66dcfa..6302699b95 100644 --- a/src/apis/backupdr/v1beta.ts +++ b/src/apis/backupdr/v1beta.ts @@ -2961,43 +2961,6 @@ export namespace backupdr_v1beta { */ response?: {[key: string]: any} | null; } - /** - * Represents the metadata of the long-running operation. - */ - export interface Schema$OperationMetadata { - /** - * Output only. AdditionalInfo contains additional Info related to backup plan association resource. - */ - additionalInfo?: {[key: string]: string} | null; - /** - * Output only. API version used to start the operation. - */ - apiVersion?: string | null; - /** - * Output only. The time the operation was created. - */ - createTime?: string | null; - /** - * Output only. The time the operation finished running. - */ - endTime?: string | null; - /** - * Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to 'Code.CANCELLED'. - */ - requestedCancellation?: boolean | null; - /** - * Output only. Human-readable status of the operation, if any. - */ - statusMessage?: string | null; - /** - * Output only. Server-defined resource path for the target of the operation. - */ - target?: string | null; - /** - * Output only. Name of the verb executed by the operation. - */ - verb?: string | null; - } /** * Point in time recovery settings of the backup configuration resource. */ diff --git a/src/apis/baremetalsolution/index.ts b/src/apis/baremetalsolution/index.ts index 1b587dbfc6..0b79e1d0bc 100644 --- a/src/apis/baremetalsolution/index.ts +++ b/src/apis/baremetalsolution/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/batch/index.ts b/src/apis/batch/index.ts index 89e2c1a88a..740ffac7f3 100644 --- a/src/apis/batch/index.ts +++ b/src/apis/batch/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/beyondcorp/index.ts b/src/apis/beyondcorp/index.ts index 982a511412..924c2988f2 100644 --- a/src/apis/beyondcorp/index.ts +++ b/src/apis/beyondcorp/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/biglake/index.ts b/src/apis/biglake/index.ts index e7d0c78989..abef46068d 100644 --- a/src/apis/biglake/index.ts +++ b/src/apis/biglake/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/bigquery/index.ts b/src/apis/bigquery/index.ts index 50ed537721..3116a7aa94 100644 --- a/src/apis/bigquery/index.ts +++ b/src/apis/bigquery/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/bigqueryconnection/index.ts b/src/apis/bigqueryconnection/index.ts index 17ee988fb2..5ecaf81f32 100644 --- a/src/apis/bigqueryconnection/index.ts +++ b/src/apis/bigqueryconnection/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/bigquerydatapolicy/index.ts b/src/apis/bigquerydatapolicy/index.ts index 4e24fd44ca..adcc0a5fc0 100644 --- a/src/apis/bigquerydatapolicy/index.ts +++ b/src/apis/bigquerydatapolicy/index.ts @@ -59,4 +59,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/bigquerydatatransfer/index.ts b/src/apis/bigquerydatatransfer/index.ts index 9ba9cdd40c..f5687499e0 100644 --- a/src/apis/bigquerydatatransfer/index.ts +++ b/src/apis/bigquerydatatransfer/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/bigqueryreservation/index.ts b/src/apis/bigqueryreservation/index.ts index 84ec8eea14..9035eed3b0 100644 --- a/src/apis/bigqueryreservation/index.ts +++ b/src/apis/bigqueryreservation/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/bigtableadmin/index.ts b/src/apis/bigtableadmin/index.ts index bc16301dca..360f26f06f 100644 --- a/src/apis/bigtableadmin/index.ts +++ b/src/apis/bigtableadmin/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/billingbudgets/index.ts b/src/apis/billingbudgets/index.ts index 51a045d548..f9eec5eb19 100644 --- a/src/apis/billingbudgets/index.ts +++ b/src/apis/billingbudgets/index.ts @@ -58,4 +58,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/binaryauthorization/index.ts b/src/apis/binaryauthorization/index.ts index d78c0100f0..1cb363e809 100644 --- a/src/apis/binaryauthorization/index.ts +++ b/src/apis/binaryauthorization/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/blockchainnodeengine/index.ts b/src/apis/blockchainnodeengine/index.ts index e452a87ec0..eef443b128 100644 --- a/src/apis/blockchainnodeengine/index.ts +++ b/src/apis/blockchainnodeengine/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/blogger/index.ts b/src/apis/blogger/index.ts index 2f610768c1..d8b547d3a6 100644 --- a/src/apis/blogger/index.ts +++ b/src/apis/blogger/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/books/index.ts b/src/apis/books/index.ts index 998ab7d639..903461b89b 100644 --- a/src/apis/books/index.ts +++ b/src/apis/books/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/businessprofileperformance/index.ts b/src/apis/businessprofileperformance/index.ts index bca4bf45aa..6d214a703e 100644 --- a/src/apis/businessprofileperformance/index.ts +++ b/src/apis/businessprofileperformance/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/calendar/index.ts b/src/apis/calendar/index.ts index 8f0aba3983..ded0fca82b 100644 --- a/src/apis/calendar/index.ts +++ b/src/apis/calendar/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/certificatemanager/index.ts b/src/apis/certificatemanager/index.ts index aff3f41d3c..b2de116304 100644 --- a/src/apis/certificatemanager/index.ts +++ b/src/apis/certificatemanager/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/ces/index.ts b/src/apis/ces/index.ts index 2946093eda..1ef6ea899f 100644 --- a/src/apis/ces/index.ts +++ b/src/apis/ces/index.ts @@ -46,4 +46,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/ces/v1.ts b/src/apis/ces/v1.ts index 12e3f3112d..bfcd798997 100644 --- a/src/apis/ces/v1.ts +++ b/src/apis/ces/v1.ts @@ -1883,6 +1883,10 @@ export namespace ces_v1 { * Required. The name of the event. */ event?: string | null; + /** + * Optional. Additional variables associated with the event. + */ + variables?: {[key: string]: any} | null; } /** * An example represents a sample conversation between the user and the agent(s). @@ -2219,6 +2223,10 @@ export namespace ces_v1 { * Identifier. The unique identifier of the guardrail. Format: `projects/{project\}/locations/{location\}/apps/{app\}/guardrails/{guardrail\}` */ name?: string | null; + /** + * Optional. Guardrail that runs supervisor intervention. + */ + supervisor?: Schema$GuardrailSupervisor; /** * Output only. Timestamp when the guardrail was last updated. */ @@ -2347,6 +2355,19 @@ export namespace ces_v1 { */ threshold?: string | null; } + /** + * Guardrail that runs supervisor intervention. + */ + export interface Schema$GuardrailSupervisor { + /** + * Optional. The detection mode of the supervisor. + */ + detectionMode?: string | null; + /** + * Optional. The type of the supervisor. + */ + type?: string | null; + } /** * Represents an image input or output in the conversation. */ @@ -3885,10 +3906,22 @@ export namespace ces_v1 { * Required. The description of the tool. */ description?: string | null; + /** + * Optional. Mapping of input variable names of remote agent to GECX variable names. + */ + inputVariableMapping?: {[key: string]: string} | null; /** * Required. The name of the tool. */ name?: string | null; + /** + * Optional. Mapping of output variable names of remote agent to GECX variable names. + */ + outputVariableMapping?: {[key: string]: string} | null; + /** + * Optional. When enabled, the interaction between the CXAS app and the remote agent will share the same context. If the remote agent returns a context_id, it will be persisted for the entirety of the session for this remote agent tool. + */ + statefulAgent?: boolean | null; } /** * Request message for AgentService.RestoreAppVersion @@ -11157,6 +11190,7 @@ export namespace ces_v1 { * // "llmPromptSecurity": {}, * // "modelSafety": {}, * // "name": "my_name", + * // "supervisor": {}, * // "updateTime": "my_updateTime" * // } * }, @@ -11177,6 +11211,7 @@ export namespace ces_v1 { * // "llmPromptSecurity": {}, * // "modelSafety": {}, * // "name": "my_name", + * // "supervisor": {}, * // "updateTime": "my_updateTime" * // } * } @@ -11468,6 +11503,7 @@ export namespace ces_v1 { * // "llmPromptSecurity": {}, * // "modelSafety": {}, * // "name": "my_name", + * // "supervisor": {}, * // "updateTime": "my_updateTime" * // } * } @@ -11768,6 +11804,7 @@ export namespace ces_v1 { * // "llmPromptSecurity": {}, * // "modelSafety": {}, * // "name": "my_name", + * // "supervisor": {}, * // "updateTime": "my_updateTime" * // } * }, @@ -11788,6 +11825,7 @@ export namespace ces_v1 { * // "llmPromptSecurity": {}, * // "modelSafety": {}, * // "name": "my_name", + * // "supervisor": {}, * // "updateTime": "my_updateTime" * // } * } diff --git a/src/apis/ces/v1beta.ts b/src/apis/ces/v1beta.ts index fe086cf7e0..dd135a034f 100644 --- a/src/apis/ces/v1beta.ts +++ b/src/apis/ces/v1beta.ts @@ -3260,6 +3260,10 @@ export namespace ces_v1beta { * Required. The name of the event. */ event?: string | null; + /** + * Optional. Additional variables associated with the event. + */ + variables?: {[key: string]: any} | null; } /** * An example represents a sample conversation between the user and the agent(s). @@ -4013,6 +4017,10 @@ export namespace ces_v1beta { * Identifier. The unique identifier of the guardrail. Format: `projects/{project\}/locations/{location\}/apps/{app\}/guardrails/{guardrail\}` */ name?: string | null; + /** + * Optional. Guardrail that runs supervisor intervention. + */ + supervisor?: Schema$GuardrailSupervisor; /** * Output only. Timestamp when the guardrail was last updated. */ @@ -4141,6 +4149,19 @@ export namespace ces_v1beta { */ threshold?: string | null; } + /** + * Guardrail that runs supervisor intervention. + */ + export interface Schema$GuardrailSupervisor { + /** + * Optional. The detection mode of the supervisor. + */ + detectionMode?: string | null; + /** + * Optional. The type of the supervisor. + */ + type?: string | null; + } /** * Represents an image input or output in the conversation. */ @@ -6049,10 +6070,22 @@ export namespace ces_v1beta { * Required. The description of the tool. */ description?: string | null; + /** + * Optional. Mapping of input variable names of remote agent to GECX variable names. + */ + inputVariableMapping?: {[key: string]: string} | null; /** * Required. The name of the tool. */ name?: string | null; + /** + * Optional. Mapping of output variable names of remote agent to GECX variable names. + */ + outputVariableMapping?: {[key: string]: string} | null; + /** + * Optional. When enabled, the interaction between the CXAS app and the remote agent will share the same context. If the remote agent returns a context_id, it will be persisted for the entirety of the session for this remote agent tool. + */ + statefulAgent?: boolean | null; } /** * Request message for AgentService.RestoreAppVersion @@ -19143,6 +19176,7 @@ export namespace ces_v1beta { * // "llmPromptSecurity": {}, * // "modelSafety": {}, * // "name": "my_name", + * // "supervisor": {}, * // "updateTime": "my_updateTime" * // } * }, @@ -19163,6 +19197,7 @@ export namespace ces_v1beta { * // "llmPromptSecurity": {}, * // "modelSafety": {}, * // "name": "my_name", + * // "supervisor": {}, * // "updateTime": "my_updateTime" * // } * } @@ -19454,6 +19489,7 @@ export namespace ces_v1beta { * // "llmPromptSecurity": {}, * // "modelSafety": {}, * // "name": "my_name", + * // "supervisor": {}, * // "updateTime": "my_updateTime" * // } * } @@ -19754,6 +19790,7 @@ export namespace ces_v1beta { * // "llmPromptSecurity": {}, * // "modelSafety": {}, * // "name": "my_name", + * // "supervisor": {}, * // "updateTime": "my_updateTime" * // } * }, @@ -19774,6 +19811,7 @@ export namespace ces_v1beta { * // "llmPromptSecurity": {}, * // "modelSafety": {}, * // "name": "my_name", + * // "supervisor": {}, * // "updateTime": "my_updateTime" * // } * } diff --git a/src/apis/chat/index.ts b/src/apis/chat/index.ts index 89c6aa4000..122b8866fb 100644 --- a/src/apis/chat/index.ts +++ b/src/apis/chat/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/chat/v1.ts b/src/apis/chat/v1.ts index 9d4b367425..630fbc5655 100644 --- a/src/apis/chat/v1.ts +++ b/src/apis/chat/v1.ts @@ -160,6 +160,10 @@ export namespace chat_v1 { * Optional. Access permission setting for joining the space. */ joinSpaceSetting?: Schema$AccessPermissionSetting; + /** + * Optional. Access permission setting for viewing space membership. Must be specified together with `PermissionSettings.view_space_membership` in the update mask and request body when updating who can view space membership. When granting view access to a target audience, you must also grant `PermissionSettings.view_space_membership` to all members in the same request. To remove an existing target audience (for example, to restrict view access to space managers or assistant managers only), specify an empty `AccessPermissionSetting` (with no `principals`). + */ + viewSpaceMembershipSetting?: Schema$AccessPermissionSetting; } /** * Represents the [access setting](https://support.google.com/chat/answer/11971020) of the space. @@ -2276,7 +2280,7 @@ export namespace chat_v1 { */ groupMember?: Schema$Group; /** - * Optional. The Google Chat user or app the membership corresponds to. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output populates the [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and `type`. + * Optional. The Google Chat user or app the membership corresponds to. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output only populates the [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and `type` fields for both internal and external users, unless they are members of the space or have a prior affinity, like a direct message (DM) conversation, with the calling user. */ member?: Schema$User; /** @@ -2448,7 +2452,7 @@ export namespace chat_v1 { */ quotedMessageMetadata?: Schema$QuotedMessageMetadata; /** - * Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output populates the [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and `type`. + * Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output only populates the [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and `type` fields for both internal and external users, unless they are members of the space or have a prior affinity, like a direct message (DM) conversation, with the calling user. */ sender?: Schema$User; /** @@ -2636,6 +2640,10 @@ export namespace chat_v1 { * Optional. Setting for using @all in a space. */ useAtMentionAll?: Schema$PermissionSetting; + /** + * Optional. Setting for viewing space membership. Must be specified together with `AccessPermissionSettings.view_space_membership_setting` in the update mask and request body when updating who can view space membership. When restricting view access to specific roles (for example, space managers or assistant managers only), specify the desired role permissions here and provide an empty `AccessPermissionSettings.view_space_membership_setting` in the same request. If a target audience is configured in `AccessPermissionSettings.view_space_membership_setting`, this setting must be granted to all members. + */ + viewSpaceMembership?: Schema$PermissionSetting; } /** * Request message for positioning a section. @@ -3352,11 +3360,11 @@ export namespace chat_v1 { attachmentDataRef?: Schema$AttachmentDataRef; } /** - * A user in Google Chat. When returned as an output from a request, if your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output for a `User` resource only populates the user's `name` and `type`. + * If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output for a `User` resource (such as in the Messages and Memberships APIs) only populates the `name` and `type` fields for both internal and external users, unless they are members of the space or have prior affinity with the calling user. */ export interface Schema$User { /** - * Output only. The user's display name. + * Output only. The user's display name. Populated for both app authentication and user authentication. This field is always populated for requests made with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). When calling the Messages and Memberships APIs with [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), this field is populated for both internal and external users for the `sender` of a message, users within `annotations` (such as user mentions), and within `Membership` resources, provided the user is a member of the space or has prior affinity with the calling user. */ displayName?: string | null; /** @@ -3364,7 +3372,7 @@ export namespace chat_v1 { */ domainId?: string | null; /** - * Output only. When `true`, the user is deleted or their profile is not visible. + * Output only. When `true`, the user is deleted or their profile is not visible, such as when a user is mentioned in a space without being a member and without prior affinity with the calling user. */ isAnonymous?: boolean | null; /** @@ -5498,7 +5506,7 @@ export namespace chat_v1 { * const res = await chat.spaces.patch({ * // Identifier. Resource name of the space. Format: `spaces/{space\}` Where `{space\}` represents the system-assigned ID for the space. You can obtain the space ID by calling the [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) method or from the space URL. For example, if the space URL is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID is `AAAAAAAAA`. * name: 'spaces/my-space', - * // Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pass both description and guidelines in the update request as `SpaceDetails`. If you only want to update one of the fields, pass the existing value for the other field. `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with `useAdminAccess`. `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with `useAdminAccess`. `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with `useAdminAccess`. `access_settings.access_permission_settings`: Updates the [access permission settings](https://support.google.com/chat/answer/11971020) of who can discover and join the space where `spaceType` field is `SPACE`. Principals allowed to join the space must also be allowed to discover it. To update access permission settings for a space, the authenticating user must be a space manager or assistant manager and omit all other field masks in the request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.access_permission_settings` is not supported with `useAdminAccess`. The supported field masks include: - `access_settings.access_permission_settings.discoverSpaceSetting` - `access_settings.access_permission_settings.joinSpaceSetting` `permission_settings`: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space. When updating permission settings, you can only specify `permissionSettings` field masks; you cannot update other field masks at the same time. The supported field masks include: - `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `permission_settings.manageApps` - `permission_settings.manageWebhooks` - `permission_settings.replyMessages` + * // Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pass both description and guidelines in the update request as `SpaceDetails`. If you only want to update one of the fields, pass the existing value for the other field. `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with `useAdminAccess`. `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with `useAdminAccess`. `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with `useAdminAccess`. `access_settings.access_permission_settings`: Updates the [access permission settings](https://support.google.com/chat/answer/11971020) of who can discover and join the space where `spaceType` field is `SPACE`. Principals allowed to join the space must also be allowed to discover it. To update access permission settings for a space, the authenticating user must be a space manager or assistant manager and omit all other field masks in the request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.access_permission_settings` is not supported with `useAdminAccess`. The supported field masks include: - `access_settings.access_permission_settings.discoverSpaceSetting` - `access_settings.access_permission_settings.joinSpaceSetting` - `access_settings.access_permission_settings.viewSpaceMembershipSetting` `permission_settings`: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space. When updating permission settings, you can only specify `permissionSettings` field masks; you cannot update other field masks at the same time. The supported field masks include: - `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `permission_settings.manageApps` - `permission_settings.manageWebhooks` - `permission_settings.replyMessages` - `permission_settings.viewSpaceMembership` * updateMask: 'placeholder-value', * // Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.spaces` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Some `FieldMask` values are not supported using admin access. For details, see the description of `update_mask`. * useAdminAccess: 'placeholder-value', @@ -6048,7 +6056,7 @@ export namespace chat_v1 { */ name?: string; /** - * Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pass both description and guidelines in the update request as `SpaceDetails`. If you only want to update one of the fields, pass the existing value for the other field. `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with `useAdminAccess`. `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with `useAdminAccess`. `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with `useAdminAccess`. `access_settings.access_permission_settings`: Updates the [access permission settings](https://support.google.com/chat/answer/11971020) of who can discover and join the space where `spaceType` field is `SPACE`. Principals allowed to join the space must also be allowed to discover it. To update access permission settings for a space, the authenticating user must be a space manager or assistant manager and omit all other field masks in the request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.access_permission_settings` is not supported with `useAdminAccess`. The supported field masks include: - `access_settings.access_permission_settings.discoverSpaceSetting` - `access_settings.access_permission_settings.joinSpaceSetting` `permission_settings`: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space. When updating permission settings, you can only specify `permissionSettings` field masks; you cannot update other field masks at the same time. The supported field masks include: - `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `permission_settings.manageApps` - `permission_settings.manageWebhooks` - `permission_settings.replyMessages` + * Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pass both description and guidelines in the update request as `SpaceDetails`. If you only want to update one of the fields, pass the existing value for the other field. `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with `useAdminAccess`. `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with `useAdminAccess`. `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with `useAdminAccess`. `access_settings.access_permission_settings`: Updates the [access permission settings](https://support.google.com/chat/answer/11971020) of who can discover and join the space where `spaceType` field is `SPACE`. Principals allowed to join the space must also be allowed to discover it. To update access permission settings for a space, the authenticating user must be a space manager or assistant manager and omit all other field masks in the request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.access_permission_settings` is not supported with `useAdminAccess`. The supported field masks include: - `access_settings.access_permission_settings.discoverSpaceSetting` - `access_settings.access_permission_settings.joinSpaceSetting` - `access_settings.access_permission_settings.viewSpaceMembershipSetting` `permission_settings`: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space. When updating permission settings, you can only specify `permissionSettings` field masks; you cannot update other field masks at the same time. The supported field masks include: - `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `permission_settings.manageApps` - `permission_settings.manageWebhooks` - `permission_settings.replyMessages` - `permission_settings.viewSpaceMembership` */ updateMask?: string; /** diff --git a/src/apis/checks/index.ts b/src/apis/checks/index.ts index 382359b4bd..bd02033759 100644 --- a/src/apis/checks/index.ts +++ b/src/apis/checks/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/chromemanagement/index.ts b/src/apis/chromemanagement/index.ts index 3113090886..3e7b48ce83 100644 --- a/src/apis/chromemanagement/index.ts +++ b/src/apis/chromemanagement/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/chromemanagement/v1.ts b/src/apis/chromemanagement/v1.ts index c90f73078e..f84be5d953 100644 --- a/src/apis/chromemanagement/v1.ts +++ b/src/apis/chromemanagement/v1.ts @@ -3010,6 +3010,10 @@ export namespace chromemanagement_v1 { * Pub/Sub XDR connector config. */ pubSubXdrConfig?: Schema$GoogleChromeManagementVersionsV1PubSubXdrConfig; + /** + * Secure gateway connector config. + */ + secureGatewayConfig?: Schema$GoogleChromeManagementVersionsV1SecureGatewayConfig; /** * Splunk connector config. */ @@ -3586,6 +3590,19 @@ export namespace chromemanagement_v1 { */ subjectCommonName?: string | null; } + /** + * Secure gateway connector config. + */ + export interface Schema$GoogleChromeManagementVersionsV1SecureGatewayConfig { + /** + * Optional. The enabled platforms for the secure gateway connector config. + */ + enabledPlatforms?: string[] | null; + /** + * Required. The resource ID of the secure gateway connector config. + */ + resourceId?: string | null; + } /** * Request message for marking a certificate provisioning process as failed. */ diff --git a/src/apis/chromepolicy/index.ts b/src/apis/chromepolicy/index.ts index 7b69ad3e93..735f6d1aeb 100644 --- a/src/apis/chromepolicy/index.ts +++ b/src/apis/chromepolicy/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/chromeuxreport/index.ts b/src/apis/chromeuxreport/index.ts index b00498275e..1c4e351852 100644 --- a/src/apis/chromeuxreport/index.ts +++ b/src/apis/chromeuxreport/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/chromewebstore/index.ts b/src/apis/chromewebstore/index.ts index 1f9443913a..d64507c433 100644 --- a/src/apis/chromewebstore/index.ts +++ b/src/apis/chromewebstore/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/chromewebstore/v2.ts b/src/apis/chromewebstore/v2.ts index b52091ebe7..6912a8dd14 100644 --- a/src/apis/chromewebstore/v2.ts +++ b/src/apis/chromewebstore/v2.ts @@ -126,6 +126,15 @@ export namespace chromewebstore_v2 { } } + /** + * Info on the author of the review. + */ + export interface Schema$AuthorInfo { + /** + * Display name for the author. + */ + displayName?: string | null; + } /** * Request message for CancelSubmission. */ @@ -156,6 +165,19 @@ export namespace chromewebstore_v2 { */ deployPercentage?: number | null; } + /** + * Response message for FetchItemReviews. + */ + export interface Schema$FetchItemReviewsResponse { + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + */ + nextPageToken?: string | null; + /** + * The list of reviews. + */ + reviews?: Schema$Review[]; + } /** * Response message for `FetchItemStatus`. */ @@ -248,6 +270,35 @@ export namespace chromewebstore_v2 { */ warningInfo?: Schema$WarningsInfo; } + /** + * A review written by a user to rate an item in the Chrome Web Store. + */ + export interface Schema$Review { + /** + * Info on the author of the review. + */ + authorInfo?: Schema$AuthorInfo; + /** + * Content of the review. + */ + comment?: string | null; + /** + * Output only. When the review was posted. + */ + createTime?: string | null; + /** + * Output only. The item that this review evaluates. Format: publishers/{publisher\}/items/{item\} + */ + item?: string | null; + /** + * Identifier. Review resource name. Format: reviews/{reviewId\} + */ + name?: string | null; + /** + * Rating of the item, between 1 and 5. + */ + rating?: number | null; + } /** * Request message for SetPublishedDeployPercentage. */ @@ -657,6 +708,156 @@ export namespace chromewebstore_v2 { } } + /** + * Fetch user reviews for an item. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/chromewebstore.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const chromewebstore = google.chromewebstore('v2'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await chromewebstore.publishers.items.fetchReviews({ + * // Optional. A filter to apply to the reviews. Only equality comparison on rating is supported, e.g. `rating = 5`. + * filter: 'placeholder-value', + * // Required. The item resource name whose reviews are being fetched. Format: publishers/{publisher_id\}/items/{item_id\} + * name: 'publishers/my-publisher/items/my-item', + * // Optional. An optional comma-separated list of fields by which to sort the results. Supported fields are `rating` and `create_time`. Supported orders are `asc` (default) and `desc`. Example: "rating desc, create_time". + * orderBy: 'placeholder-value', + * // Optional. The maximum number of reviews to return. The service may return fewer than this value. If unspecified, at most 50 reviews will be returned. The maximum value is 200; values above 200 will be coerced to 200. + * pageSize: 'placeholder-value', + * // Optional. A page token, received from a previous `FetchItemReviews` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchItemReviews` must match the call that provided the page token. + * pageToken: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "reviews": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + fetchReviews( + params: Params$Resource$Publishers$Items$Fetchreviews, + options: StreamMethodOptions + ): Promise>; + fetchReviews( + params?: Params$Resource$Publishers$Items$Fetchreviews, + options?: MethodOptions + ): Promise>; + fetchReviews( + params: Params$Resource$Publishers$Items$Fetchreviews, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + fetchReviews( + params: Params$Resource$Publishers$Items$Fetchreviews, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + fetchReviews( + params: Params$Resource$Publishers$Items$Fetchreviews, + callback: BodyResponseCallback + ): void; + fetchReviews( + callback: BodyResponseCallback + ): void; + fetchReviews( + paramsOrCallback?: + | Params$Resource$Publishers$Items$Fetchreviews + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Publishers$Items$Fetchreviews; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Publishers$Items$Fetchreviews; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://chromewebstore.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}:fetchReviews').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + /** * Fetch the status of an item. * @example @@ -1128,6 +1329,28 @@ export namespace chromewebstore_v2 { */ requestBody?: Schema$CancelSubmissionRequest; } + export interface Params$Resource$Publishers$Items$Fetchreviews extends StandardParameters { + /** + * Optional. A filter to apply to the reviews. Only equality comparison on rating is supported, e.g. `rating = 5`. + */ + filter?: string; + /** + * Required. The item resource name whose reviews are being fetched. Format: publishers/{publisher_id\}/items/{item_id\} + */ + name?: string; + /** + * Optional. An optional comma-separated list of fields by which to sort the results. Supported fields are `rating` and `create_time`. Supported orders are `asc` (default) and `desc`. Example: "rating desc, create_time". + */ + orderBy?: string; + /** + * Optional. The maximum number of reviews to return. The service may return fewer than this value. If unspecified, at most 50 reviews will be returned. The maximum value is 200; values above 200 will be coerced to 200. + */ + pageSize?: number; + /** + * Optional. A page token, received from a previous `FetchItemReviews` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchItemReviews` must match the call that provided the page token. + */ + pageToken?: string; + } export interface Params$Resource$Publishers$Items$Fetchstatus extends StandardParameters { /** * Required. Name of the item to retrieve the status of in the form `publishers/{publisherId\}/items/{itemId\}` diff --git a/src/apis/civicinfo/index.ts b/src/apis/civicinfo/index.ts index 3163d6a61f..f6d23d8a53 100644 --- a/src/apis/civicinfo/index.ts +++ b/src/apis/civicinfo/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/classroom/index.ts b/src/apis/classroom/index.ts index 2c589bf227..092bb3fd06 100644 --- a/src/apis/classroom/index.ts +++ b/src/apis/classroom/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudasset/index.ts b/src/apis/cloudasset/index.ts index 7f4f3538f9..34aef12403 100644 --- a/src/apis/cloudasset/index.ts +++ b/src/apis/cloudasset/index.ts @@ -106,4 +106,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudbilling/index.ts b/src/apis/cloudbilling/index.ts index be2164fae9..5de3069a87 100644 --- a/src/apis/cloudbilling/index.ts +++ b/src/apis/cloudbilling/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudbuild/index.ts b/src/apis/cloudbuild/index.ts index 618210327d..07cec27bbf 100644 --- a/src/apis/cloudbuild/index.ts +++ b/src/apis/cloudbuild/index.ts @@ -88,4 +88,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudbuild/v2.ts b/src/apis/cloudbuild/v2.ts index 4b33ff8fde..bdf54a5f87 100644 --- a/src/apis/cloudbuild/v2.ts +++ b/src/apis/cloudbuild/v2.ts @@ -615,6 +615,127 @@ export namespace cloudbuild_v2 { */ verb?: string | null; } + /** + * Message describing PipelineRun object + */ + export interface Schema$GoogleDevtoolsCloudbuildV2PipelineRun { + /** + * User annotations. See https://google.aip.dev/128#annotations + */ + annotations?: {[key: string]: string} | null; + /** + * Output only. List of TaskRun and Run names and PipelineTask names for children of this PipelineRun. + */ + childReferences?: Schema$ChildStatusReference[]; + /** + * Output only. Time the pipeline completed. + */ + completionTime?: string | null; + /** + * Output only. Kubernetes Conditions convention for PipelineRun status and error. + */ + conditions?: Schema$GoogleDevtoolsCloudbuildV2Condition[]; + /** + * Output only. Time at which the request to create the `PipelineRun` was received. + */ + createTime?: string | null; + /** + * Needed for declarative-friendly resources. + */ + etag?: string | null; + /** + * Output only. FinallyStartTime is when all non-finally tasks have been completed and only finally tasks are being executed. +optional + */ + finallyStartTime?: string | null; + /** + * Output only. GCB default params. + */ + gcbParams?: {[key: string]: string} | null; + /** + * Output only. The `PipelineRun` name with format `projects/{project\}/locations/{location\}/pipelineRuns/{pipeline_run\}` + */ + name?: string | null; + /** + * Params is a list of parameter names and values. + */ + params?: Schema$Param[]; + /** + * PipelineRef refer to a specific instance of a Pipeline. + */ + pipelineRef?: Schema$PipelineRef; + /** + * Pipelinerun status the user can provide. Used for cancellation. + */ + pipelineRunStatus?: string | null; + /** + * PipelineSpec defines the desired state of Pipeline. + */ + pipelineSpec?: Schema$PipelineSpec; + /** + * Output only. Inline pipelineSpec yaml string, used by workflow run requests. + */ + pipelineSpecYaml?: string | null; + /** + * Optional. Provenance configuration. + */ + provenance?: Schema$Provenance; + /** + * Output only. The `Record` of this `PipelineRun`. Format: `projects/{project\}/locations/{location\}/results/{result_id\}/records/{record_id\}` + */ + record?: string | null; + /** + * Output only. The exact PipelineSpec used to instantiate the run. + */ + resolvedPipelineSpec?: Schema$PipelineSpec; + /** + * Optional. Output only. List of results written out by the pipeline's containers + */ + results?: Schema$PipelineRunResult[]; + /** + * Optional. Security configuration. + */ + security?: Schema$Security; + /** + * Service account used in the Pipeline. Deprecated; please use security.service_account instead. + */ + serviceAccount?: string | null; + /** + * Output only. List of tasks that were skipped due to when expressions evaluating to false. + */ + skippedTasks?: Schema$SkippedTask[]; + /** + * Output only. Time the pipeline is actually started. + */ + startTime?: string | null; + /** + * Time after which the Pipeline times out. Currently three keys are accepted in the map pipeline, tasks and finally with Timeouts.pipeline \>= Timeouts.tasks + Timeouts.finally + */ + timeouts?: Schema$TimeoutFields; + /** + * Output only. A unique identifier for the `PipelineRun`. + */ + uid?: string | null; + /** + * Output only. Time at which the request to update the `PipelineRun` was received. + */ + updateTime?: string | null; + /** + * Optional. Worker configuration. + */ + worker?: Schema$Worker; + /** + * Output only. The WorkerPool used to run this PipelineRun. + */ + workerPool?: string | null; + /** + * Output only. The Workflow used to create this PipelineRun. + */ + workflow?: string | null; + /** + * Workspaces is a list of WorkspaceBindings from volumes to workspaces. + */ + workspaces?: Schema$WorkspaceBinding[]; + } /** * ServiceDirectoryConfig represents Service Directory configuration for a connection. */ @@ -894,127 +1015,6 @@ export namespace cloudbuild_v2 { */ value?: Schema$ResultValue; } - /** - * Message describing PipelineRun object - */ - export interface Schema$PipelineRun { - /** - * User annotations. See https://google.aip.dev/128#annotations - */ - annotations?: {[key: string]: string} | null; - /** - * Output only. List of TaskRun and Run names and PipelineTask names for children of this PipelineRun. - */ - childReferences?: Schema$ChildStatusReference[]; - /** - * Output only. Time the pipeline completed. - */ - completionTime?: string | null; - /** - * Output only. Kubernetes Conditions convention for PipelineRun status and error. - */ - conditions?: Schema$GoogleDevtoolsCloudbuildV2Condition[]; - /** - * Output only. Time at which the request to create the `PipelineRun` was received. - */ - createTime?: string | null; - /** - * Needed for declarative-friendly resources. - */ - etag?: string | null; - /** - * Output only. FinallyStartTime is when all non-finally tasks have been completed and only finally tasks are being executed. +optional - */ - finallyStartTime?: string | null; - /** - * Output only. GCB default params. - */ - gcbParams?: {[key: string]: string} | null; - /** - * Output only. The `PipelineRun` name with format `projects/{project\}/locations/{location\}/pipelineRuns/{pipeline_run\}` - */ - name?: string | null; - /** - * Params is a list of parameter names and values. - */ - params?: Schema$Param[]; - /** - * PipelineRef refer to a specific instance of a Pipeline. - */ - pipelineRef?: Schema$PipelineRef; - /** - * Pipelinerun status the user can provide. Used for cancellation. - */ - pipelineRunStatus?: string | null; - /** - * PipelineSpec defines the desired state of Pipeline. - */ - pipelineSpec?: Schema$PipelineSpec; - /** - * Output only. Inline pipelineSpec yaml string, used by workflow run requests. - */ - pipelineSpecYaml?: string | null; - /** - * Optional. Provenance configuration. - */ - provenance?: Schema$Provenance; - /** - * Output only. The `Record` of this `PipelineRun`. Format: `projects/{project\}/locations/{location\}/results/{result_id\}/records/{record_id\}` - */ - record?: string | null; - /** - * Output only. The exact PipelineSpec used to instantiate the run. - */ - resolvedPipelineSpec?: Schema$PipelineSpec; - /** - * Optional. Output only. List of results written out by the pipeline's containers - */ - results?: Schema$PipelineRunResult[]; - /** - * Optional. Security configuration. - */ - security?: Schema$Security; - /** - * Service account used in the Pipeline. Deprecated; please use security.service_account instead. - */ - serviceAccount?: string | null; - /** - * Output only. List of tasks that were skipped due to when expressions evaluating to false. - */ - skippedTasks?: Schema$SkippedTask[]; - /** - * Output only. Time the pipeline is actually started. - */ - startTime?: string | null; - /** - * Time after which the Pipeline times out. Currently three keys are accepted in the map pipeline, tasks and finally with Timeouts.pipeline \>= Timeouts.tasks + Timeouts.finally - */ - timeouts?: Schema$TimeoutFields; - /** - * Output only. A unique identifier for the `PipelineRun`. - */ - uid?: string | null; - /** - * Output only. Time at which the request to update the `PipelineRun` was received. - */ - updateTime?: string | null; - /** - * Optional. Worker configuration. - */ - worker?: Schema$Worker; - /** - * Output only. The WorkerPool used to run this PipelineRun. - */ - workerPool?: string | null; - /** - * Output only. The Workflow used to create this PipelineRun. - */ - workflow?: string | null; - /** - * Workspaces is a list of WorkspaceBindings from volumes to workspaces. - */ - workspaces?: Schema$WorkspaceBinding[]; - } /** * PipelineRunResult used to describe the results of a pipeline */ diff --git a/src/apis/cloudchannel/index.ts b/src/apis/cloudchannel/index.ts index ae3b36517e..e15818ad60 100644 --- a/src/apis/cloudchannel/index.ts +++ b/src/apis/cloudchannel/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudcommerceprocurement/index.ts b/src/apis/cloudcommerceprocurement/index.ts index e46cc0966d..7a6b34cada 100644 --- a/src/apis/cloudcommerceprocurement/index.ts +++ b/src/apis/cloudcommerceprocurement/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudcontrolspartner/index.ts b/src/apis/cloudcontrolspartner/index.ts index 5eab8903ba..2f599b3747 100644 --- a/src/apis/cloudcontrolspartner/index.ts +++ b/src/apis/cloudcontrolspartner/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/clouddebugger/index.ts b/src/apis/clouddebugger/index.ts index dc5d9abd86..09edf99201 100644 --- a/src/apis/clouddebugger/index.ts +++ b/src/apis/clouddebugger/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/clouddeploy/index.ts b/src/apis/clouddeploy/index.ts index 06f5bc9d02..c584054afa 100644 --- a/src/apis/clouddeploy/index.ts +++ b/src/apis/clouddeploy/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/clouderrorreporting/index.ts b/src/apis/clouderrorreporting/index.ts index b804ebe1aa..9cc8f24513 100644 --- a/src/apis/clouderrorreporting/index.ts +++ b/src/apis/clouderrorreporting/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudfunctions/index.ts b/src/apis/cloudfunctions/index.ts index d7bbb15480..34fcd119cb 100644 --- a/src/apis/cloudfunctions/index.ts +++ b/src/apis/cloudfunctions/index.ts @@ -94,4 +94,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudidentity/index.ts b/src/apis/cloudidentity/index.ts index d249321e2f..80cd2a50bc 100644 --- a/src/apis/cloudidentity/index.ts +++ b/src/apis/cloudidentity/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudidentity/v1.ts b/src/apis/cloudidentity/v1.ts index 5c1c644c0c..6df4ae752e 100644 --- a/src/apis/cloudidentity/v1.ts +++ b/src/apis/cloudidentity/v1.ts @@ -312,6 +312,19 @@ export namespace cloudidentity_v1 { */ expireTime?: string | null; } + /** + * An external identifier for an entity in the Cloud Identity Groups API. Used to link a `Group` in Cloud Identity Groups API with a corresponding entity in an external identity system or directory. + */ + export interface Schema$ExternalId { + /** + * Required. The unique identifier assigned by the external identity provider. The API does not enforce uniqueness of IDs across entities, but clients should ensure IDs are unique within their namespace. + */ + id?: string | null; + /** + * Required. The namespace in which the entity exists. Cannot be empty. Currently, the only allowable namespace is `"system/external"`. + */ + namespace?: string | null; + } /** * Metadata of GetMembershipGraphResponse LRO. This is currently empty to permit future extensibility. */ @@ -1015,6 +1028,10 @@ export namespace cloudidentity_v1 { * Optional. Dynamic group metadata like queries and status. */ dynamicGroupMetadata?: Schema$DynamicGroupMetadata; + /** + * Optional. External identifiers associated with the `Group`. Enables external identity providers and directory sync tools to link their native unique identifiers with this group. Currently, the only allowable namespace is `"system/external"`. + */ + externalIds?: Schema$ExternalId[]; /** * Required. The `EntityKey` of the `Group`. */ @@ -6245,6 +6262,7 @@ export namespace cloudidentity_v1 { * // "description": "my_description", * // "displayName": "my_displayName", * // "dynamicGroupMetadata": {}, + * // "externalIds": [], * // "groupKey": {}, * // "labels": {}, * // "name": "my_name", @@ -6543,6 +6561,7 @@ export namespace cloudidentity_v1 { * // "description": "my_description", * // "displayName": "my_displayName", * // "dynamicGroupMetadata": {}, + * // "externalIds": [], * // "groupKey": {}, * // "labels": {}, * // "name": "my_name", @@ -7122,6 +7141,7 @@ export namespace cloudidentity_v1 { * // "description": "my_description", * // "displayName": "my_displayName", * // "dynamicGroupMetadata": {}, + * // "externalIds": [], * // "groupKey": {}, * // "labels": {}, * // "name": "my_name", diff --git a/src/apis/cloudiot/index.ts b/src/apis/cloudiot/index.ts index c32e97b5e2..8b6ddfa07b 100644 --- a/src/apis/cloudiot/index.ts +++ b/src/apis/cloudiot/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudkms/index.ts b/src/apis/cloudkms/index.ts index 5456b90877..507b1b7b6e 100644 --- a/src/apis/cloudkms/index.ts +++ b/src/apis/cloudkms/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudlocationfinder/index.ts b/src/apis/cloudlocationfinder/index.ts index c93b5d1822..bc6602897d 100644 --- a/src/apis/cloudlocationfinder/index.ts +++ b/src/apis/cloudlocationfinder/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudlocationfinder/v1.ts b/src/apis/cloudlocationfinder/v1.ts index b24cb7c62c..23aeef3fab 100644 --- a/src/apis/cloudlocationfinder/v1.ts +++ b/src/apis/cloudlocationfinder/v1.ts @@ -148,6 +148,10 @@ export namespace cloudlocationfinder_v1 { * Optional. The human-readable name of the cloud location. Example: us-east-2, us-east1. */ displayName?: string | null; + /** + * Optional. GCP-specific attributes. + */ + gcpAttributes?: Schema$GcpAttributes; /** * Identifier. Name of the cloud location. Unique name of the cloud location including project and location using the form: `projects/{project_id\}/locations/{location\}/cloudLocations/{cloud_location\}` */ @@ -157,6 +161,15 @@ export namespace cloudlocationfinder_v1 { */ territoryCode?: string | null; } + /** + * GCP-specific attributes. + */ + export interface Schema$GcpAttributes { + /** + * Optional. The type of the cloud zone. + */ + zoneType?: string | null; + } /** * Message for response to listing cloud locations. */ @@ -606,6 +619,7 @@ export namespace cloudlocationfinder_v1 { * // "cloudProvider": "my_cloudProvider", * // "containingCloudLocation": "my_containingCloudLocation", * // "displayName": "my_displayName", + * // "gcpAttributes": {}, * // "name": "my_name", * // "territoryCode": "my_territoryCode" * // } diff --git a/src/apis/cloudlocationfinder/v1alpha.ts b/src/apis/cloudlocationfinder/v1alpha.ts index 237b9af395..ff104f9c7c 100644 --- a/src/apis/cloudlocationfinder/v1alpha.ts +++ b/src/apis/cloudlocationfinder/v1alpha.ts @@ -148,6 +148,10 @@ export namespace cloudlocationfinder_v1alpha { * Optional. The human-readable name of the cloud location. Example: us-east-2, us-east1. */ displayName?: string | null; + /** + * Optional. GCP-specific attributes. + */ + gcpAttributes?: Schema$GcpAttributes; /** * Identifier. Name of the cloud location. Unique name of the cloud location including project and location using the form: `projects/{project_id\}/locations/{location\}/cloudLocations/{cloud_location\}` */ @@ -157,6 +161,15 @@ export namespace cloudlocationfinder_v1alpha { */ territoryCode?: string | null; } + /** + * GCP-specific attributes. + */ + export interface Schema$GcpAttributes { + /** + * Optional. The type of the cloud zone. + */ + zoneType?: string | null; + } /** * Message for response to listing cloud locations. */ @@ -606,6 +619,7 @@ export namespace cloudlocationfinder_v1alpha { * // "cloudProvider": "my_cloudProvider", * // "containingCloudLocation": "my_containingCloudLocation", * // "displayName": "my_displayName", + * // "gcpAttributes": {}, * // "name": "my_name", * // "territoryCode": "my_territoryCode" * // } diff --git a/src/apis/cloudnumberregistry/index.ts b/src/apis/cloudnumberregistry/index.ts index 7d919b284a..d91fd9ab05 100644 --- a/src/apis/cloudnumberregistry/index.ts +++ b/src/apis/cloudnumberregistry/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudproductregistry/index.ts b/src/apis/cloudproductregistry/index.ts index 3fb21e344d..81aef67f33 100644 --- a/src/apis/cloudproductregistry/index.ts +++ b/src/apis/cloudproductregistry/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudprofiler/index.ts b/src/apis/cloudprofiler/index.ts index a8e98eb8ef..f3eaf15e86 100644 --- a/src/apis/cloudprofiler/index.ts +++ b/src/apis/cloudprofiler/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudresourcemanager/index.ts b/src/apis/cloudresourcemanager/index.ts index 168d71f8e5..334df6f161 100644 --- a/src/apis/cloudresourcemanager/index.ts +++ b/src/apis/cloudresourcemanager/index.ts @@ -98,4 +98,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudresourcemanager/v3.ts b/src/apis/cloudresourcemanager/v3.ts index 083df6c6bd..fad1eccea2 100644 --- a/src/apis/cloudresourcemanager/v3.ts +++ b/src/apis/cloudresourcemanager/v3.ts @@ -200,6 +200,47 @@ export namespace cloudresourcemanager_v3 { */ value?: boolean | null; } + /** + * A CapabilityConfig allows managing experiences like applications and agents on a logical administrative perimeter of Projects (Boundary). + */ + export interface Schema$CapabilityConfig { + /** + * Optional. The list of Boundaries associated with this CapabilityConfig. Format: `organizations/{organization\}/boundaries/{boundary\}` or, `folders/{folder\}/boundaries/{boundary\}` or, `projects/{project\}/boundaries/{boundary\}` + */ + boundaries?: string[] | null; + /** + * Output only. The creation time of the CapabilityConfig. + */ + createTime?: string | null; + /** + * Optional. Human-readable non-unique display name of the CapabilityConfig. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My Capability Config` + */ + displayName?: string | null; + /** + * This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. + */ + etag?: string | null; + /** + * Optional. Immutable. The Management Project associated with this CapabilityConfig. If not provided during creation, a management project will be automatically created. Cannot be modified after creation. Format: `projects/{project_number\}` Example: `projects/123456789012` + */ + managementProject?: string | null; + /** + * Identifier. The unique resource name of the CapabilityConfig. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` + */ + name?: string | null; + /** + * Output only. The lifecycle state of the CapabilityConfig. + */ + state?: string | null; + /** + * Required. The CapabilityConfig types. + */ + types?: string[] | null; + /** + * Output only. The most recent time this CapabilityConfig was modified. + */ + updateTime?: string | null; + } /** * Metadata describing a long running folder operation */ @@ -534,6 +575,19 @@ export namespace cloudresourcemanager_v3 { */ restrictions?: string[] | null; } + /** + * A page of the response received from the ListCapabilityConfigs method. A paginated response where more pages are available has `next_page_token` set. This token can be used in a subsequent request to retrieve the next page. NOTE: A response may contain fewer elements than the request `page_size` and still have a `next_page_token`. + */ + export interface Schema$ListCapabilityConfigsResponse { + /** + * The list of CapabilityConfigs under the parent. This list can be paginated. + */ + capabilityConfigs?: Schema$CapabilityConfig[]; + /** + * Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the `page_token` parameter gives the next page of the results. When `next_page_token` is not filled in, there is no next page and the list returned is the last page in the result set. + */ + nextPageToken?: string | null; + } /** * The response of ListEffectiveTags. */ @@ -1294,9 +1348,13 @@ export namespace cloudresourcemanager_v3 { export class Resource$Folders { context: APIRequestContext; capabilities: Resource$Folders$Capabilities; + capabilityConfigs: Resource$Folders$Capabilityconfigs; constructor(context: APIRequestContext) { this.context = context; this.capabilities = new Resource$Folders$Capabilities(this.context); + this.capabilityConfigs = new Resource$Folders$Capabilityconfigs( + this.context + ); } /** @@ -3353,14 +3411,14 @@ export namespace cloudresourcemanager_v3 { requestBody?: Schema$Capability; } - export class Resource$Liens { + export class Resource$Folders$Capabilityconfigs { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Create a Lien which applies to the resource denoted by the `parent` field. Callers of this method will require permission on the `parent` resource. For example, applying to `projects/1234` requires permission `resourcemanager.projects.updateLiens`. NOTE: Some resources may limit the number of Liens which may be applied. + * Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a CapabilityConfig triggers the creation of a Management Project if one is not supplied. * @example * ```js * // Before running the sample: @@ -3381,10 +3439,7 @@ export namespace cloudresourcemanager_v3 { * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. - * scopes: [ - * 'https://www.googleapis.com/auth/cloud-platform', - * 'https://www.googleapis.com/auth/cloud-platform.read-only', - * ], + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], * }); * * // Acquire an auth client, and bind it to all future calls @@ -3392,17 +3447,25 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.liens.create({ + * const res = await cloudresourcemanager.folders.capabilityConfigs.create({ + * // Required. The user-assigned ID for the CapabilityConfig, which will become the final component of the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123` + * capabilityConfigId: 'placeholder-value', + * // Required. The parent resource under which the CapabilityConfig will be created. Format: `organizations/{organization_id\}` or `folders/{folder_id\}` or `projects/{project_number\}` + * parent: 'folders/my-folder', + * * // Request body metadata * requestBody: { * // request body parameters * // { + * // "boundaries": [], * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "etag": "my_etag", + * // "managementProject": "my_managementProject", * // "name": "my_name", - * // "origin": "my_origin", - * // "parent": "my_parent", - * // "reason": "my_reason", - * // "restrictions": [] + * // "state": "my_state", + * // "types": [], + * // "updateTime": "my_updateTime" * // } * }, * }); @@ -3410,12 +3473,11 @@ export namespace cloudresourcemanager_v3 { * * // Example response * // { - * // "createTime": "my_createTime", + * // "done": false, + * // "error": {}, + * // "metadata": {}, * // "name": "my_name", - * // "origin": "my_origin", - * // "parent": "my_parent", - * // "reason": "my_reason", - * // "restrictions": [] + * // "response": {} * // } * } * @@ -3432,50 +3494,51 @@ export namespace cloudresourcemanager_v3 { * @returns A promise if used with async/await, or void if used with a callback. */ create( - params: Params$Resource$Liens$Create, + params: Params$Resource$Folders$Capabilityconfigs$Create, options: StreamMethodOptions ): Promise>; create( - params?: Params$Resource$Liens$Create, + params?: Params$Resource$Folders$Capabilityconfigs$Create, options?: MethodOptions - ): Promise>; + ): Promise>; create( - params: Params$Resource$Liens$Create, + params: Params$Resource$Folders$Capabilityconfigs$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; create( - params: Params$Resource$Liens$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Folders$Capabilityconfigs$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; create( - params: Params$Resource$Liens$Create, - callback: BodyResponseCallback + params: Params$Resource$Folders$Capabilityconfigs$Create, + callback: BodyResponseCallback ): void; - create(callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( paramsOrCallback?: - | Params$Resource$Liens$Create - | BodyResponseCallback + | Params$Resource$Folders$Capabilityconfigs$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { - let params = (paramsOrCallback || {}) as Params$Resource$Liens$Create; + let params = (paramsOrCallback || + {}) as Params$Resource$Folders$Capabilityconfigs$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liens$Create; + params = {} as Params$Resource$Folders$Capabilityconfigs$Create; options = {}; } @@ -3489,29 +3552,32 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/liens').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/capabilityConfigs').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'POST', apiVersion: '', }, options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Delete a Lien by `name`. Callers of this method will require permission on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires permission `resourcemanager.projects.updateLiens`. + * Deletes the CapabilityConfig identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). * @example * ```js * // Before running the sample: @@ -3532,10 +3598,7 @@ export namespace cloudresourcemanager_v3 { * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. - * scopes: [ - * 'https://www.googleapis.com/auth/cloud-platform', - * 'https://www.googleapis.com/auth/cloud-platform.read-only', - * ], + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], * }); * * // Acquire an auth client, and bind it to all future calls @@ -3543,14 +3606,20 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.liens.delete({ - * // Required. The name/identifier of the Lien to delete. - * name: 'liens/.*', + * const res = await cloudresourcemanager.folders.capabilityConfigs.delete({ + * // Required. The name of the CapabilityConfig to delete. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` + * name: 'folders/my-folder/capabilityConfigs/my-capabilityConfig', * }); * console.log(res.data); * * // Example response - * // {} + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } * } * * main().catch(e => { @@ -3566,50 +3635,51 @@ export namespace cloudresourcemanager_v3 { * @returns A promise if used with async/await, or void if used with a callback. */ delete( - params: Params$Resource$Liens$Delete, + params: Params$Resource$Folders$Capabilityconfigs$Delete, options: StreamMethodOptions ): Promise>; delete( - params?: Params$Resource$Liens$Delete, + params?: Params$Resource$Folders$Capabilityconfigs$Delete, options?: MethodOptions - ): Promise>; + ): Promise>; delete( - params: Params$Resource$Liens$Delete, + params: Params$Resource$Folders$Capabilityconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Liens$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Folders$Capabilityconfigs$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Liens$Delete, - callback: BodyResponseCallback + params: Params$Resource$Folders$Capabilityconfigs$Delete, + callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Liens$Delete - | BodyResponseCallback + | Params$Resource$Folders$Capabilityconfigs$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { - let params = (paramsOrCallback || {}) as Params$Resource$Liens$Delete; + let params = (paramsOrCallback || + {}) as Params$Resource$Folders$Capabilityconfigs$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liens$Delete; + params = {} as Params$Resource$Folders$Capabilityconfigs$Delete; options = {}; } @@ -3635,17 +3705,17 @@ export namespace cloudresourcemanager_v3 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Retrieve a Lien by `name`. Callers of this method will require permission on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires permission `resourcemanager.projects.get` + * Retrieves the Capability Config identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). * @example * ```js * // Before running the sample: @@ -3677,20 +3747,23 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.liens.get({ - * // Required. The name/identifier of the Lien. - * name: 'liens/.*', + * const res = await cloudresourcemanager.folders.capabilityConfigs.get({ + * // Required. The name of the CapabilityConfig to retrieve. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` Example: `folders/123456789/capabilityConfigs/my-capability-config` + * name: 'folders/my-folder/capabilityConfigs/my-capabilityConfig', * }); * console.log(res.data); * * // Example response * // { + * // "boundaries": [], * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "etag": "my_etag", + * // "managementProject": "my_managementProject", * // "name": "my_name", - * // "origin": "my_origin", - * // "parent": "my_parent", - * // "reason": "my_reason", - * // "restrictions": [] + * // "state": "my_state", + * // "types": [], + * // "updateTime": "my_updateTime" * // } * } * @@ -3707,50 +3780,52 @@ export namespace cloudresourcemanager_v3 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Liens$Get, + params: Params$Resource$Folders$Capabilityconfigs$Get, options: StreamMethodOptions ): Promise>; get( - params?: Params$Resource$Liens$Get, + params?: Params$Resource$Folders$Capabilityconfigs$Get, options?: MethodOptions - ): Promise>; + ): Promise>; get( - params: Params$Resource$Liens$Get, + params: Params$Resource$Folders$Capabilityconfigs$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Liens$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Folders$Capabilityconfigs$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Liens$Get, - callback: BodyResponseCallback + params: Params$Resource$Folders$Capabilityconfigs$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Liens$Get - | BodyResponseCallback + | Params$Resource$Folders$Capabilityconfigs$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { - let params = (paramsOrCallback || {}) as Params$Resource$Liens$Get; + let params = (paramsOrCallback || + {}) as Params$Resource$Folders$Capabilityconfigs$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liens$Get; + params = {} as Params$Resource$Folders$Capabilityconfigs$Get; options = {}; } @@ -3776,17 +3851,17 @@ export namespace cloudresourcemanager_v3 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * List all Liens applied to the `parent` resource. Callers of this method will require permission on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires permission `resourcemanager.projects.get`. + * Lists CapabilityConfigs that are direct children of the specified organization, folder or project resource. * @example * ```js * // Before running the sample: @@ -3818,19 +3893,19 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.liens.list({ - * // The maximum number of items to return. This is a suggestion for the server. The server can return fewer liens than requested. If unspecified, server picks an appropriate default. + * const res = await cloudresourcemanager.folders.capabilityConfigs.list({ + * // Optional. The maximum number of CapabilityConfigs to return in the response. The service may return fewer CapabilityConfigs than requested. If unspecified, at most 100 CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be coerced to 100. * pageSize: 'placeholder-value', - * // The `next_page_token` value returned from a previous List request, if any. + * // Optional. A pagination token received from a previous call to `ListCapabilityConfigs` that indicates from where listing should continue. Provide this to retrieve the subsequent page. * pageToken: 'placeholder-value', - * // Required. The name of the resource to list all attached Liens. For example, `projects/1234`. (google.api.field_policy).resource_type annotation is not set since the parent depends on the meta api implementation. This field could be a project or other sub project resources. - * parent: 'placeholder-value', + * // Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: `organizations/{organization_id\}` or `folders/{folder_id\}` + * parent: 'folders/my-folder', * }); * console.log(res.data); * * // Example response * // { - * // "liens": [], + * // "capabilityConfigs": [], * // "nextPageToken": "my_nextPageToken" * // } * } @@ -3848,51 +3923,56 @@ export namespace cloudresourcemanager_v3 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Liens$List, + params: Params$Resource$Folders$Capabilityconfigs$List, options: StreamMethodOptions ): Promise>; list( - params?: Params$Resource$Liens$List, + params?: Params$Resource$Folders$Capabilityconfigs$List, options?: MethodOptions - ): Promise>; + ): Promise>; list( - params: Params$Resource$Liens$List, + params: Params$Resource$Folders$Capabilityconfigs$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Liens$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Folders$Capabilityconfigs$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Liens$List, - callback: BodyResponseCallback + params: Params$Resource$Folders$Capabilityconfigs$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Liens$List - | BodyResponseCallback + | Params$Resource$Folders$Capabilityconfigs$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { - let params = (paramsOrCallback || {}) as Params$Resource$Liens$List; + let params = (paramsOrCallback || + {}) as Params$Resource$Folders$Capabilityconfigs$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liens$List; + params = {} as Params$Resource$Folders$Capabilityconfigs$List; options = {}; } @@ -3906,83 +3986,2487 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/liens').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/capabilityConfigs').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'GET', apiVersion: '', }, options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } - } - export interface Params$Resource$Liens$Create extends StandardParameters { - /** - * Request body metadata - */ - requestBody?: Schema$Lien; - } - export interface Params$Resource$Liens$Delete extends StandardParameters { - /** - * Required. The name/identifier of the Lien to delete. - */ - name?: string; - } - export interface Params$Resource$Liens$Get extends StandardParameters { - /** - * Required. The name/identifier of the Lien. - */ - name?: string; - } - export interface Params$Resource$Liens$List extends StandardParameters { - /** - * The maximum number of items to return. This is a suggestion for the server. The server can return fewer liens than requested. If unspecified, server picks an appropriate default. - */ - pageSize?: number; - /** - * The `next_page_token` value returned from a previous List request, if any. - */ - pageToken?: string; /** - * Required. The name of the resource to list all attached Liens. For example, `projects/1234`. (google.api.field_policy).resource_type annotation is not set since the parent depends on the meta api implementation. This field could be a project or other sub project resources. + * Updates the `display_name`, `types` and `boundaries` of the CapabilityConfig identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.folders.capabilityConfigs.patch({ + * // Identifier. The unique resource name of the CapabilityConfig. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` + * name: 'folders/my-folder/capabilityConfigs/my-capabilityConfig', + * // Optional. The list of fields to update. + * updateMask: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "boundaries": [], + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "etag": "my_etag", + * // "managementProject": "my_managementProject", + * // "name": "my_name", + * // "state": "my_state", + * // "types": [], + * // "updateTime": "my_updateTime" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Folders$Capabilityconfigs$Patch, + options: StreamMethodOptions + ): Promise>; + patch( + params?: Params$Resource$Folders$Capabilityconfigs$Patch, + options?: MethodOptions + ): Promise>; + patch( + params: Params$Resource$Folders$Capabilityconfigs$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Folders$Capabilityconfigs$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Folders$Capabilityconfigs$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Folders$Capabilityconfigs$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Folders$Capabilityconfigs$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Capabilityconfigs$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Folders$Capabilityconfigs$Create extends StandardParameters { + /** + * Required. The user-assigned ID for the CapabilityConfig, which will become the final component of the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123` + */ + capabilityConfigId?: string; + /** + * Required. The parent resource under which the CapabilityConfig will be created. Format: `organizations/{organization_id\}` or `folders/{folder_id\}` or `projects/{project_number\}` + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CapabilityConfig; + } + export interface Params$Resource$Folders$Capabilityconfigs$Delete extends StandardParameters { + /** + * Required. The name of the CapabilityConfig to delete. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` + */ + name?: string; + } + export interface Params$Resource$Folders$Capabilityconfigs$Get extends StandardParameters { + /** + * Required. The name of the CapabilityConfig to retrieve. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` Example: `folders/123456789/capabilityConfigs/my-capability-config` + */ + name?: string; + } + export interface Params$Resource$Folders$Capabilityconfigs$List extends StandardParameters { + /** + * Optional. The maximum number of CapabilityConfigs to return in the response. The service may return fewer CapabilityConfigs than requested. If unspecified, at most 100 CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be coerced to 100. + */ + pageSize?: number; + /** + * Optional. A pagination token received from a previous call to `ListCapabilityConfigs` that indicates from where listing should continue. Provide this to retrieve the subsequent page. + */ + pageToken?: string; + /** + * Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: `organizations/{organization_id\}` or `folders/{folder_id\}` */ parent?: string; } + export interface Params$Resource$Folders$Capabilityconfigs$Patch extends StandardParameters { + /** + * Identifier. The unique resource name of the CapabilityConfig. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` + */ + name?: string; + /** + * Optional. The list of fields to update. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CapabilityConfig; + } + + export class Resource$Liens { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Create a Lien which applies to the resource denoted by the `parent` field. Callers of this method will require permission on the `parent` resource. For example, applying to `projects/1234` requires permission `resourcemanager.projects.updateLiens`. NOTE: Some resources may limit the number of Liens which may be applied. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.liens.create({ + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "createTime": "my_createTime", + * // "name": "my_name", + * // "origin": "my_origin", + * // "parent": "my_parent", + * // "reason": "my_reason", + * // "restrictions": [] + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "createTime": "my_createTime", + * // "name": "my_name", + * // "origin": "my_origin", + * // "parent": "my_parent", + * // "reason": "my_reason", + * // "restrictions": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Liens$Create, + options: StreamMethodOptions + ): Promise>; + create( + params?: Params$Resource$Liens$Create, + options?: MethodOptions + ): Promise>; + create( + params: Params$Resource$Liens$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Liens$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Liens$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Liens$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || {}) as Params$Resource$Liens$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liens$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/liens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Delete a Lien by `name`. Callers of this method will require permission on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires permission `resourcemanager.projects.updateLiens`. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.liens.delete({ + * // Required. The name/identifier of the Lien to delete. + * name: 'liens/.*', + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Liens$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Liens$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Liens$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Liens$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Liens$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Liens$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || {}) as Params$Resource$Liens$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liens$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Retrieve a Lien by `name`. Callers of this method will require permission on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires permission `resourcemanager.projects.get` + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.liens.get({ + * // Required. The name/identifier of the Lien. + * name: 'liens/.*', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "createTime": "my_createTime", + * // "name": "my_name", + * // "origin": "my_origin", + * // "parent": "my_parent", + * // "reason": "my_reason", + * // "restrictions": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Liens$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Liens$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Liens$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Liens$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Liens$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Liens$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || {}) as Params$Resource$Liens$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liens$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * List all Liens applied to the `parent` resource. Callers of this method will require permission on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires permission `resourcemanager.projects.get`. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.liens.list({ + * // The maximum number of items to return. This is a suggestion for the server. The server can return fewer liens than requested. If unspecified, server picks an appropriate default. + * pageSize: 'placeholder-value', + * // The `next_page_token` value returned from a previous List request, if any. + * pageToken: 'placeholder-value', + * // Required. The name of the resource to list all attached Liens. For example, `projects/1234`. (google.api.field_policy).resource_type annotation is not set since the parent depends on the meta api implementation. This field could be a project or other sub project resources. + * parent: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "liens": [], + * // "nextPageToken": "my_nextPageToken" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Liens$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Liens$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Liens$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Liens$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Liens$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Liens$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || {}) as Params$Resource$Liens$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liens$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/liens').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Liens$Create extends StandardParameters { + /** + * Request body metadata + */ + requestBody?: Schema$Lien; + } + export interface Params$Resource$Liens$Delete extends StandardParameters { + /** + * Required. The name/identifier of the Lien to delete. + */ + name?: string; + } + export interface Params$Resource$Liens$Get extends StandardParameters { + /** + * Required. The name/identifier of the Lien. + */ + name?: string; + } + export interface Params$Resource$Liens$List extends StandardParameters { + /** + * The maximum number of items to return. This is a suggestion for the server. The server can return fewer liens than requested. If unspecified, server picks an appropriate default. + */ + pageSize?: number; + /** + * The `next_page_token` value returned from a previous List request, if any. + */ + pageToken?: string; + /** + * Required. The name of the resource to list all attached Liens. For example, `projects/1234`. (google.api.field_policy).resource_type annotation is not set since the parent depends on the meta api implementation. This field could be a project or other sub project resources. + */ + parent?: string; + } + + export class Resource$Locations { + context: APIRequestContext; + effectiveTagBindingCollections: Resource$Locations$Effectivetagbindingcollections; + tagBindingCollections: Resource$Locations$Tagbindingcollections; + constructor(context: APIRequestContext) { + this.context = context; + this.effectiveTagBindingCollections = + new Resource$Locations$Effectivetagbindingcollections(this.context); + this.tagBindingCollections = new Resource$Locations$Tagbindingcollections( + this.context + ); + } + } + + export class Resource$Locations$Effectivetagbindingcollections { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Returns effective tag bindings on a GCP resource. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudresourcemanager.locations.effectiveTagBindingCollections.get({ + * // Required. The full name of the EffectiveTagBindingCollection in format: `locations/{location\}/effectiveTagBindingCollections/{encoded-full-resource-name\}` where the encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are bound to. E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" + * name: 'locations/my-location/effectiveTagBindingCollections/my-effectiveTagBindingCollection', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "effectiveTags": {}, + * // "fullResourceName": "my_fullResourceName", + * // "name": "my_name" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Locations$Effectivetagbindingcollections$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Locations$Effectivetagbindingcollections$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Locations$Effectivetagbindingcollections$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Locations$Effectivetagbindingcollections$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Locations$Effectivetagbindingcollections$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Locations$Effectivetagbindingcollections$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Locations$Effectivetagbindingcollections$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Locations$Effectivetagbindingcollections$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Locations$Effectivetagbindingcollections$Get extends StandardParameters { + /** + * Required. The full name of the EffectiveTagBindingCollection in format: `locations/{location\}/effectiveTagBindingCollections/{encoded-full-resource-name\}` where the encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are bound to. E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" + */ + name?: string; + } + + export class Resource$Locations$Tagbindingcollections { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Returns tag bindings directly attached to a GCP resource. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.locations.tagBindingCollections.get({ + * // Required. The full name of the TagBindingCollection in format: `locations/{location\}/tagBindingCollections/{encoded-full-resource-name\}` where the enoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are bound to. E.g. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" + * name: 'locations/my-location/tagBindingCollections/my-tagBindingCollection', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "etag": "my_etag", + * // "fullResourceName": "my_fullResourceName", + * // "name": "my_name", + * // "tags": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Locations$Tagbindingcollections$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Locations$Tagbindingcollections$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Locations$Tagbindingcollections$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Locations$Tagbindingcollections$Get, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Locations$Tagbindingcollections$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Locations$Tagbindingcollections$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Locations$Tagbindingcollections$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Locations$Tagbindingcollections$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Updates tag bindings directly attached to a GCP resource. Update_mask can be kept empty or "*". + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.locations.tagBindingCollections.patch({ + * // Identifier. The name of the TagBindingCollection, following the convention: `locations/{location\}/tagBindingCollections/{encoded-full-resource-name\}` where the encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" + * name: 'locations/my-location/tagBindingCollections/my-tagBindingCollection', + * // Optional. An update mask to selectively update fields. + * updateMask: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "etag": "my_etag", + * // "fullResourceName": "my_fullResourceName", + * // "name": "my_name", + * // "tags": {} + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Locations$Tagbindingcollections$Patch, + options: StreamMethodOptions + ): Promise>; + patch( + params?: Params$Resource$Locations$Tagbindingcollections$Patch, + options?: MethodOptions + ): Promise>; + patch( + params: Params$Resource$Locations$Tagbindingcollections$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Locations$Tagbindingcollections$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Locations$Tagbindingcollections$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Locations$Tagbindingcollections$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Locations$Tagbindingcollections$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Locations$Tagbindingcollections$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Locations$Tagbindingcollections$Get extends StandardParameters { + /** + * Required. The full name of the TagBindingCollection in format: `locations/{location\}/tagBindingCollections/{encoded-full-resource-name\}` where the enoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are bound to. E.g. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" + */ + name?: string; + } + export interface Params$Resource$Locations$Tagbindingcollections$Patch extends StandardParameters { + /** + * Identifier. The name of the TagBindingCollection, following the convention: `locations/{location\}/tagBindingCollections/{encoded-full-resource-name\}` where the encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" + */ + name?: string; + /** + * Optional. An update mask to selectively update fields. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TagBindingCollection; + } + + export class Resource$Operations { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * 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. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.operations.get({ + * // The name of the operation resource. + * name: 'operations/.*', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Operations$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Operations$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Operations$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + 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 + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Operations$Get extends StandardParameters { + /** + * The name of the operation resource. + */ + name?: string; + } + + export class Resource$Organizations { + context: APIRequestContext; + capabilityConfigs: Resource$Organizations$Capabilityconfigs; + constructor(context: APIRequestContext) { + this.context = context; + this.capabilityConfigs = new Resource$Organizations$Capabilityconfigs( + this.context + ); + } + + /** + * Fetches an organization resource identified by the specified resource name. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.organizations.get({ + * // Required. The resource name of the Organization to fetch. This is the organization's relative path in the API, formatted as "organizations/[organizationId]". For example, "organizations/1234". + * name: 'organizations/my-organization', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "createTime": "my_createTime", + * // "deleteTime": "my_deleteTime", + * // "directoryCustomerId": "my_directoryCustomerId", + * // "displayName": "my_displayName", + * // "etag": "my_etag", + * // "name": "my_name", + * // "state": "my_state", + * // "updateTime": "my_updateTime" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Organizations$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Organizations$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Organizations$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Organizations$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets the access control policy for an organization resource. The policy may be empty if no such policy or resource exists. The `resource` field should be the organization's resource name, for example: "organizations/123". Authorization requires the IAM permission `resourcemanager.organizations.getIamPolicy` on the specified organization. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.organizations.getIamPolicy({ + * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * resource: 'organizations/my-organization', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "options": {} + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "auditConfigs": [], + * // "bindings": [], + * // "etag": "my_etag", + * // "version": 0 + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + getIamPolicy( + params: Params$Resource$Organizations$Getiampolicy, + options: StreamMethodOptions + ): Promise>; + getIamPolicy( + params?: Params$Resource$Organizations$Getiampolicy, + options?: MethodOptions + ): Promise>; + getIamPolicy( + params: Params$Resource$Organizations$Getiampolicy, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getIamPolicy( + params: Params$Resource$Organizations$Getiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getIamPolicy( + params: Params$Resource$Organizations$Getiampolicy, + callback: BodyResponseCallback + ): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + | Params$Resource$Organizations$Getiampolicy + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Searches organization resources that are visible to the user and satisfy the specified filter. This method returns organizations in an unspecified order. New organizations do not necessarily appear at the end of the results, and may take a small amount of time to appear. Search will only return organizations on which the user has the permission `resourcemanager.organizations.get` or has super admin privileges. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.organizations.search({ + * // Optional. The maximum number of organizations to return in the response. The server can return fewer organizations than requested. If unspecified, server picks an appropriate default. + * pageSize: 'placeholder-value', + * // Optional. A pagination token returned from a previous call to `SearchOrganizations` that indicates from where listing should continue. + * pageToken: 'placeholder-value', + * // Optional. An optional query string used to filter the Organizations to return in the response. Query rules are case-insensitive. ``` | Field | Description | |------------------|--------------------------------------------| | directoryCustomerId, owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by domain. | ``` Organizations may be queried by `directoryCustomerId` or by `domain`, where the domain is a G Suite domain, for example: * Query `directorycustomerid:123456789` returns Organization resources with `owner.directory_customer_id` equal to `123456789`. * Query `domain:google.com` returns Organization resources corresponding to the domain `google.com`. + * query: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "organizations": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + search( + params: Params$Resource$Organizations$Search, + options: StreamMethodOptions + ): Promise>; + search( + params?: Params$Resource$Organizations$Search, + options?: MethodOptions + ): Promise>; + search( + params: Params$Resource$Organizations$Search, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + search( + params: Params$Resource$Organizations$Search, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + search( + params: Params$Resource$Organizations$Search, + callback: BodyResponseCallback + ): void; + search( + callback: BodyResponseCallback + ): void; + search( + paramsOrCallback?: + | Params$Resource$Organizations$Search + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Search; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/organizations:search').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Sets the access control policy on an organization resource. Replaces any existing policy. The `resource` field should be the organization's resource name, for example: "organizations/123". Authorization requires the IAM permission `resourcemanager.organizations.setIamPolicy` on the specified organization. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.organizations.setIamPolicy({ + * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * resource: 'organizations/my-organization', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "policy": {}, + * // "updateMask": "my_updateMask" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "auditConfigs": [], + * // "bindings": [], + * // "etag": "my_etag", + * // "version": 0 + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + setIamPolicy( + params: Params$Resource$Organizations$Setiampolicy, + options: StreamMethodOptions + ): Promise>; + setIamPolicy( + params?: Params$Resource$Organizations$Setiampolicy, + options?: MethodOptions + ): Promise>; + setIamPolicy( + params: Params$Resource$Organizations$Setiampolicy, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setIamPolicy( + params: Params$Resource$Organizations$Setiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setIamPolicy( + params: Params$Resource$Organizations$Setiampolicy, + callback: BodyResponseCallback + ): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + | Params$Resource$Organizations$Setiampolicy + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Setiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Returns the permissions that a caller has on the specified organization. The `resource` field should be the organization's resource name, for example: "organizations/123". There are no permissions required for making this API call. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.organizations.testIamPermissions({ + * // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * resource: 'organizations/my-organization', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "permissions": [] + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "permissions": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + testIamPermissions( + params: Params$Resource$Organizations$Testiampermissions, + options: StreamMethodOptions + ): Promise>; + testIamPermissions( + params?: Params$Resource$Organizations$Testiampermissions, + options?: MethodOptions + ): Promise>; + testIamPermissions( + params: Params$Resource$Organizations$Testiampermissions, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Organizations$Testiampermissions, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Organizations$Testiampermissions, + callback: BodyResponseCallback + ): void; + testIamPermissions( + callback: BodyResponseCallback + ): void; + testIamPermissions( + paramsOrCallback?: + | Params$Resource$Organizations$Testiampermissions + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Organizations$Get extends StandardParameters { + /** + * Required. The resource name of the Organization to fetch. This is the organization's relative path in the API, formatted as "organizations/[organizationId]". For example, "organizations/1234". + */ + name?: string; + } + export interface Params$Resource$Organizations$Getiampolicy extends StandardParameters { + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Organizations$Search extends StandardParameters { + /** + * Optional. The maximum number of organizations to return in the response. The server can return fewer organizations than requested. If unspecified, server picks an appropriate default. + */ + pageSize?: number; + /** + * Optional. A pagination token returned from a previous call to `SearchOrganizations` that indicates from where listing should continue. + */ + pageToken?: string; + /** + * Optional. An optional query string used to filter the Organizations to return in the response. Query rules are case-insensitive. ``` | Field | Description | |------------------|--------------------------------------------| | directoryCustomerId, owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by domain. | ``` Organizations may be queried by `directoryCustomerId` or by `domain`, where the domain is a G Suite domain, for example: * Query `directorycustomerid:123456789` returns Organization resources with `owner.directory_customer_id` equal to `123456789`. * Query `domain:google.com` returns Organization resources corresponding to the domain `google.com`. + */ + query?: string; + } + export interface Params$Resource$Organizations$Setiampolicy extends StandardParameters { + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Organizations$Testiampermissions extends StandardParameters { + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Organizations$Capabilityconfigs { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a CapabilityConfig triggers the creation of a Management Project if one is not supplied. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.organizations.capabilityConfigs.create( + * { + * // Required. The user-assigned ID for the CapabilityConfig, which will become the final component of the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123` + * capabilityConfigId: 'placeholder-value', + * // Required. The parent resource under which the CapabilityConfig will be created. Format: `organizations/{organization_id\}` or `folders/{folder_id\}` or `projects/{project_number\}` + * parent: 'organizations/my-organization', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "boundaries": [], + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "etag": "my_etag", + * // "managementProject": "my_managementProject", + * // "name": "my_name", + * // "state": "my_state", + * // "types": [], + * // "updateTime": "my_updateTime" + * // } + * }, + * }, + * ); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Organizations$Capabilityconfigs$Create, + options: StreamMethodOptions + ): Promise>; + create( + params?: Params$Resource$Organizations$Capabilityconfigs$Create, + options?: MethodOptions + ): Promise>; + create( + params: Params$Resource$Organizations$Capabilityconfigs$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Capabilityconfigs$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Capabilityconfigs$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Organizations$Capabilityconfigs$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Capabilityconfigs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; - export class Resource$Locations { - context: APIRequestContext; - effectiveTagBindingCollections: Resource$Locations$Effectivetagbindingcollections; - tagBindingCollections: Resource$Locations$Tagbindingcollections; - constructor(context: APIRequestContext) { - this.context = context; - this.effectiveTagBindingCollections = - new Resource$Locations$Effectivetagbindingcollections(this.context); - this.tagBindingCollections = new Resource$Locations$Tagbindingcollections( - this.context - ); - } - } + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Capabilityconfigs$Create; + options = {}; + } - export class Resource$Locations$Effectivetagbindingcollections { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+parent}/capabilityConfigs').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } } /** - * Returns effective tag bindings on a GCP resource. + * Deletes the CapabilityConfig identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). * @example * ```js * // Before running the sample: @@ -4003,10 +6487,7 @@ export namespace cloudresourcemanager_v3 { * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. - * scopes: [ - * 'https://www.googleapis.com/auth/cloud-platform', - * 'https://www.googleapis.com/auth/cloud-platform.read-only', - * ], + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], * }); * * // Acquire an auth client, and bind it to all future calls @@ -4014,18 +6495,21 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = - * await cloudresourcemanager.locations.effectiveTagBindingCollections.get({ - * // Required. The full name of the EffectiveTagBindingCollection in format: `locations/{location\}/effectiveTagBindingCollections/{encoded-full-resource-name\}` where the encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are bound to. E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" - * name: 'locations/my-location/effectiveTagBindingCollections/my-effectiveTagBindingCollection', - * }); + * const res = await cloudresourcemanager.organizations.capabilityConfigs.delete( + * { + * // Required. The name of the CapabilityConfig to delete. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` + * name: 'organizations/my-organization/capabilityConfigs/my-capabilityConfig', + * }, + * ); * console.log(res.data); * * // Example response * // { - * // "effectiveTags": {}, - * // "fullResourceName": "my_fullResourceName", - * // "name": "my_name" + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} * // } * } * @@ -4041,58 +6525,52 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - get( - params: Params$Resource$Locations$Effectivetagbindingcollections$Get, + delete( + params: Params$Resource$Organizations$Capabilityconfigs$Delete, options: StreamMethodOptions ): Promise>; - get( - params?: Params$Resource$Locations$Effectivetagbindingcollections$Get, + delete( + params?: Params$Resource$Organizations$Capabilityconfigs$Delete, options?: MethodOptions - ): Promise>; - get( - params: Params$Resource$Locations$Effectivetagbindingcollections$Get, + ): Promise>; + delete( + params: Params$Resource$Organizations$Capabilityconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Locations$Effectivetagbindingcollections$Get, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Locations$Effectivetagbindingcollections$Get, - callback: BodyResponseCallback + delete( + params: Params$Resource$Organizations$Capabilityconfigs$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - callback: BodyResponseCallback + delete( + params: Params$Resource$Organizations$Capabilityconfigs$Delete, + callback: BodyResponseCallback ): void; - get( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Locations$Effectivetagbindingcollections$Get - | BodyResponseCallback + | Params$Resource$Organizations$Capabilityconfigs$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback - | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Locations$Effectivetagbindingcollections$Get; + {}) as Params$Resource$Organizations$Capabilityconfigs$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Locations$Effectivetagbindingcollections$Get; + params = {} as Params$Resource$Organizations$Capabilityconfigs$Delete; options = {}; } @@ -4107,7 +6585,7 @@ export namespace cloudresourcemanager_v3 { options: Object.assign( { url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', apiVersion: '', }, options @@ -4118,33 +6596,17 @@ export namespace cloudresourcemanager_v3 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Locations$Effectivetagbindingcollections$Get extends StandardParameters { - /** - * Required. The full name of the EffectiveTagBindingCollection in format: `locations/{location\}/effectiveTagBindingCollections/{encoded-full-resource-name\}` where the encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are bound to. E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" - */ - name?: string; - } - - export class Resource$Locations$Tagbindingcollections { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * Returns tag bindings directly attached to a GCP resource. + * Retrieves the Capability Config identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). * @example * ```js * // Before running the sample: @@ -4176,18 +6638,23 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.locations.tagBindingCollections.get({ - * // Required. The full name of the TagBindingCollection in format: `locations/{location\}/tagBindingCollections/{encoded-full-resource-name\}` where the enoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are bound to. E.g. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" - * name: 'locations/my-location/tagBindingCollections/my-tagBindingCollection', + * const res = await cloudresourcemanager.organizations.capabilityConfigs.get({ + * // Required. The name of the CapabilityConfig to retrieve. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` Example: `folders/123456789/capabilityConfigs/my-capability-config` + * name: 'organizations/my-organization/capabilityConfigs/my-capabilityConfig', * }); * console.log(res.data); * * // Example response * // { + * // "boundaries": [], + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", * // "etag": "my_etag", - * // "fullResourceName": "my_fullResourceName", + * // "managementProject": "my_managementProject", * // "name": "my_name", - * // "tags": {} + * // "state": "my_state", + * // "types": [], + * // "updateTime": "my_updateTime" * // } * } * @@ -4204,53 +6671,52 @@ export namespace cloudresourcemanager_v3 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Locations$Tagbindingcollections$Get, + params: Params$Resource$Organizations$Capabilityconfigs$Get, options: StreamMethodOptions ): Promise>; get( - params?: Params$Resource$Locations$Tagbindingcollections$Get, + params?: Params$Resource$Organizations$Capabilityconfigs$Get, options?: MethodOptions - ): Promise>; + ): Promise>; get( - params: Params$Resource$Locations$Tagbindingcollections$Get, + params: Params$Resource$Organizations$Capabilityconfigs$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Locations$Tagbindingcollections$Get, - options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Capabilityconfigs$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Locations$Tagbindingcollections$Get, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Capabilityconfigs$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Locations$Tagbindingcollections$Get - | BodyResponseCallback + | Params$Resource$Organizations$Capabilityconfigs$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Locations$Tagbindingcollections$Get; + {}) as Params$Resource$Organizations$Capabilityconfigs$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Locations$Tagbindingcollections$Get; + params = {} as Params$Resource$Organizations$Capabilityconfigs$Get; options = {}; } @@ -4276,17 +6742,17 @@ export namespace cloudresourcemanager_v3 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Updates tag bindings directly attached to a GCP resource. Update_mask can be kept empty or "*". + * Lists CapabilityConfigs that are direct children of the specified organization, folder or project resource. * @example * ```js * // Before running the sample: @@ -4307,7 +6773,10 @@ export namespace cloudresourcemanager_v3 { * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. - * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], * }); * * // Acquire an auth client, and bind it to all future calls @@ -4315,32 +6784,20 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.locations.tagBindingCollections.patch({ - * // Identifier. The name of the TagBindingCollection, following the convention: `locations/{location\}/tagBindingCollections/{encoded-full-resource-name\}` where the encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" - * name: 'locations/my-location/tagBindingCollections/my-tagBindingCollection', - * // Optional. An update mask to selectively update fields. - * updateMask: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "etag": "my_etag", - * // "fullResourceName": "my_fullResourceName", - * // "name": "my_name", - * // "tags": {} - * // } - * }, + * const res = await cloudresourcemanager.organizations.capabilityConfigs.list({ + * // Optional. The maximum number of CapabilityConfigs to return in the response. The service may return fewer CapabilityConfigs than requested. If unspecified, at most 100 CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be coerced to 100. + * pageSize: 'placeholder-value', + * // Optional. A pagination token received from a previous call to `ListCapabilityConfigs` that indicates from where listing should continue. Provide this to retrieve the subsequent page. + * pageToken: 'placeholder-value', + * // Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: `organizations/{organization_id\}` or `folders/{folder_id\}` + * parent: 'organizations/my-organization', * }); * console.log(res.data); * * // Example response * // { - * // "done": false, - * // "error": {}, - * // "metadata": {}, - * // "name": "my_name", - * // "response": {} + * // "capabilityConfigs": [], + * // "nextPageToken": "my_nextPageToken" * // } * } * @@ -4356,52 +6813,57 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - patch( - params: Params$Resource$Locations$Tagbindingcollections$Patch, + list( + params: Params$Resource$Organizations$Capabilityconfigs$List, options: StreamMethodOptions ): Promise>; - patch( - params?: Params$Resource$Locations$Tagbindingcollections$Patch, + list( + params?: Params$Resource$Organizations$Capabilityconfigs$List, options?: MethodOptions - ): Promise>; - patch( - params: Params$Resource$Locations$Tagbindingcollections$Patch, + ): Promise>; + list( + params: Params$Resource$Organizations$Capabilityconfigs$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Locations$Tagbindingcollections$Patch, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Organizations$Capabilityconfigs$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Locations$Tagbindingcollections$Patch, - callback: BodyResponseCallback + list( + params: Params$Resource$Organizations$Capabilityconfigs$List, + callback: BodyResponseCallback ): void; - patch(callback: BodyResponseCallback): void; - patch( + list( + callback: BodyResponseCallback + ): void; + list( paramsOrCallback?: - | Params$Resource$Locations$Tagbindingcollections$Patch - | BodyResponseCallback + | Params$Resource$Organizations$Capabilityconfigs$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Locations$Tagbindingcollections$Patch; + {}) as Params$Resource$Organizations$Capabilityconfigs$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Locations$Tagbindingcollections$Patch; + params = {} as Params$Resource$Organizations$Capabilityconfigs$List; options = {}; } @@ -4415,58 +6877,34 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+parent}/capabilityConfigs').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } - } - - export interface Params$Resource$Locations$Tagbindingcollections$Get extends StandardParameters { - /** - * Required. The full name of the TagBindingCollection in format: `locations/{location\}/tagBindingCollections/{encoded-full-resource-name\}` where the enoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are bound to. E.g. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" - */ - name?: string; - } - export interface Params$Resource$Locations$Tagbindingcollections$Patch extends StandardParameters { - /** - * Identifier. The name of the TagBindingCollection, following the convention: `locations/{location\}/tagBindingCollections/{encoded-full-resource-name\}` where the encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" - */ - name?: string; - /** - * Optional. An update mask to selectively update fields. - */ - updateMask?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TagBindingCollection; - } - - export class Resource$Operations { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * 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. + * Updates the `display_name`, `types` and `boundaries` of the CapabilityConfig identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). * @example * ```js * // Before running the sample: @@ -4487,10 +6925,7 @@ export namespace cloudresourcemanager_v3 { * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. - * scopes: [ - * 'https://www.googleapis.com/auth/cloud-platform', - * 'https://www.googleapis.com/auth/cloud-platform.read-only', - * ], + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], * }); * * // Acquire an auth client, and bind it to all future calls @@ -4498,9 +6933,27 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.operations.get({ - * // The name of the operation resource. - * name: 'operations/.*', + * const res = await cloudresourcemanager.organizations.capabilityConfigs.patch({ + * // Identifier. The unique resource name of the CapabilityConfig. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` + * name: 'organizations/my-organization/capabilityConfigs/my-capabilityConfig', + * // Optional. The list of fields to update. + * updateMask: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "boundaries": [], + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "etag": "my_etag", + * // "managementProject": "my_managementProject", + * // "name": "my_name", + * // "state": "my_state", + * // "types": [], + * // "updateTime": "my_updateTime" + * // } + * }, * }); * console.log(res.data); * @@ -4526,32 +6979,32 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - get( - params: Params$Resource$Operations$Get, + patch( + params: Params$Resource$Organizations$Capabilityconfigs$Patch, options: StreamMethodOptions ): Promise>; - get( - params?: Params$Resource$Operations$Get, + patch( + params?: Params$Resource$Organizations$Capabilityconfigs$Patch, options?: MethodOptions ): Promise>; - get( - params: Params$Resource$Operations$Get, + patch( + params: Params$Resource$Organizations$Capabilityconfigs$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Operations$Get, + patch( + params: Params$Resource$Organizations$Capabilityconfigs$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Operations$Get, + patch( + params: Params$Resource$Organizations$Capabilityconfigs$Patch, callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + patch(callback: BodyResponseCallback): void; + patch( paramsOrCallback?: - | Params$Resource$Operations$Get + | Params$Resource$Organizations$Capabilityconfigs$Patch | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -4565,12 +7018,13 @@ export namespace cloudresourcemanager_v3 { | void | Promise> | Promise> { - let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Capabilityconfigs$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Operations$Get; + params = {} as Params$Resource$Organizations$Capabilityconfigs$Patch; options = {}; } @@ -4585,7 +7039,7 @@ export namespace cloudresourcemanager_v3 { options: Object.assign( { url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', apiVersion: '', }, options @@ -4606,21 +7060,75 @@ export namespace cloudresourcemanager_v3 { } } - export interface Params$Resource$Operations$Get extends StandardParameters { + export interface Params$Resource$Organizations$Capabilityconfigs$Create extends StandardParameters { /** - * The name of the operation resource. + * Required. The user-assigned ID for the CapabilityConfig, which will become the final component of the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123` + */ + capabilityConfigId?: string; + /** + * Required. The parent resource under which the CapabilityConfig will be created. Format: `organizations/{organization_id\}` or `folders/{folder_id\}` or `projects/{project_number\}` + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CapabilityConfig; + } + export interface Params$Resource$Organizations$Capabilityconfigs$Delete extends StandardParameters { + /** + * Required. The name of the CapabilityConfig to delete. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` + */ + name?: string; + } + export interface Params$Resource$Organizations$Capabilityconfigs$Get extends StandardParameters { + /** + * Required. The name of the CapabilityConfig to retrieve. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` Example: `folders/123456789/capabilityConfigs/my-capability-config` + */ + name?: string; + } + export interface Params$Resource$Organizations$Capabilityconfigs$List extends StandardParameters { + /** + * Optional. The maximum number of CapabilityConfigs to return in the response. The service may return fewer CapabilityConfigs than requested. If unspecified, at most 100 CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be coerced to 100. + */ + pageSize?: number; + /** + * Optional. A pagination token received from a previous call to `ListCapabilityConfigs` that indicates from where listing should continue. Provide this to retrieve the subsequent page. + */ + pageToken?: string; + /** + * Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: `organizations/{organization_id\}` or `folders/{folder_id\}` + */ + parent?: string; + } + export interface Params$Resource$Organizations$Capabilityconfigs$Patch extends StandardParameters { + /** + * Identifier. The unique resource name of the CapabilityConfig. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` */ name?: string; + /** + * Optional. The list of fields to update. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CapabilityConfig; } - export class Resource$Organizations { + export class Resource$Projects { context: APIRequestContext; + capabilityConfigs: Resource$Projects$Capabilityconfigs; constructor(context: APIRequestContext) { this.context = context; + this.capabilityConfigs = new Resource$Projects$Capabilityconfigs( + this.context + ); } /** - * Fetches an organization resource identified by the specified resource name. + * Request that a new project be created. The result is an `Operation` which can be used to track the creation process. This process usually takes a few seconds, but can sometimes take much longer. The tracking `Operation` is automatically deleted after a few hours, so there is no need to call `DeleteOperation`. * @example * ```js * // Before running the sample: @@ -4641,10 +7149,7 @@ export namespace cloudresourcemanager_v3 { * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. - * scopes: [ - * 'https://www.googleapis.com/auth/cloud-platform', - * 'https://www.googleapis.com/auth/cloud-platform.read-only', - * ], + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], * }); * * // Acquire an auth client, and bind it to all future calls @@ -4652,22 +7157,36 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.organizations.get({ - * // Required. The resource name of the Organization to fetch. This is the organization's relative path in the API, formatted as "organizations/[organizationId]". For example, "organizations/1234". - * name: 'organizations/my-organization', + * const res = await cloudresourcemanager.projects.create({ + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "configuredCapabilities": [], + * // "createTime": "my_createTime", + * // "deleteTime": "my_deleteTime", + * // "displayName": "my_displayName", + * // "etag": "my_etag", + * // "isManagementProject": false, + * // "labels": {}, + * // "name": "my_name", + * // "parent": "my_parent", + * // "projectId": "my_projectId", + * // "state": "my_state", + * // "tags": {}, + * // "updateTime": "my_updateTime" + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "createTime": "my_createTime", - * // "deleteTime": "my_deleteTime", - * // "directoryCustomerId": "my_directoryCustomerId", - * // "displayName": "my_displayName", - * // "etag": "my_etag", + * // "done": false, + * // "error": {}, + * // "metadata": {}, * // "name": "my_name", - * // "state": "my_state", - * // "updateTime": "my_updateTime" + * // "response": {} * // } * } * @@ -4683,53 +7202,51 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - get( - params: Params$Resource$Organizations$Get, + create( + params: Params$Resource$Projects$Create, options: StreamMethodOptions ): Promise>; - get( - params?: Params$Resource$Organizations$Get, + create( + params?: Params$Resource$Projects$Create, options?: MethodOptions - ): Promise>; - get( - params: Params$Resource$Organizations$Get, + ): Promise>; + create( + params: Params$Resource$Projects$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Organizations$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + create( + params: Params$Resource$Projects$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Organizations$Get, - callback: BodyResponseCallback + create( + params: Params$Resource$Projects$Create, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Organizations$Get - | BodyResponseCallback + | Params$Resource$Projects$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback - | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { - let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Get; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Get; + params = {} as Params$Resource$Projects$Create; options = {}; } @@ -4743,29 +7260,29 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', apiVersion: '', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Gets the access control policy for an organization resource. The policy may be empty if no such policy or resource exists. The `resource` field should be the organization's resource name, for example: "organizations/123". Authorization requires the IAM permission `resourcemanager.organizations.getIamPolicy` on the specified organization. + * Marks the project identified by the specified `name` (for example, `projects/415104041262`) for deletion. This method will only affect the project if it has a lifecycle state of ACTIVE. This method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion starts at an unspecified time, at which point the Project is no longer accessible. Until the deletion completes, you can check the lifecycle state checked by retrieving the project with GetProject, and the project remains visible to ListProjects. However, you cannot update the project. After the deletion completes, the project is not retrievable by the GetProject, ListProjects, and SearchProjects methods. The caller must have `resourcemanager.projects.delete` permissions for this project. * @example * ```js * // Before running the sample: @@ -4786,37 +7303,27 @@ export namespace cloudresourcemanager_v3 { * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. - * scopes: [ - * 'https://www.googleapis.com/auth/cloud-platform', - * 'https://www.googleapis.com/auth/cloud-platform.read-only', - * ], + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], * }); - * - * // Acquire an auth client, and bind it to all future calls - * const authClient = await auth.getClient(); - * google.options({auth: authClient}); - * - * // Do the magic - * const res = await cloudresourcemanager.organizations.getIamPolicy({ - * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. - * resource: 'organizations/my-organization', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "options": {} - * // } - * }, + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudresourcemanager.projects.delete({ + * // Required. The name of the Project (for example, `projects/415104041262`). + * name: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { - * // "auditConfigs": [], - * // "bindings": [], - * // "etag": "my_etag", - * // "version": 0 + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} * // } * } * @@ -4832,52 +7339,51 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - getIamPolicy( - params: Params$Resource$Organizations$Getiampolicy, + delete( + params: Params$Resource$Projects$Delete, options: StreamMethodOptions ): Promise>; - getIamPolicy( - params?: Params$Resource$Organizations$Getiampolicy, + delete( + params?: Params$Resource$Projects$Delete, options?: MethodOptions - ): Promise>; - getIamPolicy( - params: Params$Resource$Organizations$Getiampolicy, + ): Promise>; + delete( + params: Params$Resource$Projects$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - getIamPolicy( - params: Params$Resource$Organizations$Getiampolicy, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + delete( + params: Params$Resource$Projects$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - getIamPolicy( - params: Params$Resource$Organizations$Getiampolicy, - callback: BodyResponseCallback + delete( + params: Params$Resource$Projects$Delete, + callback: BodyResponseCallback ): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Organizations$Getiampolicy - | BodyResponseCallback + | Params$Resource$Projects$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { - let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Getiampolicy; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Getiampolicy; + params = {} as Params$Resource$Projects$Delete; options = {}; } @@ -4891,32 +7397,29 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', apiVersion: '', }, options ), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Searches organization resources that are visible to the user and satisfy the specified filter. This method returns organizations in an unspecified order. New organizations do not necessarily appear at the end of the results, and may take a small amount of time to appear. Search will only return organizations on which the user has the permission `resourcemanager.organizations.get` or has super admin privileges. + * Retrieves the project identified by the specified `name` (for example, `projects/415104041262`). The caller must have `resourcemanager.projects.get` permission for this project. * @example * ```js * // Before running the sample: @@ -4948,20 +7451,27 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.organizations.search({ - * // Optional. The maximum number of organizations to return in the response. The server can return fewer organizations than requested. If unspecified, server picks an appropriate default. - * pageSize: 'placeholder-value', - * // Optional. A pagination token returned from a previous call to `SearchOrganizations` that indicates from where listing should continue. - * pageToken: 'placeholder-value', - * // Optional. An optional query string used to filter the Organizations to return in the response. Query rules are case-insensitive. ``` | Field | Description | |------------------|--------------------------------------------| | directoryCustomerId, owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by domain. | ``` Organizations may be queried by `directoryCustomerId` or by `domain`, where the domain is a G Suite domain, for example: * Query `directorycustomerid:123456789` returns Organization resources with `owner.directory_customer_id` equal to `123456789`. * Query `domain:google.com` returns Organization resources corresponding to the domain `google.com`. - * query: 'placeholder-value', + * const res = await cloudresourcemanager.projects.get({ + * // Required. The name of the project (for example, `projects/415104041262`). + * name: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { - * // "nextPageToken": "my_nextPageToken", - * // "organizations": [] + * // "configuredCapabilities": [], + * // "createTime": "my_createTime", + * // "deleteTime": "my_deleteTime", + * // "displayName": "my_displayName", + * // "etag": "my_etag", + * // "isManagementProject": false, + * // "labels": {}, + * // "name": "my_name", + * // "parent": "my_parent", + * // "projectId": "my_projectId", + * // "state": "my_state", + * // "tags": {}, + * // "updateTime": "my_updateTime" * // } * } * @@ -4977,57 +7487,51 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - search( - params: Params$Resource$Organizations$Search, + get( + params: Params$Resource$Projects$Get, options: StreamMethodOptions ): Promise>; - search( - params?: Params$Resource$Organizations$Search, + get( + params?: Params$Resource$Projects$Get, options?: MethodOptions - ): Promise>; - search( - params: Params$Resource$Organizations$Search, + ): Promise>; + get( + params: Params$Resource$Projects$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - search( - params: Params$Resource$Organizations$Search, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - search( - params: Params$Resource$Organizations$Search, - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - search( - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Get, + callback: BodyResponseCallback ): void; - search( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Organizations$Search - | BodyResponseCallback + | Params$Resource$Projects$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback - | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { - let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Search; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Search; + params = {} as Params$Resource$Projects$Get; options = {}; } @@ -5041,32 +7545,29 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/organizations:search').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Sets the access control policy on an organization resource. Replaces any existing policy. The `resource` field should be the organization's resource name, for example: "organizations/123". Authorization requires the IAM permission `resourcemanager.organizations.setIamPolicy` on the specified organization. + * Returns the IAM access control policy for the specified project, in the format `projects/{ProjectIdOrNumber\}` e.g. projects/123. Permission is denied if the policy or the resource do not exist. * @example * ```js * // Before running the sample: @@ -5087,7 +7588,10 @@ export namespace cloudresourcemanager_v3 { * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. - * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], * }); * * // Acquire an auth client, and bind it to all future calls @@ -5095,16 +7599,15 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.organizations.setIamPolicy({ - * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. - * resource: 'organizations/my-organization', + * const res = await cloudresourcemanager.projects.getIamPolicy({ + * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * resource: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "policy": {}, - * // "updateMask": "my_updateMask" + * // "options": {} * // } * }, * }); @@ -5131,32 +7634,32 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - setIamPolicy( - params: Params$Resource$Organizations$Setiampolicy, + getIamPolicy( + params: Params$Resource$Projects$Getiampolicy, options: StreamMethodOptions ): Promise>; - setIamPolicy( - params?: Params$Resource$Organizations$Setiampolicy, + getIamPolicy( + params?: Params$Resource$Projects$Getiampolicy, options?: MethodOptions ): Promise>; - setIamPolicy( - params: Params$Resource$Organizations$Setiampolicy, + getIamPolicy( + params: Params$Resource$Projects$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - setIamPolicy( - params: Params$Resource$Organizations$Setiampolicy, + getIamPolicy( + params: Params$Resource$Projects$Getiampolicy, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - setIamPolicy( - params: Params$Resource$Organizations$Setiampolicy, + getIamPolicy( + params: Params$Resource$Projects$Getiampolicy, callback: BodyResponseCallback ): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( paramsOrCallback?: - | Params$Resource$Organizations$Setiampolicy + | Params$Resource$Projects$Getiampolicy | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -5171,12 +7674,12 @@ export namespace cloudresourcemanager_v3 { | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Setiampolicy; + {}) as Params$Resource$Projects$Getiampolicy; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Setiampolicy; + params = {} as Params$Resource$Projects$Getiampolicy; options = {}; } @@ -5190,7 +7693,7 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace( + url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace( /([^:]\/)\/+/g, '$1' ), @@ -5215,7 +7718,7 @@ export namespace cloudresourcemanager_v3 { } /** - * Returns the permissions that a caller has on the specified organization. The `resource` field should be the organization's resource name, for example: "organizations/123". There are no permissions required for making this API call. + * Lists projects that are direct children of the specified folder or organization resource. `list()` provides a strongly consistent view of the projects underneath the specified parent resource. `list()` returns projects sorted based upon the (ascending) lexical ordering of their `display_name`. The caller must have `resourcemanager.projects.list` permission on the identified parent. * @example * ```js * // Before running the sample: @@ -5247,23 +7750,22 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.organizations.testIamPermissions({ - * // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. - * resource: 'organizations/my-organization', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "permissions": [] - * // } - * }, + * const res = await cloudresourcemanager.projects.list({ + * // Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. + * pageSize: 'placeholder-value', + * // Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. + * pageToken: 'placeholder-value', + * // Required. The name of the parent resource whose projects are being listed. Only children of this parent resource are listed; descendants are not listed. If the parent is a folder, use the value `folders/{folder_id\}`. If the parent is an organization, use the value `organizations/{org_id\}`. + * parent: 'placeholder-value', + * // Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. Normally only `ACTIVE` projects are returned. + * showDeleted: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "permissions": [] + * // "nextPageToken": "my_nextPageToken", + * // "projects": [] * // } * } * @@ -5279,56 +7781,53 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - testIamPermissions( - params: Params$Resource$Organizations$Testiampermissions, + list( + params: Params$Resource$Projects$List, options: StreamMethodOptions ): Promise>; - testIamPermissions( - params?: Params$Resource$Organizations$Testiampermissions, - options?: MethodOptions - ): Promise>; - testIamPermissions( - params: Params$Resource$Organizations$Testiampermissions, + list( + params?: Params$Resource$Projects$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Projects$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - testIamPermissions( - params: Params$Resource$Organizations$Testiampermissions, + list( + params: Params$Resource$Projects$List, options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - testIamPermissions( - params: Params$Resource$Organizations$Testiampermissions, - callback: BodyResponseCallback + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - testIamPermissions( - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$List, + callback: BodyResponseCallback ): void; - testIamPermissions( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Organizations$Testiampermissions - | BodyResponseCallback + | Params$Resource$Projects$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { - let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Testiampermissions; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Testiampermissions; + params = {} as Params$Resource$Projects$List; options = {}; } @@ -5342,93 +7841,29 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: (rootUrl + '/v3/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Organizations$Get extends StandardParameters { - /** - * Required. The resource name of the Organization to fetch. This is the organization's relative path in the API, formatted as "organizations/[organizationId]". For example, "organizations/1234". - */ - name?: string; - } - export interface Params$Resource$Organizations$Getiampolicy extends StandardParameters { - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Organizations$Search extends StandardParameters { - /** - * Optional. The maximum number of organizations to return in the response. The server can return fewer organizations than requested. If unspecified, server picks an appropriate default. - */ - pageSize?: number; - /** - * Optional. A pagination token returned from a previous call to `SearchOrganizations` that indicates from where listing should continue. - */ - pageToken?: string; - /** - * Optional. An optional query string used to filter the Organizations to return in the response. Query rules are case-insensitive. ``` | Field | Description | |------------------|--------------------------------------------| | directoryCustomerId, owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by domain. | ``` Organizations may be queried by `directoryCustomerId` or by `domain`, where the domain is a G Suite domain, for example: * Query `directorycustomerid:123456789` returns Organization resources with `owner.directory_customer_id` equal to `123456789`. * Query `domain:google.com` returns Organization resources corresponding to the domain `google.com`. - */ - query?: string; - } - export interface Params$Resource$Organizations$Setiampolicy extends StandardParameters { - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Organizations$Testiampermissions extends StandardParameters { - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } - - export class Resource$Projects { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * Request that a new project be created. The result is an `Operation` which can be used to track the creation process. This process usually takes a few seconds, but can sometimes take much longer. The tracking `Operation` is automatically deleted after a few hours, so there is no need to call `DeleteOperation`. + * Move a project to another place in your resource hierarchy, under a new resource parent. Returns an operation which can be used to track the process of the project move workflow. Upon success, the `Operation.response` field will be populated with the moved project. The caller must have `resourcemanager.projects.move` permission on the project, on the project's current and proposed new parent. If project has no current parent, or it currently does not have an associated organization resource, you will also need the `resourcemanager.projects.setIamPolicy` permission in the project. * @example * ```js * // Before running the sample: @@ -5457,24 +7892,15 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.projects.create({ + * const res = await cloudresourcemanager.projects.move({ + * // Required. The name of the project to move. + * name: 'projects/my-project', + * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "configuredCapabilities": [], - * // "createTime": "my_createTime", - * // "deleteTime": "my_deleteTime", - * // "displayName": "my_displayName", - * // "etag": "my_etag", - * // "isManagementProject": false, - * // "labels": {}, - * // "name": "my_name", - * // "parent": "my_parent", - * // "projectId": "my_projectId", - * // "state": "my_state", - * // "tags": {}, - * // "updateTime": "my_updateTime" + * // "destinationParent": "my_destinationParent" * // } * }, * }); @@ -5502,32 +7928,32 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - create( - params: Params$Resource$Projects$Create, + move( + params: Params$Resource$Projects$Move, options: StreamMethodOptions ): Promise>; - create( - params?: Params$Resource$Projects$Create, + move( + params?: Params$Resource$Projects$Move, options?: MethodOptions ): Promise>; - create( - params: Params$Resource$Projects$Create, + move( + params: Params$Resource$Projects$Move, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Create, + move( + params: Params$Resource$Projects$Move, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Create, + move( + params: Params$Resource$Projects$Move, callback: BodyResponseCallback ): void; - create(callback: BodyResponseCallback): void; - create( + move(callback: BodyResponseCallback): void; + move( paramsOrCallback?: - | Params$Resource$Projects$Create + | Params$Resource$Projects$Move | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -5541,12 +7967,12 @@ export namespace cloudresourcemanager_v3 { | void | Promise> | Promise> { - let params = (paramsOrCallback || {}) as Params$Resource$Projects$Create; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Move; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Create; + params = {} as Params$Resource$Projects$Move; options = {}; } @@ -5560,15 +7986,15 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/projects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -5582,7 +8008,7 @@ export namespace cloudresourcemanager_v3 { } /** - * Marks the project identified by the specified `name` (for example, `projects/415104041262`) for deletion. This method will only affect the project if it has a lifecycle state of ACTIVE. This method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion starts at an unspecified time, at which point the Project is no longer accessible. Until the deletion completes, you can check the lifecycle state checked by retrieving the project with GetProject, and the project remains visible to ListProjects. However, you cannot update the project. After the deletion completes, the project is not retrievable by the GetProject, ListProjects, and SearchProjects methods. The caller must have `resourcemanager.projects.delete` permissions for this project. + * Updates the `display_name` and labels of the project identified by the specified `name` (for example, `projects/415104041262`). Deleting all labels requires an update mask for labels field. The caller must have `resourcemanager.projects.update` permission for this project. * @example * ```js * // Before running the sample: @@ -5611,9 +8037,31 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.projects.delete({ - * // Required. The name of the Project (for example, `projects/415104041262`). + * const res = await cloudresourcemanager.projects.patch({ + * // Output only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: `projects/415104041262` * name: 'projects/my-project', + * // Optional. An update mask to selectively update fields. + * updateMask: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "configuredCapabilities": [], + * // "createTime": "my_createTime", + * // "deleteTime": "my_deleteTime", + * // "displayName": "my_displayName", + * // "etag": "my_etag", + * // "isManagementProject": false, + * // "labels": {}, + * // "name": "my_name", + * // "parent": "my_parent", + * // "projectId": "my_projectId", + * // "state": "my_state", + * // "tags": {}, + * // "updateTime": "my_updateTime" + * // } + * }, * }); * console.log(res.data); * @@ -5639,32 +8087,32 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - delete( - params: Params$Resource$Projects$Delete, + patch( + params: Params$Resource$Projects$Patch, options: StreamMethodOptions ): Promise>; - delete( - params?: Params$Resource$Projects$Delete, + patch( + params?: Params$Resource$Projects$Patch, options?: MethodOptions ): Promise>; - delete( - params: Params$Resource$Projects$Delete, + patch( + params: Params$Resource$Projects$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Projects$Delete, + patch( + params: Params$Resource$Projects$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Projects$Delete, + patch( + params: Params$Resource$Projects$Patch, callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( + patch(callback: BodyResponseCallback): void; + patch( paramsOrCallback?: - | Params$Resource$Projects$Delete + | Params$Resource$Projects$Patch | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -5678,12 +8126,12 @@ export namespace cloudresourcemanager_v3 { | void | Promise> | Promise> { - let params = (paramsOrCallback || {}) as Params$Resource$Projects$Delete; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Delete; + params = {} as Params$Resource$Projects$Patch; options = {}; } @@ -5698,7 +8146,7 @@ export namespace cloudresourcemanager_v3 { options: Object.assign( { url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', apiVersion: '', }, options @@ -5719,7 +8167,7 @@ export namespace cloudresourcemanager_v3 { } /** - * Retrieves the project identified by the specified `name` (for example, `projects/415104041262`). The caller must have `resourcemanager.projects.get` permission for this project. + * Search for projects that the caller has the `resourcemanager.projects.get` permission on, and also satisfy the specified query. This method returns projects in an unspecified order. This method is eventually consistent with project mutations; this means that a newly created project may not appear in the results or recent updates to an existing project may not be reflected in the results. To retrieve the latest state of a project, use the GetProject method. * @example * ```js * // Before running the sample: @@ -5751,27 +8199,20 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.projects.get({ - * // Required. The name of the project (for example, `projects/415104041262`). - * name: 'projects/my-project', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "configuredCapabilities": [], - * // "createTime": "my_createTime", - * // "deleteTime": "my_deleteTime", - * // "displayName": "my_displayName", - * // "etag": "my_etag", - * // "isManagementProject": false, - * // "labels": {}, - * // "name": "my_name", - * // "parent": "my_parent", - * // "projectId": "my_projectId", - * // "state": "my_state", - * // "tags": {}, - * // "updateTime": "my_updateTime" + * const res = await cloudresourcemanager.projects.search({ + * // Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. + * pageSize: 'placeholder-value', + * // Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. + * pageToken: 'placeholder-value', + * // Optional. A query string for searching for projects that the caller has `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it will return results that match any of the fields. Some eligible fields are: ``` | Field | Description | |-------------------------|----------------------------------------------| | displayName, name | Filters by displayName. | | parent | Project's parent (for example: folders/123, organizations/x). Prefer parent field over parent.type and parent.id.| | parent.type | Parent's type: `folder` or `organization`. | | parent.id | Parent's id number (for example: 123) | | id, projectId | Filters by projectId. | | state, lifecycleState | Filters by state. | | labels | Filters by label name or value. | | labels.\ (where *key* is the name of a label) | Filters by label name.| ``` Search expressions are case insensitive. Some examples queries: ``` | Query | Description | |------------------|-----------------------------------------------------| | name:how* | The project's name starts with "how". | | name:Howl | The project's name is `Howl` or `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | | labels.color:* | The project has the label `color`. | | labels.color:red | The project's label `color` has the value `red`. | | labels.color:red labels.size:big | The project's label `color` has the value `red` or its label `size` has the value `big`. | ``` If no query is specified, the call will return projects for which the user has the `resourcemanager.projects.get` permission. + * query: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "projects": [] * // } * } * @@ -5787,51 +8228,53 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - get( - params: Params$Resource$Projects$Get, + search( + params: Params$Resource$Projects$Search, options: StreamMethodOptions ): Promise>; - get( - params?: Params$Resource$Projects$Get, + search( + params?: Params$Resource$Projects$Search, options?: MethodOptions - ): Promise>; - get( - params: Params$Resource$Projects$Get, + ): Promise>; + search( + params: Params$Resource$Projects$Search, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Projects$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + search( + params: Params$Resource$Projects$Search, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Projects$Get, - callback: BodyResponseCallback + search( + params: Params$Resource$Projects$Search, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + search(callback: BodyResponseCallback): void; + search( paramsOrCallback?: - | Params$Resource$Projects$Get - | BodyResponseCallback + | Params$Resource$Projects$Search + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { - let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Search; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Get; + params = {} as Params$Resource$Projects$Search; options = {}; } @@ -5845,29 +8288,32 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/projects:search').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Returns the IAM access control policy for the specified project, in the format `projects/{ProjectIdOrNumber\}` e.g. projects/123. Permission is denied if the policy or the resource do not exist. + * Sets the IAM access control policy for the specified project, in the format `projects/{ProjectIdOrNumber\}` e.g. projects/123. CAUTION: This method will replace the existing policy, and cannot be used to append additional IAM settings. Note: Removing service accounts from policies or changing their roles can render services completely inoperable. It is important to understand how the service account is being used before removing or updating its roles. The following constraints apply when using `setIamPolicy()`: + Project does not support `allUsers` and `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The owner role can be granted to a `user`, `serviceAccount`, or a group that is part of an organization. For example, group@myownpersonaldomain.com could be added as an owner to a project in the myownpersonaldomain.com organization, but not the examplepetstore.com organization. + Service accounts can be made owners of a project directly without any restrictions. However, to be added as an owner, a user must be invited using the Cloud Platform console and must accept the invitation. + A user cannot be granted the owner role using `setIamPolicy()`. The user must be granted the owner role using the Cloud Platform Console and must explicitly accept the invitation. + Invitations to grant the owner role cannot be sent using `setIamPolicy()`; they must be sent only using the Cloud Platform Console. + If the project is not part of an organization, there must be at least one owner who has accepted the Terms of Service (ToS) agreement in the policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner from the policy will fail. This restriction also applies to legacy projects that no longer have owners who have accepted the ToS. Edits to IAM policies will be rejected until the lack of a ToS-accepting owner is rectified. If the project is part of an organization, you can remove all owners, potentially making the organization inaccessible. * @example * ```js * // Before running the sample: @@ -5888,10 +8334,7 @@ export namespace cloudresourcemanager_v3 { * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. - * scopes: [ - * 'https://www.googleapis.com/auth/cloud-platform', - * 'https://www.googleapis.com/auth/cloud-platform.read-only', - * ], + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], * }); * * // Acquire an auth client, and bind it to all future calls @@ -5899,15 +8342,16 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.projects.getIamPolicy({ - * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * const res = await cloudresourcemanager.projects.setIamPolicy({ + * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. * resource: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "options": {} + * // "policy": {}, + * // "updateMask": "my_updateMask" * // } * }, * }); @@ -5934,32 +8378,32 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - getIamPolicy( - params: Params$Resource$Projects$Getiampolicy, + setIamPolicy( + params: Params$Resource$Projects$Setiampolicy, options: StreamMethodOptions ): Promise>; - getIamPolicy( - params?: Params$Resource$Projects$Getiampolicy, + setIamPolicy( + params?: Params$Resource$Projects$Setiampolicy, options?: MethodOptions ): Promise>; - getIamPolicy( - params: Params$Resource$Projects$Getiampolicy, + setIamPolicy( + params: Params$Resource$Projects$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - getIamPolicy( - params: Params$Resource$Projects$Getiampolicy, + setIamPolicy( + params: Params$Resource$Projects$Setiampolicy, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - getIamPolicy( - params: Params$Resource$Projects$Getiampolicy, + setIamPolicy( + params: Params$Resource$Projects$Setiampolicy, callback: BodyResponseCallback ): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( paramsOrCallback?: - | Params$Resource$Projects$Getiampolicy + | Params$Resource$Projects$Setiampolicy | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -5974,12 +8418,12 @@ export namespace cloudresourcemanager_v3 { | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Getiampolicy; + {}) as Params$Resource$Projects$Setiampolicy; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Getiampolicy; + params = {} as Params$Resource$Projects$Setiampolicy; options = {}; } @@ -5993,7 +8437,7 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace( + url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace( /([^:]\/)\/+/g, '$1' ), @@ -6018,7 +8462,7 @@ export namespace cloudresourcemanager_v3 { } /** - * Lists projects that are direct children of the specified folder or organization resource. `list()` provides a strongly consistent view of the projects underneath the specified parent resource. `list()` returns projects sorted based upon the (ascending) lexical ordering of their `display_name`. The caller must have `resourcemanager.projects.list` permission on the identified parent. + * Returns permissions that a caller has on the specified project, in the format `projects/{ProjectIdOrNumber\}` e.g. projects/123.. * @example * ```js * // Before running the sample: @@ -6050,22 +8494,23 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.projects.list({ - * // Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. - * pageSize: 'placeholder-value', - * // Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. - * pageToken: 'placeholder-value', - * // Required. The name of the parent resource whose projects are being listed. Only children of this parent resource are listed; descendants are not listed. If the parent is a folder, use the value `folders/{folder_id\}`. If the parent is an organization, use the value `organizations/{org_id\}`. - * parent: 'placeholder-value', - * // Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. Normally only `ACTIVE` projects are returned. - * showDeleted: 'placeholder-value', + * const res = await cloudresourcemanager.projects.testIamPermissions({ + * // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * resource: 'projects/my-project', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "permissions": [] + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "nextPageToken": "my_nextPageToken", - * // "projects": [] + * // "permissions": [] * // } * } * @@ -6081,53 +8526,56 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - list( - params: Params$Resource$Projects$List, + testIamPermissions( + params: Params$Resource$Projects$Testiampermissions, options: StreamMethodOptions ): Promise>; - list( - params?: Params$Resource$Projects$List, + testIamPermissions( + params?: Params$Resource$Projects$Testiampermissions, options?: MethodOptions - ): Promise>; - list( - params: Params$Resource$Projects$List, + ): Promise>; + testIamPermissions( + params: Params$Resource$Projects$Testiampermissions, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$List, + testIamPermissions( + params: Params$Resource$Projects$Testiampermissions, options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$List, - callback: BodyResponseCallback + testIamPermissions( + params: Params$Resource$Projects$Testiampermissions, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; - list( + testIamPermissions( + callback: BodyResponseCallback + ): void; + testIamPermissions( paramsOrCallback?: - | Params$Resource$Projects$List - | BodyResponseCallback + | Params$Resource$Projects$Testiampermissions + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { - let params = (paramsOrCallback || {}) as Params$Resource$Projects$List; + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Testiampermissions; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$List; + params = {} as Params$Resource$Projects$Testiampermissions; options = {}; } @@ -6141,29 +8589,32 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/projects').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', apiVersion: '', }, options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Move a project to another place in your resource hierarchy, under a new resource parent. Returns an operation which can be used to track the process of the project move workflow. Upon success, the `Operation.response` field will be populated with the moved project. The caller must have `resourcemanager.projects.move` permission on the project, on the project's current and proposed new parent. If project has no current parent, or it currently does not have an associated organization resource, you will also need the `resourcemanager.projects.setIamPolicy` permission in the project. + * Restores the project identified by the specified `name` (for example, `projects/415104041262`). You can only use this method for a project that has a lifecycle state of DELETE_REQUESTED. After deletion starts, the project cannot be restored. The caller must have `resourcemanager.projects.undelete` permission for this project. * @example * ```js * // Before running the sample: @@ -6192,16 +8643,14 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.projects.move({ - * // Required. The name of the project to move. + * const res = await cloudresourcemanager.projects.undelete({ + * // Required. The name of the project (for example, `projects/415104041262`). Required. * name: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters - * // { - * // "destinationParent": "my_destinationParent" - * // } + * // {} * }, * }); * console.log(res.data); @@ -6228,32 +8677,32 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - move( - params: Params$Resource$Projects$Move, + undelete( + params: Params$Resource$Projects$Undelete, options: StreamMethodOptions ): Promise>; - move( - params?: Params$Resource$Projects$Move, + undelete( + params?: Params$Resource$Projects$Undelete, options?: MethodOptions ): Promise>; - move( - params: Params$Resource$Projects$Move, + undelete( + params: Params$Resource$Projects$Undelete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - move( - params: Params$Resource$Projects$Move, + undelete( + params: Params$Resource$Projects$Undelete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - move( - params: Params$Resource$Projects$Move, + undelete( + params: Params$Resource$Projects$Undelete, callback: BodyResponseCallback ): void; - move(callback: BodyResponseCallback): void; - move( + undelete(callback: BodyResponseCallback): void; + undelete( paramsOrCallback?: - | Params$Resource$Projects$Move + | Params$Resource$Projects$Undelete | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -6267,12 +8716,13 @@ export namespace cloudresourcemanager_v3 { | void | Promise> | Promise> { - let params = (paramsOrCallback || {}) as Params$Resource$Projects$Move; + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Undelete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Move; + params = {} as Params$Resource$Projects$Undelete; options = {}; } @@ -6286,7 +8736,10 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:undelete').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'POST', apiVersion: '', }, @@ -6306,9 +8759,137 @@ export namespace cloudresourcemanager_v3 { return createAPIRequest(parameters); } } + } + export interface Params$Resource$Projects$Create extends StandardParameters { /** - * Updates the `display_name` and labels of the project identified by the specified `name` (for example, `projects/415104041262`). Deleting all labels requires an update mask for labels field. The caller must have `resourcemanager.projects.update` permission for this project. + * Request body metadata + */ + requestBody?: Schema$Project; + } + export interface Params$Resource$Projects$Delete extends StandardParameters { + /** + * Required. The name of the Project (for example, `projects/415104041262`). + */ + name?: string; + } + export interface Params$Resource$Projects$Get extends StandardParameters { + /** + * Required. The name of the project (for example, `projects/415104041262`). + */ + name?: string; + } + export interface Params$Resource$Projects$Getiampolicy extends StandardParameters { + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$List extends StandardParameters { + /** + * Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. + */ + pageSize?: number; + /** + * Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. + */ + pageToken?: string; + /** + * Required. The name of the parent resource whose projects are being listed. Only children of this parent resource are listed; descendants are not listed. If the parent is a folder, use the value `folders/{folder_id\}`. If the parent is an organization, use the value `organizations/{org_id\}`. + */ + parent?: string; + /** + * Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. Normally only `ACTIVE` projects are returned. + */ + showDeleted?: boolean; + } + export interface Params$Resource$Projects$Move extends StandardParameters { + /** + * Required. The name of the project to move. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$MoveProjectRequest; + } + export interface Params$Resource$Projects$Patch extends StandardParameters { + /** + * Output only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: `projects/415104041262` + */ + name?: string; + /** + * Optional. An update mask to selectively update fields. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Project; + } + export interface Params$Resource$Projects$Search extends StandardParameters { + /** + * Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. + */ + pageSize?: number; + /** + * Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. + */ + pageToken?: string; + /** + * Optional. A query string for searching for projects that the caller has `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it will return results that match any of the fields. Some eligible fields are: ``` | Field | Description | |-------------------------|----------------------------------------------| | displayName, name | Filters by displayName. | | parent | Project's parent (for example: folders/123, organizations/x). Prefer parent field over parent.type and parent.id.| | parent.type | Parent's type: `folder` or `organization`. | | parent.id | Parent's id number (for example: 123) | | id, projectId | Filters by projectId. | | state, lifecycleState | Filters by state. | | labels | Filters by label name or value. | | labels.\ (where *key* is the name of a label) | Filters by label name.| ``` Search expressions are case insensitive. Some examples queries: ``` | Query | Description | |------------------|-----------------------------------------------------| | name:how* | The project's name starts with "how". | | name:Howl | The project's name is `Howl` or `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | | labels.color:* | The project has the label `color`. | | labels.color:red | The project's label `color` has the value `red`. | | labels.color:red labels.size:big | The project's label `color` has the value `red` or its label `size` has the value `big`. | ``` If no query is specified, the call will return projects for which the user has the `resourcemanager.projects.get` permission. + */ + query?: string; + } + export interface Params$Resource$Projects$Setiampolicy extends StandardParameters { + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Testiampermissions extends StandardParameters { + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Projects$Undelete extends StandardParameters { + /** + * Required. The name of the project (for example, `projects/415104041262`). Required. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$UndeleteProjectRequest; + } + + export class Resource$Projects$Capabilityconfigs { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a CapabilityConfig triggers the creation of a Management Project if one is not supplied. * @example * ```js * // Before running the sample: @@ -6337,28 +8918,24 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.projects.patch({ - * // Output only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: `projects/415104041262` - * name: 'projects/my-project', - * // Optional. An update mask to selectively update fields. - * updateMask: 'placeholder-value', + * const res = await cloudresourcemanager.projects.capabilityConfigs.create({ + * // Required. The user-assigned ID for the CapabilityConfig, which will become the final component of the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123` + * capabilityConfigId: 'placeholder-value', + * // Required. The parent resource under which the CapabilityConfig will be created. Format: `organizations/{organization_id\}` or `folders/{folder_id\}` or `projects/{project_number\}` + * parent: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "configuredCapabilities": [], + * // "boundaries": [], * // "createTime": "my_createTime", - * // "deleteTime": "my_deleteTime", * // "displayName": "my_displayName", * // "etag": "my_etag", - * // "isManagementProject": false, - * // "labels": {}, + * // "managementProject": "my_managementProject", * // "name": "my_name", - * // "parent": "my_parent", - * // "projectId": "my_projectId", * // "state": "my_state", - * // "tags": {}, + * // "types": [], * // "updateTime": "my_updateTime" * // } * }, @@ -6387,32 +8964,32 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - patch( - params: Params$Resource$Projects$Patch, + create( + params: Params$Resource$Projects$Capabilityconfigs$Create, options: StreamMethodOptions ): Promise>; - patch( - params?: Params$Resource$Projects$Patch, + create( + params?: Params$Resource$Projects$Capabilityconfigs$Create, options?: MethodOptions ): Promise>; - patch( - params: Params$Resource$Projects$Patch, + create( + params: Params$Resource$Projects$Capabilityconfigs$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Projects$Patch, + create( + params: Params$Resource$Projects$Capabilityconfigs$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Projects$Patch, + create( + params: Params$Resource$Projects$Capabilityconfigs$Create, callback: BodyResponseCallback ): void; - patch(callback: BodyResponseCallback): void; - patch( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Projects$Patch + | Params$Resource$Projects$Capabilityconfigs$Create | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -6426,12 +9003,13 @@ export namespace cloudresourcemanager_v3 { | void | Promise> | Promise> { - let params = (paramsOrCallback || {}) as Params$Resource$Projects$Patch; + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Capabilityconfigs$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Patch; + params = {} as Params$Resource$Projects$Capabilityconfigs$Create; options = {}; } @@ -6445,15 +9023,18 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+parent}/capabilityConfigs').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', apiVersion: '', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -6467,7 +9048,7 @@ export namespace cloudresourcemanager_v3 { } /** - * Search for projects that the caller has the `resourcemanager.projects.get` permission on, and also satisfy the specified query. This method returns projects in an unspecified order. This method is eventually consistent with project mutations; this means that a newly created project may not appear in the results or recent updates to an existing project may not be reflected in the results. To retrieve the latest state of a project, use the GetProject method. + * Deletes the CapabilityConfig identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). * @example * ```js * // Before running the sample: @@ -6488,10 +9069,7 @@ export namespace cloudresourcemanager_v3 { * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. - * scopes: [ - * 'https://www.googleapis.com/auth/cloud-platform', - * 'https://www.googleapis.com/auth/cloud-platform.read-only', - * ], + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], * }); * * // Acquire an auth client, and bind it to all future calls @@ -6499,20 +9077,19 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.projects.search({ - * // Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. - * pageSize: 'placeholder-value', - * // Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. - * pageToken: 'placeholder-value', - * // Optional. A query string for searching for projects that the caller has `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it will return results that match any of the fields. Some eligible fields are: ``` | Field | Description | |-------------------------|----------------------------------------------| | displayName, name | Filters by displayName. | | parent | Project's parent (for example: folders/123, organizations/x). Prefer parent field over parent.type and parent.id.| | parent.type | Parent's type: `folder` or `organization`. | | parent.id | Parent's id number (for example: 123) | | id, projectId | Filters by projectId. | | state, lifecycleState | Filters by state. | | labels | Filters by label name or value. | | labels.\ (where *key* is the name of a label) | Filters by label name.| ``` Search expressions are case insensitive. Some examples queries: ``` | Query | Description | |------------------|-----------------------------------------------------| | name:how* | The project's name starts with "how". | | name:Howl | The project's name is `Howl` or `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | | labels.color:* | The project has the label `color`. | | labels.color:red | The project's label `color` has the value `red`. | | labels.color:red labels.size:big | The project's label `color` has the value `red` or its label `size` has the value `big`. | ``` If no query is specified, the call will return projects for which the user has the `resourcemanager.projects.get` permission. - * query: 'placeholder-value', + * const res = await cloudresourcemanager.projects.capabilityConfigs.delete({ + * // Required. The name of the CapabilityConfig to delete. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` + * name: 'projects/my-project/capabilityConfigs/my-capabilityConfig', * }); * console.log(res.data); * * // Example response * // { - * // "nextPageToken": "my_nextPageToken", - * // "projects": [] + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} * // } * } * @@ -6528,53 +9105,52 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - search( - params: Params$Resource$Projects$Search, + delete( + params: Params$Resource$Projects$Capabilityconfigs$Delete, options: StreamMethodOptions ): Promise>; - search( - params?: Params$Resource$Projects$Search, + delete( + params?: Params$Resource$Projects$Capabilityconfigs$Delete, options?: MethodOptions - ): Promise>; - search( - params: Params$Resource$Projects$Search, + ): Promise>; + delete( + params: Params$Resource$Projects$Capabilityconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - search( - params: Params$Resource$Projects$Search, - options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + delete( + params: Params$Resource$Projects$Capabilityconfigs$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - search( - params: Params$Resource$Projects$Search, - callback: BodyResponseCallback + delete( + params: Params$Resource$Projects$Capabilityconfigs$Delete, + callback: BodyResponseCallback ): void; - search(callback: BodyResponseCallback): void; - search( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Projects$Search - | BodyResponseCallback + | Params$Resource$Projects$Capabilityconfigs$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback - | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { - let params = (paramsOrCallback || {}) as Params$Resource$Projects$Search; + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Capabilityconfigs$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Search; + params = {} as Params$Resource$Projects$Capabilityconfigs$Delete; options = {}; } @@ -6588,32 +9164,29 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/projects:search').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', apiVersion: '', }, options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Sets the IAM access control policy for the specified project, in the format `projects/{ProjectIdOrNumber\}` e.g. projects/123. CAUTION: This method will replace the existing policy, and cannot be used to append additional IAM settings. Note: Removing service accounts from policies or changing their roles can render services completely inoperable. It is important to understand how the service account is being used before removing or updating its roles. The following constraints apply when using `setIamPolicy()`: + Project does not support `allUsers` and `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The owner role can be granted to a `user`, `serviceAccount`, or a group that is part of an organization. For example, group@myownpersonaldomain.com could be added as an owner to a project in the myownpersonaldomain.com organization, but not the examplepetstore.com organization. + Service accounts can be made owners of a project directly without any restrictions. However, to be added as an owner, a user must be invited using the Cloud Platform console and must accept the invitation. + A user cannot be granted the owner role using `setIamPolicy()`. The user must be granted the owner role using the Cloud Platform Console and must explicitly accept the invitation. + Invitations to grant the owner role cannot be sent using `setIamPolicy()`; they must be sent only using the Cloud Platform Console. + If the project is not part of an organization, there must be at least one owner who has accepted the Terms of Service (ToS) agreement in the policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner from the policy will fail. This restriction also applies to legacy projects that no longer have owners who have accepted the ToS. Edits to IAM policies will be rejected until the lack of a ToS-accepting owner is rectified. If the project is part of an organization, you can remove all owners, potentially making the organization inaccessible. + * Retrieves the Capability Config identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). * @example * ```js * // Before running the sample: @@ -6634,7 +9207,10 @@ export namespace cloudresourcemanager_v3 { * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. - * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/cloud-platform.read-only', + * ], * }); * * // Acquire an auth client, and bind it to all future calls @@ -6642,27 +9218,23 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.projects.setIamPolicy({ - * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. - * resource: 'projects/my-project', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "policy": {}, - * // "updateMask": "my_updateMask" - * // } - * }, + * const res = await cloudresourcemanager.projects.capabilityConfigs.get({ + * // Required. The name of the CapabilityConfig to retrieve. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` Example: `folders/123456789/capabilityConfigs/my-capability-config` + * name: 'projects/my-project/capabilityConfigs/my-capabilityConfig', * }); * console.log(res.data); * * // Example response * // { - * // "auditConfigs": [], - * // "bindings": [], + * // "boundaries": [], + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", * // "etag": "my_etag", - * // "version": 0 + * // "managementProject": "my_managementProject", + * // "name": "my_name", + * // "state": "my_state", + * // "types": [], + * // "updateTime": "my_updateTime" * // } * } * @@ -6678,52 +9250,53 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - setIamPolicy( - params: Params$Resource$Projects$Setiampolicy, + get( + params: Params$Resource$Projects$Capabilityconfigs$Get, options: StreamMethodOptions ): Promise>; - setIamPolicy( - params?: Params$Resource$Projects$Setiampolicy, + get( + params?: Params$Resource$Projects$Capabilityconfigs$Get, options?: MethodOptions - ): Promise>; - setIamPolicy( - params: Params$Resource$Projects$Setiampolicy, + ): Promise>; + get( + params: Params$Resource$Projects$Capabilityconfigs$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - setIamPolicy( - params: Params$Resource$Projects$Setiampolicy, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Capabilityconfigs$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - setIamPolicy( - params: Params$Resource$Projects$Setiampolicy, - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Capabilityconfigs$Get, + callback: BodyResponseCallback ): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Projects$Setiampolicy - | BodyResponseCallback + | Params$Resource$Projects$Capabilityconfigs$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Setiampolicy; + {}) as Params$Resource$Projects$Capabilityconfigs$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Setiampolicy; + params = {} as Params$Resource$Projects$Capabilityconfigs$Get; options = {}; } @@ -6737,32 +9310,29 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Returns permissions that a caller has on the specified project, in the format `projects/{ProjectIdOrNumber\}` e.g. projects/123.. + * Lists CapabilityConfigs that are direct children of the specified organization, folder or project resource. * @example * ```js * // Before running the sample: @@ -6794,23 +9364,20 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.projects.testIamPermissions({ - * // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. - * resource: 'projects/my-project', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "permissions": [] - * // } - * }, + * const res = await cloudresourcemanager.projects.capabilityConfigs.list({ + * // Optional. The maximum number of CapabilityConfigs to return in the response. The service may return fewer CapabilityConfigs than requested. If unspecified, at most 100 CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be coerced to 100. + * pageSize: 'placeholder-value', + * // Optional. A pagination token received from a previous call to `ListCapabilityConfigs` that indicates from where listing should continue. Provide this to retrieve the subsequent page. + * pageToken: 'placeholder-value', + * // Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: `organizations/{organization_id\}` or `folders/{folder_id\}` + * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { - * // "permissions": [] + * // "capabilityConfigs": [], + * // "nextPageToken": "my_nextPageToken" * // } * } * @@ -6826,56 +9393,57 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - testIamPermissions( - params: Params$Resource$Projects$Testiampermissions, + list( + params: Params$Resource$Projects$Capabilityconfigs$List, options: StreamMethodOptions ): Promise>; - testIamPermissions( - params?: Params$Resource$Projects$Testiampermissions, + list( + params?: Params$Resource$Projects$Capabilityconfigs$List, options?: MethodOptions - ): Promise>; - testIamPermissions( - params: Params$Resource$Projects$Testiampermissions, + ): Promise>; + list( + params: Params$Resource$Projects$Capabilityconfigs$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - testIamPermissions( - params: Params$Resource$Projects$Testiampermissions, + list( + params: Params$Resource$Projects$Capabilityconfigs$List, options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - testIamPermissions( - params: Params$Resource$Projects$Testiampermissions, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Capabilityconfigs$List, + callback: BodyResponseCallback ): void; - testIamPermissions( - callback: BodyResponseCallback + list( + callback: BodyResponseCallback ): void; - testIamPermissions( + list( paramsOrCallback?: - | Params$Resource$Projects$Testiampermissions - | BodyResponseCallback + | Params$Resource$Projects$Capabilityconfigs$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Testiampermissions; + {}) as Params$Resource$Projects$Capabilityconfigs$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Testiampermissions; + params = {} as Params$Resource$Projects$Capabilityconfigs$List; options = {}; } @@ -6889,32 +9457,34 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace( + url: (rootUrl + '/v3/{+parent}/capabilityConfigs').replace( /([^:]\/)\/+/g, '$1' ), - method: 'POST', + method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } /** - * Restores the project identified by the specified `name` (for example, `projects/415104041262`). You can only use this method for a project that has a lifecycle state of DELETE_REQUESTED. After deletion starts, the project cannot be restored. The caller must have `resourcemanager.projects.undelete` permission for this project. + * Updates the `display_name`, `types` and `boundaries` of the CapabilityConfig identified by the specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). * @example * ```js * // Before running the sample: @@ -6943,14 +9513,26 @@ export namespace cloudresourcemanager_v3 { * google.options({auth: authClient}); * * // Do the magic - * const res = await cloudresourcemanager.projects.undelete({ - * // Required. The name of the project (for example, `projects/415104041262`). Required. - * name: 'projects/my-project', + * const res = await cloudresourcemanager.projects.capabilityConfigs.patch({ + * // Identifier. The unique resource name of the CapabilityConfig. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` + * name: 'projects/my-project/capabilityConfigs/my-capabilityConfig', + * // Optional. The list of fields to update. + * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters - * // {} + * // { + * // "boundaries": [], + * // "createTime": "my_createTime", + * // "displayName": "my_displayName", + * // "etag": "my_etag", + * // "managementProject": "my_managementProject", + * // "name": "my_name", + * // "state": "my_state", + * // "types": [], + * // "updateTime": "my_updateTime" + * // } * }, * }); * console.log(res.data); @@ -6977,32 +9559,32 @@ export namespace cloudresourcemanager_v3 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - undelete( - params: Params$Resource$Projects$Undelete, + patch( + params: Params$Resource$Projects$Capabilityconfigs$Patch, options: StreamMethodOptions ): Promise>; - undelete( - params?: Params$Resource$Projects$Undelete, + patch( + params?: Params$Resource$Projects$Capabilityconfigs$Patch, options?: MethodOptions ): Promise>; - undelete( - params: Params$Resource$Projects$Undelete, + patch( + params: Params$Resource$Projects$Capabilityconfigs$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - undelete( - params: Params$Resource$Projects$Undelete, + patch( + params: Params$Resource$Projects$Capabilityconfigs$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - undelete( - params: Params$Resource$Projects$Undelete, + patch( + params: Params$Resource$Projects$Capabilityconfigs$Patch, callback: BodyResponseCallback ): void; - undelete(callback: BodyResponseCallback): void; - undelete( + patch(callback: BodyResponseCallback): void; + patch( paramsOrCallback?: - | Params$Resource$Projects$Undelete + | Params$Resource$Projects$Capabilityconfigs$Patch | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -7017,12 +9599,12 @@ export namespace cloudresourcemanager_v3 { | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Undelete; + {}) as Params$Resource$Projects$Capabilityconfigs$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Undelete; + params = {} as Params$Resource$Projects$Capabilityconfigs$Patch; options = {}; } @@ -7036,11 +9618,8 @@ export namespace cloudresourcemanager_v3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v3/{+name}:undelete').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', apiVersion: '', }, options @@ -7061,125 +9640,61 @@ export namespace cloudresourcemanager_v3 { } } - export interface Params$Resource$Projects$Create extends StandardParameters { - /** - * Request body metadata - */ - requestBody?: Schema$Project; - } - export interface Params$Resource$Projects$Delete extends StandardParameters { - /** - * Required. The name of the Project (for example, `projects/415104041262`). - */ - name?: string; - } - export interface Params$Resource$Projects$Get extends StandardParameters { + export interface Params$Resource$Projects$Capabilityconfigs$Create extends StandardParameters { /** - * Required. The name of the project (for example, `projects/415104041262`). + * Required. The user-assigned ID for the CapabilityConfig, which will become the final component of the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123` */ - name?: string; - } - export interface Params$Resource$Projects$Getiampolicy extends StandardParameters { + capabilityConfigId?: string; /** - * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * Required. The parent resource under which the CapabilityConfig will be created. Format: `organizations/{organization_id\}` or `folders/{folder_id\}` or `projects/{project_number\}` */ - resource?: string; + parent?: string; /** * Request body metadata */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Projects$List extends StandardParameters { - /** - * Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. - */ - pageSize?: number; - /** - * Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. - */ - pageToken?: string; - /** - * Required. The name of the parent resource whose projects are being listed. Only children of this parent resource are listed; descendants are not listed. If the parent is a folder, use the value `folders/{folder_id\}`. If the parent is an organization, use the value `organizations/{org_id\}`. - */ - parent?: string; - /** - * Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. Normally only `ACTIVE` projects are returned. - */ - showDeleted?: boolean; + requestBody?: Schema$CapabilityConfig; } - export interface Params$Resource$Projects$Move extends StandardParameters { + export interface Params$Resource$Projects$Capabilityconfigs$Delete extends StandardParameters { /** - * Required. The name of the project to move. + * Required. The name of the CapabilityConfig to delete. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` */ name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$MoveProjectRequest; } - export interface Params$Resource$Projects$Patch extends StandardParameters { + export interface Params$Resource$Projects$Capabilityconfigs$Get extends StandardParameters { /** - * Output only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: `projects/415104041262` + * Required. The name of the CapabilityConfig to retrieve. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` Example: `folders/123456789/capabilityConfigs/my-capability-config` */ name?: string; - /** - * Optional. An update mask to selectively update fields. - */ - updateMask?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Project; } - export interface Params$Resource$Projects$Search extends StandardParameters { + export interface Params$Resource$Projects$Capabilityconfigs$List extends StandardParameters { /** - * Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. + * Optional. The maximum number of CapabilityConfigs to return in the response. The service may return fewer CapabilityConfigs than requested. If unspecified, at most 100 CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be coerced to 100. */ pageSize?: number; /** - * Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. + * Optional. A pagination token received from a previous call to `ListCapabilityConfigs` that indicates from where listing should continue. Provide this to retrieve the subsequent page. */ pageToken?: string; /** - * Optional. A query string for searching for projects that the caller has `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it will return results that match any of the fields. Some eligible fields are: ``` | Field | Description | |-------------------------|----------------------------------------------| | displayName, name | Filters by displayName. | | parent | Project's parent (for example: folders/123, organizations/x). Prefer parent field over parent.type and parent.id.| | parent.type | Parent's type: `folder` or `organization`. | | parent.id | Parent's id number (for example: 123) | | id, projectId | Filters by projectId. | | state, lifecycleState | Filters by state. | | labels | Filters by label name or value. | | labels.\ (where *key* is the name of a label) | Filters by label name.| ``` Search expressions are case insensitive. Some examples queries: ``` | Query | Description | |------------------|-----------------------------------------------------| | name:how* | The project's name starts with "how". | | name:Howl | The project's name is `Howl` or `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | | labels.color:* | The project has the label `color`. | | labels.color:red | The project's label `color` has the value `red`. | | labels.color:red labels.size:big | The project's label `color` has the value `red` or its label `size` has the value `big`. | ``` If no query is specified, the call will return projects for which the user has the `resourcemanager.projects.get` permission. - */ - query?: string; - } - export interface Params$Resource$Projects$Setiampolicy extends StandardParameters { - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata + * Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: `organizations/{organization_id\}` or `folders/{folder_id\}` */ - requestBody?: Schema$SetIamPolicyRequest; + parent?: string; } - export interface Params$Resource$Projects$Testiampermissions extends StandardParameters { - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. - */ - resource?: string; - + export interface Params$Resource$Projects$Capabilityconfigs$Patch extends StandardParameters { /** - * Request body metadata + * Identifier. The unique resource name of the CapabilityConfig. Format: `organizations/{organization\}/capabilityConfigs/{capabilityConfig\}` or, `folders/{folder\}/capabilityConfigs/{capabilityConfig\}` or, `projects/{project\}/capabilityConfigs/{capabilityConfig\}` */ - requestBody?: Schema$TestIamPermissionsRequest; - } - export interface Params$Resource$Projects$Undelete extends StandardParameters { + name?: string; /** - * Required. The name of the project (for example, `projects/415104041262`). Required. + * Optional. The list of fields to update. */ - name?: string; + updateMask?: string; /** * Request body metadata */ - requestBody?: Schema$UndeleteProjectRequest; + requestBody?: Schema$CapabilityConfig; } export class Resource$Tagbindings { diff --git a/src/apis/cloudscheduler/index.ts b/src/apis/cloudscheduler/index.ts index 17be20f5fa..e2f79281a4 100644 --- a/src/apis/cloudscheduler/index.ts +++ b/src/apis/cloudscheduler/index.ts @@ -58,4 +58,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudsearch/index.ts b/src/apis/cloudsearch/index.ts index a223e89131..b51d0590d4 100644 --- a/src/apis/cloudsearch/index.ts +++ b/src/apis/cloudsearch/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudshell/index.ts b/src/apis/cloudshell/index.ts index 7059d62379..c335deff92 100644 --- a/src/apis/cloudshell/index.ts +++ b/src/apis/cloudshell/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudsupport/index.ts b/src/apis/cloudsupport/index.ts index 307247ddee..d6de0b99dc 100644 --- a/src/apis/cloudsupport/index.ts +++ b/src/apis/cloudsupport/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudtasks/index.ts b/src/apis/cloudtasks/index.ts index be3f4cee24..b13ddcf3ad 100644 --- a/src/apis/cloudtasks/index.ts +++ b/src/apis/cloudtasks/index.ts @@ -68,4 +68,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/cloudtrace/index.ts b/src/apis/cloudtrace/index.ts index 9e081f171f..33c8217951 100644 --- a/src/apis/cloudtrace/index.ts +++ b/src/apis/cloudtrace/index.ts @@ -68,4 +68,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/composer/index.ts b/src/apis/composer/index.ts index 78785fcef5..df19d51ef8 100644 --- a/src/apis/composer/index.ts +++ b/src/apis/composer/index.ts @@ -49,4 +49,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/compute/alpha.ts b/src/apis/compute/alpha.ts index 3b7d19bc57..9604efa818 100644 --- a/src/apis/compute/alpha.ts +++ b/src/apis/compute/alpha.ts @@ -5986,6 +5986,12 @@ export namespace compute_alpha { * Full machine-type names, e.g. "n1-standard-16". */ machineTypes?: string[] | null; + /** + * Optional. Rank when prioritizing the shape flexibilities. + * The instance selections are considered in the ascending order of the + * rank. If not set, defaults to 0. + */ + rank?: string | null; } /** * Attached disk configuration. @@ -6122,6 +6128,14 @@ export namespace compute_alpha { * Instance properties for this request. */ export interface Schema$CapacityHistoryRequestInstanceProperties { + /** + * Local SSDs. + */ + disks?: Schema$CapacityHistoryRequestInstancePropertiesAttachedDisk[]; + /** + * Accelerators configuration. + */ + guestAccelerators?: Schema$AcceleratorConfig[]; /** * The machine type for the VM, such as `n2-standard-4`. */ @@ -6131,6 +6145,15 @@ export namespace compute_alpha { */ scheduling?: Schema$CapacityHistoryRequestInstancePropertiesScheduling; } + /** + * AttachedDisk modeled after Instance's AttachedDisk. + */ + export interface Schema$CapacityHistoryRequestInstancePropertiesAttachedDisk { + /** + * Specifies the type of the disk. + */ + type?: string | null; + } /** * Scheduling options. */ @@ -6483,7 +6506,7 @@ export namespace compute_alpha { * resource types. * * The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, - * COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For + * COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For * example, type MEMORY_OPTIMIZED specifies a commitment that * applies only to eligible resources of memory optimized M1 and M2 machine * series. Type GENERAL_PURPOSE specifies a commitment that @@ -8703,6 +8726,13 @@ export namespace compute_alpha { zones?: Schema$DistributionPolicyZoneConfiguration[]; } export interface Schema$DistributionPolicyZoneConfiguration { + /** + * Optional. The maximum size of the group in this zone. This value can be either a + * fixed number or, a percentage. If you set a percentage, the number of + * instances is rounded up if necessary. If unset, it is interpreted as + * unbounded. + */ + maxSize?: Schema$FixedOrPercent; /** * The URL of thezone. * The zone must exist in the region where the managed instance group is @@ -11495,7 +11525,7 @@ export namespace compute_alpha { */ description?: string | null; /** - * Output only. For optimistic locking + * Output only. For optimistic locking. */ etag?: string | null; /** @@ -11521,6 +11551,9 @@ export namespace compute_alpha { * Response to an UpdateGlobalFrontendSettingsRequest. */ export interface Schema$GlobalFrontendSettingsPatchResponse { + /** + * The Operation resource for this long-running operation. + */ operation?: Schema$Operation; } export interface Schema$GlobalListVmExtensionsResponse { @@ -15328,12 +15361,18 @@ export namespace compute_alpha { * Represents a read-only view of a global Image resource. */ export interface Schema$ImageView { + /** + * The Image resource. + */ image?: Schema$Image; } /** * Response message for ImageViewsService.List */ export interface Schema$ImageViewsListResponse { + /** + * Etag of the resource. + */ etag?: string | null; /** * [Output Only] Unique identifier for the resource; defined by the server. @@ -16462,6 +16501,10 @@ export namespace compute_alpha { onHealthCheck?: string | null; } export interface Schema$InstanceGroupManagerInstanceFlexibilityPolicy { + /** + * Constraints applied to instance flexibility spreading and selection. + */ + constraints?: Schema$InstanceGroupManagerInstanceFlexibilityPolicyConstraints; /** * Named instance selections configuring properties that the group will use * when creating new VMs. @@ -16486,6 +16529,17 @@ export namespace compute_alpha { */ provisioningModelMix?: Schema$InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix; } + /** + * Constraints applied to instance flexibility spreading and selection. + */ + export interface Schema$InstanceGroupManagerInstanceFlexibilityPolicyConstraints { + /** + * When set to true, all instances in the group will be provisioned with + * the exact same machine type, ensuring cluster homogeneity across zones. + * Defaults to false. + */ + singleMachineType?: boolean | null; + } export interface Schema$InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection { /** * List of disks to be attached to the instances created from this @@ -23289,6 +23343,9 @@ export namespace compute_alpha { } export interface Schema$ManagedRulesetList { id?: string | null; + /** + * The list of managed rulesets. + */ items?: Schema$ManagedRuleset[]; nextPageToken?: string | null; warning?: { @@ -76162,6 +76219,7 @@ export namespace compute_alpha { * * // Do the magic * const res = await compute.folderGlobalVmExtensionPolicies.getVmExtension({ + * // Required. Name of the VM extension for this request. * extensionName: 'placeholder-value', * // Folder ID for this request. * folder: 'folders/[0-9]{0,20}', @@ -77328,7 +77386,7 @@ export namespace compute_alpha { } export interface Params$Resource$Folderglobalvmextensionpolicies$Getvmextension extends StandardParameters { /** - * + * Required. Name of the VM extension for this request. */ extensionName?: string; /** @@ -77988,6 +78046,7 @@ export namespace compute_alpha { * * // Do the magic * const res = await compute.folderZoneVmExtensionPolicies.getVmExtension({ + * // Required. Name of the VM extension for this request. * extensionName: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}', * // Folder ID for this request. * folder: 'folders/[0-9]{0,20}', @@ -79039,7 +79098,7 @@ export namespace compute_alpha { } export interface Params$Resource$Folderzonevmextensionpolicies$Getvmextension extends StandardParameters { /** - * + * Required. Name of the VM extension for this request. */ extensionName?: string; /** @@ -87756,6 +87815,7 @@ export namespace compute_alpha { * * // Do the magic * const res = await compute.globalFrontendSettings.get({ + * // Required. Project ID for this request. * project: 'placeholder-value', * }); * console.log(res.data); @@ -87902,10 +87962,11 @@ export namespace compute_alpha { * * // Do the magic * const res = await compute.globalFrontendSettings.patch({ + * // Required. Project ID for this request. * project: 'placeholder-value', - * + * // An optional request ID to identify requests. * requestId: 'placeholder-value', - * // e.g., "type" + * // Field mask to support patch. E.g., "type". * updateMask: 'placeholder-value', * * // Request body metadata @@ -88038,21 +88099,21 @@ export namespace compute_alpha { export interface Params$Resource$Globalfrontendsettings$Get extends StandardParameters { /** - * + * Required. Project ID for this request. */ project?: string; } export interface Params$Resource$Globalfrontendsettings$Patch extends StandardParameters { /** - * + * Required. Project ID for this request. */ project?: string; /** - * + * An optional request ID to identify requests. */ requestId?: string; /** - * e.g., "type" + * Field mask to support patch. E.g., "type". */ updateMask?: string; @@ -93681,6 +93742,7 @@ export namespace compute_alpha { * * // Do the magic * const res = await compute.globalVmExtensionPolicies.getVmExtension({ + * // Required. Name of the VM extension for this request. * extensionName: 'placeholder-value', * // Project ID for this request. * project: @@ -94853,7 +94915,7 @@ export namespace compute_alpha { } export interface Params$Resource$Globalvmextensionpolicies$Getvmextension extends StandardParameters { /** - * + * Required. Name of the VM extension for this request. */ extensionName?: string; /** @@ -175434,6 +175496,7 @@ export namespace compute_alpha { * // Do the magic * const res = * await compute.organizationGlobalVmExtensionPolicies.getVmExtension({ + * // Required. Name of the VM extension for this request. * extensionName: 'placeholder-value', * // Organization ID for this request. * organization: 'organizations/[0-9]{0,20}', @@ -176606,7 +176669,7 @@ export namespace compute_alpha { } export interface Params$Resource$Organizationglobalvmextensionpolicies$Getvmextension extends StandardParameters { /** - * + * Required. Name of the VM extension for this request. */ extensionName?: string; /** @@ -183691,6 +183754,7 @@ export namespace compute_alpha { * * // Do the magic * const res = await compute.organizationZoneVmExtensionPolicies.getVmExtension({ + * // Required. Name of the VM extension for this request. * extensionName: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}', * // Organization ID for this request. * organization: 'organizations/[0-9]{0,20}', @@ -184716,7 +184780,7 @@ export namespace compute_alpha { } export interface Params$Resource$Organizationzonevmextensionpolicies$Getvmextension extends StandardParameters { /** - * + * Required. Name of the VM extension for this request. */ extensionName?: string; /** @@ -333129,6 +333193,7 @@ export namespace compute_alpha { * * // Do the magic * const res = await compute.zoneVmExtensionPolicies.getVmExtension({ + * // Required. Name of the VM extension for this request. * extensionName: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}', * // Project ID for this request. * project: @@ -334184,7 +334249,7 @@ export namespace compute_alpha { } export interface Params$Resource$Zonevmextensionpolicies$Getvmextension extends StandardParameters { /** - * + * Required. Name of the VM extension for this request. */ extensionName?: string; /** diff --git a/src/apis/compute/beta.ts b/src/apis/compute/beta.ts index 84a3ec81e9..d24bf6053c 100644 --- a/src/apis/compute/beta.ts +++ b/src/apis/compute/beta.ts @@ -5093,6 +5093,15 @@ export namespace compute_beta { partitionCount?: number | null; } export interface Schema$CacheInvalidationRule { + /** + * If set, this invalidation rule will only apply to requests routed to the + * given backend service or backend bucket. + * For example, for a backend bucket `bb1` in the same scope as the URL map, + * the path would be `projects/my-project/global/backendBuckets/bb1`; and + * for a backend service `bs1` in the same scope as the URL map, the path + * would be `projects/my-project/global/backendServices/bs1`. + */ + backendService?: string | null; /** * A list of cache tags used to identify cached objects. * @@ -5108,11 +5117,22 @@ export namespace compute_beta { * Up to 10 tags can be specified in a single invalidation request. */ cacheTags?: string[] | null; + /** + * If set, this invalidation rule will only apply to responses with the given + * content-type. Parameters are not allowed and are ignored from the response + * when matching. Wildcards are not allowed. + */ + contentType?: string | null; /** * If set, this invalidation rule will only apply to requests with a Host * header matching host. */ host?: string | null; + /** + * If set, this invalidation rule will only apply to responses with the + * given HTTP status. Valid range is 200-599. + */ + httpStatus?: number | null; path?: string | null; } /** @@ -5964,7 +5984,7 @@ export namespace compute_beta { * resource types. * * The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, - * COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For + * COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For * example, type MEMORY_OPTIMIZED specifies a commitment that * applies only to eligible resources of memory optimized M1 and M2 machine * series. Type GENERAL_PURPOSE specifies a commitment that @@ -8028,6 +8048,13 @@ export namespace compute_beta { zones?: Schema$DistributionPolicyZoneConfiguration[]; } export interface Schema$DistributionPolicyZoneConfiguration { + /** + * Optional. The maximum size of the group in this zone. This value can be either a + * fixed number or, a percentage. If you set a percentage, the number of + * instances is rounded up if necessary. If unset, it is interpreted as + * unbounded. + */ + maxSize?: Schema$FixedOrPercent; /** * The URL of thezone. * The zone must exist in the region where the managed instance group is @@ -9945,6 +9972,12 @@ export namespace compute_beta { * to false. */ autoDeleteAutoCreatedReservations?: boolean | null; + /** + * Full or partial URL of an existing future reservation to indicate + * intent for reserving capacity in the same cluster as the colocation + * resource. + */ + colocationResource?: string | null; /** * If not present, then FR will not deliver a new commitment or update an * existing commitment. @@ -10626,7 +10659,7 @@ export namespace compute_beta { */ description?: string | null; /** - * Output only. For optimistic locking + * Output only. For optimistic locking. */ etag?: string | null; /** @@ -10652,6 +10685,9 @@ export namespace compute_beta { * Response to an UpdateGlobalFrontendSettingsRequest. */ export interface Schema$GlobalFrontendSettingsPatchResponse { + /** + * The Operation resource for this long-running operation. + */ operation?: Schema$Operation; } export interface Schema$GlobalNetworkEndpointGroupsAttachEndpointsRequest { @@ -13892,8 +13928,46 @@ export namespace compute_beta { * Represents a read-only view of a global Image resource. */ export interface Schema$ImageView { + /** + * The Image resource. + */ image?: Schema$Image; } + /** + * Response message for ImageViewsService.List + */ + export interface Schema$ImageViewsListResponse { + /** + * Etag of the resource. + */ + etag?: string | null; + /** + * [Output Only] Unique identifier for the resource; defined by the server. + */ + id?: string | null; + /** + * A list of Image resources. + */ + items?: Schema$ImageView[]; + kind?: string | null; + nextPageToken?: string | null; + /** + * Output only. [Output Only] Server-defined URL for this resource. + */ + selfLink?: string | null; + /** + * Output only. [Output Only] Unreachable resources. + */ + unreachables?: string[] | null; + /** + * [Output Only] Informational warning message. + */ + warning?: { + code?: string; + data?: Array<{key?: string; value?: string}>; + message?: string; + } | null; + } /** * Initial State for shielded instance, * these are public keys which are safe to store in public @@ -14897,6 +14971,10 @@ export namespace compute_beta { initialDelaySec?: number | null; } export interface Schema$InstanceGroupManagerInstanceFlexibilityPolicy { + /** + * Constraints applied to instance flexibility spreading and selection. + */ + constraints?: Schema$InstanceGroupManagerInstanceFlexibilityPolicyConstraints; /** * Named instance selections configuring properties that the group will use * when creating new VMs. @@ -14912,6 +14990,17 @@ export namespace compute_beta { */ provisioningModelMix?: Schema$InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix; } + /** + * Constraints applied to instance flexibility spreading and selection. + */ + export interface Schema$InstanceGroupManagerInstanceFlexibilityPolicyConstraints { + /** + * When set to true, all instances in the group will be provisioned with + * the exact same machine type, ensuring cluster homogeneity across zones. + * Defaults to false. + */ + singleMachineType?: boolean | null; + } export interface Schema$InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection { /** * List of disks to be attached to the instances created from this @@ -20920,6 +21009,9 @@ export namespace compute_beta { } export interface Schema$ManagedRulesetList { id?: string | null; + /** + * The list of managed rulesets. + */ items?: Schema$ManagedRuleset[]; nextPageToken?: string | null; warning?: { @@ -30209,6 +30301,13 @@ export namespace compute_beta { * attachments (interconnectAttachments). */ encryptedInterconnectRouter?: boolean | null; + /** + * ETag for optimistic concurrency control as described by AIP 154. Used to + * prevent conflicting updates. If provided, the request will succeed only if + * the etag matches the current etag of the router; otherwise, the request + * fails with an ABORTED error. + */ + etag?: string | null; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. @@ -30972,6 +31071,10 @@ export namespace compute_beta { * must be unique among rules within a NAT. */ ruleNumber?: number | null; + /** + * A list of source workload identities. + */ + sourceWorkloadIdentities?: string[] | null; } export interface Schema$RouterNatRuleAction { /** @@ -72129,6 +72232,7 @@ export namespace compute_beta { * // "autoCreatedReservationsDeleteTime": "my_autoCreatedReservationsDeleteTime", * // "autoCreatedReservationsDuration": {}, * // "autoDeleteAutoCreatedReservations": false, + * // "colocationResource": "my_colocationResource", * // "commitmentInfo": {}, * // "confidentialComputeType": "my_confidentialComputeType", * // "creationTimestamp": "my_creationTimestamp", @@ -72316,6 +72420,7 @@ export namespace compute_beta { * // "autoCreatedReservationsDeleteTime": "my_autoCreatedReservationsDeleteTime", * // "autoCreatedReservationsDuration": {}, * // "autoDeleteAutoCreatedReservations": false, + * // "colocationResource": "my_colocationResource", * // "commitmentInfo": {}, * // "confidentialComputeType": "my_confidentialComputeType", * // "creationTimestamp": "my_creationTimestamp", @@ -72787,6 +72892,7 @@ export namespace compute_beta { * // "autoCreatedReservationsDeleteTime": "my_autoCreatedReservationsDeleteTime", * // "autoCreatedReservationsDuration": {}, * // "autoDeleteAutoCreatedReservations": false, + * // "colocationResource": "my_colocationResource", * // "commitmentInfo": {}, * // "confidentialComputeType": "my_confidentialComputeType", * // "creationTimestamp": "my_creationTimestamp", @@ -76785,6 +76891,7 @@ export namespace compute_beta { * * // Do the magic * const res = await compute.globalFrontendSettings.get({ + * // Required. Project ID for this request. * project: 'placeholder-value', * }); * console.log(res.data); @@ -76931,10 +77038,11 @@ export namespace compute_beta { * * // Do the magic * const res = await compute.globalFrontendSettings.patch({ + * // Required. Project ID for this request. * project: 'placeholder-value', - * + * // An optional request ID to identify requests. * requestId: 'placeholder-value', - * // e.g., "type" + * // Field mask to support patch. E.g., "type". * updateMask: 'placeholder-value', * * // Request body metadata @@ -77067,21 +77175,21 @@ export namespace compute_beta { export interface Params$Resource$Globalfrontendsettings$Get extends StandardParameters { /** - * + * Required. Project ID for this request. */ project?: string; } export interface Params$Resource$Globalfrontendsettings$Patch extends StandardParameters { /** - * + * Required. Project ID for this request. */ project?: string; /** - * + * An optional request ID to identify requests. */ requestId?: string; /** - * e.g., "type" + * Field mask to support patch. E.g., "type". */ updateMask?: string; @@ -92269,6 +92377,246 @@ export namespace compute_beta { return createAPIRequest(parameters); } } + + /** + * Returns a list of global ImageView resources, with a regional + * context. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/compute.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const compute = google.compute('beta'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/compute', + * 'https://www.googleapis.com/auth/compute.readonly', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await compute.imageViews.list({ + * // A filter expression that filters resources listed in the response. Most + * // Compute resources support two types of filter expressions: + * // expressions that support regular expressions and expressions that follow + * // API improvement proposal AIP-160. + * // These two types of filter expressions cannot be mixed in one request. + * // + * // If you want to use AIP-160, your expression must specify the field name, an + * // operator, and the value that you want to use for filtering. The value + * // must be a string, a number, or a boolean. The operator + * // must be either `=`, `!=`, `\>`, `<`, `<=`, `\>=` or `:`. + * // + * // For example, if you are filtering Compute Engine instances, you can + * // exclude instances named `example-instance` by specifying + * // `name != example-instance`. + * // + * // The `:*` comparison can be used to test whether a key has been defined. + * // For example, to find all objects with `owner` label use: + * // ``` + * // labels.owner:* + * // ``` + * // + * // You can also filter nested fields. For example, you could specify + * // `scheduling.automaticRestart = false` to include instances only + * // if they are not scheduled for automatic restarts. You can use filtering + * // on nested fields to filter based onresource labels. + * // + * // To filter on multiple expressions, provide each separate expression within + * // parentheses. For example: + * // ``` + * // (scheduling.automaticRestart = true) + * // (cpuPlatform = "Intel Skylake") + * // ``` + * // By default, each expression is an `AND` expression. However, you + * // can include `AND` and `OR` expressions explicitly. + * // For example: + * // ``` + * // (cpuPlatform = "Intel Skylake") OR + * // (cpuPlatform = "Intel Broadwell") AND + * // (scheduling.automaticRestart = true) + * // ``` + * // + * // If you want to use a regular expression, use the `eq` (equal) or `ne` + * // (not equal) operator against a single un-parenthesized expression with or + * // without quotes or against multiple parenthesized expressions. Examples: + * // + * // `fieldname eq unquoted literal` + * // `fieldname eq 'single quoted literal'` + * // `fieldname eq "double quoted literal"` + * // `(fieldname1 eq literal) (fieldname2 ne "literal")` + * // + * // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * // The literal value must match the entire field. + * // + * // For example, to filter for instances that do not end with name "instance", + * // you would use `name ne .*instance`. + * // + * // You cannot combine constraints on multiple fields using regular + * // expressions. + * filter: 'placeholder-value', + * // The maximum number of results per page that should be returned. + * // If the number of available results is larger than `maxResults`, + * // Compute Engine returns a `nextPageToken` that can be used to get + * // the next page of results in subsequent list requests. Acceptable values are + * // `0` to `500`, inclusive. (Default: `500`) + * maxResults: 'placeholder-value', + * // 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. + * orderBy: 'placeholder-value', + * // Specifies a page token to use. Set `pageToken` to the + * // `nextPageToken` returned by a previous list request to get + * // the next page of results. + * pageToken: 'placeholder-value', + * // Required. Project ID for this request. + * project: + * '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', + * // Required. Name of the region for this request. + * region: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?', + * // Opt-in for partial success behavior which provides partial results in case + * // of failure. The default value is false. + * // + * // For example, when partial success behavior is enabled, aggregatedList for a + * // single zone scope either returns all resources in the zone or no resources, + * // with an error code. + * returnPartialSuccess: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "etag": "my_etag", + * // "id": "my_id", + * // "items": [], + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "selfLink": "my_selfLink", + * // "unreachables": [], + * // "warning": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Imageviews$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Imageviews$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Imageviews$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Imageviews$List, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Imageviews$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Imageviews$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || {}) as Params$Resource$Imageviews$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Imageviews$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/beta/projects/{project}/regions/{region}/imageViews' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } } export interface Params$Resource$Imageviews$Get extends StandardParameters { @@ -92285,6 +92633,114 @@ export namespace compute_beta { */ resourceId?: string; } + export interface Params$Resource$Imageviews$List extends StandardParameters { + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `\>`, `<`, `<=`, `\>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + maxResults?: number; + /** + * 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. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + pageToken?: string; + /** + * Required. Project ID for this request. + */ + project?: string; + /** + * Required. Name of the region for this request. + */ + region?: string; + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + returnPartialSuccess?: boolean; + } export class Resource$Instancegroupmanagerresizerequests { context: APIRequestContext; @@ -239743,8 +240199,11 @@ export namespace compute_beta { * requestBody: { * // request body parameters * // { + * // "backendService": "my_backendService", * // "cacheTags": [], + * // "contentType": "my_contentType", * // "host": "my_host", + * // "httpStatus": 0, * // "path": "my_path" * // } * }, @@ -253889,6 +254348,11 @@ export namespace compute_beta { * * // Do the magic * const res = await compute.routers.delete({ + * // ETag for optimistic concurrency control as described by AIP 154. Used to + * // prevent conflicting updates. If provided, the request will succeed only if + * // the etag matches the current etag of the router; otherwise, the request + * // fails with an ABORTED error. + * etag: 'placeholder-value', * // Project ID for this request. * project: * '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', @@ -254465,6 +254929,7 @@ export namespace compute_beta { * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", * // "encryptedInterconnectRouter": false, + * // "etag": "my_etag", * // "id": "my_id", * // "interfaces": [], * // "kind": "my_kind", @@ -255494,6 +255959,7 @@ export namespace compute_beta { * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", * // "encryptedInterconnectRouter": false, + * // "etag": "my_etag", * // "id": "my_id", * // "interfaces": [], * // "kind": "my_kind", @@ -256689,6 +257155,7 @@ export namespace compute_beta { * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", * // "encryptedInterconnectRouter": false, + * // "etag": "my_etag", * // "id": "my_id", * // "interfaces": [], * // "kind": "my_kind", @@ -257278,6 +257745,7 @@ export namespace compute_beta { * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", * // "encryptedInterconnectRouter": false, + * // "etag": "my_etag", * // "id": "my_id", * // "interfaces": [], * // "kind": "my_kind", @@ -257622,6 +258090,7 @@ export namespace compute_beta { * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", * // "encryptedInterconnectRouter": false, + * // "etag": "my_etag", * // "id": "my_id", * // "interfaces": [], * // "kind": "my_kind", @@ -258279,6 +258748,13 @@ export namespace compute_beta { serviceProjectNumber?: string; } export interface Params$Resource$Routers$Delete extends StandardParameters { + /** + * ETag for optimistic concurrency control as described by AIP 154. Used to + * prevent conflicting updates. If provided, the request will succeed only if + * the etag matches the current etag of the router; otherwise, the request + * fails with an ABORTED error. + */ + etag?: string; /** * Project ID for this request. */ @@ -298628,8 +299104,11 @@ export namespace compute_beta { * requestBody: { * // request body parameters * // { + * // "backendService": "my_backendService", * // "cacheTags": [], + * // "contentType": "my_contentType", * // "host": "my_host", + * // "httpStatus": 0, * // "path": "my_path" * // } * }, diff --git a/src/apis/compute/index.ts b/src/apis/compute/index.ts index 5f70fc1749..e49b4985b7 100644 --- a/src/apis/compute/index.ts +++ b/src/apis/compute/index.ts @@ -59,4 +59,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/compute/v1.ts b/src/apis/compute/v1.ts index cb1beb2c18..16307b88f8 100644 --- a/src/apis/compute/v1.ts +++ b/src/apis/compute/v1.ts @@ -132,6 +132,7 @@ export namespace compute_v1 { futureReservations: Resource$Futurereservations; globalAddresses: Resource$Globaladdresses; globalForwardingRules: Resource$Globalforwardingrules; + globalFrontendSettings: Resource$Globalfrontendsettings; globalNetworkEndpointGroups: Resource$Globalnetworkendpointgroups; globalOperations: Resource$Globaloperations; globalOrganizationOperations: Resource$Globalorganizationoperations; @@ -143,6 +144,7 @@ export namespace compute_v1 { httpsHealthChecks: Resource$Httpshealthchecks; imageFamilyViews: Resource$Imagefamilyviews; images: Resource$Images; + imageViews: Resource$Imageviews; instanceGroupManagerResizeRequests: Resource$Instancegroupmanagerresizerequests; instanceGroupManagers: Resource$Instancegroupmanagers; instanceGroups: Resource$Instancegroups; @@ -161,6 +163,7 @@ export namespace compute_v1 { licenses: Resource$Licenses; machineImages: Resource$Machineimages; machineTypes: Resource$Machinetypes; + managedRulesets: Resource$Managedrulesets; networkAttachments: Resource$Networkattachments; networkEdgeSecurityServices: Resource$Networkedgesecurityservices; networkEndpointGroups: Resource$Networkendpointgroups; @@ -269,6 +272,9 @@ export namespace compute_v1 { this.globalForwardingRules = new Resource$Globalforwardingrules( this.context ); + this.globalFrontendSettings = new Resource$Globalfrontendsettings( + this.context + ); this.globalNetworkEndpointGroups = new Resource$Globalnetworkendpointgroups(this.context); this.globalOperations = new Resource$Globaloperations(this.context); @@ -285,6 +291,7 @@ export namespace compute_v1 { this.httpsHealthChecks = new Resource$Httpshealthchecks(this.context); this.imageFamilyViews = new Resource$Imagefamilyviews(this.context); this.images = new Resource$Images(this.context); + this.imageViews = new Resource$Imageviews(this.context); this.instanceGroupManagerResizeRequests = new Resource$Instancegroupmanagerresizerequests(this.context); this.instanceGroupManagers = new Resource$Instancegroupmanagers( @@ -314,6 +321,7 @@ export namespace compute_v1 { this.licenses = new Resource$Licenses(this.context); this.machineImages = new Resource$Machineimages(this.context); this.machineTypes = new Resource$Machinetypes(this.context); + this.managedRulesets = new Resource$Managedrulesets(this.context); this.networkAttachments = new Resource$Networkattachments(this.context); this.networkEdgeSecurityServices = new Resource$Networkedgesecurityservices(this.context); @@ -5704,7 +5712,7 @@ export namespace compute_v1 { * resource types. * * The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, - * COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For + * COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For * example, type MEMORY_OPTIMIZED specifies a commitment that * applies only to eligible resources of memory optimized M1 and M2 machine * series. Type GENERAL_PURPOSE specifies a commitment that @@ -8236,6 +8244,15 @@ export namespace compute_v1 { * The name for an association. */ name?: string | null; + /** + * An integer indicating the priority of an association. The priority + * must be a positive value between 1 and 2147483647. + * Firewall Policies are evaluated from highest to lowest priority where 1 + * is the highest priority and 2147483647 is the lowest priority. + * The default value is `1000`. If two associations have the same priority + * then lexicographical order on association names is applied. + */ + priority?: number | null; /** * Output only. [Output Only] The short name of the firewall policy of the association. */ @@ -9213,6 +9230,12 @@ export namespace compute_v1 { * to false. */ autoDeleteAutoCreatedReservations?: boolean | null; + /** + * Full or partial URL of an existing future reservation to indicate + * intent for reserving capacity in the same cluster as the colocation + * resource. + */ + colocationResource?: string | null; /** * If not present, then FR will not deliver a new commitment or update an * existing commitment. @@ -9881,6 +9904,54 @@ export namespace compute_v1 { */ destinationAddress?: string | null; } + /** + * Represents the Global Frontend Bundle settings for a single project. + */ + export interface Schema$GlobalFrontendSettings { + /** + * Customer-settable bundle type. + */ + bundleType?: string | null; + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + */ + creationTimestamp?: string | null; + /** + * Output only. [Output Only] An optional description of this resource. + */ + description?: string | null; + /** + * Output only. For optimistic locking. + */ + etag?: string | null; + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + id?: string | null; + /** + * Output only. OUTPUT_ONLY fields + * [Output Only] Name of the resource. Must be 1-63 characters long and match + * the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must + * be a dash, lowercase letter, or digit, except the last character, which + * cannot be a dash. + */ + name?: string | null; + /** + * Output only. [Output Only] Server-defined URL for the resource. + */ + selfLink?: string | null; + } + /** + * Response to an UpdateGlobalFrontendSettingsRequest. + */ + export interface Schema$GlobalFrontendSettingsPatchResponse { + /** + * The Operation resource for this long-running operation. + */ + operation?: Schema$Operation; + } export interface Schema$GlobalNetworkEndpointGroupsAttachEndpointsRequest { /** * The list of network endpoints to be attached. @@ -12978,6 +13049,50 @@ export namespace compute_v1 { */ resourceManagerTags?: {[key: string]: string} | null; } + /** + * Represents a read-only view of a global Image resource. + */ + export interface Schema$ImageView { + /** + * The Image resource. + */ + image?: Schema$Image; + } + /** + * Response message for ImageViewsService.List + */ + export interface Schema$ImageViewsListResponse { + /** + * Etag of the resource. + */ + etag?: string | null; + /** + * [Output Only] Unique identifier for the resource; defined by the server. + */ + id?: string | null; + /** + * A list of Image resources. + */ + items?: Schema$ImageView[]; + kind?: string | null; + nextPageToken?: string | null; + /** + * Output only. [Output Only] Server-defined URL for this resource. + */ + selfLink?: string | null; + /** + * Output only. [Output Only] Unreachable resources. + */ + unreachables?: string[] | null; + /** + * [Output Only] Informational warning message. + */ + warning?: { + code?: string; + data?: Array<{key?: string; value?: string}>; + message?: string; + } | null; + } /** * Initial State for shielded instance, * these are public keys which are safe to store in public @@ -13939,10 +14054,20 @@ export namespace compute_v1 { } | null; } export interface Schema$InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection { + /** + * List of disks to be attached to the instances created from this + * selection. + */ + disks?: Schema$AttachedDisk[]; /** * Full machine-type names, e.g. "n1-standard-16". */ machineTypes?: string[] | null; + /** + * Name of the minimum CPU platform to be used by this instance selection. + * e.g. 'Intel Ice Lake'. + */ + minCpuPlatform?: string | null; /** * Preference of this instance selection. Lower number means higher * preference. MIG will first try to create a VM based on the machine-type @@ -19463,10 +19588,19 @@ export namespace compute_v1 { } | null; } export interface Schema$ManagedInstancePropertiesFromFlexibilityPolicy { + /** + * List of disks to be attached to the instance. + */ + disks?: Schema$AttachedDisk[]; /** * Output only. The machine type to be used for this instance. */ machineType?: string | null; + /** + * Name of the minimum CPU platform to be used by this instance. + * e.g. 'Intel Ice Lake'. + */ + minCpuPlatform?: string | null; } export interface Schema$ManagedInstanceScheduling { /** @@ -19505,6 +19639,70 @@ export namespace compute_v1 { */ name?: string | null; } + /** + * Represents a ManagedRuleset resource. + * + * Managed internally by Cloud Armor CLH for Managed Rules features. + * Customers can only view these resources to modify their Security Policies. + * For more information, see + * https://cloud.google.com/armor/docs/. + */ + export interface Schema$ManagedRuleset { + /** + * Output only. [Output Only] The change log for this managed ruleset. + */ + changeLog?: string | null; + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + */ + creationTimestamp?: string | null; + /** + * [Output Only] An optional description of this resource. + */ + description?: string | null; + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + id?: string | null; + /** + * Name of the resource. Generated internally when the resource is created. + * The name must be 1-63 characters long, and comply withRFC1035. + * Specifically, the name must be 1-63 characters long and match the regular + * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must + * be a dash, lowercase letter, or digit, except the last character, which + * cannot be a dash. + */ + name?: string | null; + /** + * Output only. [Output Only] The list of managed rule IDs that are included in + * this managed ruleset. + */ + ruleIds?: string[] | null; + /** + * Output only. [Output Only] The managed ruleset identifier that can be configured in + * Security Policy rules. + */ + rulesetId?: string | null; + /** + * Output only. [Output Only] Server-defined URL for the resource. + */ + selfLink?: string | null; + } + export interface Schema$ManagedRulesetList { + id?: string | null; + /** + * The list of managed rulesets. + */ + items?: Schema$ManagedRuleset[]; + nextPageToken?: string | null; + warning?: { + code?: string; + data?: Array<{key?: string; value?: string}>; + message?: string; + } | null; + } /** * A metadata key/value entry. */ @@ -29793,6 +29991,11 @@ export namespace compute_v1 { exclusions?: Schema$SecurityPolicyRulePreconfiguredWafConfigExclusion[]; } export interface Schema$SecurityPolicyRulePreconfiguredWafConfigExclusion { + /** + * A list of request body fields to be excluded from inspection during + * preconfigured WAF evaluation. + */ + requestBodiesToExclude?: Schema$SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]; /** * A list of request cookie names whose value will be excluded from * inspection during preconfigured WAF evaluation. @@ -57757,6 +57960,7 @@ export namespace compute_v1 { * // "displayName": "my_displayName", * // "firewallPolicyId": "my_firewallPolicyId", * // "name": "my_name", + * // "priority": 0, * // "shortName": "my_shortName" * // } * }, @@ -58661,6 +58865,7 @@ export namespace compute_v1 { * // "displayName": "my_displayName", * // "firewallPolicyId": "my_firewallPolicyId", * // "name": "my_name", + * // "priority": 0, * // "shortName": "my_shortName" * // } * } @@ -65825,6 +66030,7 @@ export namespace compute_v1 { * // "autoCreatedReservationsDeleteTime": "my_autoCreatedReservationsDeleteTime", * // "autoCreatedReservationsDuration": {}, * // "autoDeleteAutoCreatedReservations": false, + * // "colocationResource": "my_colocationResource", * // "commitmentInfo": {}, * // "confidentialComputeType": "my_confidentialComputeType", * // "creationTimestamp": "my_creationTimestamp", @@ -66011,6 +66217,7 @@ export namespace compute_v1 { * // "autoCreatedReservationsDeleteTime": "my_autoCreatedReservationsDeleteTime", * // "autoCreatedReservationsDuration": {}, * // "autoDeleteAutoCreatedReservations": false, + * // "colocationResource": "my_colocationResource", * // "commitmentInfo": {}, * // "confidentialComputeType": "my_confidentialComputeType", * // "creationTimestamp": "my_creationTimestamp", @@ -66481,6 +66688,7 @@ export namespace compute_v1 { * // "autoCreatedReservationsDeleteTime": "my_autoCreatedReservationsDeleteTime", * // "autoCreatedReservationsDuration": {}, * // "autoDeleteAutoCreatedReservations": false, + * // "colocationResource": "my_colocationResource", * // "commitmentInfo": {}, * // "confidentialComputeType": "my_confidentialComputeType", * // "creationTimestamp": "my_creationTimestamp", @@ -70254,14 +70462,14 @@ export namespace compute_v1 { requestBody?: Schema$TargetReference; } - export class Resource$Globalnetworkendpointgroups { + export class Resource$Globalfrontendsettings { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Attach a network endpoint to the specified network endpoint group. + * Gets the Global Frontend Billing Bundle Settings for a project. * @example * ```js * // Before running the sample: @@ -70285,6 +70493,7 @@ export namespace compute_v1 { * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/compute', + * 'https://www.googleapis.com/auth/compute.readonly', * ], * }); * @@ -70293,68 +70502,21 @@ export namespace compute_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await compute.globalNetworkEndpointGroups.attachNetworkEndpoints({ - * // The name of the network endpoint group where you are attaching network - * // endpoints to. It should comply with RFC1035. - * networkEndpointGroup: 'placeholder-value', - * // Project ID for this request. - * project: - * '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', - * // An optional request ID to identify requests. Specify a unique request ID so - * // that if you must retry your request, the server will know to ignore the - * // request if it has already been completed. - * // - * // For example, consider a situation where you make an initial request and - * // the request times out. If you make the request again with the same - * // request ID, the server can check if original operation with the same - * // request ID was received, and if so, will ignore the second request. This - * // prevents clients from accidentally creating duplicate commitments. - * // - * // The request ID must be - * // a valid UUID with the exception that zero UUID is not supported - * // (00000000-0000-0000-0000-000000000000). - * requestId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "networkEndpoints": [] - * // } - * }, + * const res = await compute.globalFrontendSettings.get({ + * // Required. Project ID for this request. + * project: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "clientOperationId": "my_clientOperationId", + * // "bundleType": "my_bundleType", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", - * // "endTime": "my_endTime", - * // "error": {}, - * // "getHealthOperationMetadata": {}, - * // "getVersionOperationMetadata": {}, - * // "httpErrorMessage": "my_httpErrorMessage", - * // "httpErrorStatusCode": 0, + * // "etag": "my_etag", * // "id": "my_id", - * // "insertTime": "my_insertTime", - * // "instancesBulkInsertOperationMetadata": {}, - * // "kind": "my_kind", * // "name": "my_name", - * // "operationGroupId": "my_operationGroupId", - * // "operationType": "my_operationType", - * // "progress": 0, - * // "region": "my_region", - * // "selfLink": "my_selfLink", - * // "setCommonInstanceMetadataOperationMetadata": {}, - * // "startTime": "my_startTime", - * // "status": "my_status", - * // "statusMessage": "my_statusMessage", - * // "targetId": "my_targetId", - * // "targetLink": "my_targetLink", - * // "user": "my_user", - * // "warnings": [], - * // "zone": "my_zone" + * // "selfLink": "my_selfLink" * // } * } * @@ -70370,55 +70532,54 @@ export namespace compute_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - attachNetworkEndpoints( - params: Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints, + get( + params: Params$Resource$Globalfrontendsettings$Get, options: StreamMethodOptions ): Promise>; - attachNetworkEndpoints( - params?: Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints, + get( + params?: Params$Resource$Globalfrontendsettings$Get, options?: MethodOptions - ): Promise>; - attachNetworkEndpoints( - params: Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints, + ): Promise>; + get( + params: Params$Resource$Globalfrontendsettings$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - attachNetworkEndpoints( - params: Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - attachNetworkEndpoints( - params: Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints, - callback: BodyResponseCallback + get( + params: Params$Resource$Globalfrontendsettings$Get, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - attachNetworkEndpoints( - callback: BodyResponseCallback + get( + params: Params$Resource$Globalfrontendsettings$Get, + callback: BodyResponseCallback ): void; - attachNetworkEndpoints( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints - | BodyResponseCallback + | Params$Resource$Globalfrontendsettings$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints; + {}) as Params$Resource$Globalfrontendsettings$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints; + params = {} as Params$Resource$Globalfrontendsettings$Get; options = {}; } @@ -70433,31 +70594,30 @@ export namespace compute_v1 { { url: ( rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints' + '/compute/v1/projects/{project}/global/globalFrontendSettings' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', apiVersion: '', }, options ), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Deletes the specified network endpoint group.Note that the NEG cannot be - * deleted if there are backend services referencing it. + * Updates the Global Frontend Billing Bundle Settings for a project. * @example * ```js * // Before running the sample: @@ -70489,60 +70649,33 @@ export namespace compute_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await compute.globalNetworkEndpointGroups.delete({ - * // The name of the network endpoint group to delete. It should comply with - * // RFC1035. - * networkEndpointGroup: 'placeholder-value', - * // Project ID for this request. - * project: - * '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', - * // An optional request ID to identify requests. Specify a unique request ID so - * // that if you must retry your request, the server will know to ignore the - * // request if it has already been completed. - * // - * // For example, consider a situation where you make an initial request and - * // the request times out. If you make the request again with the same - * // request ID, the server can check if original operation with the same - * // request ID was received, and if so, will ignore the second request. This - * // prevents clients from accidentally creating duplicate commitments. - * // - * // The request ID must be - * // a valid UUID with the exception that zero UUID is not supported - * // (00000000-0000-0000-0000-000000000000). + * const res = await compute.globalFrontendSettings.patch({ + * // Required. Project ID for this request. + * project: 'placeholder-value', + * // An optional request ID to identify requests. * requestId: 'placeholder-value', + * // Field mask to support patch. E.g., "type". + * updateMask: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "bundleType": "my_bundleType", + * // "creationTimestamp": "my_creationTimestamp", + * // "description": "my_description", + * // "etag": "my_etag", + * // "id": "my_id", + * // "name": "my_name", + * // "selfLink": "my_selfLink" + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "clientOperationId": "my_clientOperationId", - * // "creationTimestamp": "my_creationTimestamp", - * // "description": "my_description", - * // "endTime": "my_endTime", - * // "error": {}, - * // "getHealthOperationMetadata": {}, - * // "getVersionOperationMetadata": {}, - * // "httpErrorMessage": "my_httpErrorMessage", - * // "httpErrorStatusCode": 0, - * // "id": "my_id", - * // "insertTime": "my_insertTime", - * // "instancesBulkInsertOperationMetadata": {}, - * // "kind": "my_kind", - * // "name": "my_name", - * // "operationGroupId": "my_operationGroupId", - * // "operationType": "my_operationType", - * // "progress": 0, - * // "region": "my_region", - * // "selfLink": "my_selfLink", - * // "setCommonInstanceMetadataOperationMetadata": {}, - * // "startTime": "my_startTime", - * // "status": "my_status", - * // "statusMessage": "my_statusMessage", - * // "targetId": "my_targetId", - * // "targetLink": "my_targetLink", - * // "user": "my_user", - * // "warnings": [], - * // "zone": "my_zone" + * // "operation": {} * // } * } * @@ -70558,52 +70691,61 @@ export namespace compute_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - delete( - params: Params$Resource$Globalnetworkendpointgroups$Delete, + patch( + params: Params$Resource$Globalfrontendsettings$Patch, options: StreamMethodOptions ): Promise>; - delete( - params?: Params$Resource$Globalnetworkendpointgroups$Delete, + patch( + params?: Params$Resource$Globalfrontendsettings$Patch, options?: MethodOptions - ): Promise>; - delete( - params: Params$Resource$Globalnetworkendpointgroups$Delete, + ): Promise< + GaxiosResponseWithHTTP2 + >; + patch( + params: Params$Resource$Globalfrontendsettings$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Globalnetworkendpointgroups$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + patch( + params: Params$Resource$Globalfrontendsettings$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Globalnetworkendpointgroups$Delete, - callback: BodyResponseCallback + patch( + params: Params$Resource$Globalfrontendsettings$Patch, + callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( + patch( + callback: BodyResponseCallback + ): void; + patch( paramsOrCallback?: - | Params$Resource$Globalnetworkendpointgroups$Delete - | BodyResponseCallback + | Params$Resource$Globalfrontendsettings$Patch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise< + GaxiosResponseWithHTTP2 + > | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Globalnetworkendpointgroups$Delete; + {}) as Params$Resource$Globalfrontendsettings$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Globalnetworkendpointgroups$Delete; + params = {} as Params$Resource$Globalfrontendsettings$Patch; options = {}; } @@ -70618,30 +70760,445 @@ export namespace compute_v1 { { url: ( rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}' + '/compute/v1/projects/{project}/global/globalFrontendSettings' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', apiVersion: '', }, options ), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } + } + export interface Params$Resource$Globalfrontendsettings$Get extends StandardParameters { /** - * Detach the network endpoint from the specified network endpoint group. + * Required. Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globalfrontendsettings$Patch extends StandardParameters { + /** + * Required. Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. + */ + requestId?: string; + /** + * Field mask to support patch. E.g., "type". + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GlobalFrontendSettings; + } + + export class Resource$Globalnetworkendpointgroups { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Attach a network endpoint to the specified network endpoint group. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/compute.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const compute = google.compute('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/compute', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await compute.globalNetworkEndpointGroups.attachNetworkEndpoints({ + * // The name of the network endpoint group where you are attaching network + * // endpoints to. It should comply with RFC1035. + * networkEndpointGroup: 'placeholder-value', + * // Project ID for this request. + * project: + * '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', + * // An optional request ID to identify requests. Specify a unique request ID so + * // that if you must retry your request, the server will know to ignore the + * // request if it has already been completed. + * // + * // For example, consider a situation where you make an initial request and + * // the request times out. If you make the request again with the same + * // request ID, the server can check if original operation with the same + * // request ID was received, and if so, will ignore the second request. This + * // prevents clients from accidentally creating duplicate commitments. + * // + * // The request ID must be + * // a valid UUID with the exception that zero UUID is not supported + * // (00000000-0000-0000-0000-000000000000). + * requestId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "networkEndpoints": [] + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "clientOperationId": "my_clientOperationId", + * // "creationTimestamp": "my_creationTimestamp", + * // "description": "my_description", + * // "endTime": "my_endTime", + * // "error": {}, + * // "getHealthOperationMetadata": {}, + * // "getVersionOperationMetadata": {}, + * // "httpErrorMessage": "my_httpErrorMessage", + * // "httpErrorStatusCode": 0, + * // "id": "my_id", + * // "insertTime": "my_insertTime", + * // "instancesBulkInsertOperationMetadata": {}, + * // "kind": "my_kind", + * // "name": "my_name", + * // "operationGroupId": "my_operationGroupId", + * // "operationType": "my_operationType", + * // "progress": 0, + * // "region": "my_region", + * // "selfLink": "my_selfLink", + * // "setCommonInstanceMetadataOperationMetadata": {}, + * // "startTime": "my_startTime", + * // "status": "my_status", + * // "statusMessage": "my_statusMessage", + * // "targetId": "my_targetId", + * // "targetLink": "my_targetLink", + * // "user": "my_user", + * // "warnings": [], + * // "zone": "my_zone" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + attachNetworkEndpoints( + params: Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints, + options: StreamMethodOptions + ): Promise>; + attachNetworkEndpoints( + params?: Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints, + options?: MethodOptions + ): Promise>; + attachNetworkEndpoints( + params: Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + attachNetworkEndpoints( + params: Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + attachNetworkEndpoints( + params: Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints, + callback: BodyResponseCallback + ): void; + attachNetworkEndpoints( + callback: BodyResponseCallback + ): void; + attachNetworkEndpoints( + paramsOrCallback?: + | Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Globalnetworkendpointgroups$Attachnetworkendpoints; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes the specified network endpoint group.Note that the NEG cannot be + * deleted if there are backend services referencing it. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/compute.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const compute = google.compute('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/compute', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await compute.globalNetworkEndpointGroups.delete({ + * // The name of the network endpoint group to delete. It should comply with + * // RFC1035. + * networkEndpointGroup: 'placeholder-value', + * // Project ID for this request. + * project: + * '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', + * // An optional request ID to identify requests. Specify a unique request ID so + * // that if you must retry your request, the server will know to ignore the + * // request if it has already been completed. + * // + * // For example, consider a situation where you make an initial request and + * // the request times out. If you make the request again with the same + * // request ID, the server can check if original operation with the same + * // request ID was received, and if so, will ignore the second request. This + * // prevents clients from accidentally creating duplicate commitments. + * // + * // The request ID must be + * // a valid UUID with the exception that zero UUID is not supported + * // (00000000-0000-0000-0000-000000000000). + * requestId: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "clientOperationId": "my_clientOperationId", + * // "creationTimestamp": "my_creationTimestamp", + * // "description": "my_description", + * // "endTime": "my_endTime", + * // "error": {}, + * // "getHealthOperationMetadata": {}, + * // "getVersionOperationMetadata": {}, + * // "httpErrorMessage": "my_httpErrorMessage", + * // "httpErrorStatusCode": 0, + * // "id": "my_id", + * // "insertTime": "my_insertTime", + * // "instancesBulkInsertOperationMetadata": {}, + * // "kind": "my_kind", + * // "name": "my_name", + * // "operationGroupId": "my_operationGroupId", + * // "operationType": "my_operationType", + * // "progress": 0, + * // "region": "my_region", + * // "selfLink": "my_selfLink", + * // "setCommonInstanceMetadataOperationMetadata": {}, + * // "startTime": "my_startTime", + * // "status": "my_status", + * // "statusMessage": "my_statusMessage", + * // "targetId": "my_targetId", + * // "targetLink": "my_targetLink", + * // "user": "my_user", + * // "warnings": [], + * // "zone": "my_zone" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Globalnetworkendpointgroups$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Globalnetworkendpointgroups$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Globalnetworkendpointgroups$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Globalnetworkendpointgroups$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Globalnetworkendpointgroups$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Globalnetworkendpointgroups$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Globalnetworkendpointgroups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalnetworkendpointgroups$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Detach the network endpoint from the specified network endpoint group. * @example * ```js * // Before running the sample: @@ -85255,6 +85812,521 @@ export namespace compute_v1 { requestBody?: Schema$TestPermissionsRequest; } + export class Resource$Imageviews { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Returns the specified global ImageView resource, with a regional + * context. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/compute.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const compute = google.compute('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/compute', + * 'https://www.googleapis.com/auth/compute.readonly', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await compute.imageViews.get({ + * // Required. Project ID for this request. + * project: + * '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', + * // Required. Name of the region for this request. + * region: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?', + * // Name of the image resource to return. + * resourceId: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "image": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Imageviews$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Imageviews$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Imageviews$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Imageviews$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Imageviews$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Imageviews$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || {}) as Params$Resource$Imageviews$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Imageviews$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/v1/projects/{project}/regions/{region}/imageViews/{resourceId}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'region', 'resourceId'], + pathParams: ['project', 'region', 'resourceId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Returns a list of global ImageView resources, with a regional + * context. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/compute.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const compute = google.compute('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/compute', + * 'https://www.googleapis.com/auth/compute.readonly', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await compute.imageViews.list({ + * // A filter expression that filters resources listed in the response. Most + * // Compute resources support two types of filter expressions: + * // expressions that support regular expressions and expressions that follow + * // API improvement proposal AIP-160. + * // These two types of filter expressions cannot be mixed in one request. + * // + * // If you want to use AIP-160, your expression must specify the field name, an + * // operator, and the value that you want to use for filtering. The value + * // must be a string, a number, or a boolean. The operator + * // must be either `=`, `!=`, `\>`, `<`, `<=`, `\>=` or `:`. + * // + * // For example, if you are filtering Compute Engine instances, you can + * // exclude instances named `example-instance` by specifying + * // `name != example-instance`. + * // + * // The `:*` comparison can be used to test whether a key has been defined. + * // For example, to find all objects with `owner` label use: + * // ``` + * // labels.owner:* + * // ``` + * // + * // You can also filter nested fields. For example, you could specify + * // `scheduling.automaticRestart = false` to include instances only + * // if they are not scheduled for automatic restarts. You can use filtering + * // on nested fields to filter based onresource labels. + * // + * // To filter on multiple expressions, provide each separate expression within + * // parentheses. For example: + * // ``` + * // (scheduling.automaticRestart = true) + * // (cpuPlatform = "Intel Skylake") + * // ``` + * // By default, each expression is an `AND` expression. However, you + * // can include `AND` and `OR` expressions explicitly. + * // For example: + * // ``` + * // (cpuPlatform = "Intel Skylake") OR + * // (cpuPlatform = "Intel Broadwell") AND + * // (scheduling.automaticRestart = true) + * // ``` + * // + * // If you want to use a regular expression, use the `eq` (equal) or `ne` + * // (not equal) operator against a single un-parenthesized expression with or + * // without quotes or against multiple parenthesized expressions. Examples: + * // + * // `fieldname eq unquoted literal` + * // `fieldname eq 'single quoted literal'` + * // `fieldname eq "double quoted literal"` + * // `(fieldname1 eq literal) (fieldname2 ne "literal")` + * // + * // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * // The literal value must match the entire field. + * // + * // For example, to filter for instances that do not end with name "instance", + * // you would use `name ne .*instance`. + * // + * // You cannot combine constraints on multiple fields using regular + * // expressions. + * filter: 'placeholder-value', + * // The maximum number of results per page that should be returned. + * // If the number of available results is larger than `maxResults`, + * // Compute Engine returns a `nextPageToken` that can be used to get + * // the next page of results in subsequent list requests. Acceptable values are + * // `0` to `500`, inclusive. (Default: `500`) + * maxResults: 'placeholder-value', + * // 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. + * orderBy: 'placeholder-value', + * // Specifies a page token to use. Set `pageToken` to the + * // `nextPageToken` returned by a previous list request to get + * // the next page of results. + * pageToken: 'placeholder-value', + * // Required. Project ID for this request. + * project: + * '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', + * // Required. Name of the region for this request. + * region: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?', + * // Opt-in for partial success behavior which provides partial results in case + * // of failure. The default value is false. + * // + * // For example, when partial success behavior is enabled, aggregatedList for a + * // single zone scope either returns all resources in the zone or no resources, + * // with an error code. + * returnPartialSuccess: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "etag": "my_etag", + * // "id": "my_id", + * // "items": [], + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "selfLink": "my_selfLink", + * // "unreachables": [], + * // "warning": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Imageviews$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Imageviews$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Imageviews$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Imageviews$List, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Imageviews$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Imageviews$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || {}) as Params$Resource$Imageviews$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Imageviews$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/v1/projects/{project}/regions/{region}/imageViews' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Imageviews$Get extends StandardParameters { + /** + * Required. Project ID for this request. + */ + project?: string; + /** + * Required. Name of the region for this request. + */ + region?: string; + /** + * Name of the image resource to return. + */ + resourceId?: string; + } + export interface Params$Resource$Imageviews$List extends StandardParameters { + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `\>`, `<`, `<=`, `\>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + maxResults?: number; + /** + * 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. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + pageToken?: string; + /** + * Required. Project ID for this request. + */ + project?: string; + /** + * Required. Name of the region for this request. + */ + region?: string; + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + returnPartialSuccess?: boolean; + } + export class Resource$Instancegroupmanagerresizerequests { context: APIRequestContext; constructor(context: APIRequestContext) { @@ -126703,8 +127775,643 @@ export namespace compute_v1 { * // single zone scope either returns all resources in the zone or no resources, * // with an error code. * returnPartialSuccess: 'placeholder-value', - * // The name of the zone for this request. - * zone: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?', + * // The name of the zone for this request. + * zone: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "id": "my_id", + * // "items": [], + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "selfLink": "my_selfLink", + * // "warning": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Machinetypes$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Machinetypes$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Machinetypes$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Machinetypes$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Machinetypes$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Machinetypes$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Machinetypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Machinetypes$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/machineTypes' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Machinetypes$Aggregatedlist extends StandardParameters { + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `\>`, `<`, `<=`, `\>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + filter?: string; + /** + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. + */ + includeAllScopes?: boolean; + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + maxResults?: number; + /** + * 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. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + returnPartialSuccess?: boolean; + /** + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. + */ + serviceProjectNumber?: string; + } + export interface Params$Resource$Machinetypes$Get extends StandardParameters { + /** + * Name of the machine type to return. + */ + machineType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Machinetypes$List extends StandardParameters { + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `\>`, `<`, `<=`, `\>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + maxResults?: number; + /** + * 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. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + returnPartialSuccess?: boolean; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + export class Resource$Managedrulesets { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Gets the details for the specified managed ruleset name. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/compute.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const compute = google.compute('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/compute', + * 'https://www.googleapis.com/auth/compute.readonly', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await compute.managedRulesets.get({ + * // Name of the managed ruleset to return. + * managedRuleset: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}', + * // Project ID for this request. + * project: + * '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "changeLog": "my_changeLog", + * // "creationTimestamp": "my_creationTimestamp", + * // "description": "my_description", + * // "id": "my_id", + * // "name": "my_name", + * // "ruleIds": [], + * // "rulesetId": "my_rulesetId", + * // "selfLink": "my_selfLink" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Managedrulesets$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Managedrulesets$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Managedrulesets$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Managedrulesets$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Managedrulesets$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Managedrulesets$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Managedrulesets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedrulesets$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/v1/projects/{project}/global/managedRulesets/{managedRuleset}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'managedRuleset'], + pathParams: ['managedRuleset', 'project'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Retrieves the list of all the managed rulesets available. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/compute.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const compute = google.compute('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/compute', + * 'https://www.googleapis.com/auth/compute.readonly', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await compute.managedRulesets.list({ + * // A filter expression that filters resources listed in the response. Most + * // Compute resources support two types of filter expressions: + * // expressions that support regular expressions and expressions that follow + * // API improvement proposal AIP-160. + * // These two types of filter expressions cannot be mixed in one request. + * // + * // If you want to use AIP-160, your expression must specify the field name, an + * // operator, and the value that you want to use for filtering. The value + * // must be a string, a number, or a boolean. The operator + * // must be either `=`, `!=`, `\>`, `<`, `<=`, `\>=` or `:`. + * // + * // For example, if you are filtering Compute Engine instances, you can + * // exclude instances named `example-instance` by specifying + * // `name != example-instance`. + * // + * // The `:*` comparison can be used to test whether a key has been defined. + * // For example, to find all objects with `owner` label use: + * // ``` + * // labels.owner:* + * // ``` + * // + * // You can also filter nested fields. For example, you could specify + * // `scheduling.automaticRestart = false` to include instances only + * // if they are not scheduled for automatic restarts. You can use filtering + * // on nested fields to filter based onresource labels. + * // + * // To filter on multiple expressions, provide each separate expression within + * // parentheses. For example: + * // ``` + * // (scheduling.automaticRestart = true) + * // (cpuPlatform = "Intel Skylake") + * // ``` + * // By default, each expression is an `AND` expression. However, you + * // can include `AND` and `OR` expressions explicitly. + * // For example: + * // ``` + * // (cpuPlatform = "Intel Skylake") OR + * // (cpuPlatform = "Intel Broadwell") AND + * // (scheduling.automaticRestart = true) + * // ``` + * // + * // If you want to use a regular expression, use the `eq` (equal) or `ne` + * // (not equal) operator against a single un-parenthesized expression with or + * // without quotes or against multiple parenthesized expressions. Examples: + * // + * // `fieldname eq unquoted literal` + * // `fieldname eq 'single quoted literal'` + * // `fieldname eq "double quoted literal"` + * // `(fieldname1 eq literal) (fieldname2 ne "literal")` + * // + * // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * // The literal value must match the entire field. + * // + * // For example, to filter for instances that do not end with name "instance", + * // you would use `name ne .*instance`. + * // + * // You cannot combine constraints on multiple fields using regular + * // expressions. + * filter: 'placeholder-value', + * // The maximum number of results per page that should be returned. + * // If the number of available results is larger than `maxResults`, + * // Compute Engine returns a `nextPageToken` that can be used to get + * // the next page of results in subsequent list requests. Acceptable values are + * // `0` to `500`, inclusive. (Default: `500`) + * maxResults: 'placeholder-value', + * // 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. + * orderBy: 'placeholder-value', + * // Specifies a page token to use. Set `pageToken` to the + * // `nextPageToken` returned by a previous list request to get + * // the next page of results. + * pageToken: 'placeholder-value', + * // Project ID for this request. + * project: + * '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', + * // Opt-in for partial success behavior which provides partial results in case + * // of failure. The default value is false. + * // + * // For example, when partial success behavior is enabled, aggregatedList for a + * // single zone scope either returns all resources in the zone or no resources, + * // with an error code. + * returnPartialSuccess: 'placeholder-value', * }); * console.log(res.data); * @@ -126712,9 +128419,7 @@ export namespace compute_v1 { * // { * // "id": "my_id", * // "items": [], - * // "kind": "my_kind", * // "nextPageToken": "my_nextPageToken", - * // "selfLink": "my_selfLink", * // "warning": {} * // } * } @@ -126732,52 +128437,52 @@ export namespace compute_v1 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Machinetypes$List, + params: Params$Resource$Managedrulesets$List, options: StreamMethodOptions ): Promise>; list( - params?: Params$Resource$Machinetypes$List, + params?: Params$Resource$Managedrulesets$List, options?: MethodOptions - ): Promise>; + ): Promise>; list( - params: Params$Resource$Machinetypes$List, + params: Params$Resource$Managedrulesets$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Machinetypes$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Managedrulesets$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Machinetypes$List, - callback: BodyResponseCallback + params: Params$Resource$Managedrulesets$List, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Machinetypes$List - | BodyResponseCallback + | Params$Resource$Managedrulesets$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Machinetypes$List; + {}) as Params$Resource$Managedrulesets$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Machinetypes$List; + params = {} as Params$Resource$Managedrulesets$List; options = {}; } @@ -126791,8 +128496,7 @@ export namespace compute_v1 { options: Object.assign( { url: ( - rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/machineTypes' + rootUrl + '/compute/v1/projects/{project}/global/managedRulesets' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', @@ -126800,155 +128504,32 @@ export namespace compute_v1 { options ), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Machinetypes$Aggregatedlist extends StandardParameters { + export interface Params$Resource$Managedrulesets$Get extends StandardParameters { /** - * A filter expression that filters resources listed in the response. Most - * Compute resources support two types of filter expressions: - * expressions that support regular expressions and expressions that follow - * API improvement proposal AIP-160. - * These two types of filter expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an - * operator, and the value that you want to use for filtering. The value - * must be a string, a number, or a boolean. The operator - * must be either `=`, `!=`, `\>`, `<`, `<=`, `\>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can - * exclude instances named `example-instance` by specifying - * `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. - * For example, to find all objects with `owner` label use: - * ``` - * labels.owner:* - * ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only - * if they are not scheduled for automatic restarts. You can use filtering - * on nested fields to filter based onresource labels. - * - * To filter on multiple expressions, provide each separate expression within - * parentheses. For example: - * ``` - * (scheduling.automaticRestart = true) - * (cpuPlatform = "Intel Skylake") - * ``` - * By default, each expression is an `AND` expression. However, you - * can include `AND` and `OR` expressions explicitly. - * For example: - * ``` - * (cpuPlatform = "Intel Skylake") OR - * (cpuPlatform = "Intel Broadwell") AND - * (scheduling.automaticRestart = true) - * ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` - * (not equal) operator against a single un-parenthesized expression with or - * without quotes or against multiple parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` - * `fieldname eq 'single quoted literal'` - * `fieldname eq "double quoted literal"` - * `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", - * you would use `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular - * expressions. + * Name of the managed ruleset to return. */ - filter?: string; - /** - * Indicates whether every visible scope for each scope type (zone, region, - * global) should be included in the response. For new resource types added - * after this field, the flag has no effect as new resource types will always - * include every visible scope for each scope type in response. For resource - * types which predate this field, if this flag is omitted or false, only - * scopes of the scope types where the resource type is expected to be found - * will be included. - */ - includeAllScopes?: boolean; - /** - * The maximum number of results per page that should be returned. - * If the number of available results is larger than `maxResults`, - * Compute Engine returns a `nextPageToken` that can be used to get - * the next page of results in subsequent list requests. Acceptable values are - * `0` to `500`, inclusive. (Default: `500`) - */ - maxResults?: number; - /** - * 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. - */ - orderBy?: string; - /** - * Specifies a page token to use. Set `pageToken` to the - * `nextPageToken` returned by a previous list request to get - * the next page of results. - */ - pageToken?: string; - /** - * Project ID for this request. - */ - project?: string; - /** - * Opt-in for partial success behavior which provides partial results in case - * of failure. The default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a - * single zone scope either returns all resources in the zone or no resources, - * with an error code. - */ - returnPartialSuccess?: boolean; - /** - * The Shared VPC service project id or service project number for which - * aggregated list request is invoked for subnetworks list-usable api. - */ - serviceProjectNumber?: string; - } - export interface Params$Resource$Machinetypes$Get extends StandardParameters { - /** - * Name of the machine type to return. - */ - machineType?: string; + managedRuleset?: string; /** * Project ID for this request. */ project?: string; - /** - * The name of the zone for this request. - */ - zone?: string; } - export interface Params$Resource$Machinetypes$List extends StandardParameters { + export interface Params$Resource$Managedrulesets$List extends StandardParameters { /** * A filter expression that filters resources listed in the response. Most * Compute resources support two types of filter expressions: @@ -127051,10 +128632,6 @@ export namespace compute_v1 { * with an error code. */ returnPartialSuccess?: boolean; - /** - * The name of the zone for this request. - */ - zone?: string; } export class Resource$Networkattachments { @@ -132947,6 +134524,7 @@ export namespace compute_v1 { * // "displayName": "my_displayName", * // "firewallPolicyId": "my_firewallPolicyId", * // "name": "my_name", + * // "priority": 0, * // "shortName": "my_shortName" * // } * }, @@ -134350,6 +135928,7 @@ export namespace compute_v1 { * // "displayName": "my_displayName", * // "firewallPolicyId": "my_firewallPolicyId", * // "name": "my_name", + * // "priority": 0, * // "shortName": "my_shortName" * // } * } @@ -197531,6 +199110,11 @@ export namespace compute_v1 { * * // Do the magic * const res = await compute.regionNetworkFirewallPolicies.addAssociation({ + * // Name of the firewall policy associated with the target network to swap + * // association with. This field is mutually exclusive with + * // 'replace_existing_association'. + * associatedPolicyToBeReplaced: + * '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}', * // Name of the firewall policy to update. * firewallPolicy: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}', * // Project ID for this request. @@ -197565,6 +199149,7 @@ export namespace compute_v1 { * // "displayName": "my_displayName", * // "firewallPolicyId": "my_firewallPolicyId", * // "name": "my_name", + * // "priority": 0, * // "shortName": "my_shortName" * // } * }, @@ -198501,6 +200086,7 @@ export namespace compute_v1 { * // "displayName": "my_displayName", * // "firewallPolicyId": "my_firewallPolicyId", * // "name": "my_name", + * // "priority": 0, * // "shortName": "my_shortName" * // } * } @@ -199313,7 +200899,242 @@ export namespace compute_v1 { * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/compute', - * 'https://www.googleapis.com/auth/compute.readonly', + * 'https://www.googleapis.com/auth/compute.readonly', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await compute.regionNetworkFirewallPolicies.list({ + * // A filter expression that filters resources listed in the response. Most + * // Compute resources support two types of filter expressions: + * // expressions that support regular expressions and expressions that follow + * // API improvement proposal AIP-160. + * // These two types of filter expressions cannot be mixed in one request. + * // + * // If you want to use AIP-160, your expression must specify the field name, an + * // operator, and the value that you want to use for filtering. The value + * // must be a string, a number, or a boolean. The operator + * // must be either `=`, `!=`, `\>`, `<`, `<=`, `\>=` or `:`. + * // + * // For example, if you are filtering Compute Engine instances, you can + * // exclude instances named `example-instance` by specifying + * // `name != example-instance`. + * // + * // The `:*` comparison can be used to test whether a key has been defined. + * // For example, to find all objects with `owner` label use: + * // ``` + * // labels.owner:* + * // ``` + * // + * // You can also filter nested fields. For example, you could specify + * // `scheduling.automaticRestart = false` to include instances only + * // if they are not scheduled for automatic restarts. You can use filtering + * // on nested fields to filter based onresource labels. + * // + * // To filter on multiple expressions, provide each separate expression within + * // parentheses. For example: + * // ``` + * // (scheduling.automaticRestart = true) + * // (cpuPlatform = "Intel Skylake") + * // ``` + * // By default, each expression is an `AND` expression. However, you + * // can include `AND` and `OR` expressions explicitly. + * // For example: + * // ``` + * // (cpuPlatform = "Intel Skylake") OR + * // (cpuPlatform = "Intel Broadwell") AND + * // (scheduling.automaticRestart = true) + * // ``` + * // + * // If you want to use a regular expression, use the `eq` (equal) or `ne` + * // (not equal) operator against a single un-parenthesized expression with or + * // without quotes or against multiple parenthesized expressions. Examples: + * // + * // `fieldname eq unquoted literal` + * // `fieldname eq 'single quoted literal'` + * // `fieldname eq "double quoted literal"` + * // `(fieldname1 eq literal) (fieldname2 ne "literal")` + * // + * // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * // The literal value must match the entire field. + * // + * // For example, to filter for instances that do not end with name "instance", + * // you would use `name ne .*instance`. + * // + * // You cannot combine constraints on multiple fields using regular + * // expressions. + * filter: 'placeholder-value', + * // The maximum number of results per page that should be returned. + * // If the number of available results is larger than `maxResults`, + * // Compute Engine returns a `nextPageToken` that can be used to get + * // the next page of results in subsequent list requests. Acceptable values are + * // `0` to `500`, inclusive. (Default: `500`) + * maxResults: 'placeholder-value', + * // 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. + * orderBy: 'placeholder-value', + * // Specifies a page token to use. Set `pageToken` to the + * // `nextPageToken` returned by a previous list request to get + * // the next page of results. + * pageToken: 'placeholder-value', + * // Project ID for this request. + * project: + * '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', + * // Name of the region scoping this request. + * region: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?', + * // Opt-in for partial success behavior which provides partial results in case + * // of failure. The default value is false. + * // + * // For example, when partial success behavior is enabled, aggregatedList for a + * // single zone scope either returns all resources in the zone or no resources, + * // with an error code. + * returnPartialSuccess: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "id": "my_id", + * // "items": [], + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "warning": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Regionnetworkfirewallpolicies$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Regionnetworkfirewallpolicies$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Regionnetworkfirewallpolicies$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Regionnetworkfirewallpolicies$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Regionnetworkfirewallpolicies$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Regionnetworkfirewallpolicies$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Regionnetworkfirewallpolicies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionnetworkfirewallpolicies$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Patches the specified network firewall policy. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/compute.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const compute = google.compute('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/compute', * ], * }); * @@ -199322,110 +201143,85 @@ export namespace compute_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await compute.regionNetworkFirewallPolicies.list({ - * // A filter expression that filters resources listed in the response. Most - * // Compute resources support two types of filter expressions: - * // expressions that support regular expressions and expressions that follow - * // API improvement proposal AIP-160. - * // These two types of filter expressions cannot be mixed in one request. - * // - * // If you want to use AIP-160, your expression must specify the field name, an - * // operator, and the value that you want to use for filtering. The value - * // must be a string, a number, or a boolean. The operator - * // must be either `=`, `!=`, `\>`, `<`, `<=`, `\>=` or `:`. - * // - * // For example, if you are filtering Compute Engine instances, you can - * // exclude instances named `example-instance` by specifying - * // `name != example-instance`. - * // - * // The `:*` comparison can be used to test whether a key has been defined. - * // For example, to find all objects with `owner` label use: - * // ``` - * // labels.owner:* - * // ``` - * // - * // You can also filter nested fields. For example, you could specify - * // `scheduling.automaticRestart = false` to include instances only - * // if they are not scheduled for automatic restarts. You can use filtering - * // on nested fields to filter based onresource labels. - * // - * // To filter on multiple expressions, provide each separate expression within - * // parentheses. For example: - * // ``` - * // (scheduling.automaticRestart = true) - * // (cpuPlatform = "Intel Skylake") - * // ``` - * // By default, each expression is an `AND` expression. However, you - * // can include `AND` and `OR` expressions explicitly. - * // For example: - * // ``` - * // (cpuPlatform = "Intel Skylake") OR - * // (cpuPlatform = "Intel Broadwell") AND - * // (scheduling.automaticRestart = true) - * // ``` - * // - * // If you want to use a regular expression, use the `eq` (equal) or `ne` - * // (not equal) operator against a single un-parenthesized expression with or - * // without quotes or against multiple parenthesized expressions. Examples: - * // - * // `fieldname eq unquoted literal` - * // `fieldname eq 'single quoted literal'` - * // `fieldname eq "double quoted literal"` - * // `(fieldname1 eq literal) (fieldname2 ne "literal")` - * // - * // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * // The literal value must match the entire field. - * // - * // For example, to filter for instances that do not end with name "instance", - * // you would use `name ne .*instance`. - * // - * // You cannot combine constraints on multiple fields using regular - * // expressions. - * filter: 'placeholder-value', - * // The maximum number of results per page that should be returned. - * // If the number of available results is larger than `maxResults`, - * // Compute Engine returns a `nextPageToken` that can be used to get - * // the next page of results in subsequent list requests. Acceptable values are - * // `0` to `500`, inclusive. (Default: `500`) - * maxResults: 'placeholder-value', - * // 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. - * orderBy: 'placeholder-value', - * // Specifies a page token to use. Set `pageToken` to the - * // `nextPageToken` returned by a previous list request to get - * // the next page of results. - * pageToken: 'placeholder-value', + * const res = await compute.regionNetworkFirewallPolicies.patch({ + * // Name of the firewall policy to update. + * firewallPolicy: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}', * // Project ID for this request. * project: * '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', * // Name of the region scoping this request. * region: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?', - * // Opt-in for partial success behavior which provides partial results in case - * // of failure. The default value is false. + * // An optional request ID to identify requests. Specify a unique request ID so + * // that if you must retry your request, the server will know to ignore the + * // request if it has already been completed. * // - * // For example, when partial success behavior is enabled, aggregatedList for a - * // single zone scope either returns all resources in the zone or no resources, - * // with an error code. - * returnPartialSuccess: 'placeholder-value', + * // For example, consider a situation where you make an initial request and + * // the request times out. If you make the request again with the same + * // request ID, the server can check if original operation with the same + * // request ID was received, and if so, will ignore the second request. This + * // prevents clients from accidentally creating duplicate commitments. + * // + * // The request ID must be + * // a valid UUID with the exception that zero UUID is not supported + * // (00000000-0000-0000-0000-000000000000). + * requestId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "associations": [], + * // "creationTimestamp": "my_creationTimestamp", + * // "description": "my_description", + * // "displayName": "my_displayName", + * // "fingerprint": "my_fingerprint", + * // "id": "my_id", + * // "kind": "my_kind", + * // "name": "my_name", + * // "packetMirroringRules": [], + * // "parent": "my_parent", + * // "policyType": "my_policyType", + * // "region": "my_region", + * // "ruleTupleCount": 0, + * // "rules": [], + * // "selfLink": "my_selfLink", + * // "selfLinkWithId": "my_selfLinkWithId", + * // "shortName": "my_shortName" + * // } + * }, * }); * console.log(res.data); * * // Example response * // { + * // "clientOperationId": "my_clientOperationId", + * // "creationTimestamp": "my_creationTimestamp", + * // "description": "my_description", + * // "endTime": "my_endTime", + * // "error": {}, + * // "getHealthOperationMetadata": {}, + * // "getVersionOperationMetadata": {}, + * // "httpErrorMessage": "my_httpErrorMessage", + * // "httpErrorStatusCode": 0, * // "id": "my_id", - * // "items": [], + * // "insertTime": "my_insertTime", + * // "instancesBulkInsertOperationMetadata": {}, * // "kind": "my_kind", - * // "nextPageToken": "my_nextPageToken", - * // "warning": {} + * // "name": "my_name", + * // "operationGroupId": "my_operationGroupId", + * // "operationType": "my_operationType", + * // "progress": 0, + * // "region": "my_region", + * // "selfLink": "my_selfLink", + * // "setCommonInstanceMetadataOperationMetadata": {}, + * // "startTime": "my_startTime", + * // "status": "my_status", + * // "statusMessage": "my_statusMessage", + * // "targetId": "my_targetId", + * // "targetLink": "my_targetLink", + * // "user": "my_user", + * // "warnings": [], + * // "zone": "my_zone" * // } * } * @@ -199441,53 +201237,52 @@ export namespace compute_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - list( - params: Params$Resource$Regionnetworkfirewallpolicies$List, + patch( + params: Params$Resource$Regionnetworkfirewallpolicies$Patch, options: StreamMethodOptions ): Promise>; - list( - params?: Params$Resource$Regionnetworkfirewallpolicies$List, + patch( + params?: Params$Resource$Regionnetworkfirewallpolicies$Patch, options?: MethodOptions - ): Promise>; - list( - params: Params$Resource$Regionnetworkfirewallpolicies$List, + ): Promise>; + patch( + params: Params$Resource$Regionnetworkfirewallpolicies$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Regionnetworkfirewallpolicies$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + patch( + params: Params$Resource$Regionnetworkfirewallpolicies$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Regionnetworkfirewallpolicies$List, - callback: BodyResponseCallback + patch( + params: Params$Resource$Regionnetworkfirewallpolicies$Patch, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; - list( + patch(callback: BodyResponseCallback): void; + patch( paramsOrCallback?: - | Params$Resource$Regionnetworkfirewallpolicies$List - | BodyResponseCallback + | Params$Resource$Regionnetworkfirewallpolicies$Patch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback - | BodyResponseCallback + BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Regionnetworkfirewallpolicies$List; + {}) as Params$Resource$Regionnetworkfirewallpolicies$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Regionnetworkfirewallpolicies$List; + params = {} as Params$Resource$Regionnetworkfirewallpolicies$Patch; options = {}; } @@ -199502,30 +201297,30 @@ export namespace compute_v1 { { url: ( rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies' + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', apiVersion: '', }, options ), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Patches the specified network firewall policy. + * Updates an association for the specified network firewall policy. * @example * ```js * // Before running the sample: @@ -199557,7 +201352,7 @@ export namespace compute_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await compute.regionNetworkFirewallPolicies.patch({ + * const res = await compute.regionNetworkFirewallPolicies.patchAssociation({ * // Name of the firewall policy to update. * firewallPolicy: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}', * // Project ID for this request. @@ -199584,22 +201379,11 @@ export namespace compute_v1 { * requestBody: { * // request body parameters * // { - * // "associations": [], - * // "creationTimestamp": "my_creationTimestamp", - * // "description": "my_description", + * // "attachmentTarget": "my_attachmentTarget", * // "displayName": "my_displayName", - * // "fingerprint": "my_fingerprint", - * // "id": "my_id", - * // "kind": "my_kind", + * // "firewallPolicyId": "my_firewallPolicyId", * // "name": "my_name", - * // "packetMirroringRules": [], - * // "parent": "my_parent", - * // "policyType": "my_policyType", - * // "region": "my_region", - * // "ruleTupleCount": 0, - * // "rules": [], - * // "selfLink": "my_selfLink", - * // "selfLinkWithId": "my_selfLinkWithId", + * // "priority": 0, * // "shortName": "my_shortName" * // } * }, @@ -199651,32 +201435,32 @@ export namespace compute_v1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - patch( - params: Params$Resource$Regionnetworkfirewallpolicies$Patch, + patchAssociation( + params: Params$Resource$Regionnetworkfirewallpolicies$Patchassociation, options: StreamMethodOptions ): Promise>; - patch( - params?: Params$Resource$Regionnetworkfirewallpolicies$Patch, + patchAssociation( + params?: Params$Resource$Regionnetworkfirewallpolicies$Patchassociation, options?: MethodOptions ): Promise>; - patch( - params: Params$Resource$Regionnetworkfirewallpolicies$Patch, + patchAssociation( + params: Params$Resource$Regionnetworkfirewallpolicies$Patchassociation, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Regionnetworkfirewallpolicies$Patch, + patchAssociation( + params: Params$Resource$Regionnetworkfirewallpolicies$Patchassociation, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Regionnetworkfirewallpolicies$Patch, + patchAssociation( + params: Params$Resource$Regionnetworkfirewallpolicies$Patchassociation, callback: BodyResponseCallback ): void; - patch(callback: BodyResponseCallback): void; - patch( + patchAssociation(callback: BodyResponseCallback): void; + patchAssociation( paramsOrCallback?: - | Params$Resource$Regionnetworkfirewallpolicies$Patch + | Params$Resource$Regionnetworkfirewallpolicies$Patchassociation | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -199691,12 +201475,13 @@ export namespace compute_v1 { | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Regionnetworkfirewallpolicies$Patch; + {}) as Params$Resource$Regionnetworkfirewallpolicies$Patchassociation; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Regionnetworkfirewallpolicies$Patch; + params = + {} as Params$Resource$Regionnetworkfirewallpolicies$Patchassociation; options = {}; } @@ -199711,9 +201496,9 @@ export namespace compute_v1 { { url: ( rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}' + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'POST', apiVersion: '', }, options @@ -200638,6 +202423,12 @@ export namespace compute_v1 { } export interface Params$Resource$Regionnetworkfirewallpolicies$Addassociation extends StandardParameters { + /** + * Name of the firewall policy associated with the target network to swap + * association with. This field is mutually exclusive with + * 'replace_existing_association'. + */ + associatedPolicyToBeReplaced?: string; /** * Name of the firewall policy to update. */ @@ -201043,6 +202834,41 @@ export namespace compute_v1 { */ requestBody?: Schema$FirewallPolicy; } + export interface Params$Resource$Regionnetworkfirewallpolicies$Patchassociation extends StandardParameters { + /** + * Name of the firewall policy to update. + */ + firewallPolicy?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$FirewallPolicyAssociation; + } export interface Params$Resource$Regionnetworkfirewallpolicies$Patchrule extends StandardParameters { /** * Name of the firewall policy to update. diff --git a/src/apis/config/index.ts b/src/apis/config/index.ts index d01dfe67f4..0ca7384126 100644 --- a/src/apis/config/index.ts +++ b/src/apis/config/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/connectors/index.ts b/src/apis/connectors/index.ts index e1a3170041..ce5e4be844 100644 --- a/src/apis/connectors/index.ts +++ b/src/apis/connectors/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/contactcenteraiplatform/index.ts b/src/apis/contactcenteraiplatform/index.ts index c86590fab3..68b8816900 100644 --- a/src/apis/contactcenteraiplatform/index.ts +++ b/src/apis/contactcenteraiplatform/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/contactcenterinsights/index.ts b/src/apis/contactcenterinsights/index.ts index 6ee4dec4a2..e02e3c3ad6 100644 --- a/src/apis/contactcenterinsights/index.ts +++ b/src/apis/contactcenterinsights/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/container/index.ts b/src/apis/container/index.ts index bc049c3b44..ba18eee8ec 100644 --- a/src/apis/container/index.ts +++ b/src/apis/container/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/container/v1.ts b/src/apis/container/v1.ts index 7cd2598f9b..39f2b74a97 100644 --- a/src/apis/container/v1.ts +++ b/src/apis/container/v1.ts @@ -287,7 +287,7 @@ export namespace container_v1 { */ nodeReadinessConfig?: Schema$NodeReadinessConfig; /** - * Configuration for the Cloud Storage Parallelstore CSI driver. + * Deprecated: The Parallelstore CSI driver is no longer supported. Configuration for the Cloud Storage Parallelstore CSI driver. */ parallelstoreCsiDriverConfig?: Schema$ParallelstoreCsiDriverConfig; /** @@ -3502,6 +3502,10 @@ export namespace container_v1 { * Set the Pod PID limits. See https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits Controls the maximum number of processes allowed to run in a pod. The value must be greater than or equal to 1024 and less than 4194304. */ podPidsLimit?: string | null; + /** + * Optional. Controls the reserved resources on the node. Only included if any fields are specified. + */ + reservedResourcesConfig?: Schema$ReservedResourcesConfig; /** * Optional. shutdown_grace_period_critical_pods_seconds is the maximum allowed grace period (in seconds) used to terminate critical pods during a node shutdown. This value should be <= shutdown_grace_period_seconds, and is only valid if shutdown_grace_period_seconds is set. https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ Range: [0, 120]. */ @@ -3982,7 +3986,7 @@ export namespace container_v1 { status?: string | null; } /** - * Configuration for the Cloud Storage Parallelstore CSI driver. + * Deprecated: The Parallelstore CSI driver is no longer supported. Configuration for the Cloud Storage Parallelstore CSI driver. */ export interface Schema$ParallelstoreCsiDriverConfig { /** @@ -4330,6 +4334,27 @@ export namespace container_v1 { */ values?: string[] | null; } + /** + * ReservedResourcesConfig contains the configuration for the reserved resources on the node. + */ + export interface Schema$ReservedResourcesConfig { + /** + * Optional. The amount of CPU to reserve for system daemons. This is a user-specified value. If unspecified, GKE decides the default based on node version using different formula. + */ + cpuReservedMillicore?: string | null; + /** + * Output only. The effective amount of CPU reserved for system daemons. If `cpu_reserved_millicore` is specified, user-specified value is used. Otherwise the GKE default is applied. + */ + effectiveCpuReservedMillicore?: string | null; + /** + * Output only. The effective amount of memory reserved for system daemons. If `memory_reserved_mib` is specified, the user-specified value is used. Otherwise the GKE default is applied. + */ + effectiveMemoryReservedMib?: string | null; + /** + * Optional. The amount of memory to reserve for system daemons (in MiB). This is a user-specified value. If unspecified, GKE decides the default based on node version using different formula. + */ + memoryReservedMib?: string | null; + } /** * Collection of [Resource Manager labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). */ diff --git a/src/apis/container/v1beta1.ts b/src/apis/container/v1beta1.ts index 35042ed5f4..f1ef587475 100644 --- a/src/apis/container/v1beta1.ts +++ b/src/apis/container/v1beta1.ts @@ -187,6 +187,10 @@ export namespace container_v1beta1 { * Name of the VPC where the additional interface belongs */ network?: string | null; + /** + * Optional. Additional NIC stack type, configured by the client. + */ + stackType?: string | null; /** * Name of the subnetwork where the additional interface belongs */ @@ -299,7 +303,7 @@ export namespace container_v1beta1 { */ nodeReadinessConfig?: Schema$NodeReadinessConfig; /** - * Configuration for the Cloud Storage Parallelstore CSI driver. + * Deprecated: The Parallelstore CSI driver is no longer supported. Configuration for the Cloud Storage Parallelstore CSI driver. */ parallelstoreCsiDriverConfig?: Schema$ParallelstoreCsiDriverConfig; /** @@ -3753,6 +3757,10 @@ export namespace container_v1beta1 { * Set the Pod PID limits. See https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits Controls the maximum number of processes allowed to run in a pod. The value must be greater than or equal to 1024 and less than 4194304. */ podPidsLimit?: string | null; + /** + * Optional. Controls the reserved resources on the node. Only included if any fields are specified. + */ + reservedResourcesConfig?: Schema$ReservedResourcesConfig; /** * Optional. shutdown_grace_period_critical_pods_seconds is the maximum allowed grace period (in seconds) used to terminate critical pods during a node shutdown. This value should be <= shutdown_grace_period_seconds, and is only valid if shutdown_grace_period_seconds is set. https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ Range: [0, 120]. */ @@ -4259,7 +4267,7 @@ export namespace container_v1beta1 { nodeIdleTimeWindow?: string | null; } /** - * Configuration for the Cloud Storage Parallelstore CSI driver. + * Deprecated: The Parallelstore CSI driver is no longer supported. Configuration for the Cloud Storage Parallelstore CSI driver. */ export interface Schema$ParallelstoreCsiDriverConfig { /** @@ -4642,6 +4650,27 @@ export namespace container_v1beta1 { */ values?: string[] | null; } + /** + * ReservedResourcesConfig contains the configuration for the reserved resources on the node. + */ + export interface Schema$ReservedResourcesConfig { + /** + * Optional. The amount of CPU to reserve for system daemons. This is a user-specified value. If unspecified, GKE decides the default based on node version using different formula. + */ + cpuReservedMillicore?: string | null; + /** + * Output only. The effective amount of CPU reserved for system daemons. If `cpu_reserved_millicore` is specified, user-specified value is used. Otherwise the GKE default is applied. + */ + effectiveCpuReservedMillicore?: string | null; + /** + * Output only. The effective amount of memory reserved for system daemons. If `memory_reserved_mib` is specified, the user-specified value is used. Otherwise the GKE default is applied. + */ + effectiveMemoryReservedMib?: string | null; + /** + * Optional. The amount of memory to reserve for system daemons (in MiB). This is a user-specified value. If unspecified, GKE decides the default based on node version using different formula. + */ + memoryReservedMib?: string | null; + } /** * Collection of [Resource Manager labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). */ diff --git a/src/apis/containeranalysis/index.ts b/src/apis/containeranalysis/index.ts index 6f8f375d62..9c79269592 100644 --- a/src/apis/containeranalysis/index.ts +++ b/src/apis/containeranalysis/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/content/index.ts b/src/apis/content/index.ts index 42b931bebb..b56f6ff674 100644 --- a/src/apis/content/index.ts +++ b/src/apis/content/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/contentwarehouse/index.ts b/src/apis/contentwarehouse/index.ts index fee12f901f..ac5b6b0000 100644 --- a/src/apis/contentwarehouse/index.ts +++ b/src/apis/contentwarehouse/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/css/index.ts b/src/apis/css/index.ts index 53b7836d2f..e41c0636c9 100644 --- a/src/apis/css/index.ts +++ b/src/apis/css/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/curationpartners/index.ts b/src/apis/curationpartners/index.ts index 341991a5ca..183bee0f6b 100644 --- a/src/apis/curationpartners/index.ts +++ b/src/apis/curationpartners/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/customsearch/index.ts b/src/apis/customsearch/index.ts index 5b28faea58..b6ce267c81 100644 --- a/src/apis/customsearch/index.ts +++ b/src/apis/customsearch/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/databasecenter/index.ts b/src/apis/databasecenter/index.ts index ba830cecc1..8782510ff0 100644 --- a/src/apis/databasecenter/index.ts +++ b/src/apis/databasecenter/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/datacatalog/index.ts b/src/apis/datacatalog/index.ts index b9d3fe0117..e979cc492a 100644 --- a/src/apis/datacatalog/index.ts +++ b/src/apis/datacatalog/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/dataflow/index.ts b/src/apis/dataflow/index.ts index d32dd430f5..5903a99c54 100644 --- a/src/apis/dataflow/index.ts +++ b/src/apis/dataflow/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/dataform/index.ts b/src/apis/dataform/index.ts index 86d3155310..5d3a75b973 100644 --- a/src/apis/dataform/index.ts +++ b/src/apis/dataform/index.ts @@ -49,4 +49,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/dataform/v1.ts b/src/apis/dataform/v1.ts index 5ec1d12e72..8681161111 100644 --- a/src/apis/dataform/v1.ts +++ b/src/apis/dataform/v1.ts @@ -230,6 +230,64 @@ export namespace dataform_v1 { */ sqlScript?: string | null; } + /** + * Represents a BigQuery unit test. + */ + export interface Schema$BigQueryUnitTest { + /** + * A list of actions that this action depends on. + */ + dependencyTargets?: Schema$Target[]; + /** + * Whether this action is disabled (i.e. should not be run). + */ + disabled?: boolean | null; + /** + * The name of the unit test. + */ + displayName?: string | null; + /** + * Expected output query to compare against the test query. + */ + expectedOutputQuery?: string | null; + /** + * Arbitrary, user-defined tags on this action. + */ + tags?: string[] | null; + /** + * Test query to execute. + */ + testQuery?: string | null; + } + /** + * Represents a workflow action that will run a BigQuery unit test. + */ + export interface Schema$BigQueryUnitTestAction { + /** + * Output only. Job ID for the actual results. + */ + actualResultsJobId?: string | null; + /** + * Output only. SQL script for the actual results. + */ + actualResultsSqlScript?: string | null; + /** + * Output only. Job ID for the expected results. + */ + expectedResultsJobId?: string | null; + /** + * Output only. SQL script for the expected results. + */ + expectedResultsSqlScript?: string | null; + /** + * Output only. Total bytes billed for this action. Combined total for actual and expected jobs. + */ + totalBilledBytes?: string | null; + /** + * Output only. Total bytes processed for this action. Combined total for actual and expected jobs. + */ + totalProcessedBytes?: string | null; + } /** * Associates `members`, or principals, with a `role`. */ @@ -505,6 +563,10 @@ export namespace dataform_v1 { * The assertion executed by this action. */ assertion?: Schema$Assertion; + /** + * The unit test executed by this action. + */ + bigqueryUnitTest?: Schema$BigQueryUnitTest; /** * The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result. */ @@ -684,6 +746,28 @@ export namespace dataform_v1 { * 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); \} */ export interface Schema$Empty {} + /** + * Includes configuration options for repository end user authentication. + */ + export interface Schema$EndUserAuthConfig { + /** + * Optional. OAuth configuration for repository end user authentication. + */ + oauthConfig?: Schema$OAuthConfig; + } + /** + * Includes configuration options for end user authentication. + */ + export interface Schema$EndUserAuthenticationConfig { + /** + * Optional. OAuth configuration for end user authentication. + */ + oauthConfig?: Schema$OAuthConfig; + /** + * Output only. Email address of the user to run workflow invocations under. + */ + userEmail?: string | null; + } /** * Error table information, used to write error data into a BigQuery table. */ @@ -996,6 +1080,14 @@ export namespace dataform_v1 { * Includes various configuration options for a workflow invocation. If both `included_targets` and `included_tags` are unset, all actions will be included. */ export interface Schema$InvocationConfig { + /** + * Optional. Configuration for end user authentication. Note that this should not be set when `service_account` is used. + */ + endUserAuthConfig?: Schema$EndUserAuthenticationConfig; + /** + * Optional. Specifies the execution mode for the workflow invocation. + */ + executionMode?: string | null; /** * Optional. When set to true, any incremental tables will be fully refreshed. */ @@ -1323,6 +1415,15 @@ export namespace dataform_v1 { */ gcsRepositorySnapshotDestination?: Schema$GcsRepositorySnapshotDestination; } + /** + * OAuth configuration for end user authentication. + */ + export interface Schema$OAuthConfig { + /** + * Optional. Additional OAuth scopes to use for BigQuery executions. Scopes always in use: `https://www.googleapis.com/auth/bigquery` + */ + additionalOauthScopes?: string[] | null; + } /** * This resource represents a long-running operation that is the result of a network API call. */ @@ -1786,6 +1887,10 @@ export namespace dataform_v1 { * Optional. The repository's user-friendly name. */ displayName?: string | null; + /** + * Optional. Includes configuration options for end user authentication. + */ + endUserAuthConfig?: Schema$EndUserAuthConfig; /** * Optional. If set, configures this repository to be linked to a Git remote. */ @@ -2191,6 +2296,10 @@ export namespace dataform_v1 { * Output only. The workflow action's bigquery action details. */ bigqueryAction?: Schema$BigQueryAction; + /** + * Output only. The workflow action's unit test details. + */ + bigqueryUnitTestAction?: Schema$BigQueryUnitTestAction; /** * Output only. The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result. */ @@ -5749,6 +5858,7 @@ export namespace dataform_v1 { * // "createTime": "my_createTime", * // "dataEncryptionState": {}, * // "displayName": "my_displayName", + * // "endUserAuthConfig": {}, * // "gitRemoteSettings": {}, * // "internalMetadata": "my_internalMetadata", * // "kmsKeyName": "my_kmsKeyName", @@ -5770,6 +5880,7 @@ export namespace dataform_v1 { * // "createTime": "my_createTime", * // "dataEncryptionState": {}, * // "displayName": "my_displayName", + * // "endUserAuthConfig": {}, * // "gitRemoteSettings": {}, * // "internalMetadata": "my_internalMetadata", * // "kmsKeyName": "my_kmsKeyName", @@ -6356,6 +6467,7 @@ export namespace dataform_v1 { * // "createTime": "my_createTime", * // "dataEncryptionState": {}, * // "displayName": "my_displayName", + * // "endUserAuthConfig": {}, * // "gitRemoteSettings": {}, * // "internalMetadata": "my_internalMetadata", * // "kmsKeyName": "my_kmsKeyName", @@ -6951,6 +7063,7 @@ export namespace dataform_v1 { * // "createTime": "my_createTime", * // "dataEncryptionState": {}, * // "displayName": "my_displayName", + * // "endUserAuthConfig": {}, * // "gitRemoteSettings": {}, * // "internalMetadata": "my_internalMetadata", * // "kmsKeyName": "my_kmsKeyName", @@ -6972,6 +7085,7 @@ export namespace dataform_v1 { * // "createTime": "my_createTime", * // "dataEncryptionState": {}, * // "displayName": "my_displayName", + * // "endUserAuthConfig": {}, * // "gitRemoteSettings": {}, * // "internalMetadata": "my_internalMetadata", * // "kmsKeyName": "my_kmsKeyName", diff --git a/src/apis/dataform/v1beta1.ts b/src/apis/dataform/v1beta1.ts index 35191e8a9f..b92f60a6d3 100644 --- a/src/apis/dataform/v1beta1.ts +++ b/src/apis/dataform/v1beta1.ts @@ -230,6 +230,64 @@ export namespace dataform_v1beta1 { */ sqlScript?: string | null; } + /** + * Represents a BigQuery unit test. + */ + export interface Schema$BigQueryUnitTest { + /** + * A list of actions that this action depends on. + */ + dependencyTargets?: Schema$Target[]; + /** + * Whether this action is disabled (i.e. should not be run). + */ + disabled?: boolean | null; + /** + * The name of the unit test. + */ + displayName?: string | null; + /** + * Expected output query to compare against the test query. + */ + expectedOutputQuery?: string | null; + /** + * Arbitrary, user-defined tags on this action. + */ + tags?: string[] | null; + /** + * Test query to execute. + */ + testQuery?: string | null; + } + /** + * Represents a workflow action that will run a BigQuery unit test. + */ + export interface Schema$BigQueryUnitTestAction { + /** + * Output only. Job ID for the actual results. + */ + actualResultsJobId?: string | null; + /** + * Output only. SQL script for the actual results. + */ + actualResultsSqlScript?: string | null; + /** + * Output only. Job ID for the expected results. + */ + expectedResultsJobId?: string | null; + /** + * Output only. SQL script for the expected results. + */ + expectedResultsSqlScript?: string | null; + /** + * Output only. Total bytes billed for this action. Combined total for actual and expected jobs. + */ + totalBilledBytes?: string | null; + /** + * Output only. Total bytes processed for this action. Combined total for actual and expected jobs. + */ + totalProcessedBytes?: string | null; + } /** * Associates `members`, or principals, with a `role`. */ @@ -535,6 +593,10 @@ export namespace dataform_v1beta1 { * The assertion executed by this action. */ assertion?: Schema$Assertion; + /** + * The unit test executed by this action. + */ + bigqueryUnitTest?: Schema$BigQueryUnitTest; /** * The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result. */ @@ -740,6 +802,28 @@ export namespace dataform_v1beta1 { * 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); \} */ export interface Schema$Empty {} + /** + * Includes configuration options for repository end user authentication. + */ + export interface Schema$EndUserAuthConfig { + /** + * Optional. OAuth configuration for repository end user authentication. + */ + oauthConfig?: Schema$OAuthConfig; + } + /** + * Includes configuration options for end user authentication. + */ + export interface Schema$EndUserAuthenticationConfig { + /** + * Optional. OAuth configuration for end user authentication. + */ + oauthConfig?: Schema$OAuthConfig; + /** + * Output only. Email address of the user to run workflow invocations under. + */ + userEmail?: string | null; + } /** * Error table information, used to write error data into a BigQuery table. */ @@ -1074,6 +1158,14 @@ export namespace dataform_v1beta1 { * Includes various configuration options for a workflow invocation. If both `included_targets` and `included_tags` are unset, all actions will be included. */ export interface Schema$InvocationConfig { + /** + * Optional. Configuration for end user authentication. Note that this should not be set when `service_account` is used. + */ + endUserAuthConfig?: Schema$EndUserAuthenticationConfig; + /** + * Optional. Specifies the execution mode for the workflow invocation. + */ + executionMode?: string | null; /** * Optional. When set to true, any incremental tables will be fully refreshed. */ @@ -1401,6 +1493,15 @@ export namespace dataform_v1beta1 { */ gcsRepositorySnapshotDestination?: Schema$GcsRepositorySnapshotDestination; } + /** + * OAuth configuration for end user authentication. + */ + export interface Schema$OAuthConfig { + /** + * Optional. Additional OAuth scopes to use for BigQuery executions. Scopes always in use: `https://www.googleapis.com/auth/bigquery` + */ + additionalOauthScopes?: string[] | null; + } /** * This resource represents a long-running operation that is the result of a network API call. */ @@ -1864,6 +1965,10 @@ export namespace dataform_v1beta1 { * Optional. The repository's user-friendly name. */ displayName?: string | null; + /** + * Optional. Includes configuration options for end user authentication. + */ + endUserAuthConfig?: Schema$EndUserAuthConfig; /** * Optional. If set, configures this repository to be linked to a Git remote. */ @@ -2316,6 +2421,10 @@ export namespace dataform_v1beta1 { * Output only. The workflow action's bigquery action details. */ bigqueryAction?: Schema$BigQueryAction; + /** + * Output only. The workflow action's unit test details. + */ + bigqueryUnitTestAction?: Schema$BigQueryUnitTestAction; /** * Output only. The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result. */ @@ -5941,6 +6050,7 @@ export namespace dataform_v1beta1 { * // "createTime": "my_createTime", * // "dataEncryptionState": {}, * // "displayName": "my_displayName", + * // "endUserAuthConfig": {}, * // "gitRemoteSettings": {}, * // "internalMetadata": "my_internalMetadata", * // "kmsKeyName": "my_kmsKeyName", @@ -5962,6 +6072,7 @@ export namespace dataform_v1beta1 { * // "createTime": "my_createTime", * // "dataEncryptionState": {}, * // "displayName": "my_displayName", + * // "endUserAuthConfig": {}, * // "gitRemoteSettings": {}, * // "internalMetadata": "my_internalMetadata", * // "kmsKeyName": "my_kmsKeyName", @@ -6700,6 +6811,7 @@ export namespace dataform_v1beta1 { * // "createTime": "my_createTime", * // "dataEncryptionState": {}, * // "displayName": "my_displayName", + * // "endUserAuthConfig": {}, * // "gitRemoteSettings": {}, * // "internalMetadata": "my_internalMetadata", * // "kmsKeyName": "my_kmsKeyName", @@ -7298,6 +7410,7 @@ export namespace dataform_v1beta1 { * // "createTime": "my_createTime", * // "dataEncryptionState": {}, * // "displayName": "my_displayName", + * // "endUserAuthConfig": {}, * // "gitRemoteSettings": {}, * // "internalMetadata": "my_internalMetadata", * // "kmsKeyName": "my_kmsKeyName", @@ -7319,6 +7432,7 @@ export namespace dataform_v1beta1 { * // "createTime": "my_createTime", * // "dataEncryptionState": {}, * // "displayName": "my_displayName", + * // "endUserAuthConfig": {}, * // "gitRemoteSettings": {}, * // "internalMetadata": "my_internalMetadata", * // "kmsKeyName": "my_kmsKeyName", diff --git a/src/apis/datafusion/index.ts b/src/apis/datafusion/index.ts index 433070ee84..ef6dfc6722 100644 --- a/src/apis/datafusion/index.ts +++ b/src/apis/datafusion/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/datalabeling/index.ts b/src/apis/datalabeling/index.ts index 6fa40ffaf5..0485e1ac0b 100644 --- a/src/apis/datalabeling/index.ts +++ b/src/apis/datalabeling/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/datalineage/index.ts b/src/apis/datalineage/index.ts index 155014c738..f91362a3b3 100644 --- a/src/apis/datalineage/index.ts +++ b/src/apis/datalineage/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/datamanager/index.ts b/src/apis/datamanager/index.ts index 7f016e3c80..e56f8ae381 100644 --- a/src/apis/datamanager/index.ts +++ b/src/apis/datamanager/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/datamigration/index.ts b/src/apis/datamigration/index.ts index 8116462670..8b624d647f 100644 --- a/src/apis/datamigration/index.ts +++ b/src/apis/datamigration/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/datamigration/v1.ts b/src/apis/datamigration/v1.ts index c32e930eab..9a5f79515c 100644 --- a/src/apis/datamigration/v1.ts +++ b/src/apis/datamigration/v1.ts @@ -1841,7 +1841,7 @@ export namespace datamigration_v1 { */ originalMigrationName?: string | null; /** - * Optional. Data dump parallelism settings used by the migration. + * Optional. Data dump and load parallelism settings used by the migration. */ performanceConfig?: Schema$PerformanceConfig; /** @@ -2050,10 +2050,22 @@ export namespace datamigration_v1 { * Required. The network port of the source MySQL database. */ port?: number | null; + /** + * Private connectivity. + */ + privateConnectivity?: Schema$PrivateConnectivity; + /** + * Private Service Connect connectivity. + */ + privateServiceConnectConnectivity?: Schema$PrivateServiceConnectConnectivity; /** * SSL configuration for the destination to connect to the source database. */ ssl?: Schema$SslConfig; + /** + * Static Service IP connectivity. + */ + staticServiceIpConnectivity?: Schema$StaticServiceIpConnectivity; /** * Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service. */ @@ -2246,6 +2258,10 @@ export namespace datamigration_v1 { * Initial dump parallelism level. */ dumpParallelLevel?: string | null; + /** + * Optional. Initial load parallelism level. + */ + loadParallelLevel?: string | null; } /** * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **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')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} ``` **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') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). @@ -2364,7 +2380,7 @@ export namespace datamigration_v1 { */ privateConnectivity?: Schema$PrivateConnectivity; /** - * Private service connect connectivity. + * Private Service Connect connectivity. */ privateServiceConnectConnectivity?: Schema$PrivateServiceConnectConnectivity; /** diff --git a/src/apis/datapipelines/index.ts b/src/apis/datapipelines/index.ts index 85e4335054..1479aafbea 100644 --- a/src/apis/datapipelines/index.ts +++ b/src/apis/datapipelines/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/dataplex/index.ts b/src/apis/dataplex/index.ts index 63d8483074..0c16c169d1 100644 --- a/src/apis/dataplex/index.ts +++ b/src/apis/dataplex/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/dataportability/index.ts b/src/apis/dataportability/index.ts index 1959f070e8..3720f976b4 100644 --- a/src/apis/dataportability/index.ts +++ b/src/apis/dataportability/index.ts @@ -61,4 +61,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/dataproc/index.ts b/src/apis/dataproc/index.ts index fa3a4ce64a..06b3fde73e 100644 --- a/src/apis/dataproc/index.ts +++ b/src/apis/dataproc/index.ts @@ -49,4 +49,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/datastore/index.ts b/src/apis/datastore/index.ts index e3fa5a4556..2c6affe2a9 100644 --- a/src/apis/datastore/index.ts +++ b/src/apis/datastore/index.ts @@ -68,4 +68,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/datastream/index.ts b/src/apis/datastream/index.ts index 9fa792c55c..373f1aacd4 100644 --- a/src/apis/datastream/index.ts +++ b/src/apis/datastream/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/deploymentmanager/alpha.ts b/src/apis/deploymentmanager/alpha.ts index cb0a231af3..2de5e4a8ab 100644 --- a/src/apis/deploymentmanager/alpha.ts +++ b/src/apis/deploymentmanager/alpha.ts @@ -541,22 +541,59 @@ export namespace deploymentmanager_alpha { */ title?: string | null; } + /** + * Metadata for FirewallPolicyRule operations. + */ export interface Schema$FirewallPolicyRuleOperationMetadata { /** - * The priority allocated for the firewall policy rule if query parameters specified minPriority/maxPriority. + * Output only. [Output Only] The priority allocated for the firewall policy rule if query parameters specified minPriority/maxPriority. */ allocatedPriority?: number | null; } + /** + * Metadata for GetHealth operations. + */ + export interface Schema$GetHealthOperationMetadata { + /** + * Output only. The health information. + */ + healthInfo?: Schema$GetHealthOperationMetadataHealthInfo; + } + /** + * Health information. + */ + export interface Schema$GetHealthOperationMetadataHealthInfo { + /** + * Output only. The availability SLO status. + */ + availabilitySloStatus?: string | null; + /** + * Output only. The health status. + */ + healthStatus?: string | null; + /** + * Output only. The repair category. + */ + repairCategory?: string | null; + /** + * Output only. The reason for unhealthy status. + */ + unhealthyReason?: string | null; + /** + * Output only. The time when health info was updated. + */ + updateTime?: string | null; + } export interface Schema$GetVersionOperationMetadata { inlineSbomInfo?: Schema$GetVersionOperationMetadataSbomInfo; } export interface Schema$GetVersionOperationMetadataSbomInfo { /** - * SBOM versions currently applied to the resource. The key is the component name and the value is the version. + * A mapping of components to their currently-applied versions or other appropriate identifiers. */ currentComponentVersions?: {[key: string]: string} | null; /** - * SBOM versions scheduled for the next maintenance. The key is the component name and the value is the version. + * A mapping of components to their target versions or other appropriate identifiers. */ targetComponentVersions?: {[key: string]: string} | null; } @@ -643,6 +680,15 @@ export namespace deploymentmanager_alpha { [key: string]: Schema$BulkInsertOperationStatus; } | null; } + /** + * [Output Only] Operation metadata for instances.troubleshoot. + */ + export interface Schema$InstancesTroubleshootOperationMetadata { + /** + * Output only. [Output Only] Serialized output of the troubleshooting diagnostic run. + */ + troubleshootOutput?: string | null; + } /** * Provides a localized error message that is safe to return to the user which can be attached to an RPC error. */ @@ -749,6 +795,10 @@ export namespace deploymentmanager_alpha { * [Output Only] A textual description of the operation, which is set when the operation is created. */ description?: string | null; + /** + * [Output Only] Extended details about the operation's execution. + */ + details?: Schema$OperationDetails; /** * [Output Only] The time that this operation was completed. This value is in RFC3339 text format. */ @@ -771,7 +821,14 @@ export namespace deploymentmanager_alpha { message?: string; }>; } | null; + /** + * Output only. [Output Only] Metadata containing the allocated priority from the networkFirewallPolicies.addRule and regionNetworkFirewallPolicies.addRule methods if not explicitly provided by the user. + */ firewallPolicyRuleOperationMetadata?: Schema$FirewallPolicyRuleOperationMetadata; + /** + * Output only. Metadata for GetHealth operations. + */ + getHealthOperationMetadata?: Schema$GetHealthOperationMetadata; getVersionOperationMetadata?: Schema$GetVersionOperationMetadata; /** * [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. @@ -790,6 +847,10 @@ export namespace deploymentmanager_alpha { */ insertTime?: string | null; instancesBulkInsertOperationMetadata?: Schema$InstancesBulkInsertOperationMetadata; + /** + * Output only. [Output Only] Operation metadata for instances.troubleshoot. + */ + instancesTroubleshootOperationMetadata?: Schema$InstancesTroubleshootOperationMetadata; /** * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation resources. */ @@ -867,6 +928,16 @@ export namespace deploymentmanager_alpha { */ zone?: string | null; } + export interface Schema$OperationDetails { + /** + * Machine readable data from the message. + */ + data?: {[key: string]: any} | null; + /** + * Human or AI readable details on execution of the operation. + */ + message?: string | null; + } /** * A response containing a partial list of operations and a page token used to build the next request if the request has been truncated. */ @@ -1482,15 +1553,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -1825,15 +1899,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -2171,15 +2248,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -2361,15 +2441,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -2652,15 +2735,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -2828,15 +2914,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -3333,15 +3422,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -3687,15 +3779,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -4024,15 +4119,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -4380,15 +4478,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -5148,15 +5249,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -5885,15 +5989,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -6387,15 +6494,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -6896,15 +7006,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -7088,15 +7201,18 @@ export namespace deploymentmanager_alpha { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", diff --git a/src/apis/deploymentmanager/index.ts b/src/apis/deploymentmanager/index.ts index 7890f26bcd..e0530239e9 100644 --- a/src/apis/deploymentmanager/index.ts +++ b/src/apis/deploymentmanager/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/deploymentmanager/v2.ts b/src/apis/deploymentmanager/v2.ts index 017b9e9935..7f7b36b979 100644 --- a/src/apis/deploymentmanager/v2.ts +++ b/src/apis/deploymentmanager/v2.ts @@ -366,22 +366,59 @@ export namespace deploymentmanager_v2 { */ title?: string | null; } + /** + * Metadata for FirewallPolicyRule operations. + */ export interface Schema$FirewallPolicyRuleOperationMetadata { /** - * The priority allocated for the firewall policy rule if query parameters specified minPriority/maxPriority. + * Output only. [Output Only] The priority allocated for the firewall policy rule if query parameters specified minPriority/maxPriority. */ allocatedPriority?: number | null; } + /** + * Metadata for GetHealth operations. + */ + export interface Schema$GetHealthOperationMetadata { + /** + * Output only. The health information. + */ + healthInfo?: Schema$GetHealthOperationMetadataHealthInfo; + } + /** + * Health information. + */ + export interface Schema$GetHealthOperationMetadataHealthInfo { + /** + * Output only. The availability SLO status. + */ + availabilitySloStatus?: string | null; + /** + * Output only. The health status. + */ + healthStatus?: string | null; + /** + * Output only. The repair category. + */ + repairCategory?: string | null; + /** + * Output only. The reason for unhealthy status. + */ + unhealthyReason?: string | null; + /** + * Output only. The time when health info was updated. + */ + updateTime?: string | null; + } export interface Schema$GetVersionOperationMetadata { inlineSbomInfo?: Schema$GetVersionOperationMetadataSbomInfo; } export interface Schema$GetVersionOperationMetadataSbomInfo { /** - * SBOM versions currently applied to the resource. The key is the component name and the value is the version. + * A mapping of components to their currently-applied versions or other appropriate identifiers. */ currentComponentVersions?: {[key: string]: string} | null; /** - * SBOM versions scheduled for the next maintenance. The key is the component name and the value is the version. + * A mapping of components to their target versions or other appropriate identifiers. */ targetComponentVersions?: {[key: string]: string} | null; } @@ -447,6 +484,15 @@ export namespace deploymentmanager_v2 { [key: string]: Schema$BulkInsertOperationStatus; } | null; } + /** + * [Output Only] Operation metadata for instances.troubleshoot. + */ + export interface Schema$InstancesTroubleshootOperationMetadata { + /** + * Output only. [Output Only] Serialized output of the troubleshooting diagnostic run. + */ + troubleshootOutput?: string | null; + } /** * Provides a localized error message that is safe to return to the user which can be attached to an RPC error. */ @@ -528,6 +574,10 @@ export namespace deploymentmanager_v2 { * [Output Only] A textual description of the operation, which is set when the operation is created. */ description?: string | null; + /** + * [Output Only] Extended details about the operation's execution. + */ + details?: Schema$OperationDetails; /** * [Output Only] The time that this operation was completed. This value is in RFC3339 text format. */ @@ -550,7 +600,14 @@ export namespace deploymentmanager_v2 { message?: string; }>; } | null; + /** + * Output only. [Output Only] Metadata containing the allocated priority from the networkFirewallPolicies.addRule and regionNetworkFirewallPolicies.addRule methods if not explicitly provided by the user. + */ firewallPolicyRuleOperationMetadata?: Schema$FirewallPolicyRuleOperationMetadata; + /** + * Output only. Metadata for GetHealth operations. + */ + getHealthOperationMetadata?: Schema$GetHealthOperationMetadata; getVersionOperationMetadata?: Schema$GetVersionOperationMetadata; /** * [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. @@ -569,6 +626,10 @@ export namespace deploymentmanager_v2 { */ insertTime?: string | null; instancesBulkInsertOperationMetadata?: Schema$InstancesBulkInsertOperationMetadata; + /** + * Output only. [Output Only] Operation metadata for instances.troubleshoot. + */ + instancesTroubleshootOperationMetadata?: Schema$InstancesTroubleshootOperationMetadata; /** * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation resources. */ @@ -646,6 +707,16 @@ export namespace deploymentmanager_v2 { */ zone?: string | null; } + export interface Schema$OperationDetails { + /** + * Machine readable data from the message. + */ + data?: {[key: string]: any} | null; + /** + * Human or AI readable details on execution of the operation. + */ + message?: string | null; + } /** * A response containing a partial list of operations and a page token used to build the next request if the request has been truncated. */ @@ -1004,15 +1075,18 @@ export namespace deploymentmanager_v2 { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -1180,15 +1254,18 @@ export namespace deploymentmanager_v2 { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -1681,15 +1758,18 @@ export namespace deploymentmanager_v2 { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -2033,15 +2113,18 @@ export namespace deploymentmanager_v2 { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -2370,15 +2453,18 @@ export namespace deploymentmanager_v2 { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -2724,15 +2810,18 @@ export namespace deploymentmanager_v2 { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -3492,15 +3581,18 @@ export namespace deploymentmanager_v2 { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", diff --git a/src/apis/deploymentmanager/v2beta.ts b/src/apis/deploymentmanager/v2beta.ts index 66478d996a..559ef544c4 100644 --- a/src/apis/deploymentmanager/v2beta.ts +++ b/src/apis/deploymentmanager/v2beta.ts @@ -512,22 +512,59 @@ export namespace deploymentmanager_v2beta { */ title?: string | null; } + /** + * Metadata for FirewallPolicyRule operations. + */ export interface Schema$FirewallPolicyRuleOperationMetadata { /** - * The priority allocated for the firewall policy rule if query parameters specified minPriority/maxPriority. + * Output only. [Output Only] The priority allocated for the firewall policy rule if query parameters specified minPriority/maxPriority. */ allocatedPriority?: number | null; } + /** + * Metadata for GetHealth operations. + */ + export interface Schema$GetHealthOperationMetadata { + /** + * Output only. The health information. + */ + healthInfo?: Schema$GetHealthOperationMetadataHealthInfo; + } + /** + * Health information. + */ + export interface Schema$GetHealthOperationMetadataHealthInfo { + /** + * Output only. The availability SLO status. + */ + availabilitySloStatus?: string | null; + /** + * Output only. The health status. + */ + healthStatus?: string | null; + /** + * Output only. The repair category. + */ + repairCategory?: string | null; + /** + * Output only. The reason for unhealthy status. + */ + unhealthyReason?: string | null; + /** + * Output only. The time when health info was updated. + */ + updateTime?: string | null; + } export interface Schema$GetVersionOperationMetadata { inlineSbomInfo?: Schema$GetVersionOperationMetadataSbomInfo; } export interface Schema$GetVersionOperationMetadataSbomInfo { /** - * SBOM versions currently applied to the resource. The key is the component name and the value is the version. + * A mapping of components to their currently-applied versions or other appropriate identifiers. */ currentComponentVersions?: {[key: string]: string} | null; /** - * SBOM versions scheduled for the next maintenance. The key is the component name and the value is the version. + * A mapping of components to their target versions or other appropriate identifiers. */ targetComponentVersions?: {[key: string]: string} | null; } @@ -614,6 +651,15 @@ export namespace deploymentmanager_v2beta { [key: string]: Schema$BulkInsertOperationStatus; } | null; } + /** + * [Output Only] Operation metadata for instances.troubleshoot. + */ + export interface Schema$InstancesTroubleshootOperationMetadata { + /** + * Output only. [Output Only] Serialized output of the troubleshooting diagnostic run. + */ + troubleshootOutput?: string | null; + } /** * Provides a localized error message that is safe to return to the user which can be attached to an RPC error. */ @@ -695,6 +741,10 @@ export namespace deploymentmanager_v2beta { * [Output Only] A textual description of the operation, which is set when the operation is created. */ description?: string | null; + /** + * [Output Only] Extended details about the operation's execution. + */ + details?: Schema$OperationDetails; /** * [Output Only] The time that this operation was completed. This value is in RFC3339 text format. */ @@ -717,7 +767,14 @@ export namespace deploymentmanager_v2beta { message?: string; }>; } | null; + /** + * Output only. [Output Only] Metadata containing the allocated priority from the networkFirewallPolicies.addRule and regionNetworkFirewallPolicies.addRule methods if not explicitly provided by the user. + */ firewallPolicyRuleOperationMetadata?: Schema$FirewallPolicyRuleOperationMetadata; + /** + * Output only. Metadata for GetHealth operations. + */ + getHealthOperationMetadata?: Schema$GetHealthOperationMetadata; getVersionOperationMetadata?: Schema$GetVersionOperationMetadata; /** * [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. @@ -736,6 +793,10 @@ export namespace deploymentmanager_v2beta { */ insertTime?: string | null; instancesBulkInsertOperationMetadata?: Schema$InstancesBulkInsertOperationMetadata; + /** + * Output only. [Output Only] Operation metadata for instances.troubleshoot. + */ + instancesTroubleshootOperationMetadata?: Schema$InstancesTroubleshootOperationMetadata; /** * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation resources. */ @@ -813,6 +874,16 @@ export namespace deploymentmanager_v2beta { */ zone?: string | null; } + export interface Schema$OperationDetails { + /** + * Machine readable data from the message. + */ + data?: {[key: string]: any} | null; + /** + * Human or AI readable details on execution of the operation. + */ + message?: string | null; + } /** * A response containing a partial list of operations and a page token used to build the next request if the request has been truncated. */ @@ -1412,15 +1483,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -1755,15 +1829,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -2101,15 +2178,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -2291,15 +2371,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -2582,15 +2665,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -2758,15 +2844,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -3259,15 +3348,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -3611,15 +3703,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -3948,15 +4043,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -4302,15 +4400,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -5070,15 +5171,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -5805,15 +5909,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -6307,15 +6414,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -6816,15 +6926,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", @@ -7008,15 +7121,18 @@ export namespace deploymentmanager_v2beta { * // "clientOperationId": "my_clientOperationId", * // "creationTimestamp": "my_creationTimestamp", * // "description": "my_description", + * // "details": {}, * // "endTime": "my_endTime", * // "error": {}, * // "firewallPolicyRuleOperationMetadata": {}, + * // "getHealthOperationMetadata": {}, * // "getVersionOperationMetadata": {}, * // "httpErrorMessage": "my_httpErrorMessage", * // "httpErrorStatusCode": 0, * // "id": "my_id", * // "insertTime": "my_insertTime", * // "instancesBulkInsertOperationMetadata": {}, + * // "instancesTroubleshootOperationMetadata": {}, * // "kind": "my_kind", * // "name": "my_name", * // "operationGroupId": "my_operationGroupId", diff --git a/src/apis/developerconnect/index.ts b/src/apis/developerconnect/index.ts index 95a00bf6a5..b1e9163600 100644 --- a/src/apis/developerconnect/index.ts +++ b/src/apis/developerconnect/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/developerknowledge/index.ts b/src/apis/developerknowledge/index.ts index 59abc61668..744d0dee8c 100644 --- a/src/apis/developerknowledge/index.ts +++ b/src/apis/developerknowledge/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/dfareporting/index.ts b/src/apis/dfareporting/index.ts index 7491586554..6af9cfcfe1 100644 --- a/src/apis/dfareporting/index.ts +++ b/src/apis/dfareporting/index.ts @@ -78,4 +78,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/dialogflow/index.ts b/src/apis/dialogflow/index.ts index d0d52d5c05..85c3bf0f7f 100644 --- a/src/apis/dialogflow/index.ts +++ b/src/apis/dialogflow/index.ts @@ -78,4 +78,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/digitalassetlinks/index.ts b/src/apis/digitalassetlinks/index.ts index 16201b4efe..6ce4ba289a 100644 --- a/src/apis/digitalassetlinks/index.ts +++ b/src/apis/digitalassetlinks/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/discovery/index.ts b/src/apis/discovery/index.ts index d893b0d433..b7a9dd12c6 100644 --- a/src/apis/discovery/index.ts +++ b/src/apis/discovery/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/discoveryengine/index.ts b/src/apis/discoveryengine/index.ts index e3802d97e9..567866a8eb 100644 --- a/src/apis/discoveryengine/index.ts +++ b/src/apis/discoveryengine/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/discoveryengine/v1.ts b/src/apis/discoveryengine/v1.ts index f911b2149e..a4d04baf04 100644 --- a/src/apis/discoveryengine/v1.ts +++ b/src/apis/discoveryengine/v1.ts @@ -5249,6 +5249,10 @@ export namespace discoveryengine_v1 { * Optional. Configuration for NotebookLM settings. */ notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig; + /** + * Optional. Resource-level access control config for Gemini Enterprise users. + */ + resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig; } /** * Configuration for NotebookLM. @@ -5302,6 +5306,15 @@ export namespace discoveryengine_v1 { */ userPromptTemplate?: string | null; } + /** + * Controls resource-level access control for Gemini Enterprise users. + */ + export interface Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig { + /** + * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on. + */ + dataStoreAccessControlEnabled?: boolean | null; + } /** * Metadata about the terms of service. */ @@ -5546,6 +5559,10 @@ export namespace discoveryengine_v1 { * This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is only supported for A2UI messages. */ uiJsonPayload?: string | null; + /** + * Reference to a user-supplied file attached to a long-running-agent (Sobi) task. See `UserSuppliedSobiArtifactReference` above. + */ + userSuppliedSobiArtifactReference?: Schema$GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference; } /** * Represents a document reference. @@ -5638,6 +5655,19 @@ export namespace discoveryengine_v1 { */ personId?: string | null; } + /** + * Reference to a user-supplied file attached to a long-running-agent (Sobi) task. Rendered by the client as an attachment chip on the user turn's bubble. The file itself is stored on the task's `AgentArtifact` list; the client resolves full metadata (source URI, size, ...) for download or preview by calling `GetTask` on the Sobi Task API and matching `AgentArtifact.name` against `file_name`. Only `file_name` and `mime_type` appear on this wire deliberately: the backing `gs://` or Drive URI is not exposed to conversation-history readers. Same variant is used for both byte-uploaded and Drive-picked files -- "user attached a file" is one concept regardless of source. + */ + export interface Schema$GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference { + /** + * Required. Client-supplied filename. Unique per task within the user-supplied artifact set (UI dedupes before upload). Doubles as the artifact identifier used to look up the artifact on `Task.artifacts`. The `_name` suffix is deliberate and the AIP-122 lint is suppressed: this field is not a resource name (which is what AIP-122 reserves the bare `name` for). It is the literal filename, and it serves as the join key against `AgentArtifact.name` on the backing Sobi task -- a structural role that `title` or `display_name` would not communicate to a client picking what to send. The internal mirror (`cloud/ml/discoveryengine/schema/assistant.proto`) uses the same field name so the round-trip converter stays name-for-name. + */ + fileName?: string | null; + /** + * Optional. IANA MIME type. Used for icon/preview rendering. + */ + mimeType?: string | null; + } /** * Metadata related to the progress of the SiteSearchEngineService.RecrawlUris operation. This will be returned by the google.longrunning.Operation.metadata field. */ @@ -6519,6 +6549,27 @@ export namespace discoveryengine_v1 { * The condition under which search as you type should occur. Default to Condition.DISABLED. */ condition?: string | null; + /** + * Optional. The list of fields to be used for Search As You Type scoring. + */ + fields?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField[]; + /** + * Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` \>= `score_threshold`. + */ + scoreThreshold?: number | null; + } + /** + * A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request. + */ + export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField { + /** + * Required. A field key that has been indexed for Search As You Type. + */ + key?: string | null; + /** + * Optional. Weight for scores from this field. Defaults to 1.0 if not specified. + */ + weight?: number | null; } /** * Session specification. @@ -10284,6 +10335,10 @@ export namespace discoveryengine_v1 { * Optional. Configuration for NotebookLM settings. */ notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig; + /** + * Optional. Resource-level access control config for Gemini Enterprise users. + */ + resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig; } /** * Configuration for NotebookLM. @@ -10337,6 +10392,15 @@ export namespace discoveryengine_v1 { */ userPromptTemplate?: string | null; } + /** + * Controls resource-level access control for Gemini Enterprise users. + */ + export interface Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig { + /** + * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on. + */ + dataStoreAccessControlEnabled?: boolean | null; + } /** * Metadata about the terms of service. */ @@ -11185,6 +11249,27 @@ export namespace discoveryengine_v1 { * The condition under which search as you type should occur. Default to Condition.DISABLED. */ condition?: string | null; + /** + * Optional. The list of fields to be used for Search As You Type scoring. + */ + fields?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField[]; + /** + * Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` \>= `score_threshold`. + */ + scoreThreshold?: number | null; + } + /** + * A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request. + */ + export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField { + /** + * Required. A field key that has been indexed for Search As You Type. + */ + key?: string | null; + /** + * Optional. Weight for scores from this field. Defaults to 1.0 if not specified. + */ + weight?: number | null; } /** * Session specification. @@ -15025,6 +15110,10 @@ export namespace discoveryengine_v1 { * Optional. Configuration for NotebookLM settings. */ notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig; + /** + * Optional. Resource-level access control config for Gemini Enterprise users. + */ + resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig; } /** * Configuration for NotebookLM. @@ -15078,6 +15167,15 @@ export namespace discoveryengine_v1 { */ userPromptTemplate?: string | null; } + /** + * Controls resource-level access control for Gemini Enterprise users. + */ + export interface Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig { + /** + * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on. + */ + dataStoreAccessControlEnabled?: boolean | null; + } /** * Metadata about the terms of service. */ @@ -16173,6 +16271,27 @@ export namespace discoveryengine_v1 { * The condition under which search as you type should occur. Default to Condition.DISABLED. */ condition?: string | null; + /** + * Optional. The list of fields to be used for Search As You Type scoring. + */ + fields?: Schema$GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpecField[]; + /** + * Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` \>= `score_threshold`. + */ + scoreThreshold?: number | null; + } + /** + * A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request. + */ + export interface Schema$GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpecField { + /** + * Required. A field key that has been indexed for Search As You Type. + */ + key?: string | null; + /** + * Optional. Weight for scores from this field. Defaults to 1.0 if not specified. + */ + weight?: number | null; } /** * Session specification. @@ -18218,6 +18337,10 @@ export namespace discoveryengine_v1 { * Output only. Localized display name of the model (e.g. `Gemini 3.1 Pro`). Localized server-side based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code of the request. */ displayName?: string | null; + /** + * Output only. Groups models that render together in the selector. Models sharing a value form one group; empty means the model belongs to no group. Compared for equality only -- never parsed, and never shown to a user, so it is not localized. + */ + family?: string | null; /** * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`). */ diff --git a/src/apis/discoveryengine/v1alpha.ts b/src/apis/discoveryengine/v1alpha.ts index 6c298616d1..86b3e66215 100644 --- a/src/apis/discoveryengine/v1alpha.ts +++ b/src/apis/discoveryengine/v1alpha.ts @@ -2528,7 +2528,7 @@ export namespace discoveryengine_v1alpha { */ generationConfig?: Schema$GoogleCloudDiscoveryengineV1alphaAssistantGenerationConfig; /** - * Optional. Indicates whether Knowledge Catalog is enabled for this specific assistant. When enabled, it powers discovery context using organizational data. + * Optional. Indicates whether Knowledge Catalog is enabled for this specific assistant. When enabled, it powers discovery context using organizational data. If unspecified, defaults to true. */ knowledgeCatalogEnabled?: boolean | null; /** @@ -8128,6 +8128,10 @@ export namespace discoveryengine_v1alpha { * Optional. Configuration for NotebookLM settings. */ notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig; + /** + * Optional. Resource-level access control config for Gemini Enterprise users. + */ + resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig; } /** * Configuration for NotebookLM. @@ -8181,6 +8185,15 @@ export namespace discoveryengine_v1alpha { */ userPromptTemplate?: string | null; } + /** + * Controls resource-level access control for Gemini Enterprise users. + */ + export interface Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig { + /** + * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on. + */ + dataStoreAccessControlEnabled?: boolean | null; + } /** * Metadata about the terms of service. */ @@ -8584,6 +8597,10 @@ export namespace discoveryengine_v1alpha { * This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is only supported for A2UI messages. */ uiJsonPayload?: string | null; + /** + * Reference to a user-supplied file attached to a long-running-agent (Sobi) task. See `UserSuppliedSobiArtifactReference` above. + */ + userSuppliedSobiArtifactReference?: Schema$GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference; } /** * Represents a document reference. @@ -8676,6 +8693,19 @@ export namespace discoveryengine_v1alpha { */ personId?: string | null; } + /** + * Reference to a user-supplied file attached to a long-running-agent (Sobi) task. Rendered by the client as an attachment chip on the user turn's bubble. The file itself is stored on the task's `AgentArtifact` list; the client resolves full metadata (source URI, size, ...) for download or preview by calling `GetTask` on the Sobi Task API and matching `AgentArtifact.name` against `file_name`. Only `file_name` and `mime_type` appear on this wire deliberately: the backing `gs://` or Drive URI is not exposed to conversation-history readers. Same variant is used for both byte-uploaded and Drive-picked files -- "user attached a file" is one concept regardless of source. + */ + export interface Schema$GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference { + /** + * Required. Client-supplied filename. Unique per task within the user-supplied artifact set (UI dedupes before upload). Doubles as the artifact identifier used to look up the artifact on `Task.artifacts`. The `_name` suffix is deliberate and the AIP-122 lint is suppressed: this field is not a resource name (which is what AIP-122 reserves the bare `name` for). It is the literal filename, and it serves as the join key against `AgentArtifact.name` on the backing Sobi task -- a structural role that `title` or `display_name` would not communicate to a client picking what to send. The internal mirror (`cloud/ml/discoveryengine/schema/assistant.proto`) uses the same field name so the round-trip converter stays name-for-name. + */ + fileName?: string | null; + /** + * Optional. IANA MIME type. Used for icon/preview rendering. + */ + mimeType?: string | null; + } /** * Record message for RankService.Rank method. */ @@ -10030,6 +10060,27 @@ export namespace discoveryengine_v1alpha { * The condition under which search as you type should occur. Default to Condition.DISABLED. */ condition?: string | null; + /** + * Optional. The list of fields to be used for Search As You Type scoring. + */ + fields?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField[]; + /** + * Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` \>= `score_threshold`. + */ + scoreThreshold?: number | null; + } + /** + * A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request. + */ + export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField { + /** + * Required. A field key that has been indexed for Search As You Type. + */ + key?: string | null; + /** + * Optional. Weight for scores from this field. Defaults to 1.0 if not specified. + */ + weight?: number | null; } /** * Session specification. @@ -12432,6 +12483,10 @@ export namespace discoveryengine_v1alpha { * Output only. Localized display name of the model (e.g. `Gemini 3.1 Pro`). Localized server-side based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code of the request. */ displayName?: string | null; + /** + * Output only. Groups models that render together in the selector. Models sharing a value form one group; empty means the model belongs to no group. Compared for equality only -- never parsed, and never shown to a user, so it is not localized. + */ + family?: string | null; /** * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`). */ @@ -14595,6 +14650,10 @@ export namespace discoveryengine_v1alpha { * Optional. Configuration for NotebookLM settings. */ notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig; + /** + * Optional. Resource-level access control config for Gemini Enterprise users. + */ + resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig; } /** * Configuration for NotebookLM. @@ -14648,6 +14707,15 @@ export namespace discoveryengine_v1alpha { */ userPromptTemplate?: string | null; } + /** + * Controls resource-level access control for Gemini Enterprise users. + */ + export interface Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig { + /** + * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on. + */ + dataStoreAccessControlEnabled?: boolean | null; + } /** * Metadata about the terms of service. */ @@ -15496,6 +15564,27 @@ export namespace discoveryengine_v1alpha { * The condition under which search as you type should occur. Default to Condition.DISABLED. */ condition?: string | null; + /** + * Optional. The list of fields to be used for Search As You Type scoring. + */ + fields?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField[]; + /** + * Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` \>= `score_threshold`. + */ + scoreThreshold?: number | null; + } + /** + * A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request. + */ + export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField { + /** + * Required. A field key that has been indexed for Search As You Type. + */ + key?: string | null; + /** + * Optional. Weight for scores from this field. Defaults to 1.0 if not specified. + */ + weight?: number | null; } /** * Session specification. @@ -17779,6 +17868,10 @@ export namespace discoveryengine_v1alpha { * Optional. Configuration for NotebookLM settings. */ notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig; + /** + * Optional. Resource-level access control config for Gemini Enterprise users. + */ + resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig; } /** * Configuration for NotebookLM. @@ -17832,6 +17925,15 @@ export namespace discoveryengine_v1alpha { */ userPromptTemplate?: string | null; } + /** + * Controls resource-level access control for Gemini Enterprise users. + */ + export interface Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig { + /** + * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on. + */ + dataStoreAccessControlEnabled?: boolean | null; + } /** * Metadata about the terms of service. */ @@ -18560,6 +18662,32 @@ export namespace discoveryengine_v1alpha { */ type?: string | null; } + /** + * Account and role information. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaAccountAndRole { + /** + * Required. The email address associated with the account. + */ + email?: string | null; + /** + * Required. The role in the notebook. + */ + role?: string | null; + } + /** + * Metadata about an agentspace source. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaAgentspaceMetadata { + /** + * Output only. The full document name in Agentspace. + */ + documentName?: string | null; + /** + * Output only. The title of the document. + */ + documentTitle?: string | null; + } /** * An audio overview of a notebook. This is a summary of the notebook in audio format. */ @@ -18606,6 +18734,51 @@ export namespace discoveryengine_v1alpha { */ sourceIds?: Schema$GoogleCloudNotebooklmV1alphaSourceId[]; } + /** + * Request for SourceService.BatchCreateSources method. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest { + /** + * Required. The UserContents to be uploaded. + */ + userContents?: Schema$GoogleCloudNotebooklmV1alphaUserContent[]; + } + /** + * Response for SourceService.BatchCreateSources method. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse { + /** + * The Sources. + */ + sources?: Schema$GoogleCloudNotebooklmV1alphaSource[]; + } + /** + * Request for NotebookService.BatchDeleteNotebooks method. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest { + /** + * Required. Full resource names of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`. + */ + names?: string[] | null; + } + /** + * Request for BatchDeleteSourcesRequest method. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest { + /** + * Required. Names of sources to be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\} + */ + names?: string[] | null; + } + /** + * Customer-managed encryption configuration for Notebooks. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaCmekConfig { + /** + * Required. KMS key resource name which will be used to encrypt resources `projects/{project\}/locations/{location\}/keyRings/{keyRing\}/cryptoKeys/{keyId\}`. + */ + kmsKey?: string | null; + } /** * Request for AudioOverviewService.CreateAudioOverview method. */ @@ -18624,6 +18797,294 @@ export namespace discoveryengine_v1alpha { */ audioOverview?: Schema$GoogleCloudNotebooklmV1alphaAudioOverview; } + /** + * Failure reason containing details about why a source failed to ingest. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReason { + /** + * An audio file transcription specific error. + */ + audioTranscriptionError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError; + /** + * Error if the user tries to add a source from a blocked domain. + */ + domainBlocked?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked; + /** + * A google drive specific error. + */ + googleDriveError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError; + /** + * Indicates an error occurred while ingesting the source. + */ + ingestionError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonIngestionError; + /** + * Indicates that the source MIME type is blocked. + */ + mimeTypeBlocked?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked; + /** + * Indicates that the source is paywalled and cannot be ingested. + */ + paywallError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonPaywallError; + /** + * Indicates that the policy check failed. + */ + policyCheckFailed?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed; + /** + * Indicates that the source is empty. + */ + sourceEmpty?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty; + /** + * Error if the user tries to update beyond their limits. + */ + sourceLimitExceeded?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded; + /** + * Indicates source word count exceeded the user's limit. + */ + sourceTooLong?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong; + /** + * Indicates that the source is unreachable. + */ + sourceUnreachable?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable; + /** + * Indicates an unknown error occurred. + */ + unknown?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonUnknown; + /** + * Indicates an error occurred while uploading the source. + */ + uploadError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonUploadError; + /** + * A youtube specific error. + */ + youtubeError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError; + } + /** + * An audio file transcription specific error. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError { + /** + * Could not detect language of the file (it may not be speech). + */ + languageDetectionFailed?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed; + /** + * No audio was detected in the input file (it may have been a video). + */ + noAudioDetected?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected; + } + /** + * Could not detect language of the file (it may not be speech). + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed {} + /** + * No audio was detected in the input file. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected {} + /** + * Error to indicate that the source was removed because the domain was blocked. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked {} + /** + * A google drive specific error. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError { + /** + * The user was prevented from downloading the file. + */ + downloadPrevented?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented; + } + /** + * The user was prevented from downloading the file. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented {} + /** + * Indicates an error occurred while ingesting the source. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonIngestionError {} + /** + * Indicates that the source MIME type is blocked. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked {} + /** + * Indicates that the source is paywalled and cannot be ingested. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonPaywallError {} + /** + * Indicates that the policy check failed. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed {} + /** + * Indicates that the source is empty. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty {} + /** + * Indicates that the user does not have space for this source. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded {} + /** + * Indicates source word count exceeded the user's limit. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong { + /** + * The number of words in the source. + */ + wordCount?: number | null; + /** + * The word count limit for the current user at the time of the upload. + */ + wordLimit?: number | null; + } + /** + * Indicates that the source is unreachable. This is primarily used for sources that are added via URL. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable { + /** + * Describes why the source is unreachable. + */ + errorDetails?: string | null; + } + /** + * Indicates an unknown error occurred. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonUnknown {} + /** + * Indicates an error occurred while uploading the source. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonUploadError {} + /** + * A youtube specific error. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError { + /** + * Error to indicate that the source was removed because the video was deleted. + */ + videoDeleted?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted; + } + /** + * Error to indicate that the source was removed because the video was deleted. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted {} + /** + * Metadata about a google doc source. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata { + /** + * Output only. The document id of the google doc. + */ + documentId?: string | null; + /** + * Output only. Revision id for the doc. + */ + revisionId?: string | null; + } + /** + * Response for NotebookService.ListRecentlyViewedNotebooks method. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse { + /** + * The page token, provide this to retrieve the subsequent page. + */ + nextPageToken?: string | null; + /** + * The list of recently viewed notebooks. + */ + notebooks?: Schema$GoogleCloudNotebooklmV1alphaNotebook[]; + } + /** + * Notebook is a resource where users can store their content (as sources) and interacts with the content. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaNotebook { + /** + * Output only. CMEK-related information for the Notebook. + */ + cmekConfig?: Schema$GoogleCloudNotebooklmV1alphaCmekConfig; + /** + * Output only. The emoji of the notebook. + */ + emoji?: string | null; + /** + * Output only. The metadata of the notebook. + */ + metadata?: Schema$GoogleCloudNotebooklmV1alphaNotebookMetadata; + /** + * Identifier. The identifier of the notebook. Format: `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`. This field must be a UTF-8 encoded string. + */ + name?: string | null; + /** + * Output only. Notebook id, which is the last segment of the notebook's resource name. + */ + notebookId?: string | null; + /** + * Output only. List of sources in the notebook. This is an output only field. + */ + sources?: Schema$GoogleCloudNotebooklmV1alphaSource[]; + /** + * Optional. The title of the notebook. + */ + title?: string | null; + } + /** + * Metadata for a notebook. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaNotebookMetadata { + /** + * The time at which this project was created. + */ + createTime?: string | null; + /** + * True if the project is shareable. + */ + isShareable?: boolean | null; + /** + * True if this project is currently shared with other people, false otherwise. + */ + isShared?: boolean | null; + /** + * A timestamp indicating the time that the current in session user has last viewed the project. + */ + lastViewed?: string | null; + } + /** + * Request for NotebookService.ShareNotebook method. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaShareNotebookRequest { + /** + * Required. The list of accounts and roles to share the notebook with. + */ + accountAndRoles?: Schema$GoogleCloudNotebooklmV1alphaAccountAndRole[]; + /** + * Required. Whether to notify the shared users via email. + */ + notifyViaEmail?: boolean | null; + } + /** + * Response for NotebookService.ShareNotebook method. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse {} + /** + * Source represents a single source of content. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaSource { + /** + * Output only. Metadata about the source. + */ + metadata?: Schema$GoogleCloudNotebooklmV1alphaSourceMetadata; + /** + * Identifier. The full resource name of the source. Format: `projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source_id\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. + */ + name?: string | null; + /** + * Output only. Status of the source, and any failure reasons. + */ + settings?: Schema$GoogleCloudNotebooklmV1alphaSourceSettings; + /** + * Optional. Output only. Source id, which is the last segment of the source's resource name. + */ + sourceId?: Schema$GoogleCloudNotebooklmV1alphaSourceId; + /** + * Optional. Title of the source. + */ + title?: string | null; + } /** * SourceId is the last segment of the source's resource name. */ @@ -18633,6 +19094,155 @@ export namespace discoveryengine_v1alpha { */ id?: string | null; } + /** + * Represents the metadata of a source and some additional information. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaSourceMetadata { + /** + * Metadata for an agentspace source. + */ + agentspaceMetadata?: Schema$GoogleCloudNotebooklmV1alphaAgentspaceMetadata; + /** + * Metadata for a google doc source. + */ + googleDocsMetadata?: Schema$GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata; + /** + * The timestamp the source was added. + */ + sourceAddedTimestamp?: string | null; + /** + * The number of tokens in the source. + */ + tokenCount?: number | null; + /** + * The word count of the source. + */ + wordCount?: number | null; + /** + * Metadata for a youtube video source. + */ + youtubeMetadata?: Schema$GoogleCloudNotebooklmV1alphaYoutubeMetadata; + } + /** + * Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request). + */ + export interface Schema$GoogleCloudNotebooklmV1alphaSourceSettings { + /** + * Failure reason containing details about why a source failed to ingest. + */ + failureReason?: Schema$GoogleCloudNotebooklmV1alphaFailureReason; + /** + * Status of the source. + */ + status?: string | null; + } + /** + * The "Content" messages refer to data the user wants to upload. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaUserContent { + /** + * Agentspace content uploaded as source. + */ + agentspaceContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent; + /** + * The content from Google Drive. + */ + googleDriveContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent; + /** + * The text content uploaded as source. + */ + textContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentTextContent; + /** + * The video content uploaded as source. + */ + videoContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentVideoContent; + /** + * The web content uploaded as source. + */ + webContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentWebContent; + } + /** + * Agentspace content uploaded as source. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent { + /** + * Optional. The full resource name of the Agentspace document. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/branches/{branch\}/documents/{document_id\}`. + */ + documentName?: string | null; + /** + * Optional. Engine to verify the permission of the document. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`. + */ + engineName?: string | null; + /** + * Optional. Resource name of the idea forge instance. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/sessions/{session\}/ideaForgeInstances/{instance\}` + */ + ideaforgeIdeaName?: string | null; + } + /** + * The content from Google Drive. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent { + /** + * The document id of the selected document. + */ + documentId?: string | null; + /** + * The mime type of the selected document. This can be used to differentiate type of content selected in the drive picker. Use application/vnd.google-apps.document for Google Docs or application/vnd.google-apps.presentation for Google Slides. + */ + mimeType?: string | null; + /** + * The name to be displayed for the source. + */ + sourceName?: string | null; + } + /** + * The text content uploaded as source. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaUserContentTextContent { + /** + * The name to be displayed for the source. + */ + content?: string | null; + /** + * The display name of the text source. + */ + sourceName?: string | null; + } + /** + * Video content uploaded as source. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaUserContentVideoContent { + /** + * The youtube url of the video content. + */ + youtubeUrl?: string | null; + } + /** + * The web content uploaded as source. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaUserContentWebContent { + /** + * The name to be displayed for the source. + */ + sourceName?: string | null; + /** + * If URL is supplied, will fetch the webpage in the backend. + */ + url?: string | null; + } + /** + * Metadata about a youtube video source. + */ + export interface Schema$GoogleCloudNotebooklmV1alphaYoutubeMetadata { + /** + * Output only. The channel name of the youtube video. + */ + channelName?: string | null; + /** + * Output only. The id of the youtube video. + */ + videoId?: string | null; + } /** * Associates `members`, or principals, with a `role`. */ @@ -81834,13 +82444,865 @@ export namespace discoveryengine_v1alpha { export class Resource$Projects$Locations$Notebooks { context: APIRequestContext; audioOverviews: Resource$Projects$Locations$Notebooks$Audiooverviews; + sources: Resource$Projects$Locations$Notebooks$Sources; constructor(context: APIRequestContext) { this.context = context; this.audioOverviews = new Resource$Projects$Locations$Notebooks$Audiooverviews(this.context); + this.sources = new Resource$Projects$Locations$Notebooks$Sources( + this.context + ); + } + + /** + * Batch deletes Notebooks. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const discoveryengine = google.discoveryengine('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/discoveryengine.readwrite', + * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await discoveryengine.projects.locations.notebooks.batchDelete({ + * // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`. + * parent: 'projects/my-project/locations/my-location', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "names": [] + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + batchDelete( + params: Params$Resource$Projects$Locations$Notebooks$Batchdelete, + options: StreamMethodOptions + ): Promise>; + batchDelete( + params?: Params$Resource$Projects$Locations$Notebooks$Batchdelete, + options?: MethodOptions + ): Promise>; + batchDelete( + params: Params$Resource$Projects$Locations$Notebooks$Batchdelete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + batchDelete( + params: Params$Resource$Projects$Locations$Notebooks$Batchdelete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + batchDelete( + params: Params$Resource$Projects$Locations$Notebooks$Batchdelete, + callback: BodyResponseCallback + ): void; + batchDelete( + callback: BodyResponseCallback + ): void; + batchDelete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Notebooks$Batchdelete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Notebooks$Batchdelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Notebooks$Batchdelete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/notebooks:batchDelete').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Creates a notebook. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const discoveryengine = google.discoveryengine('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/discoveryengine.readwrite', + * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await discoveryengine.projects.locations.notebooks.create({ + * // Required. The parent resource name, such as `projects/{project\}/locations/{location\}`. + * parent: 'projects/my-project/locations/my-location', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "cmekConfig": {}, + * // "emoji": "my_emoji", + * // "metadata": {}, + * // "name": "my_name", + * // "notebookId": "my_notebookId", + * // "sources": [], + * // "title": "my_title" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "cmekConfig": {}, + * // "emoji": "my_emoji", + * // "metadata": {}, + * // "name": "my_name", + * // "notebookId": "my_notebookId", + * // "sources": [], + * // "title": "my_title" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Projects$Locations$Notebooks$Create, + options: StreamMethodOptions + ): Promise>; + create( + params?: Params$Resource$Projects$Locations$Notebooks$Create, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + create( + params: Params$Resource$Projects$Locations$Notebooks$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Notebooks$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Notebooks$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Notebooks$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Notebooks$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Notebooks$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/notebooks').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Gets a notebook. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const discoveryengine = google.discoveryengine('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/discoveryengine.readwrite', + * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await discoveryengine.projects.locations.notebooks.get({ + * // Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`. + * name: 'projects/my-project/locations/my-location/notebooks/my-notebook', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "cmekConfig": {}, + * // "emoji": "my_emoji", + * // "metadata": {}, + * // "name": "my_name", + * // "notebookId": "my_notebookId", + * // "sources": [], + * // "title": "my_title" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Projects$Locations$Notebooks$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Projects$Locations$Notebooks$Get, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + get( + params: Params$Resource$Projects$Locations$Notebooks$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Notebooks$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Notebooks$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Notebooks$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Notebooks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Notebooks$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Lists the notebooks ordered by last view time. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const discoveryengine = google.discoveryengine('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/discoveryengine.readwrite', + * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await discoveryengine.projects.locations.notebooks.listRecentlyViewed({ + * // Optional. Maximum number of Notebooks to return. If unspecified, defaults to "500". The maximum allowed value is "500". If this field is negative, will use the default value. + * pageSize: 'placeholder-value', + * // Optional. The page token, provide this to retrieve the subsequent page. + * pageToken: 'placeholder-value', + * // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`. + * parent: 'projects/my-project/locations/my-location', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "notebooks": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + listRecentlyViewed( + params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, + options: StreamMethodOptions + ): Promise>; + listRecentlyViewed( + params?: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + listRecentlyViewed( + params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + listRecentlyViewed( + params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + listRecentlyViewed( + params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, + callback: BodyResponseCallback + ): void; + listRecentlyViewed( + callback: BodyResponseCallback + ): void; + listRecentlyViewed( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/v1alpha/{+parent}/notebooks:listRecentlyViewed' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Shares a notebook to other accounts. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const discoveryengine = google.discoveryengine('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/discoveryengine.readwrite', + * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await discoveryengine.projects.locations.notebooks.share({ + * // Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`. + * name: 'projects/my-project/locations/my-location/notebooks/my-notebook', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "accountAndRoles": [], + * // "notifyViaEmail": false + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + share( + params: Params$Resource$Projects$Locations$Notebooks$Share, + options: StreamMethodOptions + ): Promise>; + share( + params?: Params$Resource$Projects$Locations$Notebooks$Share, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + share( + params: Params$Resource$Projects$Locations$Notebooks$Share, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + share( + params: Params$Resource$Projects$Locations$Notebooks$Share, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + share( + params: Params$Resource$Projects$Locations$Notebooks$Share, + callback: BodyResponseCallback + ): void; + share( + callback: BodyResponseCallback + ): void; + share( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Notebooks$Share + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Notebooks$Share; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Notebooks$Share; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}:share').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } } } + export interface Params$Resource$Projects$Locations$Notebooks$Batchdelete extends StandardParameters { + /** + * Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest; + } + export interface Params$Resource$Projects$Locations$Notebooks$Create extends StandardParameters { + /** + * Required. The parent resource name, such as `projects/{project\}/locations/{location\}`. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudNotebooklmV1alphaNotebook; + } + export interface Params$Resource$Projects$Locations$Notebooks$Get extends StandardParameters { + /** + * Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed extends StandardParameters { + /** + * Optional. Maximum number of Notebooks to return. If unspecified, defaults to "500". The maximum allowed value is "500". If this field is negative, will use the default value. + */ + pageSize?: number; + /** + * Optional. The page token, provide this to retrieve the subsequent page. + */ + pageToken?: string; + /** + * Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Notebooks$Share extends StandardParameters { + /** + * Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudNotebooklmV1alphaShareNotebookRequest; + } + export class Resource$Projects$Locations$Notebooks$Audiooverviews { context: APIRequestContext; constructor(context: APIRequestContext) { @@ -82167,6 +83629,510 @@ export namespace discoveryengine_v1alpha { name?: string; } + export class Resource$Projects$Locations$Notebooks$Sources { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates a list of Sources. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const discoveryengine = google.discoveryengine('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite', + * 'https://www.googleapis.com/auth/discoveryengine.readwrite', + * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await discoveryengine.projects.locations.notebooks.sources.batchCreate({ + * // Required. The parent resource where the sources will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\} + * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "userContents": [] + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "sources": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + batchCreate( + params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, + options: StreamMethodOptions + ): Promise>; + batchCreate( + params?: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + batchCreate( + params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + batchCreate( + params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + batchCreate( + params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, + callback: BodyResponseCallback + ): void; + batchCreate( + callback: BodyResponseCallback + ): void; + batchCreate( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/sources:batchCreate').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Deletes multiple sources + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const discoveryengine = google.discoveryengine('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/discoveryengine.readwrite', + * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await discoveryengine.projects.locations.notebooks.sources.batchDelete({ + * // Required. The parent resource where the sources will be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\} + * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "names": [] + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + batchDelete( + params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, + options: StreamMethodOptions + ): Promise>; + batchDelete( + params?: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, + options?: MethodOptions + ): Promise>; + batchDelete( + params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + batchDelete( + params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + batchDelete( + params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, + callback: BodyResponseCallback + ): void; + batchDelete( + callback: BodyResponseCallback + ): void; + batchDelete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/sources:batchDelete').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets a Source. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const discoveryengine = google.discoveryengine('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/discoveryengine.readwrite', + * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await discoveryengine.projects.locations.notebooks.sources.get({ + * // Required. The resource name for source Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\} + * name: 'projects/my-project/locations/my-location/notebooks/my-notebook/sources/my-source', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "metadata": {}, + * // "name": "my_name", + * // "settings": {}, + * // "sourceId": {}, + * // "title": "my_title" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Projects$Locations$Notebooks$Sources$Get, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + get( + params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Notebooks$Sources$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Notebooks$Sources$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Notebooks$Sources$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate extends StandardParameters { + /** + * Required. The parent resource where the sources will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\} + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest; + } + export interface Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete extends StandardParameters { + /** + * Required. The parent resource where the sources will be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\} + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest; + } + export interface Params$Resource$Projects$Locations$Notebooks$Sources$Get extends StandardParameters { + /** + * Required. The resource name for source Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\} + */ + name?: string; + } + export class Resource$Projects$Locations$Operations { context: APIRequestContext; constructor(context: APIRequestContext) { diff --git a/src/apis/discoveryengine/v1beta.ts b/src/apis/discoveryengine/v1beta.ts index 215ad18585..214f6b3833 100644 --- a/src/apis/discoveryengine/v1beta.ts +++ b/src/apis/discoveryengine/v1beta.ts @@ -4378,6 +4378,10 @@ export namespace discoveryengine_v1beta { * Optional. Configuration for NotebookLM settings. */ notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig; + /** + * Optional. Resource-level access control config for Gemini Enterprise users. + */ + resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig; } /** * Configuration for NotebookLM. @@ -4431,6 +4435,15 @@ export namespace discoveryengine_v1beta { */ userPromptTemplate?: string | null; } + /** + * Controls resource-level access control for Gemini Enterprise users. + */ + export interface Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig { + /** + * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on. + */ + dataStoreAccessControlEnabled?: boolean | null; + } /** * Metadata about the terms of service. */ @@ -4675,6 +4688,10 @@ export namespace discoveryengine_v1beta { * This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is only supported for A2UI messages. */ uiJsonPayload?: string | null; + /** + * Reference to a user-supplied file attached to a long-running-agent (Sobi) task. See `UserSuppliedSobiArtifactReference` above. + */ + userSuppliedSobiArtifactReference?: Schema$GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference; } /** * Represents a document reference. @@ -4767,6 +4784,19 @@ export namespace discoveryengine_v1beta { */ personId?: string | null; } + /** + * Reference to a user-supplied file attached to a long-running-agent (Sobi) task. Rendered by the client as an attachment chip on the user turn's bubble. The file itself is stored on the task's `AgentArtifact` list; the client resolves full metadata (source URI, size, ...) for download or preview by calling `GetTask` on the Sobi Task API and matching `AgentArtifact.name` against `file_name`. Only `file_name` and `mime_type` appear on this wire deliberately: the backing `gs://` or Drive URI is not exposed to conversation-history readers. Same variant is used for both byte-uploaded and Drive-picked files -- "user attached a file" is one concept regardless of source. + */ + export interface Schema$GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference { + /** + * Required. Client-supplied filename. Unique per task within the user-supplied artifact set (UI dedupes before upload). Doubles as the artifact identifier used to look up the artifact on `Task.artifacts`. The `_name` suffix is deliberate and the AIP-122 lint is suppressed: this field is not a resource name (which is what AIP-122 reserves the bare `name` for). It is the literal filename, and it serves as the join key against `AgentArtifact.name` on the backing Sobi task -- a structural role that `title` or `display_name` would not communicate to a client picking what to send. The internal mirror (`cloud/ml/discoveryengine/schema/assistant.proto`) uses the same field name so the round-trip converter stays name-for-name. + */ + fileName?: string | null; + /** + * Optional. IANA MIME type. Used for icon/preview rendering. + */ + mimeType?: string | null; + } /** * Metadata related to the progress of the SiteSearchEngineService.RecrawlUris operation. This will be returned by the google.longrunning.Operation.metadata field. */ @@ -5648,6 +5678,27 @@ export namespace discoveryengine_v1beta { * The condition under which search as you type should occur. Default to Condition.DISABLED. */ condition?: string | null; + /** + * Optional. The list of fields to be used for Search As You Type scoring. + */ + fields?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField[]; + /** + * Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` \>= `score_threshold`. + */ + scoreThreshold?: number | null; + } + /** + * A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request. + */ + export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField { + /** + * Required. A field key that has been indexed for Search As You Type. + */ + key?: string | null; + /** + * Optional. Weight for scores from this field. Defaults to 1.0 if not specified. + */ + weight?: number | null; } /** * Session specification. @@ -11555,6 +11606,10 @@ export namespace discoveryengine_v1beta { * Optional. Configuration for NotebookLM settings. */ notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig; + /** + * Optional. Resource-level access control config for Gemini Enterprise users. + */ + resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig; } /** * Configuration for NotebookLM. @@ -11608,6 +11663,15 @@ export namespace discoveryengine_v1beta { */ userPromptTemplate?: string | null; } + /** + * Controls resource-level access control for Gemini Enterprise users. + */ + export interface Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig { + /** + * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on. + */ + dataStoreAccessControlEnabled?: boolean | null; + } /** * Metadata about the terms of service. */ @@ -12948,6 +13012,27 @@ export namespace discoveryengine_v1beta { * The condition under which search as you type should occur. Default to Condition.DISABLED. */ condition?: string | null; + /** + * Optional. The list of fields to be used for Search As You Type scoring. + */ + fields?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField[]; + /** + * Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` \>= `score_threshold`. + */ + scoreThreshold?: number | null; + } + /** + * A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request. + */ + export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField { + /** + * Required. A field key that has been indexed for Search As You Type. + */ + key?: string | null; + /** + * Optional. Weight for scores from this field. Defaults to 1.0 if not specified. + */ + weight?: number | null; } /** * Session specification. @@ -16435,6 +16520,10 @@ export namespace discoveryengine_v1beta { * Optional. Configuration for NotebookLM settings. */ notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig; + /** + * Optional. Resource-level access control config for Gemini Enterprise users. + */ + resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig; } /** * Configuration for NotebookLM. @@ -16488,6 +16577,15 @@ export namespace discoveryengine_v1beta { */ userPromptTemplate?: string | null; } + /** + * Controls resource-level access control for Gemini Enterprise users. + */ + export interface Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig { + /** + * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on. + */ + dataStoreAccessControlEnabled?: boolean | null; + } /** * Metadata about the terms of service. */ diff --git a/src/apis/displayvideo/index.ts b/src/apis/displayvideo/index.ts index 513352d37e..d96542f7b5 100644 --- a/src/apis/displayvideo/index.ts +++ b/src/apis/displayvideo/index.ts @@ -112,4 +112,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/displayvideo/v2.ts b/src/apis/displayvideo/v2.ts index d0f1190e2d..04316e1f31 100644 --- a/src/apis/displayvideo/v2.ts +++ b/src/apis/displayvideo/v2.ts @@ -5343,7 +5343,7 @@ export namespace displayvideo_v2 { */ displayUrlBreadcrumb2?: string | null; /** - * The domain of the display URL. + * Output only. The domain of the display URL. */ domain?: string | null; /** diff --git a/src/apis/displayvideo/v3.ts b/src/apis/displayvideo/v3.ts index f56a0a4ab5..6acb087075 100644 --- a/src/apis/displayvideo/v3.ts +++ b/src/apis/displayvideo/v3.ts @@ -6607,7 +6607,7 @@ export namespace displayvideo_v3 { */ displayUrlBreadcrumb2?: string | null; /** - * The domain of the display URL. + * Output only. The domain of the display URL. */ domain?: string | null; /** diff --git a/src/apis/displayvideo/v4.ts b/src/apis/displayvideo/v4.ts index 9709718d85..9ab3a8a206 100644 --- a/src/apis/displayvideo/v4.ts +++ b/src/apis/displayvideo/v4.ts @@ -7638,7 +7638,7 @@ export namespace displayvideo_v4 { */ displayUrlBreadcrumb2?: string | null; /** - * The domain of the display URL. + * Output only. The domain of the display URL. */ domain?: string | null; /** diff --git a/src/apis/dlp/index.ts b/src/apis/dlp/index.ts index 46c7b07c1f..83db0c1a77 100644 --- a/src/apis/dlp/index.ts +++ b/src/apis/dlp/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/dns/index.ts b/src/apis/dns/index.ts index cfcbce4133..793169ec4a 100644 --- a/src/apis/dns/index.ts +++ b/src/apis/dns/index.ts @@ -66,4 +66,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/dns/v1.ts b/src/apis/dns/v1.ts index 958ba3bd47..d003eecf3c 100644 --- a/src/apis/dns/v1.ts +++ b/src/apis/dns/v1.ts @@ -181,7 +181,7 @@ export namespace dns_v1 { */ changes?: Schema$Change[]; /** - * Type of resource. + * Output only. Type of resource. */ kind?: string | null; /** @@ -254,7 +254,7 @@ export namespace dns_v1 { */ dnsKeys?: Schema$DnsKey[]; /** - * Type of resource. + * Output only. Type of resource. */ kind?: string | null; /** @@ -559,7 +559,7 @@ export namespace dns_v1 { } export interface Schema$ManagedZoneOperationsListResponse { /** - * Type of resource. + * Output only. Type of resource. */ kind?: string | null; /** @@ -640,7 +640,7 @@ export namespace dns_v1 { } export interface Schema$ManagedZonesListResponse { /** - * Type of resource. + * Output only. Type of resource. */ kind?: string | null; /** @@ -708,7 +708,7 @@ export namespace dns_v1 { } export interface Schema$PoliciesListResponse { /** - * Type of resource. + * Output only. Type of resource. */ kind?: string | null; /** @@ -948,9 +948,6 @@ export namespace dns_v1 { * As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. */ rrdatas?: string[] | null; - /** - * As defined in RFC 4034 (section 3.2). - */ signatureRrdatas?: string[] | null; /** * Number of seconds that this `ResourceRecordSet` can be cached by resolvers. @@ -964,7 +961,7 @@ export namespace dns_v1 { export interface Schema$ResourceRecordSetsDeleteResponse {} export interface Schema$ResourceRecordSetsListResponse { /** - * Type of resource. + * Output only. Type of resource. */ kind?: string | null; /** @@ -5143,8 +5140,6 @@ export namespace dns_v1 { * * // Do the magic * const res = await dns.projects.get({ - * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. - * clientOperationId: 'placeholder-value', * // Identifies the project addressed by this request. * project: 'placeholder-value', * }); @@ -5254,10 +5249,6 @@ export namespace dns_v1 { } export interface Params$Resource$Projects$Get extends StandardParameters { - /** - * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. - */ - clientOperationId?: string; /** * Identifies the project addressed by this request. */ diff --git a/src/apis/dns/v1beta2.ts b/src/apis/dns/v1beta2.ts index 8a2268bf47..13a239d53d 100644 --- a/src/apis/dns/v1beta2.ts +++ b/src/apis/dns/v1beta2.ts @@ -181,7 +181,7 @@ export namespace dns_v1beta2 { */ changes?: Schema$Change[]; /** - * Type of resource. + * Output only. Type of resource. */ kind?: string | null; /** @@ -254,7 +254,7 @@ export namespace dns_v1beta2 { */ dnsKeys?: Schema$DnsKey[]; /** - * Type of resource. + * Output only. Type of resource. */ kind?: string | null; /** @@ -559,7 +559,7 @@ export namespace dns_v1beta2 { } export interface Schema$ManagedZoneOperationsListResponse { /** - * Type of resource. + * Output only. Type of resource. */ kind?: string | null; /** @@ -640,7 +640,7 @@ export namespace dns_v1beta2 { } export interface Schema$ManagedZonesListResponse { /** - * Type of resource. + * Output only. Type of resource. */ kind?: string | null; /** @@ -708,7 +708,7 @@ export namespace dns_v1beta2 { } export interface Schema$PoliciesListResponse { /** - * Type of resource. + * Output only. Type of resource. */ kind?: string | null; /** @@ -948,9 +948,6 @@ export namespace dns_v1beta2 { * As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. */ rrdatas?: string[] | null; - /** - * As defined in RFC 4034 (section 3.2). - */ signatureRrdatas?: string[] | null; /** * Number of seconds that this `ResourceRecordSet` can be cached by resolvers. @@ -963,7 +960,7 @@ export namespace dns_v1beta2 { } export interface Schema$ResourceRecordSetsListResponse { /** - * Type of resource. + * Output only. Type of resource. */ kind?: string | null; /** @@ -5145,8 +5142,6 @@ export namespace dns_v1beta2 { * * // Do the magic * const res = await dns.projects.get({ - * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. - * clientOperationId: 'placeholder-value', * // Identifies the project addressed by this request. * project: 'placeholder-value', * }); @@ -5256,10 +5251,6 @@ export namespace dns_v1beta2 { } export interface Params$Resource$Projects$Get extends StandardParameters { - /** - * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. - */ - clientOperationId?: string; /** * Identifies the project addressed by this request. */ diff --git a/src/apis/docs/index.ts b/src/apis/docs/index.ts index 414d302db5..e1b8674cfb 100644 --- a/src/apis/docs/index.ts +++ b/src/apis/docs/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/documentai/index.ts b/src/apis/documentai/index.ts index 69e646678b..004a777045 100644 --- a/src/apis/documentai/index.ts +++ b/src/apis/documentai/index.ts @@ -68,4 +68,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/domains/index.ts b/src/apis/domains/index.ts index 1414c58ce9..43dacc08e1 100644 --- a/src/apis/domains/index.ts +++ b/src/apis/domains/index.ts @@ -63,4 +63,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/domainsrdap/index.ts b/src/apis/domainsrdap/index.ts index c72a0b1dd7..19c0ef65fe 100644 --- a/src/apis/domainsrdap/index.ts +++ b/src/apis/domainsrdap/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/doubleclickbidmanager/index.ts b/src/apis/doubleclickbidmanager/index.ts index 5d3d0a5bb5..773ed50c3c 100644 --- a/src/apis/doubleclickbidmanager/index.ts +++ b/src/apis/doubleclickbidmanager/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/doubleclicksearch/index.ts b/src/apis/doubleclicksearch/index.ts index f9a828e09f..61459f1965 100644 --- a/src/apis/doubleclicksearch/index.ts +++ b/src/apis/doubleclicksearch/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/drive/index.ts b/src/apis/drive/index.ts index 478abb252e..70b286dce7 100644 --- a/src/apis/drive/index.ts +++ b/src/apis/drive/index.ts @@ -46,4 +46,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/drive/v3.ts b/src/apis/drive/v3.ts index 11ee5707a4..cd23e0ed10 100644 --- a/src/apis/drive/v3.ts +++ b/src/apis/drive/v3.ts @@ -7260,7 +7260,7 @@ export namespace drive_v3 { * * // Do the magic * const res = await drive.files.copy({ - * // Whether to copy the comments associated with the file. + * // Whether to copy the open (unresolved) comments associated with the file. * copyComments: 'placeholder-value', * // Deprecated: Copying files into multiple folders is no longer supported. Use shortcuts instead. * enforceSingleParent: 'placeholder-value', @@ -9840,7 +9840,7 @@ export namespace drive_v3 { export interface Params$Resource$Files$Copy extends StandardParameters { /** - * Whether to copy the comments associated with the file. + * Whether to copy the open (unresolved) comments associated with the file. */ copyComments?: boolean; /** diff --git a/src/apis/driveactivity/index.ts b/src/apis/driveactivity/index.ts index afe701e513..cced68ecaf 100644 --- a/src/apis/driveactivity/index.ts +++ b/src/apis/driveactivity/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/drivelabels/index.ts b/src/apis/drivelabels/index.ts index 98cac2b854..ece7a5ff5d 100644 --- a/src/apis/drivelabels/index.ts +++ b/src/apis/drivelabels/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/essentialcontacts/index.ts b/src/apis/essentialcontacts/index.ts index 7b145bfecb..abd17508c2 100644 --- a/src/apis/essentialcontacts/index.ts +++ b/src/apis/essentialcontacts/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/eventarc/index.ts b/src/apis/eventarc/index.ts index 1d25ea29b8..7784cf4a81 100644 --- a/src/apis/eventarc/index.ts +++ b/src/apis/eventarc/index.ts @@ -49,4 +49,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/factchecktools/index.ts b/src/apis/factchecktools/index.ts index 48dcc506d7..6007d177ca 100644 --- a/src/apis/factchecktools/index.ts +++ b/src/apis/factchecktools/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/fcm/index.ts b/src/apis/fcm/index.ts index 79d6af1f9d..a19c9a45f1 100644 --- a/src/apis/fcm/index.ts +++ b/src/apis/fcm/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/fcm/v1.ts b/src/apis/fcm/v1.ts index 0f21eba881..19be5bcf4e 100644 --- a/src/apis/fcm/v1.ts +++ b/src/apis/fcm/v1.ts @@ -346,6 +346,10 @@ export namespace fcm_v1 { */ red?: number | 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); \} + */ + export interface Schema$Empty {} /** * Platform independent options for features provided by the FCM SDKs. */ @@ -372,6 +376,19 @@ export namespace fcm_v1 { */ lightOnDuration?: string | null; } + /** + * Response message for ListTopicSubscriptions. + */ + export interface Schema$ListTopicSubscriptionsResponse { + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + */ + nextPageToken?: string | null; + /** + * The topic subscriptions for the instance. + */ + topicSubscriptions?: Schema$TopicSubscription[]; + } /** * Message to send by Firebase Cloud Messaging Service. */ @@ -397,7 +414,7 @@ export namespace fcm_v1 { */ fcmOptions?: Schema$FcmOptions; /** - * Firebase Installation ID to send a message to. + * [Firebase Installation ID (FID)](/docs/cloud-messaging/android/get-started#access-firebase-installation-id) to send a message to. */ fid?: string | null; /** @@ -409,7 +426,7 @@ export namespace fcm_v1 { */ notification?: Schema$Notification; /** - * Deprecated: Use `fid` instead. Registration token to send a message to. During the transition period, this field also accepts a Firebase Installation ID (FID). + * Deprecated: Use `fid` instead. During the transition period, this field also accepts a Firebase Installation ID (FID). Registration token to send a message to. */ token?: string | null; /** @@ -451,6 +468,23 @@ export namespace fcm_v1 { */ validateOnly?: boolean | null; } + /** + * Represents a subscription of a single app instance to a single FCM topic. + */ + export interface Schema$TopicSubscription { + /** + * Output only. Time when the subscription was created. + */ + createTime?: string | null; + /** + * Identifier. The resource name of the subscription. Format: projects/{project\}/registrations/{registration\}/topicSubscriptions/{topicSubscription\} The {registration\} part contains the registration ID (e.g., FID). + */ + name?: string | null; + /** + * Output only. The ID of the TopicSubscription, which is the topic name. This corresponds to the {topicSubscription\} segment in the resource name. Topic names match the pattern of "[a-zA-Z0-9-_.~%]{1,900\}". + */ + topicName?: string | null; + } /** * [Webpush protocol](https://tools.ietf.org/html/rfc8030) options. */ @@ -489,9 +523,11 @@ export namespace fcm_v1 { export class Resource$Projects { context: APIRequestContext; messages: Resource$Projects$Messages; + registrations: Resource$Projects$Registrations; constructor(context: APIRequestContext) { this.context = context; this.messages = new Resource$Projects$Messages(this.context); + this.registrations = new Resource$Projects$Registrations(this.context); } } @@ -502,7 +538,7 @@ export namespace fcm_v1 { } /** - * Send a message to specified target (a registration token, topic or condition). + * Send a message to specified target (a [Firebase Installation ID (FID)](/docs/cloud-messaging/android/get-started#access-firebase-installation-id), registration token, topic, or condition). * @example * ```js * // Before running the sample: @@ -671,4 +707,818 @@ export namespace fcm_v1 { */ requestBody?: Schema$SendMessageRequest; } + + export class Resource$Projects$Registrations { + context: APIRequestContext; + topicSubscriptions: Resource$Projects$Registrations$Topicsubscriptions; + constructor(context: APIRequestContext) { + this.context = context; + this.topicSubscriptions = + new Resource$Projects$Registrations$Topicsubscriptions(this.context); + } + } + + export class Resource$Projects$Registrations$Topicsubscriptions { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates a TopicSubscription. Subscribes an app installation instance (by registration_id, either FID or FCM Token) to a topicSubscription. Returns a TopicSubscription if it is created successfully. If the subscription already exists, returns error of ALREADY_EXISTS. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/fcm.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const fcm = google.fcm('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/firebase.messaging', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await fcm.projects.registrations.topicSubscriptions.create({ + * // Required. The parent resource where this subscription will be created. Format: projects/{project\}/registrations/{registration\} The {registration\} part can be an FID or an FCM Token. + * parent: 'projects/my-project/registrations/my-registration', + * // Required. The ID to use for the subscription, which is the topic name. This will become the last segment of the TopicSubscription's resource name. Topic names match the pattern of "[a-zA-Z0-9-_.~%]{1,900\}". + * topicName: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "createTime": "my_createTime", + * // "name": "my_name", + * // "topicName": "my_topicName" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "createTime": "my_createTime", + * // "name": "my_name", + * // "topicName": "my_topicName" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Create, + options: StreamMethodOptions + ): Promise>; + create( + params?: Params$Resource$Projects$Registrations$Topicsubscriptions$Create, + options?: MethodOptions + ): Promise>; + create( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Registrations$Topicsubscriptions$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Registrations$Topicsubscriptions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Registrations$Topicsubscriptions$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://fcm.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/topicSubscriptions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a TopicSubscription. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/fcm.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const fcm = google.fcm('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/firebase.messaging', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await fcm.projects.registrations.topicSubscriptions.delete({ + * // Optional. If set to true, and the topic subscription is not found, the request will succeed but no action will be taken on the server. + * allowMissing: 'placeholder-value', + * // Required. The name of the topic subscription to delete. Format: projects/{project\}/registrations/{registration\}/topicSubscriptions/{topicSubscription\} + * name: 'projects/my-project/registrations/my-registration/topicSubscriptions/my-topicSubscription', + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Projects$Registrations$Topicsubscriptions$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Registrations$Topicsubscriptions$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Registrations$Topicsubscriptions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Registrations$Topicsubscriptions$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://fcm.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets a TopicSubscription. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/fcm.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const fcm = google.fcm('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/firebase.messaging', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await fcm.projects.registrations.topicSubscriptions.get({ + * // Required. The name of the topic subscription to retrieve. Format: projects/{project\}/registrations/{registration\}/topicSubscriptions/{topicSubscription\} + * name: 'projects/my-project/registrations/my-registration/topicSubscriptions/my-topicSubscription', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "createTime": "my_createTime", + * // "name": "my_name", + * // "topicName": "my_topicName" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Projects$Registrations$Topicsubscriptions$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Registrations$Topicsubscriptions$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Registrations$Topicsubscriptions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Registrations$Topicsubscriptions$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://fcm.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Lists TopicSubscriptions for a given app instance. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/fcm.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const fcm = google.fcm('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/firebase.messaging', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await fcm.projects.registrations.topicSubscriptions.list({ + * // Optional. The maximum number of subscriptions to return. The service may return fewer than this value. If unspecified, at most 1000 subscriptions will be returned. The maximum value is 2000; values above 2000 will be coerced to 2000. + * pageSize: 'placeholder-value', + * // Optional. A page token, received from a previous `ListTopicSubscriptions` call. Provide this to retrieve the subsequent page. + * pageToken: 'placeholder-value', + * // Required. The parent resource, which owns this collection of subscriptions. Format: projects/{project\}/registrations/{registration\} The {registration\} part can be an FID or an FCM Token. + * parent: 'projects/my-project/registrations/my-registration', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "topicSubscriptions": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Projects$Registrations$Topicsubscriptions$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Registrations$Topicsubscriptions$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Registrations$Topicsubscriptions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Registrations$Topicsubscriptions$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://fcm.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/topicSubscriptions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Updates a TopicSubscription. Subscribes an app installation instance by registration_id, either FID or FCM Token, to a topicSubscription. Returns an existing TopicSubscription or creates a new one if it does not exist. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/fcm.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const fcm = google.fcm('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/firebase.messaging', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await fcm.projects.registrations.topicSubscriptions.patch({ + * // Optional. If set to true, and the topic subscription is not found, a new topic subscription will be created. + * allowMissing: 'placeholder-value', + * // Identifier. The resource name of the subscription. Format: projects/{project\}/registrations/{registration\}/topicSubscriptions/{topicSubscription\} The {registration\} part contains the registration ID (e.g., FID). + * name: 'projects/my-project/registrations/my-registration/topicSubscriptions/my-topicSubscription', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "createTime": "my_createTime", + * // "name": "my_name", + * // "topicName": "my_topicName" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "createTime": "my_createTime", + * // "name": "my_name", + * // "topicName": "my_topicName" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Patch, + options: StreamMethodOptions + ): Promise>; + patch( + params?: Params$Resource$Projects$Registrations$Topicsubscriptions$Patch, + options?: MethodOptions + ): Promise>; + patch( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Registrations$Topicsubscriptions$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Registrations$Topicsubscriptions$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Registrations$Topicsubscriptions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Registrations$Topicsubscriptions$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://fcm.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Registrations$Topicsubscriptions$Create extends StandardParameters { + /** + * Required. The parent resource where this subscription will be created. Format: projects/{project\}/registrations/{registration\} The {registration\} part can be an FID or an FCM Token. + */ + parent?: string; + /** + * Required. The ID to use for the subscription, which is the topic name. This will become the last segment of the TopicSubscription's resource name. Topic names match the pattern of "[a-zA-Z0-9-_.~%]{1,900\}". + */ + topicName?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TopicSubscription; + } + export interface Params$Resource$Projects$Registrations$Topicsubscriptions$Delete extends StandardParameters { + /** + * Optional. If set to true, and the topic subscription is not found, the request will succeed but no action will be taken on the server. + */ + allowMissing?: boolean; + /** + * Required. The name of the topic subscription to delete. Format: projects/{project\}/registrations/{registration\}/topicSubscriptions/{topicSubscription\} + */ + name?: string; + } + export interface Params$Resource$Projects$Registrations$Topicsubscriptions$Get extends StandardParameters { + /** + * Required. The name of the topic subscription to retrieve. Format: projects/{project\}/registrations/{registration\}/topicSubscriptions/{topicSubscription\} + */ + name?: string; + } + export interface Params$Resource$Projects$Registrations$Topicsubscriptions$List extends StandardParameters { + /** + * Optional. The maximum number of subscriptions to return. The service may return fewer than this value. If unspecified, at most 1000 subscriptions will be returned. The maximum value is 2000; values above 2000 will be coerced to 2000. + */ + pageSize?: number; + /** + * Optional. A page token, received from a previous `ListTopicSubscriptions` call. Provide this to retrieve the subsequent page. + */ + pageToken?: string; + /** + * Required. The parent resource, which owns this collection of subscriptions. Format: projects/{project\}/registrations/{registration\} The {registration\} part can be an FID or an FCM Token. + */ + parent?: string; + } + export interface Params$Resource$Projects$Registrations$Topicsubscriptions$Patch extends StandardParameters { + /** + * Optional. If set to true, and the topic subscription is not found, a new topic subscription will be created. + */ + allowMissing?: boolean; + /** + * Identifier. The resource name of the subscription. Format: projects/{project\}/registrations/{registration\}/topicSubscriptions/{topicSubscription\} The {registration\} part contains the registration ID (e.g., FID). + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TopicSubscription; + } } diff --git a/src/apis/fcmdata/index.ts b/src/apis/fcmdata/index.ts index 242561eae7..7dc0dffde2 100644 --- a/src/apis/fcmdata/index.ts +++ b/src/apis/fcmdata/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/file/index.ts b/src/apis/file/index.ts index 62e38b074a..b1e059ee10 100644 --- a/src/apis/file/index.ts +++ b/src/apis/file/index.ts @@ -46,4 +46,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firebase/index.ts b/src/apis/firebase/index.ts index e32c358d2b..9727dc7f14 100644 --- a/src/apis/firebase/index.ts +++ b/src/apis/firebase/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firebaseappcheck/index.ts b/src/apis/firebaseappcheck/index.ts index 2bbd23685f..521b1b39d2 100644 --- a/src/apis/firebaseappcheck/index.ts +++ b/src/apis/firebaseappcheck/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firebaseappdistribution/index.ts b/src/apis/firebaseappdistribution/index.ts index e15a86fc81..18bc8b9126 100644 --- a/src/apis/firebaseappdistribution/index.ts +++ b/src/apis/firebaseappdistribution/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firebaseapphosting/index.ts b/src/apis/firebaseapphosting/index.ts index 3b531725cd..74c492ee0a 100644 --- a/src/apis/firebaseapphosting/index.ts +++ b/src/apis/firebaseapphosting/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firebasecrashlytics/index.ts b/src/apis/firebasecrashlytics/index.ts index 3cb425f20a..f6f7e0f1c7 100644 --- a/src/apis/firebasecrashlytics/index.ts +++ b/src/apis/firebasecrashlytics/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firebasedatabase/index.ts b/src/apis/firebasedatabase/index.ts index 69b87284f5..d7ed439118 100644 --- a/src/apis/firebasedatabase/index.ts +++ b/src/apis/firebasedatabase/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firebasedataconnect/index.ts b/src/apis/firebasedataconnect/index.ts index 84b22ba2b0..724d36d030 100644 --- a/src/apis/firebasedataconnect/index.ts +++ b/src/apis/firebasedataconnect/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firebasedynamiclinks/index.ts b/src/apis/firebasedynamiclinks/index.ts index e5ef187ca3..4d0093cb75 100644 --- a/src/apis/firebasedynamiclinks/index.ts +++ b/src/apis/firebasedynamiclinks/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firebasehosting/index.ts b/src/apis/firebasehosting/index.ts index 1a392ff637..1c441adef7 100644 --- a/src/apis/firebasehosting/index.ts +++ b/src/apis/firebasehosting/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firebaseml/index.ts b/src/apis/firebaseml/index.ts index 86c58eb8bf..6b7f7c2d94 100644 --- a/src/apis/firebaseml/index.ts +++ b/src/apis/firebaseml/index.ts @@ -68,4 +68,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firebaseml/v2beta.ts b/src/apis/firebaseml/v2beta.ts index b066c1ceae..43ef681106 100644 --- a/src/apis/firebaseml/v2beta.ts +++ b/src/apis/firebaseml/v2beta.ts @@ -229,6 +229,10 @@ export namespace firebaseml_v2beta { * Optional. Deprecated: Use top-level `language_codes` instead. Specifies one or more languages in the audio. */ languageHints?: Schema$GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageHints; + /** + * Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`. + */ + mode?: string | null; /** * Optional. Configures word-level timestamp generation. */ diff --git a/src/apis/firebaserules/index.ts b/src/apis/firebaserules/index.ts index e25a9b2468..dc0afc0d0e 100644 --- a/src/apis/firebaserules/index.ts +++ b/src/apis/firebaserules/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firebasestorage/index.ts b/src/apis/firebasestorage/index.ts index 8952807001..4c2a2784f2 100644 --- a/src/apis/firebasestorage/index.ts +++ b/src/apis/firebasestorage/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/firestore/index.ts b/src/apis/firestore/index.ts index 23b5c9c18e..a6e2f45126 100644 --- a/src/apis/firestore/index.ts +++ b/src/apis/firestore/index.ts @@ -68,4 +68,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/fitness/index.ts b/src/apis/fitness/index.ts index f0fc0c8901..24a3e9ad3d 100644 --- a/src/apis/fitness/index.ts +++ b/src/apis/fitness/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/forms/index.ts b/src/apis/forms/index.ts index 575d405aaa..13850f5ab8 100644 --- a/src/apis/forms/index.ts +++ b/src/apis/forms/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/ftp/index.ts b/src/apis/ftp/index.ts index 7a54345ede..7a81f1e08b 100644 --- a/src/apis/ftp/index.ts +++ b/src/apis/ftp/index.ts @@ -46,4 +46,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/ftp/v1.ts b/src/apis/ftp/v1.ts index 746bcfe0d8..5f67e1cb84 100644 --- a/src/apis/ftp/v1.ts +++ b/src/apis/ftp/v1.ts @@ -388,6 +388,14 @@ export namespace ftp_v1 { * Identifier. name of resource */ name?: string | null; + /** + * Output only. Reserved for future use. + */ + satisfiesPzi?: boolean | null; + /** + * Output only. Reserved for future use. + */ + satisfiesPzs?: boolean | null; /** * Output only. Service agent used to access the customer bucket. */ @@ -1518,6 +1526,8 @@ export namespace ftp_v1 { * // "internalConfig": {}, * // "labels": {}, * // "name": "my_name", + * // "satisfiesPzi": false, + * // "satisfiesPzs": false, * // "serviceAgent": "my_serviceAgent", * // "state": "my_state", * // "updateTime": "my_updateTime" @@ -1815,6 +1825,8 @@ export namespace ftp_v1 { * // "internalConfig": {}, * // "labels": {}, * // "name": "my_name", + * // "satisfiesPzi": false, + * // "satisfiesPzs": false, * // "serviceAgent": "my_serviceAgent", * // "state": "my_state", * // "updateTime": "my_updateTime" @@ -2111,6 +2123,8 @@ export namespace ftp_v1 { * // "internalConfig": {}, * // "labels": {}, * // "name": "my_name", + * // "satisfiesPzi": false, + * // "satisfiesPzs": false, * // "serviceAgent": "my_serviceAgent", * // "state": "my_state", * // "updateTime": "my_updateTime" diff --git a/src/apis/ftp/v1alpha.ts b/src/apis/ftp/v1alpha.ts index fe9bdd36f3..bc628d7ac9 100644 --- a/src/apis/ftp/v1alpha.ts +++ b/src/apis/ftp/v1alpha.ts @@ -388,6 +388,14 @@ export namespace ftp_v1alpha { * Identifier. name of resource */ name?: string | null; + /** + * Output only. Reserved for future use. + */ + satisfiesPzi?: boolean | null; + /** + * Output only. Reserved for future use. + */ + satisfiesPzs?: boolean | null; /** * Output only. Service agent used to access the customer bucket. */ @@ -1521,6 +1529,8 @@ export namespace ftp_v1alpha { * // "internalConfig": {}, * // "labels": {}, * // "name": "my_name", + * // "satisfiesPzi": false, + * // "satisfiesPzs": false, * // "serviceAgent": "my_serviceAgent", * // "state": "my_state", * // "updateTime": "my_updateTime" @@ -1818,6 +1828,8 @@ export namespace ftp_v1alpha { * // "internalConfig": {}, * // "labels": {}, * // "name": "my_name", + * // "satisfiesPzi": false, + * // "satisfiesPzs": false, * // "serviceAgent": "my_serviceAgent", * // "state": "my_state", * // "updateTime": "my_updateTime" @@ -2114,6 +2126,8 @@ export namespace ftp_v1alpha { * // "internalConfig": {}, * // "labels": {}, * // "name": "my_name", + * // "satisfiesPzi": false, + * // "satisfiesPzs": false, * // "serviceAgent": "my_serviceAgent", * // "state": "my_state", * // "updateTime": "my_updateTime" diff --git a/src/apis/games/index.ts b/src/apis/games/index.ts index 75b7441385..4e878c2630 100644 --- a/src/apis/games/index.ts +++ b/src/apis/games/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/gamesConfiguration/index.ts b/src/apis/gamesConfiguration/index.ts index 522f635421..516388e2cb 100644 --- a/src/apis/gamesConfiguration/index.ts +++ b/src/apis/gamesConfiguration/index.ts @@ -48,4 +48,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/gamesManagement/index.ts b/src/apis/gamesManagement/index.ts index e31797f224..e021ed195e 100644 --- a/src/apis/gamesManagement/index.ts +++ b/src/apis/gamesManagement/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/gameservices/index.ts b/src/apis/gameservices/index.ts index f015b39a97..07690c77e5 100644 --- a/src/apis/gameservices/index.ts +++ b/src/apis/gameservices/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/genomics/index.ts b/src/apis/genomics/index.ts index 593b063e76..286f926564 100644 --- a/src/apis/genomics/index.ts +++ b/src/apis/genomics/index.ts @@ -66,4 +66,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/gkebackup/index.ts b/src/apis/gkebackup/index.ts index d81899c61b..e79933546b 100644 --- a/src/apis/gkebackup/index.ts +++ b/src/apis/gkebackup/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/gkebackup/v1.ts b/src/apis/gkebackup/v1.ts index 9256e25858..215c85e732 100644 --- a/src/apis/gkebackup/v1.ts +++ b/src/apis/gkebackup/v1.ts @@ -657,13 +657,17 @@ export namespace gkebackup_v1 { workloadsAffectedCount?: number | null; } /** - * Log entry for Backup and Restore Job for resources using BackupPlan based protection. Next Id: 27 + * Log entry for Backup and Restore Job for resources using BackupPlan based protection. Next Id: 28 */ export interface Schema$BDRBackupRestoreJobLog { /** * The auto-protection policy that created the backup. */ autoProtectionPolicy?: string | null; + /** + * The auto-protection policy binding that created the backup. + */ + autoProtectionPolicyBinding?: string | null; /** * Backup consistency time. */ diff --git a/src/apis/gkehub/index.ts b/src/apis/gkehub/index.ts index c6b809e9bd..160b5f97bd 100644 --- a/src/apis/gkehub/index.ts +++ b/src/apis/gkehub/index.ts @@ -104,4 +104,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/gkehub/v1.ts b/src/apis/gkehub/v1.ts index fad8e8fd90..8169e9928d 100644 --- a/src/apis/gkehub/v1.ts +++ b/src/apis/gkehub/v1.ts @@ -2962,7 +2962,7 @@ export namespace gkehub_v1 { predefinedRole?: string | null; } /** - * Rollout contains the Rollout metadata and configuration. Next ID: 31 + * Rollout contains the Rollout metadata and configuration. Next ID: 32 */ export interface Schema$Rollout { /** diff --git a/src/apis/gkehub/v1alpha.ts b/src/apis/gkehub/v1alpha.ts index 7ae72caf79..690472b9f0 100644 --- a/src/apis/gkehub/v1alpha.ts +++ b/src/apis/gkehub/v1alpha.ts @@ -3191,7 +3191,7 @@ export namespace gkehub_v1alpha { predefinedRole?: string | null; } /** - * Rollout contains the Rollout metadata and configuration. Next ID: 31 + * Rollout contains the Rollout metadata and configuration. Next ID: 32 */ export interface Schema$Rollout { /** diff --git a/src/apis/gkehub/v1beta.ts b/src/apis/gkehub/v1beta.ts index fea9f7afa2..6df496802f 100644 --- a/src/apis/gkehub/v1beta.ts +++ b/src/apis/gkehub/v1beta.ts @@ -3039,7 +3039,7 @@ export namespace gkehub_v1beta { predefinedRole?: string | null; } /** - * Rollout contains the Rollout metadata and configuration. Next ID: 31 + * Rollout contains the Rollout metadata and configuration. Next ID: 32 */ export interface Schema$Rollout { /** diff --git a/src/apis/gkeonprem/index.ts b/src/apis/gkeonprem/index.ts index c343880795..e49d6b03fc 100644 --- a/src/apis/gkeonprem/index.ts +++ b/src/apis/gkeonprem/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/gmail/index.ts b/src/apis/gmail/index.ts index 9c914f33b7..f013171120 100644 --- a/src/apis/gmail/index.ts +++ b/src/apis/gmail/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/gmailpostmastertools/index.ts b/src/apis/gmailpostmastertools/index.ts index 806f2bf155..c15141dfb8 100644 --- a/src/apis/gmailpostmastertools/index.ts +++ b/src/apis/gmailpostmastertools/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/groupsmigration/index.ts b/src/apis/groupsmigration/index.ts index f136fb3725..066cb0f60d 100644 --- a/src/apis/groupsmigration/index.ts +++ b/src/apis/groupsmigration/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/groupssettings/index.ts b/src/apis/groupssettings/index.ts index f640ac161d..aa3682cc95 100644 --- a/src/apis/groupssettings/index.ts +++ b/src/apis/groupssettings/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/health/index.ts b/src/apis/health/index.ts index c33b130ed9..328693183e 100644 --- a/src/apis/health/index.ts +++ b/src/apis/health/index.ts @@ -46,4 +46,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/healthcare/index.ts b/src/apis/healthcare/index.ts index 201032e32f..17daf378e2 100644 --- a/src/apis/healthcare/index.ts +++ b/src/apis/healthcare/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/homegraph/index.ts b/src/apis/homegraph/index.ts index 899a7bde5b..4f64428197 100644 --- a/src/apis/homegraph/index.ts +++ b/src/apis/homegraph/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/hypercomputecluster/index.ts b/src/apis/hypercomputecluster/index.ts index 27c2539439..932860fe2e 100644 --- a/src/apis/hypercomputecluster/index.ts +++ b/src/apis/hypercomputecluster/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/iam/index.ts b/src/apis/iam/index.ts index d5bccf9ea4..0389e9d40f 100644 --- a/src/apis/iam/index.ts +++ b/src/apis/iam/index.ts @@ -57,4 +57,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/iam/v1.ts b/src/apis/iam/v1.ts index 8feaad009e..85122a98fa 100644 --- a/src/apis/iam/v1.ts +++ b/src/apis/iam/v1.ts @@ -807,7 +807,7 @@ export namespace iam_v1 { */ export interface Schema$OauthClient { /** - * Required. The list of OAuth grant types is allowed for the OauthClient. + * Optional. The list of OAuth grant types is allowed for the OauthClient. */ allowedGrantTypes?: string[] | null; /** diff --git a/src/apis/iamcredentials/index.ts b/src/apis/iamcredentials/index.ts index 5426bf4c6b..55d73e73a5 100644 --- a/src/apis/iamcredentials/index.ts +++ b/src/apis/iamcredentials/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/iap/index.ts b/src/apis/iap/index.ts index 7b4f25993f..fb945d7971 100644 --- a/src/apis/iap/index.ts +++ b/src/apis/iap/index.ts @@ -46,4 +46,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/ideahub/index.ts b/src/apis/ideahub/index.ts index c4d10f419c..15c98164c1 100644 --- a/src/apis/ideahub/index.ts +++ b/src/apis/ideahub/index.ts @@ -51,4 +51,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/identitytoolkit/index.ts b/src/apis/identitytoolkit/index.ts index 80b04bb547..0bcc05e4a1 100644 --- a/src/apis/identitytoolkit/index.ts +++ b/src/apis/identitytoolkit/index.ts @@ -57,4 +57,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/ids/index.ts b/src/apis/ids/index.ts index 9a557dcd41..bfe51aff90 100644 --- a/src/apis/ids/index.ts +++ b/src/apis/ids/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/indexing/index.ts b/src/apis/indexing/index.ts index 4ebac64e86..fa37300872 100644 --- a/src/apis/indexing/index.ts +++ b/src/apis/indexing/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/integrations/index.ts b/src/apis/integrations/index.ts index 8f2267547e..518f1e172e 100644 --- a/src/apis/integrations/index.ts +++ b/src/apis/integrations/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/jobs/index.ts b/src/apis/jobs/index.ts index dde7f613e9..b4748bf060 100644 --- a/src/apis/jobs/index.ts +++ b/src/apis/jobs/index.ts @@ -66,4 +66,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/keep/index.ts b/src/apis/keep/index.ts index f460354366..fb51729631 100644 --- a/src/apis/keep/index.ts +++ b/src/apis/keep/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/kgsearch/index.ts b/src/apis/kgsearch/index.ts index 79e2a2b00d..c8690de445 100644 --- a/src/apis/kgsearch/index.ts +++ b/src/apis/kgsearch/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/kmsinventory/index.ts b/src/apis/kmsinventory/index.ts index 6e9ab865e1..ec4cebb7bb 100644 --- a/src/apis/kmsinventory/index.ts +++ b/src/apis/kmsinventory/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/language/index.ts b/src/apis/language/index.ts index 538f14ed54..c251206881 100644 --- a/src/apis/language/index.ts +++ b/src/apis/language/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/libraryagent/index.ts b/src/apis/libraryagent/index.ts index ea1f7bc6b4..52642fcba7 100644 --- a/src/apis/libraryagent/index.ts +++ b/src/apis/libraryagent/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/licensing/index.ts b/src/apis/licensing/index.ts index 114cf843f3..45ddc9fb6e 100644 --- a/src/apis/licensing/index.ts +++ b/src/apis/licensing/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/localservices/index.ts b/src/apis/localservices/index.ts index 75b2e7d205..613029b936 100644 --- a/src/apis/localservices/index.ts +++ b/src/apis/localservices/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/logging/index.ts b/src/apis/logging/index.ts index 1ee81a6161..24f38b872d 100644 --- a/src/apis/logging/index.ts +++ b/src/apis/logging/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/logging/v2.ts b/src/apis/logging/v2.ts index 03a57fde14..f8b4dcd01b 100644 --- a/src/apis/logging/v2.ts +++ b/src/apis/logging/v2.ts @@ -2147,7 +2147,7 @@ export namespace logging_v2 { */ labels?: {[key: string]: string} | null; /** - * Optional. A default log resource name that is assigned to all log entries in entries that do not specify a value for log_name: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example: "projects/my-project-id/logs/syslog" "organizations/123/logs/cloudaudit.googleapis.com%2Factivity" The permission logging.logEntries.create is needed on each project, organization, billing account, or folder that is receiving new log entries, whether the resource is specified in logName or in an individual log entry. + * Optional. A default log resource name that is assigned to all log entries in entries that do not specify a value for log_name: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example: "projects/my-project-id/logs/syslog" "organizations/123/logs/cloudaudit.googleapis.com%2Factivity" The permission logging.logEntries.create is needed on each project, organization, billing account, or folder that is receiving new log entries, whether the resource is specified in logName or in an individual log entry.Only platform services can write logs to billing accounts. */ logName?: string | null; /** diff --git a/src/apis/looker/index.ts b/src/apis/looker/index.ts index 333dfc9023..bfe82a9ed4 100644 --- a/src/apis/looker/index.ts +++ b/src/apis/looker/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/managedidentities/index.ts b/src/apis/managedidentities/index.ts index f16cf5bec1..b70b2042e1 100644 --- a/src/apis/managedidentities/index.ts +++ b/src/apis/managedidentities/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/managedkafka/index.ts b/src/apis/managedkafka/index.ts index ea18c60c9d..5fb0b8b3a8 100644 --- a/src/apis/managedkafka/index.ts +++ b/src/apis/managedkafka/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/manufacturers/index.ts b/src/apis/manufacturers/index.ts index 37600d040b..83771fe869 100644 --- a/src/apis/manufacturers/index.ts +++ b/src/apis/manufacturers/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/marketingplatformadmin/index.ts b/src/apis/marketingplatformadmin/index.ts index 0f94d15aad..67b74e38f7 100644 --- a/src/apis/marketingplatformadmin/index.ts +++ b/src/apis/marketingplatformadmin/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/marketingplatformadmin/v1alpha.ts b/src/apis/marketingplatformadmin/v1alpha.ts index e088a0fe89..40965cadd5 100644 --- a/src/apis/marketingplatformadmin/v1alpha.ts +++ b/src/apis/marketingplatformadmin/v1alpha.ts @@ -124,6 +124,27 @@ export namespace marketingplatformadmin_v1alpha { } } + /** + * A resource message representing a binding to a set of roles. + */ + export interface Schema$AdminAccessBinding { + /** + * Identifier. The resource name of this AdminAccessBinding. Format: organizations/{org_id\}/adminAccessBindings/{admin_access_binding_id\} Example: "organizations/123abc/adminAccessBindings/456def" + */ + name?: string | null; + /** + * Optional. A list of roles granted to the parent organization. USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned. No roles will be assigned if no roles are specified. + */ + organizationRoles?: string[] | null; + /** + * Email address of the user. + */ + userEmail?: string | null; + /** + * Resource name of the user group. + */ + userGroup?: string | null; + } /** * A resource message representing the link between a Google Analytics account and a Google Marketing Platform organization. */ @@ -222,6 +243,19 @@ export namespace marketingplatformadmin_v1alpha { */ clientData?: Schema$ClientData[]; } + /** + * Response message for ListAdminAccessBindings RPC. + */ + export interface Schema$ListAdminAccessBindingsResponse { + /** + * Admin Access Bindings in the organization. + */ + adminAccessBindings?: Schema$AdminAccessBinding[]; + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + */ + nextPageToken?: string | null; + } /** * Response message for ListAnalyticsAccountLinks RPC. */ @@ -248,6 +282,32 @@ export namespace marketingplatformadmin_v1alpha { */ organizations?: Schema$Organization[]; } + /** + * Response message for ListUserGroupMembers RPC. + */ + export interface Schema$ListUserGroupMembersResponse { + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + */ + nextPageToken?: string | null; + /** + * User group members in the user group. + */ + userGroupMembers?: Schema$UserGroupMember[]; + } + /** + * Response message for ListUserGroups RPC. + */ + export interface Schema$ListUserGroupsResponse { + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + */ + nextPageToken?: string | null; + /** + * User groups in the organization. + */ + userGroups?: Schema$UserGroup[]; + } /** * Represents an amount of money with its currency type. */ @@ -350,14 +410,58 @@ export namespace marketingplatformadmin_v1alpha { * Response message for SetPropertyServiceLevel RPC. */ export interface Schema$SetPropertyServiceLevelResponse {} + /** + * A resource message representing a user group in a GMP organization. + */ + export interface Schema$UserGroup { + /** + * Optional. The description of the user group. + */ + description?: string | null; + /** + * Optional. The human-readable name for the user group. + */ + displayName?: string | null; + /** + * Identifier. Resource name of this UserGroup. Format: organizations/{org_id\}/userGroups/{user_group_id\} Example: "organizations/123abc/userGroups/456def" + */ + name?: string | null; + } + /** + * A resource message representing a member of a user group. + */ + export interface Schema$UserGroupMember { + /** + * Optional. The role of the member in the user group. + */ + membershipRole?: string | null; + /** + * Identifier. The resource name of this UserGroupMember. Format: organizations/{org_id\}/userGroups/{user_group_id\}/members/{member_id\} Example: "organizations/123abc/userGroups/456def/members/789ghi" + */ + name?: string | null; + /** + * Email address of the user member. + */ + userEmail?: string | null; + /** + * User group resource name of the group member. + */ + userGroup?: string | null; + } export class Resource$Organizations { context: APIRequestContext; + adminAccessBindings: Resource$Organizations$Adminaccessbindings; analyticsAccountLinks: Resource$Organizations$Analyticsaccountlinks; + userGroups: Resource$Organizations$Usergroups; constructor(context: APIRequestContext) { this.context = context; + this.adminAccessBindings = new Resource$Organizations$Adminaccessbindings( + this.context + ); this.analyticsAccountLinks = new Resource$Organizations$Analyticsaccountlinks(this.context); + this.userGroups = new Resource$Organizations$Usergroups(this.context); } /** @@ -1000,14 +1104,14 @@ export namespace marketingplatformadmin_v1alpha { requestBody?: Schema$ReportPropertyUsageRequest; } - export class Resource$Organizations$Analyticsaccountlinks { + export class Resource$Organizations$Adminaccessbindings { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Creates the link between the Analytics account and the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account to create the link. If the account is already linked to an organization, user needs to unlink the account from the current organization, then try link again. + * Creates an admin access binding in the specified GMP organization. * @example * ```js * // Before running the sample: @@ -1039,18 +1143,18 @@ export namespace marketingplatformadmin_v1alpha { * * // Do the magic * const res = - * await marketingplatformadmin.organizations.analyticsAccountLinks.create({ - * // Required. The parent resource where this Analytics account link will be created. Format: organizations/{org_id\} + * await marketingplatformadmin.organizations.adminAccessBindings.create({ + * // Required. The parent organization, which owns this Admin Access Binding. Format: organizations/{org_id\} * parent: 'organizations/my-organization', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "analyticsAccount": "my_analyticsAccount", - * // "displayName": "my_displayName", - * // "linkVerificationState": "my_linkVerificationState", - * // "name": "my_name" + * // "name": "my_name", + * // "organizationRoles": [], + * // "userEmail": "my_userEmail", + * // "userGroup": "my_userGroup" * // } * }, * }); @@ -1058,10 +1162,10 @@ export namespace marketingplatformadmin_v1alpha { * * // Example response * // { - * // "analyticsAccount": "my_analyticsAccount", - * // "displayName": "my_displayName", - * // "linkVerificationState": "my_linkVerificationState", - * // "name": "my_name" + * // "name": "my_name", + * // "organizationRoles": [], + * // "userEmail": "my_userEmail", + * // "userGroup": "my_userGroup" * // } * } * @@ -1078,54 +1182,52 @@ export namespace marketingplatformadmin_v1alpha { * @returns A promise if used with async/await, or void if used with a callback. */ create( - params: Params$Resource$Organizations$Analyticsaccountlinks$Create, + params: Params$Resource$Organizations$Adminaccessbindings$Create, options: StreamMethodOptions ): Promise>; create( - params?: Params$Resource$Organizations$Analyticsaccountlinks$Create, + params?: Params$Resource$Organizations$Adminaccessbindings$Create, options?: MethodOptions - ): Promise>; + ): Promise>; create( - params: Params$Resource$Organizations$Analyticsaccountlinks$Create, + params: Params$Resource$Organizations$Adminaccessbindings$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; create( - params: Params$Resource$Organizations$Analyticsaccountlinks$Create, - options: - MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Adminaccessbindings$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; create( - params: Params$Resource$Organizations$Analyticsaccountlinks$Create, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Adminaccessbindings$Create, + callback: BodyResponseCallback ): void; - create(callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( paramsOrCallback?: - | Params$Resource$Organizations$Analyticsaccountlinks$Create - | BodyResponseCallback + | Params$Resource$Organizations$Adminaccessbindings$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Analyticsaccountlinks$Create; + {}) as Params$Resource$Organizations$Adminaccessbindings$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Organizations$Analyticsaccountlinks$Create; + params = {} as Params$Resource$Organizations$Adminaccessbindings$Create; options = {}; } @@ -1139,7 +1241,7 @@ export namespace marketingplatformadmin_v1alpha { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha/{+parent}/analyticsAccountLinks').replace( + url: (rootUrl + '/v1alpha/{+parent}/adminAccessBindings').replace( /([^:]\/)\/+/g, '$1' ), @@ -1154,17 +1256,17 @@ export namespace marketingplatformadmin_v1alpha { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Deletes the AnalyticsAccountLink, which detaches the Analytics account from the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account in order to delete the link. + * Looks up a single admin access binding. * @example * ```js * // Before running the sample: @@ -1186,6 +1288,7 @@ export namespace marketingplatformadmin_v1alpha { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.read', * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', * ], * }); @@ -1196,14 +1299,19 @@ export namespace marketingplatformadmin_v1alpha { * * // Do the magic * const res = - * await marketingplatformadmin.organizations.analyticsAccountLinks.delete({ - * // Required. The name of the Analytics account link to delete. Format: organizations/{org_id\}/analyticsAccountLinks/{analytics_account_link_id\} - * name: 'organizations/my-organization/analyticsAccountLinks/my-analyticsAccountLink', + * await marketingplatformadmin.organizations.adminAccessBindings.get({ + * // Required. The name of the AdminAccessBinding to retrieve. Format: organizations/{org_id\}/adminAccessBindings/{admin_access_binding_id\} + * name: 'organizations/my-organization/adminAccessBindings/my-adminAccessBinding', * }); * console.log(res.data); * * // Example response - * // {} + * // { + * // "name": "my_name", + * // "organizationRoles": [], + * // "userEmail": "my_userEmail", + * // "userGroup": "my_userGroup" + * // } * } * * main().catch(e => { @@ -1218,53 +1326,53 @@ export namespace marketingplatformadmin_v1alpha { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - delete( - params: Params$Resource$Organizations$Analyticsaccountlinks$Delete, + get( + params: Params$Resource$Organizations$Adminaccessbindings$Get, options: StreamMethodOptions ): Promise>; - delete( - params?: Params$Resource$Organizations$Analyticsaccountlinks$Delete, + get( + params?: Params$Resource$Organizations$Adminaccessbindings$Get, options?: MethodOptions - ): Promise>; - delete( - params: Params$Resource$Organizations$Analyticsaccountlinks$Delete, + ): Promise>; + get( + params: Params$Resource$Organizations$Adminaccessbindings$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Organizations$Analyticsaccountlinks$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Organizations$Adminaccessbindings$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Organizations$Analyticsaccountlinks$Delete, - callback: BodyResponseCallback + get( + params: Params$Resource$Organizations$Adminaccessbindings$Get, + callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Organizations$Analyticsaccountlinks$Delete - | BodyResponseCallback + | Params$Resource$Organizations$Adminaccessbindings$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - BodyResponseCallback | BodyResponseCallback + | BodyResponseCallback + | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Analyticsaccountlinks$Delete; + {}) as Params$Resource$Organizations$Adminaccessbindings$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Organizations$Analyticsaccountlinks$Delete; + params = {} as Params$Resource$Organizations$Adminaccessbindings$Get; options = {}; } @@ -1279,7 +1387,7 @@ export namespace marketingplatformadmin_v1alpha { options: Object.assign( { url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', apiVersion: '', }, options @@ -1290,17 +1398,17 @@ export namespace marketingplatformadmin_v1alpha { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Lists the Google Analytics accounts link to the specified Google Marketing Platform organization. + * Returns a list of admin access bindings in the specified GMP organization. * @example * ```js * // Before running the sample: @@ -1333,19 +1441,19 @@ export namespace marketingplatformadmin_v1alpha { * * // Do the magic * const res = - * await marketingplatformadmin.organizations.analyticsAccountLinks.list({ - * // Optional. The maximum number of Analytics account links to return in one call. The service may return fewer than this value. If unspecified, at most 50 Analytics account links will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * await marketingplatformadmin.organizations.adminAccessBindings.list({ + * // Optional. The maximum number of Admin Access Bindings to return in one call. The service may return fewer than this value. If unspecified, at most 50 Admin Access Bindings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. * pageSize: 'placeholder-value', - * // Optional. A page token, received from a previous ListAnalyticsAccountLinks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAnalyticsAccountLinks` must match the call that provided the page token. + * // Optional. A page token, received from a previous ListAdminAccessBindings call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAdminAccessBindings` must match the call that provided the page token. * pageToken: 'placeholder-value', - * // Required. The parent organization, which owns this collection of Analytics account links. Format: organizations/{org_id\} + * // Required. The parent organization, which owns this collection of Admin Access Bindings. Format: organizations/{org_id\} * parent: 'organizations/my-organization', * }); * console.log(res.data); * * // Example response * // { - * // "analyticsAccountLinks": [], + * // "adminAccessBindings": [], * // "nextPageToken": "my_nextPageToken" * // } * } @@ -1363,60 +1471,56 @@ export namespace marketingplatformadmin_v1alpha { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Organizations$Analyticsaccountlinks$List, + params: Params$Resource$Organizations$Adminaccessbindings$List, options: StreamMethodOptions ): Promise>; list( - params?: Params$Resource$Organizations$Analyticsaccountlinks$List, + params?: Params$Resource$Organizations$Adminaccessbindings$List, options?: MethodOptions - ): Promise< - GaxiosResponseWithHTTP2 - >; + ): Promise>; list( - params: Params$Resource$Organizations$Analyticsaccountlinks$List, + params: Params$Resource$Organizations$Adminaccessbindings$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Analyticsaccountlinks$List, + params: Params$Resource$Organizations$Adminaccessbindings$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Analyticsaccountlinks$List, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Adminaccessbindings$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Organizations$Analyticsaccountlinks$List - | BodyResponseCallback + | Params$Resource$Organizations$Adminaccessbindings$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise< - GaxiosResponseWithHTTP2 - > + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Analyticsaccountlinks$List; + {}) as Params$Resource$Organizations$Adminaccessbindings$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Analyticsaccountlinks$List; + params = {} as Params$Resource$Organizations$Adminaccessbindings$List; options = {}; } @@ -1430,7 +1534,7 @@ export namespace marketingplatformadmin_v1alpha { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha/{+parent}/analyticsAccountLinks').replace( + url: (rootUrl + '/v1alpha/{+parent}/adminAccessBindings').replace( /([^:]\/)\/+/g, '$1' ), @@ -1445,19 +1549,19 @@ export namespace marketingplatformadmin_v1alpha { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Updates the service level for an Analytics property. + * Updates an admin access binding in the specified GMP organization. * @example * ```js * // Before running the sample: @@ -1489,26 +1593,32 @@ export namespace marketingplatformadmin_v1alpha { * * // Do the magic * const res = - * await marketingplatformadmin.organizations.analyticsAccountLinks.setPropertyServiceLevel( - * { - * // Required. The parent AnalyticsAccountLink scope where this property is in. Format: organizations/{org_id\}/analyticsAccountLinks/{analytics_account_link_id\} - * analyticsAccountLink: - * 'organizations/my-organization/analyticsAccountLinks/my-analyticsAccountLink', + * await marketingplatformadmin.organizations.adminAccessBindings.patch({ + * // Identifier. The resource name of this AdminAccessBinding. Format: organizations/{org_id\}/adminAccessBindings/{admin_access_binding_id\} Example: "organizations/123abc/adminAccessBindings/456def" + * name: 'organizations/my-organization/adminAccessBindings/my-adminAccessBinding', + * // Required. The list of fields to update. Field names must be in snake case (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. + * updateMask: 'placeholder-value', * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "analyticsProperty": "my_analyticsProperty", - * // "serviceLevel": "my_serviceLevel" - * // } - * }, + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "name": "my_name", + * // "organizationRoles": [], + * // "userEmail": "my_userEmail", + * // "userGroup": "my_userGroup" + * // } * }, - * ); + * }); * console.log(res.data); * * // Example response - * // {} + * // { + * // "name": "my_name", + * // "organizationRoles": [], + * // "userEmail": "my_userEmail", + * // "userGroup": "my_userGroup" + * // } * } * * main().catch(e => { @@ -1523,58 +1633,53 @@ export namespace marketingplatformadmin_v1alpha { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - setPropertyServiceLevel( - params: Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel, + patch( + params: Params$Resource$Organizations$Adminaccessbindings$Patch, options: StreamMethodOptions ): Promise>; - setPropertyServiceLevel( - params?: Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel, + patch( + params?: Params$Resource$Organizations$Adminaccessbindings$Patch, options?: MethodOptions - ): Promise>; - setPropertyServiceLevel( - params: Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel, + ): Promise>; + patch( + params: Params$Resource$Organizations$Adminaccessbindings$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - setPropertyServiceLevel( - params: Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - setPropertyServiceLevel( - params: Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel, - callback: BodyResponseCallback + patch( + params: Params$Resource$Organizations$Adminaccessbindings$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - setPropertyServiceLevel( - callback: BodyResponseCallback + patch( + params: Params$Resource$Organizations$Adminaccessbindings$Patch, + callback: BodyResponseCallback ): void; - setPropertyServiceLevel( + patch(callback: BodyResponseCallback): void; + patch( paramsOrCallback?: - | Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel - | BodyResponseCallback + | Params$Resource$Organizations$Adminaccessbindings$Patch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | Promise> + | Promise> | Promise> { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel; + {}) as Params$Resource$Organizations$Adminaccessbindings$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel; + params = {} as Params$Resource$Organizations$Adminaccessbindings$Patch; options = {}; } @@ -1588,73 +1693,2315 @@ export namespace marketingplatformadmin_v1alpha { const parameters = { options: Object.assign( { - url: ( - rootUrl + - '/v1alpha/{+analyticsAccountLink}:setPropertyServiceLevel' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', apiVersion: '', }, options ), params, - requiredParams: ['analyticsAccountLink'], - pathParams: ['analyticsAccountLink'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Organizations$Analyticsaccountlinks$Create extends StandardParameters { + export interface Params$Resource$Organizations$Adminaccessbindings$Create extends StandardParameters { /** - * Required. The parent resource where this Analytics account link will be created. Format: organizations/{org_id\} + * Required. The parent organization, which owns this Admin Access Binding. Format: organizations/{org_id\} */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$AnalyticsAccountLink; + requestBody?: Schema$AdminAccessBinding; } - export interface Params$Resource$Organizations$Analyticsaccountlinks$Delete extends StandardParameters { + export interface Params$Resource$Organizations$Adminaccessbindings$Get extends StandardParameters { /** - * Required. The name of the Analytics account link to delete. Format: organizations/{org_id\}/analyticsAccountLinks/{analytics_account_link_id\} + * Required. The name of the AdminAccessBinding to retrieve. Format: organizations/{org_id\}/adminAccessBindings/{admin_access_binding_id\} */ name?: string; } - export interface Params$Resource$Organizations$Analyticsaccountlinks$List extends StandardParameters { + export interface Params$Resource$Organizations$Adminaccessbindings$List extends StandardParameters { /** - * Optional. The maximum number of Analytics account links to return in one call. The service may return fewer than this value. If unspecified, at most 50 Analytics account links will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * Optional. The maximum number of Admin Access Bindings to return in one call. The service may return fewer than this value. If unspecified, at most 50 Admin Access Bindings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. */ pageSize?: number; /** - * Optional. A page token, received from a previous ListAnalyticsAccountLinks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAnalyticsAccountLinks` must match the call that provided the page token. + * Optional. A page token, received from a previous ListAdminAccessBindings call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAdminAccessBindings` must match the call that provided the page token. */ pageToken?: string; /** - * Required. The parent organization, which owns this collection of Analytics account links. Format: organizations/{org_id\} + * Required. The parent organization, which owns this collection of Admin Access Bindings. Format: organizations/{org_id\} */ parent?: string; } - export interface Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel extends StandardParameters { + export interface Params$Resource$Organizations$Adminaccessbindings$Patch extends StandardParameters { /** - * Required. The parent AnalyticsAccountLink scope where this property is in. Format: organizations/{org_id\}/analyticsAccountLinks/{analytics_account_link_id\} + * Identifier. The resource name of this AdminAccessBinding. Format: organizations/{org_id\}/adminAccessBindings/{admin_access_binding_id\} Example: "organizations/123abc/adminAccessBindings/456def" */ - analyticsAccountLink?: string; + name?: string; + /** + * Required. The list of fields to update. Field names must be in snake case (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. + */ + updateMask?: string; /** * Request body metadata */ - requestBody?: Schema$SetPropertyServiceLevelRequest; + requestBody?: Schema$AdminAccessBinding; + } + + export class Resource$Organizations$Analyticsaccountlinks { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates the link between the Analytics account and the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account to create the link. If the account is already linked to an organization, user needs to unlink the account from the current organization, then try link again. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await marketingplatformadmin.organizations.analyticsAccountLinks.create({ + * // Required. The parent resource where this Analytics account link will be created. Format: organizations/{org_id\} + * parent: 'organizations/my-organization', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "analyticsAccount": "my_analyticsAccount", + * // "displayName": "my_displayName", + * // "linkVerificationState": "my_linkVerificationState", + * // "name": "my_name" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "analyticsAccount": "my_analyticsAccount", + * // "displayName": "my_displayName", + * // "linkVerificationState": "my_linkVerificationState", + * // "name": "my_name" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Organizations$Analyticsaccountlinks$Create, + options: StreamMethodOptions + ): Promise>; + create( + params?: Params$Resource$Organizations$Analyticsaccountlinks$Create, + options?: MethodOptions + ): Promise>; + create( + params: Params$Resource$Organizations$Analyticsaccountlinks$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Analyticsaccountlinks$Create, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Analyticsaccountlinks$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Organizations$Analyticsaccountlinks$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Analyticsaccountlinks$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Organizations$Analyticsaccountlinks$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/analyticsAccountLinks').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes the AnalyticsAccountLink, which detaches the Analytics account from the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account in order to delete the link. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await marketingplatformadmin.organizations.analyticsAccountLinks.delete({ + * // Required. The name of the Analytics account link to delete. Format: organizations/{org_id\}/analyticsAccountLinks/{analytics_account_link_id\} + * name: 'organizations/my-organization/analyticsAccountLinks/my-analyticsAccountLink', + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Organizations$Analyticsaccountlinks$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Organizations$Analyticsaccountlinks$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Organizations$Analyticsaccountlinks$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Organizations$Analyticsaccountlinks$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Organizations$Analyticsaccountlinks$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Organizations$Analyticsaccountlinks$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Analyticsaccountlinks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Organizations$Analyticsaccountlinks$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Lists the Google Analytics accounts link to the specified Google Marketing Platform organization. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.read', + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await marketingplatformadmin.organizations.analyticsAccountLinks.list({ + * // Optional. The maximum number of Analytics account links to return in one call. The service may return fewer than this value. If unspecified, at most 50 Analytics account links will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * pageSize: 'placeholder-value', + * // Optional. A page token, received from a previous ListAnalyticsAccountLinks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAnalyticsAccountLinks` must match the call that provided the page token. + * pageToken: 'placeholder-value', + * // Required. The parent organization, which owns this collection of Analytics account links. Format: organizations/{org_id\} + * parent: 'organizations/my-organization', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "analyticsAccountLinks": [], + * // "nextPageToken": "my_nextPageToken" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Organizations$Analyticsaccountlinks$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Organizations$Analyticsaccountlinks$List, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + list( + params: Params$Resource$Organizations$Analyticsaccountlinks$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Organizations$Analyticsaccountlinks$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Organizations$Analyticsaccountlinks$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Organizations$Analyticsaccountlinks$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Analyticsaccountlinks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Analyticsaccountlinks$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/analyticsAccountLinks').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Updates the service level for an Analytics property. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await marketingplatformadmin.organizations.analyticsAccountLinks.setPropertyServiceLevel( + * { + * // Required. The parent AnalyticsAccountLink scope where this property is in. Format: organizations/{org_id\}/analyticsAccountLinks/{analytics_account_link_id\} + * analyticsAccountLink: + * 'organizations/my-organization/analyticsAccountLinks/my-analyticsAccountLink', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "analyticsProperty": "my_analyticsProperty", + * // "serviceLevel": "my_serviceLevel" + * // } + * }, + * }, + * ); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + setPropertyServiceLevel( + params: Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel, + options: StreamMethodOptions + ): Promise>; + setPropertyServiceLevel( + params?: Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel, + options?: MethodOptions + ): Promise>; + setPropertyServiceLevel( + params: Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setPropertyServiceLevel( + params: Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setPropertyServiceLevel( + params: Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel, + callback: BodyResponseCallback + ): void; + setPropertyServiceLevel( + callback: BodyResponseCallback + ): void; + setPropertyServiceLevel( + paramsOrCallback?: + | Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/v1alpha/{+analyticsAccountLink}:setPropertyServiceLevel' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['analyticsAccountLink'], + pathParams: ['analyticsAccountLink'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Organizations$Analyticsaccountlinks$Create extends StandardParameters { + /** + * Required. The parent resource where this Analytics account link will be created. Format: organizations/{org_id\} + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$AnalyticsAccountLink; + } + export interface Params$Resource$Organizations$Analyticsaccountlinks$Delete extends StandardParameters { + /** + * Required. The name of the Analytics account link to delete. Format: organizations/{org_id\}/analyticsAccountLinks/{analytics_account_link_id\} + */ + name?: string; + } + export interface Params$Resource$Organizations$Analyticsaccountlinks$List extends StandardParameters { + /** + * Optional. The maximum number of Analytics account links to return in one call. The service may return fewer than this value. If unspecified, at most 50 Analytics account links will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + pageSize?: number; + /** + * Optional. A page token, received from a previous ListAnalyticsAccountLinks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAnalyticsAccountLinks` must match the call that provided the page token. + */ + pageToken?: string; + /** + * Required. The parent organization, which owns this collection of Analytics account links. Format: organizations/{org_id\} + */ + parent?: string; + } + export interface Params$Resource$Organizations$Analyticsaccountlinks$Setpropertyservicelevel extends StandardParameters { + /** + * Required. The parent AnalyticsAccountLink scope where this property is in. Format: organizations/{org_id\}/analyticsAccountLinks/{analytics_account_link_id\} + */ + analyticsAccountLink?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SetPropertyServiceLevelRequest; + } + + export class Resource$Organizations$Usergroups { + context: APIRequestContext; + members: Resource$Organizations$Usergroups$Members; + constructor(context: APIRequestContext) { + this.context = context; + this.members = new Resource$Organizations$Usergroups$Members( + this.context + ); + } + + /** + * Creates a user group in the specified GMP organization. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await marketingplatformadmin.organizations.userGroups.create({ + * // Required. The parent resource where this UserGroup will be created. Format: organizations/{org_id\} + * parent: 'organizations/my-organization', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "description": "my_description", + * // "displayName": "my_displayName", + * // "name": "my_name" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "description": "my_description", + * // "displayName": "my_displayName", + * // "name": "my_name" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Organizations$Usergroups$Create, + options: StreamMethodOptions + ): Promise>; + create( + params?: Params$Resource$Organizations$Usergroups$Create, + options?: MethodOptions + ): Promise>; + create( + params: Params$Resource$Organizations$Usergroups$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Usergroups$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Usergroups$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Organizations$Usergroups$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Usergroups$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Usergroups$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/userGroups').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a user group in the specified GMP organization. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await marketingplatformadmin.organizations.userGroups.delete({ + * // Required. The name of the user group to delete. Format: organizations/{org_id\}/userGroups/{user_group_id\} + * name: 'organizations/my-organization/userGroups/my-userGroup', + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Organizations$Usergroups$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Organizations$Usergroups$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Organizations$Usergroups$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Organizations$Usergroups$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Organizations$Usergroups$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Organizations$Usergroups$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Usergroups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Usergroups$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Looks up a single user group. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.read', + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await marketingplatformadmin.organizations.userGroups.get({ + * // Required. The name of the UserGroup to retrieve. Format: organizations/{org_id\}/userGroups/{user_group_id\} + * name: 'organizations/my-organization/userGroups/my-userGroup', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "description": "my_description", + * // "displayName": "my_displayName", + * // "name": "my_name" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Organizations$Usergroups$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Organizations$Usergroups$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Organizations$Usergroups$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Usergroups$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Usergroups$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Organizations$Usergroups$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Usergroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Usergroups$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Returns a list of user groups in the specified GMP organization. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.read', + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await marketingplatformadmin.organizations.userGroups.list({ + * // Optional. The maximum number of user groups to return in one call. The service may return fewer than this value. If unspecified, at most 50 user groups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * pageSize: 'placeholder-value', + * // Optional. A page token, received from a previous ListUserGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUserGroups` must match the call that provided the page token. + * pageToken: 'placeholder-value', + * // Required. The parent org where this UserGroup will be listed. Format: organizations/{org_id\} + * parent: 'organizations/my-organization', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "userGroups": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Organizations$Usergroups$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Organizations$Usergroups$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Organizations$Usergroups$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Organizations$Usergroups$List, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Organizations$Usergroups$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Organizations$Usergroups$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Usergroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Usergroups$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/userGroups').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Updates a user group in the specified GMP organization. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await marketingplatformadmin.organizations.userGroups.patch({ + * // Identifier. Resource name of this UserGroup. Format: organizations/{org_id\}/userGroups/{user_group_id\} Example: "organizations/123abc/userGroups/456def" + * name: 'organizations/my-organization/userGroups/my-userGroup', + * // Required. The list of fields to update. Field names must be in snake case (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. + * updateMask: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "description": "my_description", + * // "displayName": "my_displayName", + * // "name": "my_name" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "description": "my_description", + * // "displayName": "my_displayName", + * // "name": "my_name" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Organizations$Usergroups$Patch, + options: StreamMethodOptions + ): Promise>; + patch( + params?: Params$Resource$Organizations$Usergroups$Patch, + options?: MethodOptions + ): Promise>; + patch( + params: Params$Resource$Organizations$Usergroups$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Organizations$Usergroups$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Organizations$Usergroups$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Organizations$Usergroups$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Usergroups$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Usergroups$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Organizations$Usergroups$Create extends StandardParameters { + /** + * Required. The parent resource where this UserGroup will be created. Format: organizations/{org_id\} + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$UserGroup; + } + export interface Params$Resource$Organizations$Usergroups$Delete extends StandardParameters { + /** + * Required. The name of the user group to delete. Format: organizations/{org_id\}/userGroups/{user_group_id\} + */ + name?: string; + } + export interface Params$Resource$Organizations$Usergroups$Get extends StandardParameters { + /** + * Required. The name of the UserGroup to retrieve. Format: organizations/{org_id\}/userGroups/{user_group_id\} + */ + name?: string; + } + export interface Params$Resource$Organizations$Usergroups$List extends StandardParameters { + /** + * Optional. The maximum number of user groups to return in one call. The service may return fewer than this value. If unspecified, at most 50 user groups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + pageSize?: number; + /** + * Optional. A page token, received from a previous ListUserGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUserGroups` must match the call that provided the page token. + */ + pageToken?: string; + /** + * Required. The parent org where this UserGroup will be listed. Format: organizations/{org_id\} + */ + parent?: string; + } + export interface Params$Resource$Organizations$Usergroups$Patch extends StandardParameters { + /** + * Identifier. Resource name of this UserGroup. Format: organizations/{org_id\}/userGroups/{user_group_id\} Example: "organizations/123abc/userGroups/456def" + */ + name?: string; + /** + * Required. The list of fields to update. Field names must be in snake case (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$UserGroup; + } + + export class Resource$Organizations$Usergroups$Members { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Adds a member to the specified GMP user group. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await marketingplatformadmin.organizations.userGroups.members.create({ + * // Required. The parent resource where this UserGroupMember will be created. Format: organizations/{org_id\}/userGroups/{user_group_id\} + * parent: 'organizations/my-organization/userGroups/my-userGroup', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "membershipRole": "my_membershipRole", + * // "name": "my_name", + * // "userEmail": "my_userEmail", + * // "userGroup": "my_userGroup" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "membershipRole": "my_membershipRole", + * // "name": "my_name", + * // "userEmail": "my_userEmail", + * // "userGroup": "my_userGroup" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Organizations$Usergroups$Members$Create, + options: StreamMethodOptions + ): Promise>; + create( + params?: Params$Resource$Organizations$Usergroups$Members$Create, + options?: MethodOptions + ): Promise>; + create( + params: Params$Resource$Organizations$Usergroups$Members$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Usergroups$Members$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Usergroups$Members$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Organizations$Usergroups$Members$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Usergroups$Members$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Usergroups$Members$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/members').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a member in the specified GMP user group. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await marketingplatformadmin.organizations.userGroups.members.delete({ + * // Required. The name of the user group member to delete. Format: organizations/{org_id\}/userGroups/{user_group_id\}/members/{member_id\} + * name: 'organizations/my-organization/userGroups/my-userGroup/members/my-member', + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Organizations$Usergroups$Members$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Organizations$Usergroups$Members$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Organizations$Usergroups$Members$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Organizations$Usergroups$Members$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Organizations$Usergroups$Members$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Organizations$Usergroups$Members$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Usergroups$Members$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Usergroups$Members$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Looks up a single user group member. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.read', + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await marketingplatformadmin.organizations.userGroups.members.get( + * { + * // Required. The name of the user group member to retrieve. Format: organizations/{org_id\}/userGroups/{user_group_id\}/members/{member_id\} + * name: 'organizations/my-organization/userGroups/my-userGroup/members/my-member', + * }, + * ); + * console.log(res.data); + * + * // Example response + * // { + * // "membershipRole": "my_membershipRole", + * // "name": "my_name", + * // "userEmail": "my_userEmail", + * // "userGroup": "my_userGroup" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Organizations$Usergroups$Members$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Organizations$Usergroups$Members$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Organizations$Usergroups$Members$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Usergroups$Members$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Usergroups$Members$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Organizations$Usergroups$Members$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Usergroups$Members$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Usergroups$Members$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Returns a list of members in the specified user group. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.read', + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await marketingplatformadmin.organizations.userGroups.members.list({ + * // Optional. The maximum number of user group members to return in one call. The service may return fewer than this value. If unspecified, at most 50 user group members will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * pageSize: 'placeholder-value', + * // Optional. A page token, received from a previous ListUserGroupMembers call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUserGroupMembers` must match the call that provided the page token. + * pageToken: 'placeholder-value', + * // Required. The parent user group where this UserGroupMember will be listed. Format: organizations/{org_id\}/userGroups/{user_group_id\} + * parent: 'organizations/my-organization/userGroups/my-userGroup', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "userGroupMembers": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Organizations$Usergroups$Members$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Organizations$Usergroups$Members$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Organizations$Usergroups$Members$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Organizations$Usergroups$Members$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Organizations$Usergroups$Members$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Organizations$Usergroups$Members$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Usergroups$Members$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Usergroups$Members$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/members').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Updates a member in the specified GMP user group. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/marketingplatformadmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const marketingplatformadmin = google.marketingplatformadmin('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await marketingplatformadmin.organizations.userGroups.members.patch({ + * // Identifier. The resource name of this UserGroupMember. Format: organizations/{org_id\}/userGroups/{user_group_id\}/members/{member_id\} Example: "organizations/123abc/userGroups/456def/members/789ghi" + * name: 'organizations/my-organization/userGroups/my-userGroup/members/my-member', + * // Required. The list of fields to update. Field names must be in snake case (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. + * updateMask: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "membershipRole": "my_membershipRole", + * // "name": "my_name", + * // "userEmail": "my_userEmail", + * // "userGroup": "my_userGroup" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "membershipRole": "my_membershipRole", + * // "name": "my_name", + * // "userEmail": "my_userEmail", + * // "userGroup": "my_userGroup" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Organizations$Usergroups$Members$Patch, + options: StreamMethodOptions + ): Promise>; + patch( + params?: Params$Resource$Organizations$Usergroups$Members$Patch, + options?: MethodOptions + ): Promise>; + patch( + params: Params$Resource$Organizations$Usergroups$Members$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Organizations$Usergroups$Members$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Organizations$Usergroups$Members$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Organizations$Usergroups$Members$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Usergroups$Members$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Usergroups$Members$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://marketingplatformadmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Organizations$Usergroups$Members$Create extends StandardParameters { + /** + * Required. The parent resource where this UserGroupMember will be created. Format: organizations/{org_id\}/userGroups/{user_group_id\} + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$UserGroupMember; + } + export interface Params$Resource$Organizations$Usergroups$Members$Delete extends StandardParameters { + /** + * Required. The name of the user group member to delete. Format: organizations/{org_id\}/userGroups/{user_group_id\}/members/{member_id\} + */ + name?: string; + } + export interface Params$Resource$Organizations$Usergroups$Members$Get extends StandardParameters { + /** + * Required. The name of the user group member to retrieve. Format: organizations/{org_id\}/userGroups/{user_group_id\}/members/{member_id\} + */ + name?: string; + } + export interface Params$Resource$Organizations$Usergroups$Members$List extends StandardParameters { + /** + * Optional. The maximum number of user group members to return in one call. The service may return fewer than this value. If unspecified, at most 50 user group members will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + pageSize?: number; + /** + * Optional. A page token, received from a previous ListUserGroupMembers call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUserGroupMembers` must match the call that provided the page token. + */ + pageToken?: string; + /** + * Required. The parent user group where this UserGroupMember will be listed. Format: organizations/{org_id\}/userGroups/{user_group_id\} + */ + parent?: string; + } + export interface Params$Resource$Organizations$Usergroups$Members$Patch extends StandardParameters { + /** + * Identifier. The resource name of this UserGroupMember. Format: organizations/{org_id\}/userGroups/{user_group_id\}/members/{member_id\} Example: "organizations/123abc/userGroups/456def/members/789ghi" + */ + name?: string; + /** + * Required. The list of fields to update. Field names must be in snake case (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$UserGroupMember; } } diff --git a/src/apis/meet/index.ts b/src/apis/meet/index.ts index 38b4c37158..aff941f2d6 100644 --- a/src/apis/meet/index.ts +++ b/src/apis/meet/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/meet/v2.ts b/src/apis/meet/v2.ts index 529b8871f3..564bca7408 100644 --- a/src/apis/meet/v2.ts +++ b/src/apis/meet/v2.ts @@ -161,6 +161,28 @@ export namespace meet_v2 { */ transcriptionConfig?: Schema$TranscriptionConfig; } + /** + * Request to update members of one space within a batch. + */ + export interface Schema$BatchUpdateMembersRequest { + /** + * Required. The request message specifying the resources to update. A maximum of 500 members can be modified in a batch. + */ + requests?: Schema$UpdateMemberRequest[]; + /** + * Optional. Top-level field mask used to specify the fields to be updated in the member for all UpdateMemberRequests. There are 4 possible scenarios for top-level and child field mask: 1. top-level and child field mask is absent: All fields provided in the requests are updated, including deleting fields not set in the requests. 2. top-level field mask is present but child field mask is absent: The fields specified in the top-level field mask are updated. 3. top-level and child field mask is present: The child field mask must be the same as the top-level field mask. 4. top-level field mask is absent but child field mask is present: It isn't supported and will return an error. + */ + updateMask?: string | null; + } + /** + * Response of batch update members. + */ + export interface Schema$BatchUpdateMembersResponse { + /** + * Members updated. + */ + members?: Schema$Member[]; + } /** * Single instance of a meeting held in a space. */ @@ -246,6 +268,19 @@ export namespace meet_v2 { */ nextPageToken?: string | null; } + /** + * Response of list members. + */ + export interface Schema$ListMembersResponse { + /** + * The list of members for the current page. + */ + members?: Schema$Member[]; + /** + * Token to be circulated back for further list call if current list doesn't include all the members. Unset if all members are returned. + */ + nextPageToken?: string | null; + } /** * Response of ListParticipants method. */ @@ -328,6 +363,23 @@ export namespace meet_v2 { */ transcripts?: Schema$Transcript[]; } + /** + * Users who are configured to have a role in the space. These users can join the space without knocking. + */ + export interface Schema$Member { + /** + * Email for the member. This is required for creating the member. + */ + email?: string | null; + /** + * Identifier. Resource name of the member. Format: spaces/{space\}/members/{member\} + */ + name?: string | null; + /** + * The meeting role assigned to the member. + */ + role?: string | null; + } /** * Defines restrictions for features when the meeting is moderated. */ @@ -631,6 +683,19 @@ export namespace meet_v2 { */ autoTranscriptionGeneration?: string | null; } + /** + * Request to update a member. + */ + export interface Schema$UpdateMemberRequest { + /** + * Required. The Member to update. Format: spaces/{space\}/members/{member\} + */ + member?: Schema$Member; + /** + * Optional. Field mask used to specify the fields to be updated in the member. If update_mask isn't provided(not set, set with empty paths, or only has "" as paths), it defaults to update all fields provided with values in the request. Using "*" as update_mask will update all fields, including deleting fields not set in the request. In case of BatchUpdate, it must be absent or the same as the update_mask in BatchUpdateMembersRequest when UpdateMemberRequest is built as a child request of BatchUpdateMembersRequest. + */ + updateMask?: string | null; + } export class Resource$Conferencerecords { context: APIRequestContext; @@ -651,7 +716,7 @@ export namespace meet_v2 { } /** - * Gets a conference record by conference ID. + * Gets a conference record by conference ID. For more information, see [Work with conferences](https://developers.google.com/workspace/meet/api/guides/conferences). * @example * ```js * // Before running the sample: @@ -792,7 +857,7 @@ export namespace meet_v2 { } /** - * Lists the conference records. By default, ordered by start time and in descending order. + * Lists the conference records. By default, ordered by start time and in descending order. For more information, see [Work with conferences](https://developers.google.com/workspace/meet/api/guides/conferences). * @example * ```js * // Before running the sample: @@ -976,7 +1041,7 @@ export namespace meet_v2 { } /** - * Gets a participant by participant ID. + * Gets a participant by participant ID. For more information, see [Work with participants](https://developers.google.com/workspace/meet/api/guides/participants). * @example * ```js * // Before running the sample: @@ -1118,7 +1183,7 @@ export namespace meet_v2 { } /** - * Lists the participants in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted, this API defaults to `'participants/x, next_page_token'`. + * Lists the participants in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted, this API defaults to `'participants/x, next_page_token'`. For more information, see [Work with participants](https://developers.google.com/workspace/meet/api/guides/participants). * @example * ```js * // Before running the sample: @@ -1299,7 +1364,7 @@ export namespace meet_v2 { } /** - * Gets a participant session by participant session ID. + * Gets a participant session by participant session ID. For more information, see [Work with participants](https://developers.google.com/workspace/meet/api/guides/participants). * @example * ```js * // Before running the sample: @@ -1441,7 +1506,7 @@ export namespace meet_v2 { } /** - * Lists the participant sessions of a participant in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted this API defaults to `'participantsessions/x, next_page_token'`. + * Lists the participant sessions of a participant in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted this API defaults to `'participantsessions/x, next_page_token'`. For more information, see [Work with participants](https://developers.google.com/workspace/meet/api/guides/participants). * @example * ```js * // Before running the sample: @@ -1629,7 +1694,7 @@ export namespace meet_v2 { } /** - * Gets a recording by recording ID. + * Gets a recording by recording ID. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts). * @example * ```js * // Before running the sample: @@ -1769,7 +1834,7 @@ export namespace meet_v2 { } /** - * Lists the recording resources from the conference record. By default, ordered by start time and in ascending order. + * Lists the recording resources from the conference record. By default, ordered by start time and in ascending order. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts). * @example * ```js * // Before running the sample: @@ -1943,7 +2008,7 @@ export namespace meet_v2 { } /** - * Gets smart notes by smart note ID. + * Gets smart notes by smart note ID. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts). * @example * ```js * // Before running the sample: @@ -2083,7 +2148,7 @@ export namespace meet_v2 { } /** - * Lists the set of smart notes from the conference record. By default, ordered by start time and in ascending order. + * Lists the set of smart notes from the conference record. By default, ordered by start time and in ascending order. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts). * @example * ```js * // Before running the sample: @@ -2261,7 +2326,7 @@ export namespace meet_v2 { } /** - * Gets a transcript by transcript ID. + * Gets a transcript by transcript ID. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts). * @example * ```js * // Before running the sample: @@ -2401,7 +2466,7 @@ export namespace meet_v2 { } /** - * Lists the set of transcripts from the conference record. By default, ordered by start time and in ascending order. + * Lists the set of transcripts from the conference record. By default, ordered by start time and in ascending order. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts). * @example * ```js * // Before running the sample: @@ -2575,7 +2640,7 @@ export namespace meet_v2 { } /** - * Gets a `TranscriptEntry` resource by entry ID. Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when 1) we have interleaved speakers within milliseconds, or 2) the Google Docs transcript file is modified after generation. + * Gets a `TranscriptEntry` resource by entry ID. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts). Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when 1) we have interleaved speakers within milliseconds, or 2) the Google Docs transcript file is modified after generation. * @example * ```js * // Before running the sample: @@ -2718,7 +2783,7 @@ export namespace meet_v2 { } /** - * Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when 1) we have interleaved speakers within milliseconds, or 2) the Google Docs transcript file is modified after generation. + * Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. For more information, see [Work with artifacts](https://developers.google.com/workspace/meet/api/guides/artifacts). Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when 1) we have interleaved speakers within milliseconds, or 2) the Google Docs transcript file is modified after generation. * @example * ```js * // Before running the sample: @@ -2893,12 +2958,14 @@ export namespace meet_v2 { export class Resource$Spaces { context: APIRequestContext; + members: Resource$Spaces$Members; constructor(context: APIRequestContext) { this.context = context; + this.members = new Resource$Spaces$Members(this.context); } /** - * Creates a space. + * Creates a space. For more information, see [Manage meeting spaces](https://developers.google.com/workspace/meet/api/guides/manage-meeting-spaces). * @example * ```js * // Before running the sample: @@ -3047,7 +3114,7 @@ export namespace meet_v2 { } /** - * Ends an active conference (if there's one). For an example, see [End active conference](https://developers.google.com/workspace/meet/api/guides/meeting-spaces#end-active-conference). + * Ends an active conference (if there's one). For more information, see [Manage meeting spaces](https://developers.google.com/workspace/meet/api/guides/manage-meeting-spaces). * @example * ```js * // Before running the sample: @@ -3187,7 +3254,7 @@ export namespace meet_v2 { } /** - * Gets details about a meeting space. For an example, see [Get a meeting space](https://developers.google.com/workspace/meet/api/guides/meeting-spaces#get-meeting-space). + * Gets details about a meeting space. For more information, see [Manage meeting spaces](https://developers.google.com/workspace/meet/api/guides/manage-meeting-spaces). For an example, see [Get a meeting space](https://developers.google.com/workspace/meet/api/guides/meeting-spaces#get-meeting-space). * @example * ```js * // Before running the sample: @@ -3329,7 +3396,7 @@ export namespace meet_v2 { } /** - * Updates details about a meeting space. For an example, see [Update a meeting space](https://developers.google.com/workspace/meet/api/guides/meeting-spaces#update-meeting-space). + * Updates details about a meeting space. For more information, see [Manage meeting spaces](https://developers.google.com/workspace/meet/api/guides/manage-meeting-spaces). * @example * ```js * // Before running the sample: @@ -3524,4 +3591,933 @@ export namespace meet_v2 { */ requestBody?: Schema$Space; } + + export class Resource$Spaces$Members { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Updates members of one space within a batch. For more information, see [Manage meeting space members](https://developers.google.com/workspace/meet/api/guides/meeting-space-members). + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/meet.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const meet = google.meet('v2'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/meetings.space.created'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await meet.spaces.members.batchUpdate({ + * // Required. The parent resource shared by all Members being updated. Format: spaces/{space\} + * parent: 'spaces/my-space', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "requests": [], + * // "updateMask": "my_updateMask" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "members": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + batchUpdate( + params: Params$Resource$Spaces$Members$Batchupdate, + options: StreamMethodOptions + ): Promise>; + batchUpdate( + params?: Params$Resource$Spaces$Members$Batchupdate, + options?: MethodOptions + ): Promise>; + batchUpdate( + params: Params$Resource$Spaces$Members$Batchupdate, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + batchUpdate( + params: Params$Resource$Spaces$Members$Batchupdate, + options: + MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + batchUpdate( + params: Params$Resource$Spaces$Members$Batchupdate, + callback: BodyResponseCallback + ): void; + batchUpdate( + callback: BodyResponseCallback + ): void; + batchUpdate( + paramsOrCallback?: + | Params$Resource$Spaces$Members$Batchupdate + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Spaces$Members$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Members$Batchupdate; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://meet.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/members:batchUpdate').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Creates a member. For more information, see [Manage meeting space members](https://developers.google.com/workspace/meet/api/guides/meeting-space-members). This API supports the `fields` parameter in [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the `fields` parameter is omitted, this API response will default to "name,email,role,user". + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/meet.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const meet = google.meet('v2'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/meetings.space.created'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await meet.spaces.members.create({ + * // Required. Format: spaces/{space\} + * parent: 'spaces/my-space', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "email": "my_email", + * // "name": "my_name", + * // "role": "my_role" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "email": "my_email", + * // "name": "my_name", + * // "role": "my_role" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Spaces$Members$Create, + options: StreamMethodOptions + ): Promise>; + create( + params?: Params$Resource$Spaces$Members$Create, + options?: MethodOptions + ): Promise>; + create( + params: Params$Resource$Spaces$Members$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Spaces$Members$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Spaces$Members$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Spaces$Members$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Spaces$Members$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Members$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://meet.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/members').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes the member who was previously assigned roles in the space. For more information, see [Manage meeting space members](https://developers.google.com/workspace/meet/api/guides/meeting-space-members). + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/meet.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const meet = google.meet('v2'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/meetings.space.created'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await meet.spaces.members.delete({ + * // Required. Format: “spaces/{space\}/members/{member\}” + * name: 'spaces/my-space/members/my-member', + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Spaces$Members$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Spaces$Members$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Spaces$Members$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Spaces$Members$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Spaces$Members$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Spaces$Members$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Spaces$Members$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Members$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://meet.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets a member. For more information, see [Manage meeting space members](https://developers.google.com/workspace/meet/api/guides/meeting-space-members). This API supports the `fields` parameter in [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the `fields` parameter is omitted, this API response will default to "name,email,role,user". + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/meet.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const meet = google.meet('v2'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/meetings.space.created', + * 'https://www.googleapis.com/auth/meetings.space.readonly', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await meet.spaces.members.get({ + * // Required. Format: “spaces/{space\}/members/{member\}” + * name: 'spaces/my-space/members/my-member', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "email": "my_email", + * // "name": "my_name", + * // "role": "my_role" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Spaces$Members$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Spaces$Members$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Spaces$Members$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Spaces$Members$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Spaces$Members$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Spaces$Members$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Spaces$Members$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Members$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://meet.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Lists members. For more information, see [Manage meeting space members](https://developers.google.com/workspace/meet/api/guides/meeting-space-members). This API supports the `fields` parameter in [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the `fields` parameter is omitted this API response will default to "name,email,role,user". + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/meet.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const meet = google.meet('v2'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/meetings.space.created', + * 'https://www.googleapis.com/auth/meetings.space.readonly', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await meet.spaces.members.list({ + * // Optional. Maximum number of members to return. The service might return fewer than this value. If unspecified or set to 0, at most 250 members are returned. The maximum value is 500; values above 500 are coerced to 500. Maximum might change in the future. + * pageSize: 'placeholder-value', + * // Optional. Page token returned from previous List Call. + * pageToken: 'placeholder-value', + * // Required. Format: spaces/{space\} + * parent: 'spaces/my-space', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "members": [], + * // "nextPageToken": "my_nextPageToken" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Spaces$Members$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Spaces$Members$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Spaces$Members$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Spaces$Members$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Spaces$Members$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Spaces$Members$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Spaces$Members$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Members$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://meet.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/members').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Updates a member. For more information, see [Manage meeting space members](https://developers.google.com/workspace/meet/api/guides/meeting-space-members). + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/meet.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const meet = google.meet('v2'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/meetings.space.created'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await meet.spaces.members.patch({ + * // Identifier. Resource name of the member. Format: spaces/{space\}/members/{member\} + * name: 'spaces/my-space/members/my-member', + * // Optional. Field mask used to specify the fields to be updated in the member. If update_mask isn't provided(not set, set with empty paths, or only has "" as paths), it defaults to update all fields provided with values in the request. Using "*" as update_mask will update all fields, including deleting fields not set in the request. In case of BatchUpdate, it must be absent or the same as the update_mask in BatchUpdateMembersRequest when UpdateMemberRequest is built as a child request of BatchUpdateMembersRequest. + * updateMask: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "email": "my_email", + * // "name": "my_name", + * // "role": "my_role" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "email": "my_email", + * // "name": "my_name", + * // "role": "my_role" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Spaces$Members$Patch, + options: StreamMethodOptions + ): Promise>; + patch( + params?: Params$Resource$Spaces$Members$Patch, + options?: MethodOptions + ): Promise>; + patch( + params: Params$Resource$Spaces$Members$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Spaces$Members$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Spaces$Members$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Spaces$Members$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Spaces$Members$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Members$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://meet.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Spaces$Members$Batchupdate extends StandardParameters { + /** + * Required. The parent resource shared by all Members being updated. Format: spaces/{space\} + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$BatchUpdateMembersRequest; + } + export interface Params$Resource$Spaces$Members$Create extends StandardParameters { + /** + * Required. Format: spaces/{space\} + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Member; + } + export interface Params$Resource$Spaces$Members$Delete extends StandardParameters { + /** + * Required. Format: “spaces/{space\}/members/{member\}” + */ + name?: string; + } + export interface Params$Resource$Spaces$Members$Get extends StandardParameters { + /** + * Required. Format: “spaces/{space\}/members/{member\}” + */ + name?: string; + } + export interface Params$Resource$Spaces$Members$List extends StandardParameters { + /** + * Optional. Maximum number of members to return. The service might return fewer than this value. If unspecified or set to 0, at most 250 members are returned. The maximum value is 500; values above 500 are coerced to 500. Maximum might change in the future. + */ + pageSize?: number; + /** + * Optional. Page token returned from previous List Call. + */ + pageToken?: string; + /** + * Required. Format: spaces/{space\} + */ + parent?: string; + } + export interface Params$Resource$Spaces$Members$Patch extends StandardParameters { + /** + * Identifier. Resource name of the member. Format: spaces/{space\}/members/{member\} + */ + name?: string; + /** + * Optional. Field mask used to specify the fields to be updated in the member. If update_mask isn't provided(not set, set with empty paths, or only has "" as paths), it defaults to update all fields provided with values in the request. Using "*" as update_mask will update all fields, including deleting fields not set in the request. In case of BatchUpdate, it must be absent or the same as the update_mask in BatchUpdateMembersRequest when UpdateMemberRequest is built as a child request of BatchUpdateMembersRequest. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Member; + } } diff --git a/src/apis/memcache/index.ts b/src/apis/memcache/index.ts index 6c589db889..7bba3c14e0 100644 --- a/src/apis/memcache/index.ts +++ b/src/apis/memcache/index.ts @@ -49,4 +49,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/merchantapi/index.ts b/src/apis/merchantapi/index.ts index 36e8dd6370..7ea979cbf7 100644 --- a/src/apis/merchantapi/index.ts +++ b/src/apis/merchantapi/index.ts @@ -348,4 +348,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/merchantapi/products_v1.ts b/src/apis/merchantapi/products_v1.ts index 0a8ef17599..ca2cc7838b 100644 --- a/src/apis/merchantapi/products_v1.ts +++ b/src/apis/merchantapi/products_v1.ts @@ -1365,6 +1365,10 @@ export namespace merchantapi_products_v1 { * The up-front down payment amount the buyer has to pay. */ downpayment?: Schema$Price; + /** + * Optional. The mileage allowance for the lease of the vehicle. Only applicable to vehicle products. + */ + mileageAllowance?: Schema$Mileage; /** * The number of installments the buyer has to pay. */ diff --git a/src/apis/metastore/index.ts b/src/apis/metastore/index.ts index 7a2014135a..b5943f1fda 100644 --- a/src/apis/metastore/index.ts +++ b/src/apis/metastore/index.ts @@ -98,4 +98,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/metastore/v1.ts b/src/apis/metastore/v1.ts index d9a3a4b663..bcbe99e7b6 100644 --- a/src/apis/metastore/v1.ts +++ b/src/apis/metastore/v1.ts @@ -1050,13 +1050,17 @@ export namespace metastore_v1 { */ catalogSummaries?: Schema$CatalogSummary[]; /** - * Output only. The UTC time when this report was finalized. + * Output only. The UTC time when the source metadata read was initiated. */ createTime?: string | null; /** * Output only. Whether the migration was a dry run. */ dryRun?: boolean | null; + /** + * Output only. The UTC time when the report was written. + */ + endTime?: string | null; /** * Output only. The Dataproc Metastore service name (format: projects/x/locations/x/services/x) on which the migration was executed. */ diff --git a/src/apis/metastore/v1alpha.ts b/src/apis/metastore/v1alpha.ts index e635e1646e..36f9043eec 100644 --- a/src/apis/metastore/v1alpha.ts +++ b/src/apis/metastore/v1alpha.ts @@ -1107,13 +1107,17 @@ export namespace metastore_v1alpha { */ catalogSummaries?: Schema$CatalogSummary[]; /** - * Output only. The UTC time when this report was finalized. + * Output only. The UTC time when the source metadata read was initiated. */ createTime?: string | null; /** * Output only. Whether the migration was a dry run. */ dryRun?: boolean | null; + /** + * Output only. The UTC time when the report was written. + */ + endTime?: string | null; /** * Output only. The Dataproc Metastore service name (format: projects/x/locations/x/services/x) on which the migration was executed. */ diff --git a/src/apis/metastore/v1beta.ts b/src/apis/metastore/v1beta.ts index a2ef9a962a..0de214a78b 100644 --- a/src/apis/metastore/v1beta.ts +++ b/src/apis/metastore/v1beta.ts @@ -1107,13 +1107,17 @@ export namespace metastore_v1beta { */ catalogSummaries?: Schema$CatalogSummary[]; /** - * Output only. The UTC time when this report was finalized. + * Output only. The UTC time when the source metadata read was initiated. */ createTime?: string | null; /** * Output only. Whether the migration was a dry run. */ dryRun?: boolean | null; + /** + * Output only. The UTC time when the report was written. + */ + endTime?: string | null; /** * Output only. The Dataproc Metastore service name (format: projects/x/locations/x/services/x) on which the migration was executed. */ diff --git a/src/apis/migrationcenter/index.ts b/src/apis/migrationcenter/index.ts index ccde1f8d53..a0700e6f61 100644 --- a/src/apis/migrationcenter/index.ts +++ b/src/apis/migrationcenter/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/ml/index.ts b/src/apis/ml/index.ts index a9daa5c4fa..7498347eee 100644 --- a/src/apis/ml/index.ts +++ b/src/apis/ml/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/monitoring/index.ts b/src/apis/monitoring/index.ts index 39d3088902..1c4b57bdc7 100644 --- a/src/apis/monitoring/index.ts +++ b/src/apis/monitoring/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/mybusinessaccountmanagement/index.ts b/src/apis/mybusinessaccountmanagement/index.ts index 8701c31318..518edbf0f3 100644 --- a/src/apis/mybusinessaccountmanagement/index.ts +++ b/src/apis/mybusinessaccountmanagement/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/mybusinessbusinesscalls/index.ts b/src/apis/mybusinessbusinesscalls/index.ts index 9267980b04..8e9308b1d1 100644 --- a/src/apis/mybusinessbusinesscalls/index.ts +++ b/src/apis/mybusinessbusinesscalls/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/mybusinessbusinessinformation/index.ts b/src/apis/mybusinessbusinessinformation/index.ts index 32db0ea0e6..ac687d5221 100644 --- a/src/apis/mybusinessbusinessinformation/index.ts +++ b/src/apis/mybusinessbusinessinformation/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/mybusinessbusinessinformation/v1.ts b/src/apis/mybusinessbusinessinformation/v1.ts index f7ade589fd..db6540053e 100644 --- a/src/apis/mybusinessbusinessinformation/v1.ts +++ b/src/apis/mybusinessbusinessinformation/v1.ts @@ -496,7 +496,7 @@ export namespace mybusinessbusinessinformation_v1 { */ moreHours?: Schema$MoreHours[]; /** - * Google identifier for this location in the form: `locations/{location_id\}`. + * Identifier. Google identifier for this location in the form: `locations/{location_id\}`. */ name?: string | null; /** @@ -573,7 +573,7 @@ export namespace mybusinessbusinessinformation_v1 { */ canOperateHealthData?: boolean | null; /** - * Output only. Indicates if the listing can manage local posts. Deprecated: This field is no longer populated and will be removed in a future version. + * Output only. Deprecated: This field is no longer populated and will be removed in a future version. */ canOperateLocalPost?: boolean | null; /** @@ -597,7 +597,7 @@ export namespace mybusinessbusinessinformation_v1 { */ hasVoiceOfMerchant?: boolean | null; /** - * Output only. + * Output only. Indicates whether the location is classified as a particularly personal place. This means there are restrictions on Location History features. If you believe this was a mistake, see the [help center article](https://support.google.com/business/answer/3480441). */ isParticularlyPersonalPlace?: boolean | null; /** @@ -708,7 +708,7 @@ export namespace mybusinessbusinessinformation_v1 { */ export interface Schema$Places { /** - * The areas represented by place IDs. Limited to a maximum of 20 places. + * Optional. The areas represented by place IDs. Limited to a maximum of 20 places. */ placeInfos?: Schema$PlaceInfo[]; } @@ -775,15 +775,15 @@ export namespace mybusinessbusinessinformation_v1 { */ export interface Schema$RelationshipData { /** - * The list of children locations that this location has relations with. + * Optional. The list of children locations that this location has relations with. */ childrenLocations?: Schema$RelevantLocation[]; /** - * The resource name of the Chain that this location is member of. How to find Chain ID + * Optional. The resource name of the Chain that this location is member of. How to find Chain ID */ parentChain?: string | null; /** - * The parent location that this location has relations with. + * Optional. The parent location that this location has relations with. */ parentLocation?: Schema$RelevantLocation; } @@ -857,7 +857,7 @@ export namespace mybusinessbusinessinformation_v1 { */ businessType?: string | null; /** - * The area that this business serves defined through a set of places. + * Optional. The area that this business serves defined through a set of places. */ places?: Schema$Places; /** @@ -3021,7 +3021,7 @@ export namespace mybusinessbusinessinformation_v1 { * * // Do the magic * const res = await mybusinessbusinessinformation.locations.patch({ - * // Google identifier for this location in the form: `locations/{location_id\}`. + * // Identifier. Google identifier for this location in the form: `locations/{location_id\}`. * name: 'locations/my-location', * // Required. The specific fields to update. * updateMask: 'placeholder-value', @@ -3357,7 +3357,7 @@ export namespace mybusinessbusinessinformation_v1 { } export interface Params$Resource$Locations$Patch extends StandardParameters { /** - * Google identifier for this location in the form: `locations/{location_id\}`. + * Identifier. Google identifier for this location in the form: `locations/{location_id\}`. */ name?: string; /** diff --git a/src/apis/mybusinesslodging/index.ts b/src/apis/mybusinesslodging/index.ts index 56364d1039..0ea3a8aa64 100644 --- a/src/apis/mybusinesslodging/index.ts +++ b/src/apis/mybusinesslodging/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/mybusinessnotifications/index.ts b/src/apis/mybusinessnotifications/index.ts index ef0ec10ae8..b8e9bbd0c7 100644 --- a/src/apis/mybusinessnotifications/index.ts +++ b/src/apis/mybusinessnotifications/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/mybusinessplaceactions/index.ts b/src/apis/mybusinessplaceactions/index.ts index 93b2b82884..12d92dcb03 100644 --- a/src/apis/mybusinessplaceactions/index.ts +++ b/src/apis/mybusinessplaceactions/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/mybusinessqanda/index.ts b/src/apis/mybusinessqanda/index.ts index 0d24f1d8d1..cecc4a804a 100644 --- a/src/apis/mybusinessqanda/index.ts +++ b/src/apis/mybusinessqanda/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/mybusinessverifications/index.ts b/src/apis/mybusinessverifications/index.ts index 7196fb00ef..d679f32f66 100644 --- a/src/apis/mybusinessverifications/index.ts +++ b/src/apis/mybusinessverifications/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/netapp/index.ts b/src/apis/netapp/index.ts index fff9fc3ab8..aa492c6a86 100644 --- a/src/apis/netapp/index.ts +++ b/src/apis/netapp/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/networkconnectivity/index.ts b/src/apis/networkconnectivity/index.ts index 4a9d8de883..7c0e833809 100644 --- a/src/apis/networkconnectivity/index.ts +++ b/src/apis/networkconnectivity/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/networkconnectivity/v1.ts b/src/apis/networkconnectivity/v1.ts index e634b067f6..dcdbe9485c 100644 --- a/src/apis/networkconnectivity/v1.ts +++ b/src/apis/networkconnectivity/v1.ts @@ -2675,6 +2675,10 @@ export namespace networkconnectivity_v1 { * Optional. List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported. */ advertisedRoutes?: string[] | null; + /** + * Optional. Immutable. Controls whether resources proposed by the Transport are automatically accepted on behalf of the user. List of actions that can be automatically accepted are: 1. VPC Peering creation 2. Routing VPC Spoke creation 3. Hybrid Spoke creation + */ + autoAccept?: boolean | null; /** * Optional. Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile, and must be set when no activation key is being provided. */ @@ -2691,6 +2695,10 @@ export namespace networkconnectivity_v1 { * Output only. Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state. */ generatedActivationKey?: string | null; + /** + * Optional. Immutable. The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport. Format: `{hub\}` or `projects/{project\}/locations/global/hubs/{hub\}` + */ + hub?: string | null; /** * Optional. Labels as key value pairs. */ @@ -2715,6 +2723,10 @@ export namespace networkconnectivity_v1 { * Optional. Immutable. Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state. */ providedActivationKey?: string | null; + /** + * Optional. Immutable. Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub. This will provide Private Service Connect (PSC) connectivity through NCC. This can only be set when the Transport is first created. + */ + pscRoutingEnabled?: boolean | null; /** * Optional. Immutable. The user supplied account id for the CSP associated with the remote profile. */ @@ -20542,16 +20554,19 @@ export namespace networkconnectivity_v1 { * // request body parameters * // { * // "advertisedRoutes": [], + * // "autoAccept": false, * // "bandwidth": "my_bandwidth", * // "createTime": "my_createTime", * // "description": "my_description", * // "generatedActivationKey": "my_generatedActivationKey", + * // "hub": "my_hub", * // "labels": {}, * // "mtuLimit": 0, * // "name": "my_name", * // "network": "my_network", * // "peeringNetwork": "my_peeringNetwork", * // "providedActivationKey": "my_providedActivationKey", + * // "pscRoutingEnabled": false, * // "remoteAccountId": "my_remoteAccountId", * // "remoteProfile": "my_remoteProfile", * // "stackType": "my_stackType", @@ -20854,16 +20869,19 @@ export namespace networkconnectivity_v1 { * // Example response * // { * // "advertisedRoutes": [], + * // "autoAccept": false, * // "bandwidth": "my_bandwidth", * // "createTime": "my_createTime", * // "description": "my_description", * // "generatedActivationKey": "my_generatedActivationKey", + * // "hub": "my_hub", * // "labels": {}, * // "mtuLimit": 0, * // "name": "my_name", * // "network": "my_network", * // "peeringNetwork": "my_peeringNetwork", * // "providedActivationKey": "my_providedActivationKey", + * // "pscRoutingEnabled": false, * // "remoteAccountId": "my_remoteAccountId", * // "remoteProfile": "my_remoteProfile", * // "stackType": "my_stackType", @@ -21156,16 +21174,19 @@ export namespace networkconnectivity_v1 { * // request body parameters * // { * // "advertisedRoutes": [], + * // "autoAccept": false, * // "bandwidth": "my_bandwidth", * // "createTime": "my_createTime", * // "description": "my_description", * // "generatedActivationKey": "my_generatedActivationKey", + * // "hub": "my_hub", * // "labels": {}, * // "mtuLimit": 0, * // "name": "my_name", * // "network": "my_network", * // "peeringNetwork": "my_peeringNetwork", * // "providedActivationKey": "my_providedActivationKey", + * // "pscRoutingEnabled": false, * // "remoteAccountId": "my_remoteAccountId", * // "remoteProfile": "my_remoteProfile", * // "stackType": "my_stackType", diff --git a/src/apis/networkmanagement/index.ts b/src/apis/networkmanagement/index.ts index 080ad98c92..f454dd07fa 100644 --- a/src/apis/networkmanagement/index.ts +++ b/src/apis/networkmanagement/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/networkmanagement/v1.ts b/src/apis/networkmanagement/v1.ts index 88978a1d5e..382b4d77eb 100644 --- a/src/apis/networkmanagement/v1.ts +++ b/src/apis/networkmanagement/v1.ts @@ -461,6 +461,31 @@ export namespace networkmanagement_v1 { */ subnetworkUri?: string | null; } + /** + * For display only. Metadata associated with a serverless direct VPC ingress connection. + */ + export interface Schema$DirectVpcIngressConnectionInfo { + /** + * URI of the VPC network for direct ingress. Format: `projects/{project_id\}/global/networks/{network_id\}` + */ + networkUri?: string | null; + /** + * Region in which the Direct VPC ingress is deployed. + */ + region?: string | null; + /** + * Selected destination IP address, from the selected IP range. + */ + selectedIpAddress?: string | null; + /** + * Selected IP range. + */ + selectedIpRange?: string | null; + /** + * URI of the subnetwork for direct ingress. Format: `projects/{project_id\}/regions/{region\}/subnetworks/{subnetwork_id\}` + */ + subnetworkUri?: string | null; + } /** * Details of the final state "drop" and associated resource. */ @@ -2235,6 +2260,10 @@ export namespace networkmanagement_v1 { * Display information of a serverless direct VPC egress connection. */ directVpcEgressConnection?: Schema$DirectVpcEgressConnectionInfo; + /** + * Display information of a serverless direct VPC ingress connection for Cloud Run. + */ + directVpcIngressConnection?: Schema$DirectVpcIngressConnectionInfo; /** * Display information of a DMS Private Connection. */ diff --git a/src/apis/networkmanagement/v1beta1.ts b/src/apis/networkmanagement/v1beta1.ts index 7dd24e079f..81503289bd 100644 --- a/src/apis/networkmanagement/v1beta1.ts +++ b/src/apis/networkmanagement/v1beta1.ts @@ -461,6 +461,31 @@ export namespace networkmanagement_v1beta1 { */ subnetworkUri?: string | null; } + /** + * For display only. Metadata associated with a serverless direct VPC ingress connection. + */ + export interface Schema$DirectVpcIngressConnectionInfo { + /** + * URI of the VPC network for direct ingress. Format: `projects/{project_id\}/global/networks/{network_id\}` + */ + networkUri?: string | null; + /** + * Region in which the Direct VPC ingress is deployed. + */ + region?: string | null; + /** + * Selected destination IP address, from the selected IP range. + */ + selectedIpAddress?: string | null; + /** + * Selected IP range. + */ + selectedIpRange?: string | null; + /** + * URI of the subnetwork for direct ingress. Format: `projects/{project_id\}/regions/{region\}/subnetworks/{subnetwork_id\}` + */ + subnetworkUri?: string | null; + } /** * Details of the final state "drop" and associated resource. */ @@ -1873,6 +1898,10 @@ export namespace networkmanagement_v1beta1 { * Display information of a serverless direct VPC egress connection. */ directVpcEgressConnection?: Schema$DirectVpcEgressConnectionInfo; + /** + * Display information of a serverless direct VPC ingress connection. + */ + directVpcIngressConnection?: Schema$DirectVpcIngressConnectionInfo; /** * Display information of a DMS Private Connection. */ diff --git a/src/apis/networksecurity/index.ts b/src/apis/networksecurity/index.ts index 7b745a66d1..9d593af570 100644 --- a/src/apis/networksecurity/index.ts +++ b/src/apis/networksecurity/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/networksecurity/v1.ts b/src/apis/networksecurity/v1.ts index 84904b115b..a1b88f25e5 100644 --- a/src/apis/networksecurity/v1.ts +++ b/src/apis/networksecurity/v1.ts @@ -468,7 +468,7 @@ export namespace networksecurity_v1 { */ export interface Schema$AuthzPolicyAuthzRuleToRequestOperationMCP { /** - * Optional. If specified, matches on the MCP protocol’s non-access specific methods namely: * initialize * completion/ * logging/ * notifications/ * ping Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified. + * Optional. If specified, matches on the MCP protocol's non-access specific methods namely: * initialize * completion/ * logging/ * notifications/ * ping Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified. */ baseProtocolMethodsOption?: string | null; /** diff --git a/src/apis/networksecurity/v1beta1.ts b/src/apis/networksecurity/v1beta1.ts index 76f86ec0c6..460fd9b32e 100644 --- a/src/apis/networksecurity/v1beta1.ts +++ b/src/apis/networksecurity/v1beta1.ts @@ -468,7 +468,7 @@ export namespace networksecurity_v1beta1 { */ export interface Schema$AuthzPolicyAuthzRuleToRequestOperationMCP { /** - * Optional. If specified, matches on the MCP protocol’s non-access specific methods namely: * initialize * completion/ * logging/ * notifications/ * ping Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified. + * Optional. If specified, matches on the MCP protocol's non-access specific methods namely: * initialize * completion/ * logging/ * notifications/ * ping Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified. */ baseProtocolMethodsOption?: string | null; /** diff --git a/src/apis/networkservices/index.ts b/src/apis/networkservices/index.ts index c3bdf04eb9..03f6620b9a 100644 --- a/src/apis/networkservices/index.ts +++ b/src/apis/networkservices/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/networkservices/v1.ts b/src/apis/networkservices/v1.ts index e9251e89aa..043ff21ea8 100644 --- a/src/apis/networkservices/v1.ts +++ b/src/apis/networkservices/v1.ts @@ -4712,6 +4712,8 @@ export namespace networkservices_v1 { * * // Do the magic * const res = await networkservices.projects.locations.agentGateways.list({ + * // Optional. A filter expression to filter the results listed in the response. The expression must follow the syntax described in [AIP-160](https://google.aip.dev/160). + * filter: 'placeholder-value', * // Optional. Maximum number of AgentGateways to return per call. * pageSize: 'placeholder-value', * // Optional. The value returned by the last `ListAgentGatewaysResponse` Indicates that this is a continuation of a prior `ListAgentGateways` call, and that the system should return the next page of data. @@ -5023,6 +5025,10 @@ export namespace networkservices_v1 { name?: string; } export interface Params$Resource$Projects$Locations$Agentgateways$List extends StandardParameters { + /** + * Optional. A filter expression to filter the results listed in the response. The expression must follow the syntax described in [AIP-160](https://google.aip.dev/160). + */ + filter?: string; /** * Optional. Maximum number of AgentGateways to return per call. */ diff --git a/src/apis/networkservices/v1beta1.ts b/src/apis/networkservices/v1beta1.ts index dd05453e74..2f22e8282e 100644 --- a/src/apis/networkservices/v1beta1.ts +++ b/src/apis/networkservices/v1beta1.ts @@ -4555,6 +4555,8 @@ export namespace networkservices_v1beta1 { * * // Do the magic * const res = await networkservices.projects.locations.agentGateways.list({ + * // Optional. A filter expression to filter the results listed in the response. The expression must follow the syntax described in [AIP-160](https://google.aip.dev/160). + * filter: 'placeholder-value', * // Optional. Maximum number of AgentGateways to return per call. * pageSize: 'placeholder-value', * // Optional. The value returned by the last `ListAgentGatewaysResponse` Indicates that this is a continuation of a prior `ListAgentGateways` call, and that the system should return the next page of data. @@ -4866,6 +4868,10 @@ export namespace networkservices_v1beta1 { name?: string; } export interface Params$Resource$Projects$Locations$Agentgateways$List extends StandardParameters { + /** + * Optional. A filter expression to filter the results listed in the response. The expression must follow the syntax described in [AIP-160](https://google.aip.dev/160). + */ + filter?: string; /** * Optional. Maximum number of AgentGateways to return per call. */ diff --git a/src/apis/notebooks/index.ts b/src/apis/notebooks/index.ts index 64b8010339..246e056671 100644 --- a/src/apis/notebooks/index.ts +++ b/src/apis/notebooks/index.ts @@ -50,4 +50,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/oauth2/index.ts b/src/apis/oauth2/index.ts index 8295418acc..a28953c2c3 100644 --- a/src/apis/oauth2/index.ts +++ b/src/apis/oauth2/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/observability/index.ts b/src/apis/observability/index.ts index 9d16bc057e..3d05c96309 100644 --- a/src/apis/observability/index.ts +++ b/src/apis/observability/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/ondemandscanning/index.ts b/src/apis/ondemandscanning/index.ts index 5644bad661..9bd5e6a8a7 100644 --- a/src/apis/ondemandscanning/index.ts +++ b/src/apis/ondemandscanning/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/oracledatabase/index.ts b/src/apis/oracledatabase/index.ts index 70eb619cf7..96cc430aae 100644 --- a/src/apis/oracledatabase/index.ts +++ b/src/apis/oracledatabase/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/oracledatabase/v1.ts b/src/apis/oracledatabase/v1.ts index 75497209f6..ae4bae88aa 100644 --- a/src/apis/oracledatabase/v1.ts +++ b/src/apis/oracledatabase/v1.ts @@ -7357,7 +7357,7 @@ export namespace oracledatabase_v1 { * name: 'projects/my-project/locations/my-location/autonomousDatabases/my-autonomousDatabase', * // Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * requestId: 'placeholder-value', - * // Optional. Field mask is used to specify the fields to be overwritten in the Exadata resource by the update. 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 then all fields will be overwritten. + * // Optional. Field mask is used to specify the fields to be overwritten in the Exadata resource by the update. 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 then the service treats this as an implied field mask equivalent to all fields that are populated (have a non-empty value). To clear or unset a field, the field must be explicitly specified in the `update_mask`. * updateMask: 'placeholder-value', * * // Request body metadata @@ -8479,7 +8479,7 @@ export namespace oracledatabase_v1 { */ requestId?: string; /** - * Optional. Field mask is used to specify the fields to be overwritten in the Exadata resource by the update. 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 then all fields will be overwritten. + * Optional. Field mask is used to specify the fields to be overwritten in the Exadata resource by the update. 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 then the service treats this as an implied field mask equivalent to all fields that are populated (have a non-empty value). To clear or unset a field, the field must be explicitly specified in the `update_mask`. */ updateMask?: string; @@ -13106,7 +13106,7 @@ export namespace oracledatabase_v1 { * name: 'projects/my-project/locations/my-location/exadbVmClusters/my-exadbVmCluster', * // Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * requestId: 'placeholder-value', - * // Optional. A mask specifying which fields in th VM Cluster should be updated. A field specified in the mask is overwritten. If a mask isn't provided then all the fields in the VM Cluster are overwritten. + * // Optional. A mask specifying which fields in th VM Cluster should be updated. A field specified in the mask is overwritten. If a mask isn't provided then the service treats this as an implied field mask equivalent to all fields that are populated (have a non-empty value). To clear or unset a field, the field must be explicitly specified in the `update_mask`. * updateMask: 'placeholder-value', * * // Request body metadata @@ -13455,7 +13455,7 @@ export namespace oracledatabase_v1 { */ requestId?: string; /** - * Optional. A mask specifying which fields in th VM Cluster should be updated. A field specified in the mask is overwritten. If a mask isn't provided then all the fields in the VM Cluster are overwritten. + * Optional. A mask specifying which fields in th VM Cluster should be updated. A field specified in the mask is overwritten. If a mask isn't provided then the service treats this as an implied field mask equivalent to all fields that are populated (have a non-empty value). To clear or unset a field, the field must be explicitly specified in the `update_mask`. */ updateMask?: string; diff --git a/src/apis/orgpolicy/index.ts b/src/apis/orgpolicy/index.ts index 94a534855d..8a145685c5 100644 --- a/src/apis/orgpolicy/index.ts +++ b/src/apis/orgpolicy/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/osconfig/index.ts b/src/apis/osconfig/index.ts index 3ac8ef05c1..514886d745 100644 --- a/src/apis/osconfig/index.ts +++ b/src/apis/osconfig/index.ts @@ -84,4 +84,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/osconfig/v1alpha.ts b/src/apis/osconfig/v1alpha.ts index 9341b9f364..3038ea0fa2 100644 --- a/src/apis/osconfig/v1alpha.ts +++ b/src/apis/osconfig/v1alpha.ts @@ -1632,7 +1632,7 @@ export namespace osconfig_v1alpha { } /** - * Get OS policies compliance data for the specified Compute Engine VM instance. + * Deprecated: Use GetOSPolicyAssignmentReport instead. Get OS policies compliance data for the specified Compute Engine VM instance. * @example * ```js * // Before running the sample: @@ -1781,7 +1781,7 @@ export namespace osconfig_v1alpha { } /** - * List OS policies compliance data for all Compute Engine VM instances in the specified zone. + * Deprecated: Use ListOSPolicyAssignmentReports instead. List OS policies compliance data for all Compute Engine VM instances in the specified zone. * @example * ```js * // Before running the sample: diff --git a/src/apis/oslogin/index.ts b/src/apis/oslogin/index.ts index 6ae0f7e3a9..ed904b50a9 100644 --- a/src/apis/oslogin/index.ts +++ b/src/apis/oslogin/index.ts @@ -63,4 +63,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/pagespeedonline/index.ts b/src/apis/pagespeedonline/index.ts index 8e55e4a38b..de281f379f 100644 --- a/src/apis/pagespeedonline/index.ts +++ b/src/apis/pagespeedonline/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/parallelstore/index.ts b/src/apis/parallelstore/index.ts index fe28605585..41f59a455d 100644 --- a/src/apis/parallelstore/index.ts +++ b/src/apis/parallelstore/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/parametermanager/index.ts b/src/apis/parametermanager/index.ts index 14915622e6..91c820f0b0 100644 --- a/src/apis/parametermanager/index.ts +++ b/src/apis/parametermanager/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/paymentsresellersubscription/index.ts b/src/apis/paymentsresellersubscription/index.ts index 586c757861..b526675b7f 100644 --- a/src/apis/paymentsresellersubscription/index.ts +++ b/src/apis/paymentsresellersubscription/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/people/index.ts b/src/apis/people/index.ts index 2358d5a541..7726197dc2 100644 --- a/src/apis/people/index.ts +++ b/src/apis/people/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/places/index.ts b/src/apis/places/index.ts index f494f6e00e..905e107a57 100644 --- a/src/apis/places/index.ts +++ b/src/apis/places/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/playablelocations/index.ts b/src/apis/playablelocations/index.ts index 5c05a5dfd0..8ca8fb4926 100644 --- a/src/apis/playablelocations/index.ts +++ b/src/apis/playablelocations/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/playcustomapp/index.ts b/src/apis/playcustomapp/index.ts index cdd639a935..8f986476bc 100644 --- a/src/apis/playcustomapp/index.ts +++ b/src/apis/playcustomapp/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/playdeveloperreporting/index.ts b/src/apis/playdeveloperreporting/index.ts index e1fa6765b8..9f2d38e353 100644 --- a/src/apis/playdeveloperreporting/index.ts +++ b/src/apis/playdeveloperreporting/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/playgrouping/index.ts b/src/apis/playgrouping/index.ts index d852bd165e..f85b320005 100644 --- a/src/apis/playgrouping/index.ts +++ b/src/apis/playgrouping/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/playintegrity/index.ts b/src/apis/playintegrity/index.ts index 7ae0ef2e8e..733ddf3508 100644 --- a/src/apis/playintegrity/index.ts +++ b/src/apis/playintegrity/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/playintegrity/v1.ts b/src/apis/playintegrity/v1.ts index f1f9d566ca..3487c6eea4 100644 --- a/src/apis/playintegrity/v1.ts +++ b/src/apis/playintegrity/v1.ts @@ -269,6 +269,10 @@ export namespace playintegrity_v1 { * The evaluation of the App Access Risk verdicts. */ appAccessRiskVerdict?: Schema$AppAccessRiskVerdict; + /** + * The evaluation of the Location Spoofing Risk verdict. + */ + locationSpoofingRiskVerdict?: string[] | null; /** * The evaluation of Play Protect verdict. */ diff --git a/src/apis/plus/index.ts b/src/apis/plus/index.ts index 6a52bba20a..8fa2c5f442 100644 --- a/src/apis/plus/index.ts +++ b/src/apis/plus/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/policyanalyzer/index.ts b/src/apis/policyanalyzer/index.ts index 7ea29bff3d..7d23539a91 100644 --- a/src/apis/policyanalyzer/index.ts +++ b/src/apis/policyanalyzer/index.ts @@ -58,4 +58,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/policysimulator/index.ts b/src/apis/policysimulator/index.ts index 2b256b1d40..9ccf20db10 100644 --- a/src/apis/policysimulator/index.ts +++ b/src/apis/policysimulator/index.ts @@ -86,4 +86,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/policytroubleshooter/index.ts b/src/apis/policytroubleshooter/index.ts index 6efbd3b76a..0b3824ca1c 100644 --- a/src/apis/policytroubleshooter/index.ts +++ b/src/apis/policytroubleshooter/index.ts @@ -86,4 +86,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/pollen/index.ts b/src/apis/pollen/index.ts index 704708fa6b..bd55543e8f 100644 --- a/src/apis/pollen/index.ts +++ b/src/apis/pollen/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/poly/index.ts b/src/apis/poly/index.ts index 26a37dc2b4..d23b6fbd13 100644 --- a/src/apis/poly/index.ts +++ b/src/apis/poly/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/privateca/index.ts b/src/apis/privateca/index.ts index 7296c403f5..e6cdfc295d 100644 --- a/src/apis/privateca/index.ts +++ b/src/apis/privateca/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/prod_tt_sasportal/index.ts b/src/apis/prod_tt_sasportal/index.ts index 0e1f6b0a6f..8fcbb636c4 100644 --- a/src/apis/prod_tt_sasportal/index.ts +++ b/src/apis/prod_tt_sasportal/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/publicca/index.ts b/src/apis/publicca/index.ts index 53700d9256..20d112fe18 100644 --- a/src/apis/publicca/index.ts +++ b/src/apis/publicca/index.ts @@ -66,4 +66,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/pubsub/index.ts b/src/apis/pubsub/index.ts index d3781fc5ea..7309897a46 100644 --- a/src/apis/pubsub/index.ts +++ b/src/apis/pubsub/index.ts @@ -61,4 +61,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/pubsublite/index.ts b/src/apis/pubsublite/index.ts index 5dae444529..e647763a79 100644 --- a/src/apis/pubsublite/index.ts +++ b/src/apis/pubsublite/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/rapidmigrationassessment/index.ts b/src/apis/rapidmigrationassessment/index.ts index 40a6b80b9d..1aa16deb88 100644 --- a/src/apis/rapidmigrationassessment/index.ts +++ b/src/apis/rapidmigrationassessment/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/readerrevenuesubscriptionlinking/index.ts b/src/apis/readerrevenuesubscriptionlinking/index.ts index b50af4b215..e64c0ad0fd 100644 --- a/src/apis/readerrevenuesubscriptionlinking/index.ts +++ b/src/apis/readerrevenuesubscriptionlinking/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/realtimebidding/index.ts b/src/apis/realtimebidding/index.ts index b9478b20a3..27b6176ba3 100644 --- a/src/apis/realtimebidding/index.ts +++ b/src/apis/realtimebidding/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/realtimebidding/v1.ts b/src/apis/realtimebidding/v1.ts index 8a39d84933..ac186a2d2c 100644 --- a/src/apis/realtimebidding/v1.ts +++ b/src/apis/realtimebidding/v1.ts @@ -130,6 +130,15 @@ export namespace realtimebidding_v1 { * A request to activate a pretargeting configuration. Sets the configuration's state to ACTIVE. */ export interface Schema$ActivatePretargetingConfigRequest {} + /** + * A request to add deals to a creative resource. + */ + export interface Schema$AddDealsRequest { + /** + * Required. The IDs of the deals to associate with the creative. This can include Programmatic Guaranteed, Private Auction, Preferred Deal, and Marketplace Package deal IDs. You can associate no more than 100 deal IDs per request. + */ + dealIds?: string[] | null; + } /** * A request to start targeting the provided app IDs in a specific pretargeting configuration. The pretargeting configuration itself specifies how these apps are targeted. in PretargetingConfig.appTargeting.mobileAppTargeting. */ @@ -5816,6 +5825,171 @@ export namespace realtimebidding_v1 { this.context = context; } + /** + * Adds a list of deals to a creative, which submits the creative for publisher review. Returns the updated creative. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/realtimebidding.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const realtimebidding = google.realtimebidding('v1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/realtime-bidding'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await realtimebidding.buyers.creatives.addDeals({ + * // Required. Name of the creative to add the deals to. See creative.name. + * name: 'buyers/my-buyer/creatives/my-creative', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "dealIds": [] + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "accountId": "my_accountId", + * // "adChoicesDestinationUrl": "my_adChoicesDestinationUrl", + * // "advertiserName": "my_advertiserName", + * // "agencyId": "my_agencyId", + * // "apiUpdateTime": "my_apiUpdateTime", + * // "creativeFormat": "my_creativeFormat", + * // "creativeId": "my_creativeId", + * // "creativeServingDecision": {}, + * // "dealIds": [], + * // "declaredAttributes": [], + * // "declaredClickThroughUrls": [], + * // "declaredRestrictedCategories": [], + * // "declaredVendorIds": [], + * // "html": {}, + * // "impressionTrackingUrls": [], + * // "name": "my_name", + * // "native": {}, + * // "renderUrl": "my_renderUrl", + * // "restrictedCategories": [], + * // "version": 0, + * // "video": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + addDeals( + params: Params$Resource$Buyers$Creatives$Adddeals, + options: StreamMethodOptions + ): Promise>; + addDeals( + params?: Params$Resource$Buyers$Creatives$Adddeals, + options?: MethodOptions + ): Promise>; + addDeals( + params: Params$Resource$Buyers$Creatives$Adddeals, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + addDeals( + params: Params$Resource$Buyers$Creatives$Adddeals, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + addDeals( + params: Params$Resource$Buyers$Creatives$Adddeals, + callback: BodyResponseCallback + ): void; + addDeals(callback: BodyResponseCallback): void; + addDeals( + paramsOrCallback?: + | Params$Resource$Buyers$Creatives$Adddeals + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Buyers$Creatives$Adddeals; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buyers$Creatives$Adddeals; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}:addDeals').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + /** * Creates a creative. * @example @@ -6490,6 +6664,17 @@ export namespace realtimebidding_v1 { } } + export interface Params$Resource$Buyers$Creatives$Adddeals extends StandardParameters { + /** + * Required. Name of the creative to add the deals to. See creative.name. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$AddDealsRequest; + } export interface Params$Resource$Buyers$Creatives$Create extends StandardParameters { /** * Required. The name of the parent buyer that the new creative belongs to that must follow the pattern `buyers/{buyerAccountId\}`, where `{buyerAccountId\}` represents the account ID of the buyer who owns a creative. For a bidder accessing creatives on behalf of a child seat buyer, `{buyerAccountId\}` should represent the account ID of the child seat buyer. diff --git a/src/apis/recaptchaenterprise/index.ts b/src/apis/recaptchaenterprise/index.ts index 11343b15e9..90c7d6ec36 100644 --- a/src/apis/recaptchaenterprise/index.ts +++ b/src/apis/recaptchaenterprise/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/recommendationengine/index.ts b/src/apis/recommendationengine/index.ts index e1e5cd55a8..49cf710146 100644 --- a/src/apis/recommendationengine/index.ts +++ b/src/apis/recommendationengine/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/recommender/index.ts b/src/apis/recommender/index.ts index 7bec2376c8..573bc1fea3 100644 --- a/src/apis/recommender/index.ts +++ b/src/apis/recommender/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/recommender/v1.ts b/src/apis/recommender/v1.ts index 08393bf7be..af2f83c51e 100644 --- a/src/apis/recommender/v1.ts +++ b/src/apis/recommender/v1.ts @@ -130,6 +130,146 @@ export namespace recommender_v1 { } } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1ContentChunk { + /** + * Table with headers and rows content for the content chunk. + */ + table?: Schema$CloudRecommendationsRecommendersDatabasesV1Table; + } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1CtaConfig { + isPrimary?: boolean | null; + /** + * Enum used to map to the string to be shown in the UI for the button. + */ + label?: string | null; + redirectPage?: string | null; + } + /** + * Presentational config that maps to the UI components of templatized issue subtasks. + */ + export interface Schema$CloudRecommendationsRecommendersDatabasesV1DatabasesPresentationConfig { + /** + * Call to action buttons for the issue. + */ + ctaConfigs?: Schema$CloudRecommendationsRecommendersDatabasesV1CtaConfig[]; + /** + * Content chunks for the issue. + */ + issueContentChunks?: Schema$CloudRecommendationsRecommendersDatabasesV1ContentChunk[]; + /** + * Issue description for the issue. + */ + issueDescription?: Schema$CloudRecommendationsRecommendersDatabasesV1Description; + /** + * Fields for the table containing metadata associated with the issue. + */ + issueTableFields?: Schema$CloudRecommendationsRecommendersDatabasesV1TableField[]; + /** + * Content chunks for the next steps. + */ + nextStepsContentChunks?: Schema$CloudRecommendationsRecommendersDatabasesV1ContentChunk[]; + /** + * Next steps description for the issue. + */ + nextStepsDescription?: Schema$CloudRecommendationsRecommendersDatabasesV1Description; + /** + * Fields for the table containing metadata associated with the next steps. + */ + nextStepsTableFields?: Schema$CloudRecommendationsRecommendersDatabasesV1TableField[]; + /** + * Playbook links for the issue. + */ + playbookLinks?: Schema$CloudRecommendationsRecommendersDatabasesV1PlaybookLink[]; + } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1Description { + /** + * Enum used to map to the html template to be shown in the UI. + */ + descriptionEnum?: string | null; + } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1Link { + /** + * String label for the link. This value is not translated + */ + label?: string | null; + /** + * Enum used to map to the redirect page for the link. + */ + redirectPage?: string | null; + /** + * Resource name for the table cell. This is used to construct the link. + */ + resourceName?: string | null; + } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1PlaybookLink { + /** + * Enum used to map to the string to be shown in the UI for the link. + */ + label?: string | null; + link?: string | null; + } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1SimpleValue { + /** + * Enum value for the table cell. This should be used when value MUST be translated and represents common status/field like Enabled, Disabled, Success, Failure, etc. + */ + enumValue?: string | null; + /** + * Link value for the table cell. + */ + linkValue?: Schema$CloudRecommendationsRecommendersDatabasesV1Link; + /** + * Number value for the table cell. + */ + numberValue?: number | null; + /** + * String value for the table cell. This should be used when value doesn't need to be translated. + */ + stringValue?: string | null; + /** + * Timestamp value for the table cell. + */ + timestampValue?: string | null; + } + /** + * Field for adding custom complex table + */ + export interface Schema$CloudRecommendationsRecommendersDatabasesV1Table { + /** + * Headers for the table. IMPORTANT: Each header defines a column and its title. All Headers must be unique and shouldn't be used more than once within the same list. + */ + headers?: string[] | null; + /** + * Rows for the table. Ensure that the order of the cells in the row matches the order of the headers. + */ + rows?: Schema$CloudRecommendationsRecommendersDatabasesV1TableRow[]; + } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1TableField { + /** + * Enum used to map to the string to be shown in the UI for the field. + */ + key?: string | null; + /** + * Number value for the table field. + */ + numberValue?: number | null; + /** + * String value for the table field. Note that this string won't be translated. It is advised to provide values that don't require translation. + */ + stringValue?: string | null; + /** + * Timestamp value for the table field. Timestamp will be shown in the user's timezone with the format: "Feb 27, 2009 3:22:54 PM". + */ + timestampValue?: string | null; + } + /** + * Table row for a table + */ + export interface Schema$CloudRecommendationsRecommendersDatabasesV1TableRow { + /** + * Table cells for the table row. + */ + cells?: Schema$CloudRecommendationsRecommendersDatabasesV1SimpleValue[]; + } /** * Contains metadata about how much money a recommendation can save or incur. */ diff --git a/src/apis/recommender/v1beta1.ts b/src/apis/recommender/v1beta1.ts index 3af4b0d4bf..5d9f29c0d3 100644 --- a/src/apis/recommender/v1beta1.ts +++ b/src/apis/recommender/v1beta1.ts @@ -134,6 +134,146 @@ export namespace recommender_v1beta1 { } } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1ContentChunk { + /** + * Table with headers and rows content for the content chunk. + */ + table?: Schema$CloudRecommendationsRecommendersDatabasesV1Table; + } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1CtaConfig { + isPrimary?: boolean | null; + /** + * Enum used to map to the string to be shown in the UI for the button. + */ + label?: string | null; + redirectPage?: string | null; + } + /** + * Presentational config that maps to the UI components of templatized issue subtasks. + */ + export interface Schema$CloudRecommendationsRecommendersDatabasesV1DatabasesPresentationConfig { + /** + * Call to action buttons for the issue. + */ + ctaConfigs?: Schema$CloudRecommendationsRecommendersDatabasesV1CtaConfig[]; + /** + * Content chunks for the issue. + */ + issueContentChunks?: Schema$CloudRecommendationsRecommendersDatabasesV1ContentChunk[]; + /** + * Issue description for the issue. + */ + issueDescription?: Schema$CloudRecommendationsRecommendersDatabasesV1Description; + /** + * Fields for the table containing metadata associated with the issue. + */ + issueTableFields?: Schema$CloudRecommendationsRecommendersDatabasesV1TableField[]; + /** + * Content chunks for the next steps. + */ + nextStepsContentChunks?: Schema$CloudRecommendationsRecommendersDatabasesV1ContentChunk[]; + /** + * Next steps description for the issue. + */ + nextStepsDescription?: Schema$CloudRecommendationsRecommendersDatabasesV1Description; + /** + * Fields for the table containing metadata associated with the next steps. + */ + nextStepsTableFields?: Schema$CloudRecommendationsRecommendersDatabasesV1TableField[]; + /** + * Playbook links for the issue. + */ + playbookLinks?: Schema$CloudRecommendationsRecommendersDatabasesV1PlaybookLink[]; + } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1Description { + /** + * Enum used to map to the html template to be shown in the UI. + */ + descriptionEnum?: string | null; + } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1Link { + /** + * String label for the link. This value is not translated + */ + label?: string | null; + /** + * Enum used to map to the redirect page for the link. + */ + redirectPage?: string | null; + /** + * Resource name for the table cell. This is used to construct the link. + */ + resourceName?: string | null; + } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1PlaybookLink { + /** + * Enum used to map to the string to be shown in the UI for the link. + */ + label?: string | null; + link?: string | null; + } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1SimpleValue { + /** + * Enum value for the table cell. This should be used when value MUST be translated and represents common status/field like Enabled, Disabled, Success, Failure, etc. + */ + enumValue?: string | null; + /** + * Link value for the table cell. + */ + linkValue?: Schema$CloudRecommendationsRecommendersDatabasesV1Link; + /** + * Number value for the table cell. + */ + numberValue?: number | null; + /** + * String value for the table cell. This should be used when value doesn't need to be translated. + */ + stringValue?: string | null; + /** + * Timestamp value for the table cell. + */ + timestampValue?: string | null; + } + /** + * Field for adding custom complex table + */ + export interface Schema$CloudRecommendationsRecommendersDatabasesV1Table { + /** + * Headers for the table. IMPORTANT: Each header defines a column and its title. All Headers must be unique and shouldn't be used more than once within the same list. + */ + headers?: string[] | null; + /** + * Rows for the table. Ensure that the order of the cells in the row matches the order of the headers. + */ + rows?: Schema$CloudRecommendationsRecommendersDatabasesV1TableRow[]; + } + export interface Schema$CloudRecommendationsRecommendersDatabasesV1TableField { + /** + * Enum used to map to the string to be shown in the UI for the field. + */ + key?: string | null; + /** + * Number value for the table field. + */ + numberValue?: number | null; + /** + * String value for the table field. Note that this string won't be translated. It is advised to provide values that don't require translation. + */ + stringValue?: string | null; + /** + * Timestamp value for the table field. Timestamp will be shown in the user's timezone with the format: "Feb 27, 2009 3:22:54 PM". + */ + timestampValue?: string | null; + } + /** + * Table row for a table + */ + export interface Schema$CloudRecommendationsRecommendersDatabasesV1TableRow { + /** + * Table cells for the table row. + */ + cells?: Schema$CloudRecommendationsRecommendersDatabasesV1SimpleValue[]; + } /** * The response message for Locations.ListLocations. */ diff --git a/src/apis/redis/index.ts b/src/apis/redis/index.ts index 4ff3f1836e..2b96abce8a 100644 --- a/src/apis/redis/index.ts +++ b/src/apis/redis/index.ts @@ -46,4 +46,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/remotebuildexecution/index.ts b/src/apis/remotebuildexecution/index.ts index 6190469adb..13c5a7fc25 100644 --- a/src/apis/remotebuildexecution/index.ts +++ b/src/apis/remotebuildexecution/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/reseller/index.ts b/src/apis/reseller/index.ts index 3b0f2d61ee..ea1644cfab 100644 --- a/src/apis/reseller/index.ts +++ b/src/apis/reseller/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/resourcesettings/index.ts b/src/apis/resourcesettings/index.ts index 03ff0cdff1..70cbd52232 100644 --- a/src/apis/resourcesettings/index.ts +++ b/src/apis/resourcesettings/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/retail/index.ts b/src/apis/retail/index.ts index 9e3153958e..98bbdb541e 100644 --- a/src/apis/retail/index.ts +++ b/src/apis/retail/index.ts @@ -59,4 +59,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/run/index.ts b/src/apis/run/index.ts index 3582d1d647..43ef5c8947 100644 --- a/src/apis/run/index.ts +++ b/src/apis/run/index.ts @@ -66,4 +66,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/runtimeconfig/index.ts b/src/apis/runtimeconfig/index.ts index ddf85bb636..e23919685f 100644 --- a/src/apis/runtimeconfig/index.ts +++ b/src/apis/runtimeconfig/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/saasservicemgmt/index.ts b/src/apis/saasservicemgmt/index.ts index f080463337..a2cc391c3f 100644 --- a/src/apis/saasservicemgmt/index.ts +++ b/src/apis/saasservicemgmt/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/safebrowsing/index.ts b/src/apis/safebrowsing/index.ts index 866da12e17..752dbb0c98 100644 --- a/src/apis/safebrowsing/index.ts +++ b/src/apis/safebrowsing/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/sasportal/index.ts b/src/apis/sasportal/index.ts index 1874de3497..965d28104f 100644 --- a/src/apis/sasportal/index.ts +++ b/src/apis/sasportal/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/script/index.ts b/src/apis/script/index.ts index ab6340e783..cd22571148 100644 --- a/src/apis/script/index.ts +++ b/src/apis/script/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/searchads360/index.ts b/src/apis/searchads360/index.ts index 4e929e0bc5..88f92c35b4 100644 --- a/src/apis/searchads360/index.ts +++ b/src/apis/searchads360/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/searchconsole/index.ts b/src/apis/searchconsole/index.ts index c1b81075b3..de97b9905e 100644 --- a/src/apis/searchconsole/index.ts +++ b/src/apis/searchconsole/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/secretmanager/index.ts b/src/apis/secretmanager/index.ts index 0bac7606cd..34a269832d 100644 --- a/src/apis/secretmanager/index.ts +++ b/src/apis/secretmanager/index.ts @@ -72,4 +72,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/securesourcemanager/index.ts b/src/apis/securesourcemanager/index.ts index a4143fdef3..65524f15e4 100644 --- a/src/apis/securesourcemanager/index.ts +++ b/src/apis/securesourcemanager/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/securitycenter/index.ts b/src/apis/securitycenter/index.ts index 8fa47c224d..8ab7c4de13 100644 --- a/src/apis/securitycenter/index.ts +++ b/src/apis/securitycenter/index.ts @@ -96,4 +96,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/securityposture/index.ts b/src/apis/securityposture/index.ts index 76ec935d70..54b723a435 100644 --- a/src/apis/securityposture/index.ts +++ b/src/apis/securityposture/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/serviceconsumermanagement/index.ts b/src/apis/serviceconsumermanagement/index.ts index cfec0f6e3b..be14c58083 100644 --- a/src/apis/serviceconsumermanagement/index.ts +++ b/src/apis/serviceconsumermanagement/index.ts @@ -67,4 +67,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/servicecontrol/index.ts b/src/apis/servicecontrol/index.ts index 3f5ce8061f..c0c9d793d3 100644 --- a/src/apis/servicecontrol/index.ts +++ b/src/apis/servicecontrol/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/servicedirectory/index.ts b/src/apis/servicedirectory/index.ts index 86703de286..7650c429b7 100644 --- a/src/apis/servicedirectory/index.ts +++ b/src/apis/servicedirectory/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/servicemanagement/index.ts b/src/apis/servicemanagement/index.ts index b026be7dca..e3434bfc34 100644 --- a/src/apis/servicemanagement/index.ts +++ b/src/apis/servicemanagement/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/servicenetworking/index.ts b/src/apis/servicenetworking/index.ts index 6678a9b625..3c767da21f 100644 --- a/src/apis/servicenetworking/index.ts +++ b/src/apis/servicenetworking/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/serviceusage/index.ts b/src/apis/serviceusage/index.ts index a5fd197b69..3ad3a37781 100644 --- a/src/apis/serviceusage/index.ts +++ b/src/apis/serviceusage/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/sheets/index.ts b/src/apis/sheets/index.ts index 7701f939da..793d11298d 100644 --- a/src/apis/sheets/index.ts +++ b/src/apis/sheets/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/siteVerification/index.ts b/src/apis/siteVerification/index.ts index 61eba60391..be3407eb57 100644 --- a/src/apis/siteVerification/index.ts +++ b/src/apis/siteVerification/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/slides/index.ts b/src/apis/slides/index.ts index 89266a87c1..020ac3434e 100644 --- a/src/apis/slides/index.ts +++ b/src/apis/slides/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/smartdevicemanagement/index.ts b/src/apis/smartdevicemanagement/index.ts index 94774a05db..719bc246d9 100644 --- a/src/apis/smartdevicemanagement/index.ts +++ b/src/apis/smartdevicemanagement/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/solar/index.ts b/src/apis/solar/index.ts index 8a8a9db8df..a70990f7b3 100644 --- a/src/apis/solar/index.ts +++ b/src/apis/solar/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/sourcerepo/index.ts b/src/apis/sourcerepo/index.ts index ba932f65a4..dbf75ce0f8 100644 --- a/src/apis/sourcerepo/index.ts +++ b/src/apis/sourcerepo/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/spanner/index.ts b/src/apis/spanner/index.ts index cbf95b2e32..299bf3ead3 100644 --- a/src/apis/spanner/index.ts +++ b/src/apis/spanner/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/speech/index.ts b/src/apis/speech/index.ts index 93e16161f6..f0e9c7f4d9 100644 --- a/src/apis/speech/index.ts +++ b/src/apis/speech/index.ts @@ -61,4 +61,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/sql/index.ts b/src/apis/sql/index.ts index 4c86c38eff..5427be1c13 100644 --- a/src/apis/sql/index.ts +++ b/src/apis/sql/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/sqladmin/index.ts b/src/apis/sqladmin/index.ts index 4cf7f04dea..0fe140f2c5 100644 --- a/src/apis/sqladmin/index.ts +++ b/src/apis/sqladmin/index.ts @@ -49,4 +49,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/sqladmin/v1beta4.ts b/src/apis/sqladmin/v1beta4.ts index 0cac234457..cd0f3abb06 100644 --- a/src/apis/sqladmin/v1beta4.ts +++ b/src/apis/sqladmin/v1beta4.ts @@ -124,6 +124,7 @@ export namespace sqladmin_v1beta4 { sslCerts: Resource$Sslcerts; tiers: Resource$Tiers; users: Resource$Users; + workloadCaptures: Resource$Workloadcaptures; constructor(options: GlobalOptions, google?: GoogleConfigurable) { this.context = { @@ -145,6 +146,7 @@ export namespace sqladmin_v1beta4 { this.sslCerts = new Resource$Sslcerts(this.context); this.tiers = new Resource$Tiers(this.context); this.users = new Resource$Users(this.context); + this.workloadCaptures = new Resource$Workloadcaptures(this.context); } } @@ -1235,6 +1237,10 @@ export namespace sqladmin_v1beta4 { * Disk encryption configuration for an instance. */ export interface Schema$DiskEncryptionConfiguration { + /** + * Optional. Whether to enforce CMEK log encryption at source. When enforced, transaction logs are encrypted prior to being uploaded to Cloud Storage. If not enforced, then CMEK logs are encrypted by the Cloud Storage service. + */ + cmekSourceLogEncryptionEnforced?: boolean | null; /** * Optional. If true, enables Confidential Mode for the instance's Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently. */ @@ -2258,10 +2264,26 @@ export namespace sqladmin_v1beta4 { * The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. */ startTime?: string | null; + /** + * The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance. + */ + startWorkloadCaptureContext?: Schema$StartWorkloadCaptureContext; + /** + * The context for the `StartWorkloadReplay` operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed). + */ + startWorkloadReplayContext?: Schema$StartWorkloadReplayContext; /** * The status of an operation. */ status?: string | null; + /** + * The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance. + */ + stopWorkloadCaptureContext?: Schema$StopWorkloadCaptureContext; + /** + * The context for the `StopWorkloadReplay` operation, which contains details about stopping the execution of a captured workload (recorded read and write SQL queries) on a replay instance. + */ + stopWorkloadReplayContext?: Schema$StopWorkloadReplayContext; /** * Optional. The sub operation based on the operation type. */ @@ -3141,9 +3163,6 @@ export namespace sqladmin_v1beta4 { */ operationId?: string | null; } - /** - * Execute SQL statements response. - */ export interface Schema$SqlInstancesExecuteSqlResponse { /** * A list of notices and warnings generated during query execution. For PostgreSQL, this includes all notices and warnings. For MySQL, this includes warnings generated by the last executed statement. To retrieve all warnings for a multi-statement query, `SHOW WARNINGS` must be executed after each statement. @@ -3408,6 +3427,42 @@ export namespace sqladmin_v1beta4 { */ maintenanceType?: string | null; } + /** + * Request to start executing a captured workload on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed). + */ + export interface Schema$SqlWorkloadCapturesStartReplayRequest { + /** + * Optional. Contains details about the start workload replay operation. + */ + startWorkloadReplayContext?: Schema$StartWorkloadReplayContext; + } + /** + * Request to start recording traffic from the primary instance (captured workload). + */ + export interface Schema$SqlWorkloadCapturesStartRequest { + /** + * Optional. Contains details about the start workload capture operation. + */ + startWorkloadCaptureContext?: Schema$StartWorkloadCaptureContext; + } + /** + * Request to stop executing a captured workload on a replay instance. + */ + export interface Schema$SqlWorkloadCapturesStopReplayRequest { + /** + * Optional. Contains details about the stop workload replay operation. + */ + stopWorkloadReplayContext?: Schema$StopWorkloadReplayContext; + } + /** + * Request to stop recording traffic from the primary instance. + */ + export interface Schema$SqlWorkloadCapturesStopRequest { + /** + * Optional. Contains details about the stop workload capture operation. + */ + stopWorkloadCaptureContext?: Schema$StopWorkloadCaptureContext; + } /** * SslCerts Resource */ @@ -3518,6 +3573,32 @@ export namespace sqladmin_v1beta4 { */ kind?: string | null; } + /** + * The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance. + */ + export interface Schema$StartWorkloadCaptureContext { + /** + * Optional. If true, the captured workload is simultaneously executed on a separate, ephemeral Cloud SQL instance. This "live replay" instance is automatically provisioned and is cloned from the source instance. If false (the default), the workload is only stored and no live replay occurs. It can be replayed later using a separate `StartWorkloadReplayRequest`. Note: The workload capture runs continuously until an explicit `StopWorkloadCaptureRequest` is issued. + */ + enableLiveReplay?: boolean | null; + /** + * Optional. Required if `enable_live_replay` is true. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less. + */ + replayInstance?: string | null; + } + /** + * The context for the `StartWorkloadReplay` operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed). + */ + export interface Schema$StartWorkloadReplayContext { + /** + * Required. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less. + */ + replayInstance?: string | null; + /** + * Output only. The ID of the workload to start executing on the replay instance. Each workload capture generates a unique ID in the format `workload-` (for example, `workload-1786046400`). Use this ID to start executing the recorded SQL queries. + */ + workloadId?: 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). */ @@ -3535,6 +3616,28 @@ export namespace sqladmin_v1beta4 { */ message?: string | null; } + /** + * The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance. + */ + export interface Schema$StopWorkloadCaptureContext { + /** + * Optional. If true, immediately aborts the concurrent live replay and discards any un-replayed traffic alongside stopping the capture. If false (the default), the capture stops recording new traffic, but the live replay will continue executing until the entire backlog of captured traffic has been replayed. + */ + abortLiveReplay?: boolean | null; + } + /** + * The context for the `StopWorkloadReplay` operation, which contains details about stopping the execution of a captured workload (recorded read and write SQL queries) on a replay instance. + */ + export interface Schema$StopWorkloadReplayContext { + /** + * Required. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less. + */ + replayInstance?: string | null; + /** + * Output only. The ID of the workload to stop executing on the replay instance. Each workload capture generates a unique ID in the format `workload-` (for example, `workload-1786046400`). Use this ID to stop executing the recorded SQL queries. + */ + workloadId?: string | null; + } /** * Request message for switching over a `BlueGreenDeployment` resource. */ @@ -3751,6 +3854,52 @@ export namespace sqladmin_v1beta4 { */ value?: string | null; } + /** + * Captured workload for an instance. + */ + export interface Schema$WorkloadCapture { + /** + * Output only. The end time of the workload capture. + */ + endTime?: string | null; + /** + * Output only. The name of the replay instance, if live replay was enabled. + */ + replayInstance?: string | null; + /** + * Output only. The retention period in days for the captured workload. + */ + retentionDays?: number | null; + /** + * Output only. The name of the source instance. + */ + sourceInstance?: string | null; + /** + * Output only. The start time of the workload capture. + */ + startTime?: string | null; + /** + * Output only. The state of the workload capture. + */ + workloadCaptureState?: string | null; + /** + * Output only. The ID of the captured workload. + */ + workloadId?: string | null; + } + /** + * Instance list captured workloads response. + */ + export interface Schema$WorkloadCapturesListResponse { + /** + * This is always `sql#workloadCapturesList`. + */ + kind?: string | null; + /** + * List of captured workloads for the instance. + */ + workloadCaptures?: Schema$WorkloadCapture[]; + } export class Resource$Backupruns { context: APIRequestContext; @@ -3817,7 +3966,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -4163,7 +4316,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -4568,7 +4725,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -4726,7 +4887,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -5227,7 +5392,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -5470,7 +5639,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -5629,7 +5802,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -6104,7 +6281,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -6862,7 +7043,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -7191,7 +7376,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -7515,7 +7704,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -7694,7 +7887,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -8297,7 +8494,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -8461,7 +8662,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -8623,7 +8828,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -8795,7 +9004,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -8964,7 +9177,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -9132,7 +9349,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -9301,7 +9522,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -9636,7 +9861,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -9805,7 +10034,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -10166,7 +10399,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -10385,7 +10622,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -11224,7 +11465,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -11397,7 +11642,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -11566,7 +11815,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -11732,7 +11985,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -11902,7 +12159,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -12220,7 +12481,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -12382,7 +12647,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -12557,7 +12826,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -12727,7 +13000,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -12899,7 +13176,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -13069,7 +13350,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -13233,7 +13518,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -13395,7 +13684,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -13559,7 +13852,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -13729,7 +14026,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -13951,7 +14252,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -14877,7 +15182,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -15575,7 +15884,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -15745,7 +16058,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -15915,7 +16232,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -16089,7 +16410,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -16704,7 +17029,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -17549,7 +17878,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -17892,7 +18225,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -18232,7 +18569,11 @@ export namespace sqladmin_v1beta4 { * // "preCheckMajorVersionUpgradeContext": {}, * // "selfLink": "my_selfLink", * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, * // "subOperationType": {}, * // "targetId": "my_targetId", * // "targetLink": "my_targetLink", @@ -18455,4 +18796,931 @@ export namespace sqladmin_v1beta4 { */ requestBody?: Schema$User; } + + export class Resource$Workloadcaptures { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Lists all captured workloads associated with the instance. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const sqladmin = google.sqladmin('v1beta4'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/sqlservice.admin', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await sql.workloadCaptures.list({ + * // Required. Cloud SQL instance ID. This does not include the project ID. + * instance: 'placeholder-value', + * // Required. Project ID of the project that contains the instance. + * project: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "kind": "my_kind", + * // "workloadCaptures": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Workloadcaptures$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Workloadcaptures$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Workloadcaptures$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Workloadcaptures$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Workloadcaptures$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Workloadcaptures$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Workloadcaptures$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Workloadcaptures$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Starts capturing the SQL queries, transactions, and other operations executed on the primary instance. This traffic is securely stored and forms a "captured workload". This workload can be replayed later on a different instance to safely test performance impacts, database upgrades, configuration changes etc. before applying them to production. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const sqladmin = google.sqladmin('v1beta4'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/sqlservice.admin', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await sql.workloadCaptures.start({ + * // Required. Cloud SQL instance ID. This does not include the project ID. + * instance: 'placeholder-value', + * // Required. Project ID of the project that contains the instance. + * project: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "startWorkloadCaptureContext": {} + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "acquireSsrsLeaseContext": {}, + * // "apiWarning": {}, + * // "backupContext": {}, + * // "endTime": "my_endTime", + * // "error": {}, + * // "exportContext": {}, + * // "importContext": {}, + * // "insertTime": "my_insertTime", + * // "kind": "my_kind", + * // "name": "my_name", + * // "operationType": "my_operationType", + * // "preCheckMajorVersionUpgradeContext": {}, + * // "selfLink": "my_selfLink", + * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, + * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, + * // "subOperationType": {}, + * // "targetId": "my_targetId", + * // "targetLink": "my_targetLink", + * // "targetProject": "my_targetProject", + * // "user": "my_user" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + start( + params: Params$Resource$Workloadcaptures$Start, + options: StreamMethodOptions + ): Promise>; + start( + params?: Params$Resource$Workloadcaptures$Start, + options?: MethodOptions + ): Promise>; + start( + params: Params$Resource$Workloadcaptures$Start, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + start( + params: Params$Resource$Workloadcaptures$Start, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + start( + params: Params$Resource$Workloadcaptures$Start, + callback: BodyResponseCallback + ): void; + start(callback: BodyResponseCallback): void; + start( + paramsOrCallback?: + | Params$Resource$Workloadcaptures$Start + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Workloadcaptures$Start; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Workloadcaptures$Start; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:start' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Starts executing a captured workload on a separate Cloud SQL instance provisioned for workload replay. This target instance simulates the production environment without affecting the primary instance. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const sqladmin = google.sqladmin('v1beta4'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/sqlservice.admin', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await sql.workloadCaptures.startReplay({ + * // Required. Cloud SQL instance ID. This does not include the project ID. + * instance: 'placeholder-value', + * // Required. Project ID of the project that contains the instance. + * project: 'placeholder-value', + * // Required. The ID of the workload to replay. + * workloadId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "startWorkloadReplayContext": {} + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "acquireSsrsLeaseContext": {}, + * // "apiWarning": {}, + * // "backupContext": {}, + * // "endTime": "my_endTime", + * // "error": {}, + * // "exportContext": {}, + * // "importContext": {}, + * // "insertTime": "my_insertTime", + * // "kind": "my_kind", + * // "name": "my_name", + * // "operationType": "my_operationType", + * // "preCheckMajorVersionUpgradeContext": {}, + * // "selfLink": "my_selfLink", + * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, + * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, + * // "subOperationType": {}, + * // "targetId": "my_targetId", + * // "targetLink": "my_targetLink", + * // "targetProject": "my_targetProject", + * // "user": "my_user" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + startReplay( + params: Params$Resource$Workloadcaptures$Startreplay, + options: StreamMethodOptions + ): Promise>; + startReplay( + params?: Params$Resource$Workloadcaptures$Startreplay, + options?: MethodOptions + ): Promise>; + startReplay( + params: Params$Resource$Workloadcaptures$Startreplay, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + startReplay( + params: Params$Resource$Workloadcaptures$Startreplay, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + startReplay( + params: Params$Resource$Workloadcaptures$Startreplay, + callback: BodyResponseCallback + ): void; + startReplay(callback: BodyResponseCallback): void; + startReplay( + paramsOrCallback?: + | Params$Resource$Workloadcaptures$Startreplay + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Workloadcaptures$Startreplay; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Workloadcaptures$Startreplay; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:startReplay' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'instance', 'workloadId'], + pathParams: ['instance', 'project', 'workloadId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Stops capturing the query traffic and related operations executed on the primary instance. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const sqladmin = google.sqladmin('v1beta4'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/sqlservice.admin', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await sql.workloadCaptures.stop({ + * // Required. Cloud SQL instance ID. This does not include the project ID. + * instance: 'placeholder-value', + * // Required. Project ID of the project that contains the instance. + * project: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "stopWorkloadCaptureContext": {} + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "acquireSsrsLeaseContext": {}, + * // "apiWarning": {}, + * // "backupContext": {}, + * // "endTime": "my_endTime", + * // "error": {}, + * // "exportContext": {}, + * // "importContext": {}, + * // "insertTime": "my_insertTime", + * // "kind": "my_kind", + * // "name": "my_name", + * // "operationType": "my_operationType", + * // "preCheckMajorVersionUpgradeContext": {}, + * // "selfLink": "my_selfLink", + * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, + * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, + * // "subOperationType": {}, + * // "targetId": "my_targetId", + * // "targetLink": "my_targetLink", + * // "targetProject": "my_targetProject", + * // "user": "my_user" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + stop( + params: Params$Resource$Workloadcaptures$Stop, + options: StreamMethodOptions + ): Promise>; + stop( + params?: Params$Resource$Workloadcaptures$Stop, + options?: MethodOptions + ): Promise>; + stop( + params: Params$Resource$Workloadcaptures$Stop, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + stop( + params: Params$Resource$Workloadcaptures$Stop, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + stop( + params: Params$Resource$Workloadcaptures$Stop, + callback: BodyResponseCallback + ): void; + stop(callback: BodyResponseCallback): void; + stop( + paramsOrCallback?: + | Params$Resource$Workloadcaptures$Stop + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Workloadcaptures$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Workloadcaptures$Stop; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:stop' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Stops executing a captured workload on the separate Cloud SQL instance. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const sqladmin = google.sqladmin('v1beta4'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: [ + * 'https://www.googleapis.com/auth/cloud-platform', + * 'https://www.googleapis.com/auth/sqlservice.admin', + * ], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await sql.workloadCaptures.stopReplay({ + * // Required. Cloud SQL instance ID. This does not include the project ID. + * instance: 'placeholder-value', + * // Required. Project ID of the project that contains the instance. + * project: 'placeholder-value', + * // Required. The ID of the workload to replay. + * workloadId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "stopWorkloadReplayContext": {} + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "acquireSsrsLeaseContext": {}, + * // "apiWarning": {}, + * // "backupContext": {}, + * // "endTime": "my_endTime", + * // "error": {}, + * // "exportContext": {}, + * // "importContext": {}, + * // "insertTime": "my_insertTime", + * // "kind": "my_kind", + * // "name": "my_name", + * // "operationType": "my_operationType", + * // "preCheckMajorVersionUpgradeContext": {}, + * // "selfLink": "my_selfLink", + * // "startTime": "my_startTime", + * // "startWorkloadCaptureContext": {}, + * // "startWorkloadReplayContext": {}, + * // "status": "my_status", + * // "stopWorkloadCaptureContext": {}, + * // "stopWorkloadReplayContext": {}, + * // "subOperationType": {}, + * // "targetId": "my_targetId", + * // "targetLink": "my_targetLink", + * // "targetProject": "my_targetProject", + * // "user": "my_user" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + stopReplay( + params: Params$Resource$Workloadcaptures$Stopreplay, + options: StreamMethodOptions + ): Promise>; + stopReplay( + params?: Params$Resource$Workloadcaptures$Stopreplay, + options?: MethodOptions + ): Promise>; + stopReplay( + params: Params$Resource$Workloadcaptures$Stopreplay, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + stopReplay( + params: Params$Resource$Workloadcaptures$Stopreplay, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + stopReplay( + params: Params$Resource$Workloadcaptures$Stopreplay, + callback: BodyResponseCallback + ): void; + stopReplay(callback: BodyResponseCallback): void; + stopReplay( + paramsOrCallback?: + | Params$Resource$Workloadcaptures$Stopreplay + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + BodyResponseCallback | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Workloadcaptures$Stopreplay; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Workloadcaptures$Stopreplay; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:stopReplay' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['project', 'instance', 'workloadId'], + pathParams: ['instance', 'project', 'workloadId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Workloadcaptures$List extends StandardParameters { + /** + * Required. Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Required. Project ID of the project that contains the instance. + */ + project?: string; + } + export interface Params$Resource$Workloadcaptures$Start extends StandardParameters { + /** + * Required. Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Required. Project ID of the project that contains the instance. + */ + project?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SqlWorkloadCapturesStartRequest; + } + export interface Params$Resource$Workloadcaptures$Startreplay extends StandardParameters { + /** + * Required. Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Required. Project ID of the project that contains the instance. + */ + project?: string; + /** + * Required. The ID of the workload to replay. + */ + workloadId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SqlWorkloadCapturesStartReplayRequest; + } + export interface Params$Resource$Workloadcaptures$Stop extends StandardParameters { + /** + * Required. Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Required. Project ID of the project that contains the instance. + */ + project?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SqlWorkloadCapturesStopRequest; + } + export interface Params$Resource$Workloadcaptures$Stopreplay extends StandardParameters { + /** + * Required. Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Required. Project ID of the project that contains the instance. + */ + project?: string; + /** + * Required. The ID of the workload to replay. + */ + workloadId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SqlWorkloadCapturesStopReplayRequest; + } } diff --git a/src/apis/storage/index.ts b/src/apis/storage/index.ts index 1ca576844d..4d71cfc76c 100644 --- a/src/apis/storage/index.ts +++ b/src/apis/storage/index.ts @@ -49,4 +49,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/storage/v1.ts b/src/apis/storage/v1.ts index 4b20453b13..843f34422a 100644 --- a/src/apis/storage/v1.ts +++ b/src/apis/storage/v1.ts @@ -1263,6 +1263,10 @@ export namespace storage_v1 { * The time at which the object context was created in RFC 3339 format. */ createTime?: string | null; + /** + * The type URL of the object context's extended data. + */ + extendedDataTypeUrl?: string | null; /** * The time at which the object context was last updated in RFC 3339 format. */ diff --git a/src/apis/storagebatchoperations/index.ts b/src/apis/storagebatchoperations/index.ts index 94eda4bbf1..1f8c450cb2 100644 --- a/src/apis/storagebatchoperations/index.ts +++ b/src/apis/storagebatchoperations/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/storagetransfer/index.ts b/src/apis/storagetransfer/index.ts index 15d2091d25..d2ee93cbfb 100644 --- a/src/apis/storagetransfer/index.ts +++ b/src/apis/storagetransfer/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/streetviewpublish/index.ts b/src/apis/streetviewpublish/index.ts index 6ff145e9ab..cb536ed8c3 100644 --- a/src/apis/streetviewpublish/index.ts +++ b/src/apis/streetviewpublish/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/sts/index.ts b/src/apis/sts/index.ts index a6116bba80..958e828d86 100644 --- a/src/apis/sts/index.ts +++ b/src/apis/sts/index.ts @@ -46,4 +46,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/tagmanager/index.ts b/src/apis/tagmanager/index.ts index 24cba14a01..e2637d1338 100644 --- a/src/apis/tagmanager/index.ts +++ b/src/apis/tagmanager/index.ts @@ -52,4 +52,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/tasks/index.ts b/src/apis/tasks/index.ts index d16f7be0bd..e14552b757 100644 --- a/src/apis/tasks/index.ts +++ b/src/apis/tasks/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/testing/index.ts b/src/apis/testing/index.ts index 90a4ec67f0..bd3445b330 100644 --- a/src/apis/testing/index.ts +++ b/src/apis/testing/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/testing/v1.ts b/src/apis/testing/v1.ts index 4261caf8cd..3ee0beee3c 100644 --- a/src/apis/testing/v1.ts +++ b/src/apis/testing/v1.ts @@ -639,7 +639,7 @@ export namespace testing_v1 { */ activeStartTime?: string | null; /** - * Required. The requested device + * Required. The requested device. */ androidDevice?: Schema$AndroidDevice; /** diff --git a/src/apis/texttospeech/index.ts b/src/apis/texttospeech/index.ts index 2a4be21cc1..6d3e847772 100644 --- a/src/apis/texttospeech/index.ts +++ b/src/apis/texttospeech/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/threatintelligence/index.ts b/src/apis/threatintelligence/index.ts index 32c6c17622..d54f165216 100644 --- a/src/apis/threatintelligence/index.ts +++ b/src/apis/threatintelligence/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/threatintelligence/v1beta.ts b/src/apis/threatintelligence/v1beta.ts index 20a239010b..294f6b1e2a 100644 --- a/src/apis/threatintelligence/v1beta.ts +++ b/src/apis/threatintelligence/v1beta.ts @@ -709,6 +709,10 @@ export namespace threatintelligence_v1beta { * Output only. Legacy metadata associated with this scenario/monitor. */ legacyMonitorMetadata?: Schema$LegacyMetadata; + /** + * Optional. The custom threat scenario type used to create this configuration. + */ + scenarioType?: string | null; } /** * Captures the specific details of Data Leak alert. @@ -744,10 +748,6 @@ export namespace threatintelligence_v1beta { * Represents a query to match documents. */ export interface Schema$DocumentQuery { - /** - * Required. The data model to query against. - */ - dataModel?: string | null; /** * Required. The query string. */ diff --git a/src/apis/toolresults/index.ts b/src/apis/toolresults/index.ts index 8b8fe2c830..39221ac937 100644 --- a/src/apis/toolresults/index.ts +++ b/src/apis/toolresults/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/tpu/index.ts b/src/apis/tpu/index.ts index 7d2e953d5b..354b00725f 100644 --- a/src/apis/tpu/index.ts +++ b/src/apis/tpu/index.ts @@ -66,4 +66,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/trafficdirector/index.ts b/src/apis/trafficdirector/index.ts index d2eaa1a7c0..7aeb700aac 100644 --- a/src/apis/trafficdirector/index.ts +++ b/src/apis/trafficdirector/index.ts @@ -57,4 +57,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/transcoder/index.ts b/src/apis/transcoder/index.ts index 16b7364347..9598d6307b 100644 --- a/src/apis/transcoder/index.ts +++ b/src/apis/transcoder/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/translate/index.ts b/src/apis/translate/index.ts index d15f47fc71..13c125c80b 100644 --- a/src/apis/translate/index.ts +++ b/src/apis/translate/index.ts @@ -68,4 +68,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/travelimpactmodel/index.ts b/src/apis/travelimpactmodel/index.ts index 79c229b7b4..c61fd53d72 100644 --- a/src/apis/travelimpactmodel/index.ts +++ b/src/apis/travelimpactmodel/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/vault/index.ts b/src/apis/vault/index.ts index 2643f8d57a..c0398a12dd 100644 --- a/src/apis/vault/index.ts +++ b/src/apis/vault/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/vectortile/index.ts b/src/apis/vectortile/index.ts index 2c1197c2c7..dabc927801 100644 --- a/src/apis/vectortile/index.ts +++ b/src/apis/vectortile/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/verifiedaccess/index.ts b/src/apis/verifiedaccess/index.ts index 5d656a3392..323b094595 100644 --- a/src/apis/verifiedaccess/index.ts +++ b/src/apis/verifiedaccess/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/versionhistory/index.ts b/src/apis/versionhistory/index.ts index b92d73dcd8..55ef13354b 100644 --- a/src/apis/versionhistory/index.ts +++ b/src/apis/versionhistory/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/videointelligence/index.ts b/src/apis/videointelligence/index.ts index d33109cdf1..ecf5b05742 100644 --- a/src/apis/videointelligence/index.ts +++ b/src/apis/videointelligence/index.ts @@ -98,4 +98,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/vision/index.ts b/src/apis/vision/index.ts index cfe1b3f7e3..8403dde76f 100644 --- a/src/apis/vision/index.ts +++ b/src/apis/vision/index.ts @@ -63,4 +63,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/vmmigration/index.ts b/src/apis/vmmigration/index.ts index 47946729f6..c065e4c4f1 100644 --- a/src/apis/vmmigration/index.ts +++ b/src/apis/vmmigration/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/vmwareengine/index.ts b/src/apis/vmwareengine/index.ts index 081d704045..5a57961ab6 100644 --- a/src/apis/vmwareengine/index.ts +++ b/src/apis/vmwareengine/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/vpcaccess/index.ts b/src/apis/vpcaccess/index.ts index 785e2dfa54..2b9dae09cc 100644 --- a/src/apis/vpcaccess/index.ts +++ b/src/apis/vpcaccess/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/walletobjects/index.ts b/src/apis/walletobjects/index.ts index de927b5408..4d3ae23828 100644 --- a/src/apis/walletobjects/index.ts +++ b/src/apis/walletobjects/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/webcontentpublisher/index.ts b/src/apis/webcontentpublisher/index.ts index 569f3f6cf2..60e89ae0be 100644 --- a/src/apis/webcontentpublisher/index.ts +++ b/src/apis/webcontentpublisher/index.ts @@ -47,4 +47,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/webfonts/index.ts b/src/apis/webfonts/index.ts index da8b68ab03..55fbe2e806 100644 --- a/src/apis/webfonts/index.ts +++ b/src/apis/webfonts/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/webmasters/index.ts b/src/apis/webmasters/index.ts index 20ed5bab25..a871fd827d 100644 --- a/src/apis/webmasters/index.ts +++ b/src/apis/webmasters/index.ts @@ -43,4 +43,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/webrisk/index.ts b/src/apis/webrisk/index.ts index 00a47e5e7c..c003b91c93 100644 --- a/src/apis/webrisk/index.ts +++ b/src/apis/webrisk/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/websecurityscanner/index.ts b/src/apis/websecurityscanner/index.ts index e7e693c565..ab8c528848 100644 --- a/src/apis/websecurityscanner/index.ts +++ b/src/apis/websecurityscanner/index.ts @@ -74,4 +74,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/workflowexecutions/index.ts b/src/apis/workflowexecutions/index.ts index fc50c97c4f..d2c314aa4a 100644 --- a/src/apis/workflowexecutions/index.ts +++ b/src/apis/workflowexecutions/index.ts @@ -62,4 +62,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/workflows/index.ts b/src/apis/workflows/index.ts index e30a40082a..9828507f63 100644 --- a/src/apis/workflows/index.ts +++ b/src/apis/workflows/index.ts @@ -53,4 +53,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/workloadmanager/index.ts b/src/apis/workloadmanager/index.ts index 1bbb9e637d..7908baba52 100644 --- a/src/apis/workloadmanager/index.ts +++ b/src/apis/workloadmanager/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/workspaceevents/index.ts b/src/apis/workspaceevents/index.ts index d50e9f93af..85c82ced12 100644 --- a/src/apis/workspaceevents/index.ts +++ b/src/apis/workspaceevents/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/workstations/index.ts b/src/apis/workstations/index.ts index 9442c7970a..852867da69 100644 --- a/src/apis/workstations/index.ts +++ b/src/apis/workstations/index.ts @@ -55,4 +55,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/youtube/index.ts b/src/apis/youtube/index.ts index ee8008ca33..5461feea80 100644 --- a/src/apis/youtube/index.ts +++ b/src/apis/youtube/index.ts @@ -41,4 +41,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/youtubeAnalytics/index.ts b/src/apis/youtubeAnalytics/index.ts index 9329f30e5e..b2813b66f7 100644 --- a/src/apis/youtubeAnalytics/index.ts +++ b/src/apis/youtubeAnalytics/index.ts @@ -58,4 +58,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment diff --git a/src/apis/youtubereporting/index.ts b/src/apis/youtubereporting/index.ts index f3610cd409..945cb32894 100644 --- a/src/apis/youtubereporting/index.ts +++ b/src/apis/youtubereporting/index.ts @@ -45,4 +45,3 @@ export { MethodOptions, BodyResponseCallback, } from 'googleapis-common'; -// TODO: delete this comment