diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json index b2d4ec6e54f..c8be7c99915 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json @@ -1367,7 +1367,7 @@ } } }, - "revision": "20241002", + "revision": "20241120", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AcceptProposalRequest": { @@ -3138,11 +3138,11 @@ "id": "TimeZone", "properties": { "id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", "type": "string" }, "version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", "type": "string" } }, diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go index 31d992fafeb..0ef1093fee6 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go @@ -2281,9 +2281,10 @@ func (s TimeOfDay) MarshalJSON() ([]byte, error) { // TimeZone: Represents a time zone from the IANA Time Zone Database // (https://www.iana.org/time-zones). type TimeZone struct { - // Id: IANA Time Zone Database time zone, e.g. "America/New_York". + // Id: IANA Time Zone Database time zone. For example "America/New_York". Id string `json:"id,omitempty"` - // Version: Optional. IANA Time Zone Database version number, e.g. "2019a". + // Version: Optional. IANA Time Zone Database version number. For example + // "2019a". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json index 16f3e45bc29..ded89f65725 100644 --- a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json @@ -1550,7 +1550,7 @@ } } }, - "revision": "20241002", + "revision": "20241120", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AcceptProposalRequest": { @@ -3393,11 +3393,11 @@ "id": "TimeZone", "properties": { "id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", "type": "string" }, "version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", "type": "string" } }, diff --git a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go index c087e8c6a7b..fd3a09c84b8 100644 --- a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go @@ -2376,9 +2376,10 @@ func (s TimeOfDay) MarshalJSON() ([]byte, error) { // TimeZone: Represents a time zone from the IANA Time Zone Database // (https://www.iana.org/time-zones). type TimeZone struct { - // Id: IANA Time Zone Database time zone, e.g. "America/New_York". + // Id: IANA Time Zone Database time zone. For example "America/New_York". Id string `json:"id,omitempty"` - // Version: Optional. IANA Time Zone Database version number, e.g. "2019a". + // Version: Optional. IANA Time Zone Database version number. For example + // "2019a". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index 6d8c339809f..6d546a35907 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -2009,7 +2009,7 @@ } } }, - "revision": "20241027", + "revision": "20241111", "rootUrl": "https://bigquery.googleapis.com/", "schemas": { "AggregateClassificationMetrics": { @@ -5610,7 +5610,7 @@ "Default value, which will be treated as ENTERPRISE.", "Standard edition.", "Enterprise edition.", - "Enterprise plus edition." + "Enterprise Plus edition." ], "readOnly": true, "type": "string" @@ -8524,6 +8524,20 @@ "readOnly": true, "type": "string" }, + "managedTableType": { + "description": "Optional. If set, overrides the default managed table type configured in the dataset.", + "enum": [ + "MANAGED_TABLE_TYPE_UNSPECIFIED", + "NATIVE", + "ICEBERG" + ], + "enumDescriptions": [ + "No managed table type specified.", + "The managed table is a native BigQuery table.", + "The managed table is a BigQuery table for Apache Iceberg." + ], + "type": "string" + }, "materializedView": { "$ref": "MaterializedViewDefinition", "description": "Optional. The materialized view definition." diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index b7a9dbf1e26..25e95d28efd 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -5069,7 +5069,7 @@ type JobStatistics struct { // as ENTERPRISE. // "STANDARD" - Standard edition. // "ENTERPRISE" - Enterprise edition. - // "ENTERPRISE_PLUS" - Enterprise plus edition. + // "ENTERPRISE_PLUS" - Enterprise Plus edition. Edition string `json:"edition,omitempty"` // EndTime: Output only. End time of this job, in milliseconds since the epoch. // This field will be present whenever a job is in the DONE state. @@ -8535,6 +8535,14 @@ type Table struct { // Location: Output only. The geographic location where the table resides. This // value is inherited from the dataset. Location string `json:"location,omitempty"` + // ManagedTableType: Optional. If set, overrides the default managed table type + // configured in the dataset. + // + // Possible values: + // "MANAGED_TABLE_TYPE_UNSPECIFIED" - No managed table type specified. + // "NATIVE" - The managed table is a native BigQuery table. + // "ICEBERG" - The managed table is a BigQuery table for Apache Iceberg. + ManagedTableType string `json:"managedTableType,omitempty"` // MaterializedView: Optional. The materialized view definition. MaterializedView *MaterializedViewDefinition `json:"materializedView,omitempty"` // MaterializedViewStatus: Output only. The materialized view status. diff --git a/bigqueryreservation/v1/bigqueryreservation-api.json b/bigqueryreservation/v1/bigqueryreservation-api.json index c26ae88f259..af02bcda616 100644 --- a/bigqueryreservation/v1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1/bigqueryreservation-api.json @@ -635,7 +635,7 @@ ] }, "failoverReservation": { - "description": "Failover a reservation to the secondary location. The operation should be done in the current secondary location, which will be promoted to the new primary location for the reservation. Attempting to failover a reservation in the current primary location will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.", + "description": "Fail over a reservation to the secondary location. The operation should be done in the current secondary location, which will be promoted to the new primary location for the reservation. Attempting to failover a reservation in the current primary location will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}:failoverReservation", "httpMethod": "POST", "id": "bigqueryreservation.projects.locations.reservations.failoverReservation", @@ -935,7 +935,7 @@ } } }, - "revision": "20241023", + "revision": "20241110", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { @@ -1068,7 +1068,7 @@ "Default value, which will be treated as ENTERPRISE.", "Standard edition.", "Enterprise edition.", - "Enterprise plus edition." + "Enterprise Plus edition." ], "type": "string" }, @@ -1300,7 +1300,7 @@ "description": "The configuration parameters for the auto scaling feature." }, "concurrency": { - "description": "Job concurrency target which sets a soft upper bound on the number of jobs that can run concurrently in this reservation. This is a soft target due to asynchronous nature of the system and various optimizations for small queries. Default value is 0 which means that concurrency target will be automatically computed by the system. NOTE: this field is exposed as target job concurrency in the Information Schema, DDL and BQ CLI.", + "description": "Job concurrency target which sets a soft upper bound on the number of jobs that can run concurrently in this reservation. This is a soft target due to asynchronous nature of the system and various optimizations for small queries. Default value is 0 which means that concurrency target will be automatically computed by the system. NOTE: this field is exposed as target job concurrency in the Information Schema, DDL and BigQuery CLI.", "format": "int64", "type": "string" }, @@ -1322,7 +1322,7 @@ "Default value, which will be treated as ENTERPRISE.", "Standard edition.", "Enterprise edition.", - "Enterprise plus edition." + "Enterprise Plus edition." ], "type": "string" }, @@ -1346,15 +1346,15 @@ "type": "string" }, "originalPrimaryLocation": { - "description": "Optional. The original primary location of the reservation which is set only during its creation and remains unchanged afterwards. It can be used by the customer to answer questions about disaster recovery billing. The field is output only for customers and should not be specified, however, the google.api.field_behavior is not set to OUTPUT_ONLY since these fields are set in rerouted requests sent across regions.", + "description": "Optional. The original primary location of the reservation which is set only during its creation and remains unchanged afterwards. It can be used by the customer to answer questions about disaster recovery billing. The field is output only for customers and should not be specified, however, the `google.api.field_behavior` is not set to `OUTPUT_ONLY` since these fields are set in rerouted requests sent across regions.", "type": "string" }, "primaryLocation": { - "description": "Optional. The primary location of the reservation. The field is only meaningful for reservation used for cross region disaster recovery. The field is output only for customers and should not be specified, however, the google.api.field_behavior is not set to OUTPUT_ONLY since these fields are set in rerouted requests sent across regions.", + "description": "Optional. The primary location of the reservation. The field is only meaningful for a failover reservation that is used for managed disaster recovery. The field is output only for customers and should not be specified. However, the `google.api.field_behavior` is not set to `OUTPUT_ONLY` since these fields are set in rerouted requests sent across regions.", "type": "string" }, "secondaryLocation": { - "description": "Optional. The secondary location of the reservation which is used for cross region disaster recovery purposes. Customer can set this in create/update reservation calls to create a failover reservation or convert a non-failover reservation to a failover reservation.", + "description": "Optional. The secondary location of the reservation that is used for managed disaster recovery. Customers can set this in create/update reservation calls to create a failover reservation or convert a non-failover reservation to a failover reservation.", "type": "string" }, "slotCapacity": { diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index 3da3debaf59..1d578649d8c 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -372,7 +372,7 @@ type CapacityCommitment struct { // ENTERPRISE. // "STANDARD" - Standard edition. // "ENTERPRISE" - Enterprise edition. - // "ENTERPRISE_PLUS" - Enterprise plus edition. + // "ENTERPRISE_PLUS" - Enterprise Plus edition. Edition string `json:"edition,omitempty"` // FailureStatus: Output only. For FAILED commitment plan, provides the reason // of failure. @@ -664,7 +664,7 @@ type Reservation struct { // target due to asynchronous nature of the system and various optimizations // for small queries. Default value is 0 which means that concurrency target // will be automatically computed by the system. NOTE: this field is exposed as - // target job concurrency in the Information Schema, DDL and BQ CLI. + // target job concurrency in the Information Schema, DDL and BigQuery CLI. Concurrency int64 `json:"concurrency,omitempty,string"` // CreationTime: Output only. Creation time of the reservation. CreationTime string `json:"creationTime,omitempty"` @@ -675,7 +675,7 @@ type Reservation struct { // ENTERPRISE. // "STANDARD" - Standard edition. // "ENTERPRISE" - Enterprise edition. - // "ENTERPRISE_PLUS" - Enterprise plus edition. + // "ENTERPRISE_PLUS" - Enterprise Plus edition. Edition string `json:"edition,omitempty"` // IgnoreIdleSlots: If false, any query or pipeline job using this reservation // will use idle slots from other reservations within the same admin project. @@ -703,20 +703,21 @@ type Reservation struct { // reservation which is set only during its creation and remains unchanged // afterwards. It can be used by the customer to answer questions about // disaster recovery billing. The field is output only for customers and should - // not be specified, however, the google.api.field_behavior is not set to - // OUTPUT_ONLY since these fields are set in rerouted requests sent across + // not be specified, however, the `google.api.field_behavior` is not set to + // `OUTPUT_ONLY` since these fields are set in rerouted requests sent across // regions. OriginalPrimaryLocation string `json:"originalPrimaryLocation,omitempty"` // PrimaryLocation: Optional. The primary location of the reservation. The - // field is only meaningful for reservation used for cross region disaster - // recovery. The field is output only for customers and should not be - // specified, however, the google.api.field_behavior is not set to OUTPUT_ONLY - // since these fields are set in rerouted requests sent across regions. + // field is only meaningful for a failover reservation that is used for managed + // disaster recovery. The field is output only for customers and should not be + // specified. However, the `google.api.field_behavior` is not set to + // `OUTPUT_ONLY` since these fields are set in rerouted requests sent across + // regions. PrimaryLocation string `json:"primaryLocation,omitempty"` - // SecondaryLocation: Optional. The secondary location of the reservation which - // is used for cross region disaster recovery purposes. Customer can set this - // in create/update reservation calls to create a failover reservation or - // convert a non-failover reservation to a failover reservation. + // SecondaryLocation: Optional. The secondary location of the reservation that + // is used for managed disaster recovery. Customers can set this in + // create/update reservation calls to create a failover reservation or convert + // a non-failover reservation to a failover reservation. SecondaryLocation string `json:"secondaryLocation,omitempty"` // SlotCapacity: Baseline slots available to this reservation. A slot is a unit // of computational power in BigQuery, and serves as the unit of parallelism. @@ -2505,7 +2506,7 @@ type ProjectsLocationsReservationsFailoverReservationCall struct { header_ http.Header } -// FailoverReservation: Failover a reservation to the secondary location. The +// FailoverReservation: Fail over a reservation to the secondary location. The // operation should be done in the current secondary location, which will be // promoted to the new primary location for the reservation. Attempting to // failover a reservation in the current primary location will fail with the diff --git a/checks/v1alpha/checks-api.json b/checks/v1alpha/checks-api.json index c9eedc47411..abfe0c3276a 100644 --- a/checks/v1alpha/checks-api.json +++ b/checks/v1alpha/checks-api.json @@ -396,6 +396,95 @@ } } } + }, + "scans": { + "methods": { + "generate": { + "description": "Uploads the results of local Code Compliance analysis and generates a scan of privacy issues. Returns a google.longrunning.Operation containing analysis and findings.", + "flatPath": "v1alpha/accounts/{accountsId}/repos/{reposId}/scans:generate", + "httpMethod": "POST", + "id": "checks.accounts.repos.scans.generate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Resource name of the repo. Example: `accounts/123/repos/456`", + "location": "path", + "pattern": "^accounts/[^/]+/repos/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/scans:generate", + "request": { + "$ref": "GoogleChecksRepoScanV1alphaGenerateScanRequest" + }, + "response": { + "$ref": "Operation" + } + }, + "get": { + "description": "Gets a repo scan. By default, only the name and results_uri fields are returned. You can include other fields by listing them in the `fields` URL query parameter. For example, `?fields=name,sources` will return the name and sources fields.", + "flatPath": "v1alpha/accounts/{accountsId}/repos/{reposId}/scans/{scansId}", + "httpMethod": "GET", + "id": "checks.accounts.repos.scans.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the repo scan. Example: `accounts/123/repos/456/scans/789`", + "location": "path", + "pattern": "^accounts/[^/]+/repos/[^/]+/scans/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleChecksRepoScanV1alphaRepoScan" + } + }, + "list": { + "description": "Lists repo scans for the specified repo.", + "flatPath": "v1alpha/accounts/{accountsId}/repos/{reposId}/scans", + "httpMethod": "GET", + "id": "checks.accounts.repos.scans.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An [AIP-160](https://google.aip.dev/160) filter string to filter repo scans. Example: `scmMetadata.branch = main`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of repo scans to return. If unspecified, at most 10 repo scans will be returned. The maximum value is 50; values above 50 will be coerced to 50.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous `ListRepoScans` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepoScans` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the repo. Example: `accounts/123/repos/456`", + "location": "path", + "pattern": "^accounts/[^/]+/repos/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/scans", + "response": { + "$ref": "GoogleChecksRepoScanV1alphaListRepoScansResponse" + } + } + } } } } @@ -463,7 +552,7 @@ } } }, - "revision": "20241114", + "revision": "20241119", "rootUrl": "https://checks.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -690,6 +779,403 @@ }, "type": "object" }, + "GoogleChecksRepoScanV1alphaCliAnalysis": { + "description": "The results of a Code Compliance CLI analysis.", + "id": "GoogleChecksRepoScanV1alphaCliAnalysis", + "properties": { + "codeScans": { + "description": "Optional. Requested code scans resulting from preliminary CLI analysis.", + "items": { + "$ref": "GoogleChecksRepoScanV1alphaCodeScan" + }, + "type": "array" + }, + "sources": { + "description": "Optional. Data sources detected in the scan.", + "items": { + "$ref": "GoogleChecksRepoScanV1alphaSource" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleChecksRepoScanV1alphaCodeAttribution": { + "description": "Source code attribution.", + "id": "GoogleChecksRepoScanV1alphaCodeAttribution", + "properties": { + "codeExcerpt": { + "description": "Optional. Code excerpt where the source was detected along with surrounding code.", + "type": "string" + }, + "lineNumber": { + "description": "Required. Line number (1-based).", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "Required. Path of the file.", + "type": "string" + }, + "startLineNumber": { + "description": "Optional. Start line number of the code excerpt (1-based).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleChecksRepoScanV1alphaCodeScan": { + "description": "A requested analysis of source code. Contains the source code and processing state.", + "id": "GoogleChecksRepoScanV1alphaCodeScan", + "properties": { + "dataTypeClassifications": { + "description": "Optional. Data type classification requests.", + "items": { + "$ref": "GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification" + }, + "type": "array" + }, + "sourceCode": { + "$ref": "GoogleChecksRepoScanV1alphaSourceCode", + "description": "Required. Source code to analyze." + } + }, + "type": "object" + }, + "GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification": { + "description": "A request to classify data types.", + "id": "GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification", + "properties": { + "dataType": { + "description": "Required. Candidate data type.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "DATA_TYPE_APPROXIMATE_LOCATION", + "DATA_TYPE_PRECISE_LOCATION", + "DATA_TYPE_PERSONAL_NAME", + "DATA_TYPE_EMAIL_ADDRESS", + "DATA_TYPE_USER_IDS", + "DATA_TYPE_PHYSICAL_ADDRESS", + "DATA_TYPE_PHONE_NUMBER", + "DATA_TYPE_RACE_AND_ETHNICITY", + "DATA_TYPE_POLITICAL_OR_RELIGIOUS_BELIEFS", + "DATA_TYPE_SEXUAL_ORIENTATION", + "DATA_TYPE_OTHER_PERSONAL_INFO", + "DATA_TYPE_PAYMENT_INFO", + "DATA_TYPE_PURCHASE_HISTORY", + "DATA_TYPE_CREDIT_SCORE", + "DATA_TYPE_OTHER_FINANCIAL_INFO", + "DATA_TYPE_HEALTH_INFO", + "DATA_TYPE_FITNESS_INFO", + "DATA_TYPE_EMAILS", + "DATA_TYPE_TEXT_MESSAGES", + "DATA_TYPE_OTHER_IN_APP_MESSAGES", + "DATA_TYPE_PHOTOS", + "DATA_TYPE_VIDEOS", + "DATA_TYPE_VOICE_OR_SOUND_RECORDINGS", + "DATA_TYPE_MUSIC_FILES", + "DATA_TYPE_OTHER_AUDIO_FILES", + "DATA_TYPE_FILES_AND_DOCS", + "DATA_TYPE_CALENDAR_EVENTS", + "DATA_TYPE_CONTACTS", + "DATA_TYPE_APP_INTERACTIONS", + "DATA_TYPE_IN_APP_SEARCH_HISTORY", + "DATA_TYPE_INSTALLED_APPS", + "DATA_TYPE_OTHER_USER_GENERATED_CONTENT", + "DATA_TYPE_OTHER_ACTIONS", + "DATA_TYPE_WEB_BROWSING_HISTORY", + "DATA_TYPE_CRASH_LOGS", + "DATA_TYPE_PERFORMANCE_DIAGNOSTICS", + "DATA_TYPE_OTHER_APP_PERFORMANCE_DATA", + "DATA_TYPE_DEVICE_OR_OTHER_IDS" + ], + "enumDescriptions": [ + "Not specified.", + "User or device physical location to an area greater than or equal to 3 square kilometers, such as the city a user is in, or location provided by Android's ACCESS_COARSE_LOCATION permission.", + "User or device physical location within an area less than 3 square kilometers, such as location provided by Android's ACCESS_FINE_LOCATION permission.", + "How a user refers to themselves, such as their first or last name, or nickname.", + "A user's email address.", + "Identifiers that relate to an identifiable person. For example, an account ID, account number, or account name.", + "A user's address, such as a mailing or home address.", + "A user's phone number.", + "Information about a user's race or ethnicity.", + "Information about a user's political or religious beliefs.", + "Information about a user's sexual orientation.", + "Any other personal information such as date of birth, gender identity, veteran status, etc.", + "Information about a user's financial accounts such as credit card number.", + "Information about purchases or transactions a user has made.", + "Information about a user's credit score.", + "Any other financial information such as user salary or debts.", + "Information about a user's health, such as medical records or symptoms.", + "Information about a user's fitness, such as exercise or other physical activity.", + "A user's emails including the email subject line, sender, recipients, and the content of the email.", + "A user's text messages including the sender, recipients, and the content of the message.", + "Any other types of messages. For example, instant messages or chat content.", + "A user's photos.", + "A user's videos.", + "A user's voice such as a voicemail or a sound recording.", + "A user's music files.", + "Any other user-created or user-provided audio files.", + "A user's files or documents, or information about their files or documents such as file names.", + "Information from a user's calendar such as events, event notes, and attendees.", + "Information about the user’s contacts such as contact names, message history, and social graph information like usernames, contact recency, contact frequency, interaction duration and call history.", + "Information about how a user interacts with your app, such as the number of page views or taps.", + "Information about what a user has searched for in your app.", + "Inventory of apps or packages installed on the user’s device.", + "Any other user-generated content not listed here, or in any other section. For example, user bios, notes, or open-ended responses.", + "Any other user activity or actions in-app not listed here such as gameplay, likes, and dialog options.", + "Information about the websites a user has visited.", + "Crash log data from your app. For example, the number of times your app has crashed, stack traces, or other information directly related to a crash.", + "Information about the performance of your app. For example battery life, loading time, latency, framerate, or any technical diagnostics.", + "Any other app performance data not listed here.", + "Identifiers that relate to an individual device, browser or app. For example, an IMEI number, MAC address, Widevine Device ID, Firebase installation ID, or advertising identifier." + ], + "type": "string" + }, + "lineNumber": { + "description": "Required. Line number (1-based).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleChecksRepoScanV1alphaGenerateScanRequest": { + "description": "The request message for RepoScanService.GenerateScan.", + "id": "GoogleChecksRepoScanV1alphaGenerateScanRequest", + "properties": { + "cliAnalysis": { + "$ref": "GoogleChecksRepoScanV1alphaCliAnalysis", + "description": "Required. CLI analysis results." + }, + "cliVersion": { + "description": "Required. CLI version.", + "type": "string" + }, + "localScanPath": { + "description": "Required. Local scan path.", + "type": "string" + }, + "scmMetadata": { + "$ref": "GoogleChecksRepoScanV1alphaScmMetadata", + "description": "Required. SCM metadata." + } + }, + "type": "object" + }, + "GoogleChecksRepoScanV1alphaListRepoScansResponse": { + "description": "The response message for RepoScanService.ListRepoScans.", + "id": "GoogleChecksRepoScanV1alphaListRepoScansResponse", + "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" + }, + "repoScans": { + "description": "The repo scans for the specified app.", + "items": { + "$ref": "GoogleChecksRepoScanV1alphaRepoScan" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleChecksRepoScanV1alphaPullRequest": { + "description": "Pull request info.", + "id": "GoogleChecksRepoScanV1alphaPullRequest", + "properties": { + "baseBranch": { + "description": "Required. For PR analysis, we compare against the most recent scan of the base branch to highlight new issues.", + "type": "string" + }, + "prNumber": { + "description": "Required. This can be supplied by the user or parsed automatically from predefined CI environment variables.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleChecksRepoScanV1alphaRepoScan": { + "description": "Repo scan.", + "id": "GoogleChecksRepoScanV1alphaRepoScan", + "properties": { + "cliVersion": { + "description": "CLI version.", + "type": "string" + }, + "localScanPath": { + "description": "Local scan path.", + "type": "string" + }, + "name": { + "description": "Identifier. Resource name of the scan.", + "type": "string" + }, + "resultsUri": { + "description": "A URL to view results.", + "type": "string" + }, + "scmMetadata": { + "$ref": "GoogleChecksRepoScanV1alphaScmMetadata", + "description": "SCM metadata." + }, + "sources": { + "description": "Data sources detected.", + "items": { + "$ref": "GoogleChecksRepoScanV1alphaSource" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleChecksRepoScanV1alphaScmMetadata": { + "description": "SCM metadata.", + "id": "GoogleChecksRepoScanV1alphaScmMetadata", + "properties": { + "branch": { + "description": "Required. Branch name.", + "type": "string" + }, + "pullRequest": { + "$ref": "GoogleChecksRepoScanV1alphaPullRequest", + "description": "Optional. Contains info about the associated pull request. This is only populated for pull request scans." + }, + "remoteUri": { + "description": "Required. Git remote URL.", + "type": "string" + }, + "revisionId": { + "description": "Required. Revision ID, e.g. Git commit hash.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleChecksRepoScanV1alphaSource": { + "description": "Represents a data source finding.", + "id": "GoogleChecksRepoScanV1alphaSource", + "properties": { + "codeAttribution": { + "$ref": "GoogleChecksRepoScanV1alphaCodeAttribution", + "description": "Optional. Source code attribution for the finding." + }, + "dataType": { + "description": "Required. Data type.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "DATA_TYPE_APPROXIMATE_LOCATION", + "DATA_TYPE_PRECISE_LOCATION", + "DATA_TYPE_PERSONAL_NAME", + "DATA_TYPE_EMAIL_ADDRESS", + "DATA_TYPE_USER_IDS", + "DATA_TYPE_PHYSICAL_ADDRESS", + "DATA_TYPE_PHONE_NUMBER", + "DATA_TYPE_RACE_AND_ETHNICITY", + "DATA_TYPE_POLITICAL_OR_RELIGIOUS_BELIEFS", + "DATA_TYPE_SEXUAL_ORIENTATION", + "DATA_TYPE_OTHER_PERSONAL_INFO", + "DATA_TYPE_PAYMENT_INFO", + "DATA_TYPE_PURCHASE_HISTORY", + "DATA_TYPE_CREDIT_SCORE", + "DATA_TYPE_OTHER_FINANCIAL_INFO", + "DATA_TYPE_HEALTH_INFO", + "DATA_TYPE_FITNESS_INFO", + "DATA_TYPE_EMAILS", + "DATA_TYPE_TEXT_MESSAGES", + "DATA_TYPE_OTHER_IN_APP_MESSAGES", + "DATA_TYPE_PHOTOS", + "DATA_TYPE_VIDEOS", + "DATA_TYPE_VOICE_OR_SOUND_RECORDINGS", + "DATA_TYPE_MUSIC_FILES", + "DATA_TYPE_OTHER_AUDIO_FILES", + "DATA_TYPE_FILES_AND_DOCS", + "DATA_TYPE_CALENDAR_EVENTS", + "DATA_TYPE_CONTACTS", + "DATA_TYPE_APP_INTERACTIONS", + "DATA_TYPE_IN_APP_SEARCH_HISTORY", + "DATA_TYPE_INSTALLED_APPS", + "DATA_TYPE_OTHER_USER_GENERATED_CONTENT", + "DATA_TYPE_OTHER_ACTIONS", + "DATA_TYPE_WEB_BROWSING_HISTORY", + "DATA_TYPE_CRASH_LOGS", + "DATA_TYPE_PERFORMANCE_DIAGNOSTICS", + "DATA_TYPE_OTHER_APP_PERFORMANCE_DATA", + "DATA_TYPE_DEVICE_OR_OTHER_IDS" + ], + "enumDescriptions": [ + "Not specified.", + "User or device physical location to an area greater than or equal to 3 square kilometers, such as the city a user is in, or location provided by Android's ACCESS_COARSE_LOCATION permission.", + "User or device physical location within an area less than 3 square kilometers, such as location provided by Android's ACCESS_FINE_LOCATION permission.", + "How a user refers to themselves, such as their first or last name, or nickname.", + "A user's email address.", + "Identifiers that relate to an identifiable person. For example, an account ID, account number, or account name.", + "A user's address, such as a mailing or home address.", + "A user's phone number.", + "Information about a user's race or ethnicity.", + "Information about a user's political or religious beliefs.", + "Information about a user's sexual orientation.", + "Any other personal information such as date of birth, gender identity, veteran status, etc.", + "Information about a user's financial accounts such as credit card number.", + "Information about purchases or transactions a user has made.", + "Information about a user's credit score.", + "Any other financial information such as user salary or debts.", + "Information about a user's health, such as medical records or symptoms.", + "Information about a user's fitness, such as exercise or other physical activity.", + "A user's emails including the email subject line, sender, recipients, and the content of the email.", + "A user's text messages including the sender, recipients, and the content of the message.", + "Any other types of messages. For example, instant messages or chat content.", + "A user's photos.", + "A user's videos.", + "A user's voice such as a voicemail or a sound recording.", + "A user's music files.", + "Any other user-created or user-provided audio files.", + "A user's files or documents, or information about their files or documents such as file names.", + "Information from a user's calendar such as events, event notes, and attendees.", + "Information about the user’s contacts such as contact names, message history, and social graph information like usernames, contact recency, contact frequency, interaction duration and call history.", + "Information about how a user interacts with your app, such as the number of page views or taps.", + "Information about what a user has searched for in your app.", + "Inventory of apps or packages installed on the user’s device.", + "Any other user-generated content not listed here, or in any other section. For example, user bios, notes, or open-ended responses.", + "Any other user activity or actions in-app not listed here such as gameplay, likes, and dialog options.", + "Information about the websites a user has visited.", + "Crash log data from your app. For example, the number of times your app has crashed, stack traces, or other information directly related to a crash.", + "Information about the performance of your app. For example battery life, loading time, latency, framerate, or any technical diagnostics.", + "Any other app performance data not listed here.", + "Identifiers that relate to an individual device, browser or app. For example, an IMEI number, MAC address, Widevine Device ID, Firebase installation ID, or advertising identifier." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleChecksRepoScanV1alphaSourceCode": { + "description": "Contains source code from a repo.", + "id": "GoogleChecksRepoScanV1alphaSourceCode", + "properties": { + "code": { + "description": "Required. Source code.", + "type": "string" + }, + "endLine": { + "description": "Required. End line number (1-based).", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "Required. Path of the file.", + "type": "string" + }, + "startLine": { + "description": "Required. Start line number (1-based).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleChecksReportV1alphaAnalyzeUploadRequest": { "description": "The request message for ReportService.AnalyzeUpload.", "id": "GoogleChecksReportV1alphaAnalyzeUploadRequest", diff --git a/checks/v1alpha/checks-gen.go b/checks/v1alpha/checks-gen.go index 834406e422b..e0af903cff6 100644 --- a/checks/v1alpha/checks-gen.go +++ b/checks/v1alpha/checks-gen.go @@ -199,6 +199,7 @@ type AccountsAppsReportsService struct { func NewAccountsReposService(s *Service) *AccountsReposService { rs := &AccountsReposService{s: s} rs.Operations = NewAccountsReposOperationsService(s) + rs.Scans = NewAccountsReposScansService(s) return rs } @@ -206,6 +207,8 @@ type AccountsReposService struct { s *Service Operations *AccountsReposOperationsService + + Scans *AccountsReposScansService } func NewAccountsReposOperationsService(s *Service) *AccountsReposOperationsService { @@ -217,6 +220,15 @@ type AccountsReposOperationsService struct { s *Service } +func NewAccountsReposScansService(s *Service) *AccountsReposScansService { + rs := &AccountsReposScansService{s: s} + return rs +} + +type AccountsReposScansService struct { + s *Service +} + func NewAisafetyService(s *Service) *AisafetyService { rs := &AisafetyService{s: s} return rs @@ -564,471 +576,90 @@ func (s GoogleChecksAisafetyV1alphaTextInput) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaAnalyzeUploadRequest: The request message for -// ReportService.AnalyzeUpload. -type GoogleChecksReportV1alphaAnalyzeUploadRequest struct { - // AppBinaryFileType: Optional. The type of the uploaded app binary. If not - // provided, the server assumes APK file for Android and IPA file for iOS. - // - // Possible values: - // "APP_BINARY_FILE_TYPE_UNSPECIFIED" - Not specified. - // "ANDROID_APK" - .apk file type. - // "ANDROID_AAB" - .aab (app bundle) file type. - // "IOS_IPA" - .ipa file type. - AppBinaryFileType string `json:"appBinaryFileType,omitempty"` - // CodeReferenceId: Optional. Git commit hash or changelist number associated - // with the upload. - CodeReferenceId string `json:"codeReferenceId,omitempty"` - // ForceSendFields is a list of field names (e.g. "AppBinaryFileType") to +// GoogleChecksRepoScanV1alphaCliAnalysis: The results of a Code Compliance CLI +// analysis. +type GoogleChecksRepoScanV1alphaCliAnalysis struct { + // CodeScans: Optional. Requested code scans resulting from preliminary CLI + // analysis. + CodeScans []*GoogleChecksRepoScanV1alphaCodeScan `json:"codeScans,omitempty"` + // Sources: Optional. Data sources detected in the scan. + Sources []*GoogleChecksRepoScanV1alphaSource `json:"sources,omitempty"` + // ForceSendFields is a list of field names (e.g. "CodeScans") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppBinaryFileType") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "CodeScans") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaAnalyzeUploadRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaAnalyzeUploadRequest +func (s GoogleChecksRepoScanV1alphaCliAnalysis) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksRepoScanV1alphaCliAnalysis return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaAppBundle: Information about the analyzed app -// bundle. -type GoogleChecksReportV1alphaAppBundle struct { - // BundleId: Unique id of the bundle. For example: "com.google.Gmail". - BundleId string `json:"bundleId,omitempty"` - // CodeReferenceId: Git commit hash or changelist number associated with the - // release. - CodeReferenceId string `json:"codeReferenceId,omitempty"` - // ReleaseType: Identifies the type of release. - // - // Possible values: - // "APP_BUNDLE_RELEASE_TYPE_UNSPECIFIED" - Not specified. - // "PUBLIC" - Published production bundle. - // "PRE_RELEASE" - Pre-release bundle. - ReleaseType string `json:"releaseType,omitempty"` - // Version: The user-visible version of the bundle such as the Android - // `versionName` or iOS `CFBundleShortVersionString`. For example: "7.21.1". - Version string `json:"version,omitempty"` - // VersionId: The version used throughout the operating system and store to - // identify the build such as the Android `versionCode` or iOS - // `CFBundleVersion`. - VersionId string `json:"versionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "BundleId") to +// GoogleChecksRepoScanV1alphaCodeAttribution: Source code attribution. +type GoogleChecksRepoScanV1alphaCodeAttribution struct { + // CodeExcerpt: Optional. Code excerpt where the source was detected along with + // surrounding code. + CodeExcerpt string `json:"codeExcerpt,omitempty"` + // LineNumber: Required. Line number (1-based). + LineNumber int64 `json:"lineNumber,omitempty"` + // Path: Required. Path of the file. + Path string `json:"path,omitempty"` + // StartLineNumber: Optional. Start line number of the code excerpt (1-based). + StartLineNumber int64 `json:"startLineNumber,omitempty"` + // ForceSendFields is a list of field names (e.g. "CodeExcerpt") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BundleId") to include in API + // NullFields is a list of field names (e.g. "CodeExcerpt") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaAppBundle) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaAppBundle +func (s GoogleChecksRepoScanV1alphaCodeAttribution) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksRepoScanV1alphaCodeAttribution return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaCheck: A check that was run on your app. -type GoogleChecksReportV1alphaCheck struct { - // Citations: Regulations and policies that serve as the legal basis for the - // check. - Citations []*GoogleChecksReportV1alphaCheckCitation `json:"citations,omitempty"` - // Evidence: Evidence that substantiates the check result. - Evidence *GoogleChecksReportV1alphaCheckEvidence `json:"evidence,omitempty"` - // RegionCodes: Regions that are impacted by the check. For more info, see - // https://google.aip.dev/143#countries-and-regions. - RegionCodes []string `json:"regionCodes,omitempty"` - // Severity: The urgency or risk level of the check. - // - // Possible values: - // "CHECK_SEVERITY_UNSPECIFIED" - Not specified. - // "PRIORITY" - Important privacy issue. - // "POTENTIAL" - Potential privacy issue. - // "OPPORTUNITY" - Opportunity to improve privacy coverage. - Severity string `json:"severity,omitempty"` - // State: The result after running the check. - // - // Possible values: - // "CHECK_STATE_UNSPECIFIED" - Not specified. - // "PASSED" - The check passed. - // "FAILED" - The check failed. - // "UNCHECKED" - The check was not run. - State string `json:"state,omitempty"` - // StateMetadata: Additional information about the check state in relation to - // past reports. - StateMetadata *GoogleChecksReportV1alphaCheckStateMetadata `json:"stateMetadata,omitempty"` - // Type: The type of check that was run. A type will only appear once in a - // report's list of checks. - // - // Possible values: - // "CHECK_TYPE_UNSPECIFIED" - Not specified. - // "STORE_LISTING_PRIVACY_POLICY_LINK_PRESENT" - Checks that your store - // listing includes a working link to your privacy policy. - // "PRIVACY_POLICY_UPDATE_DATE_RECENT" - Checks that your privacy policy has - // been updated recently. - // "PRIVACY_POLICY_GDPR_GENERAL_RULES" - Checks if your privacy policy - // references rights under GDPR for users in the EU. - // "PRIVACY_POLICY_CCPA_GENERAL_RULES" - Checks if your privacy policy - // references rights under the CCPA. - // "PRIVACY_POLICY_COLLECTION_CATEGORIES_DATA_NOTICE" - Checks if your - // privacy policy mentions the categories of personal data that are collected. - // "PRIVACY_POLICY_PROCESSING_PURPOSE_DATA_NOTICE" - Checks if your privacy - // policy explains why personal data is processed. - // "PRIVACY_POLICY_SHARING_CATEGORIES_DATA_NOTICE" - Checks if your privacy - // policy includes information about third-party sharing of personal data. - // "PRIVACY_POLICY_DATA_RETENTION_NOTICE" - Checks if your privacy policy - // describes your data retention practices. - // "PRIVACY_POLICY_CONTACT_DETAILS_NOTICE" - Checks if contact information is - // included in your privacy policy. - // "PRIVACY_POLICY_CHILDREN_GENERAL_RULES" - Checks if information about - // requirements related to children is included in your privacy policy. - // "PRIVACY_POLICY_DATA_TYPE_PHONE_NUMBER" - Checks if the Phone Number data - // type declaration in your privacy policy matches usage. - // "PRIVACY_POLICY_DATA_TYPE_USER_ACCOUNT_INFO" - Checks if the User Account - // Info data type declaration in your privacy policy matches usage. - // "PRIVACY_POLICY_DATA_TYPE_PRECISE_LOCATION" - Checks if the Precise - // Location data type declaration in your privacy policy matches usage. - // "PRIVACY_POLICY_DATA_TYPE_DEVICE_ID" - Checks if the Device ID data type - // declaration in your privacy policy matches usage. - // "PRIVACY_POLICY_DATA_TYPE_APPS_ON_DEVICE" - Checks if the Apps on Device - // data type declaration in your privacy policy matches usage. - // "PRIVACY_POLICY_DATA_TYPE_CONTACTS" - Checks if the Contacts data type - // declaration in your privacy policy matches usage. - // "PRIVACY_POLICY_DATA_TYPE_TEXT_MESSAGES" - Checks if the Text Messages - // data type declaration in your privacy policy matches usage. - // "PRIVACY_POLICY_DATA_TYPE_PII" - Checks if the PII data type declaration - // in your privacy policy matches usage. - // "PRIVACY_POLICY_DATA_TYPE_PII_CATEGORIES" - Checks if the PII Categories - // data type declaration in your privacy policy matches usage. - // "PRIVACY_POLICY_DATA_TYPE_HEALTH_AND_BIOMETRIC" - Checks if the Health and - // Biometric data type declaration in your privacy policy matches usage. - // "PRIVACY_POLICY_BRAZIL_LGPD_GENERAL_RULES" - Checks if your privacy policy - // references rights under LGPD for users in Brazil. - // "PRIVACY_POLICY_VIRGINIA_VCDPA_GENERAL_RULES" - Checks if your privacy - // policy references rights under VCDPA for users in Virginia. - // "PRIVACY_POLICY_AFFILIATION_MENTION" - Checks if your privacy policy - // identifies your company or app name(s). - // "PRIVACY_POLICY_RIGHT_TO_DELETE_NOTICE" - Checks if your privacy policy - // mentions your users' right to delete their data. - // "PRIVACY_POLICY_RIGHT_TO_ACCESS_NOTICE" - Checks if your privacy policy - // mentions your users' right to access the data held about them. - // "PRIVACY_POLICY_RIGHT_TO_RECTIFICATION_NOTICE" - Checks if your privacy - // policy mentions your users' right to correct inaccuracies within their data. - // "PRIVACY_POLICY_RIGHT_TO_KNOW_ABOUT_SELLING_NOTICE" - Checks if your - // privacy policy mentions your users' right to know about information selling. - // "PRIVACY_POLICY_RIGHT_TO_KNOW_ABOUT_SHARING_NOTICE" - Checks if your - // privacy policy mentions your users' right to know about information sharing. - // "PRIVACY_POLICY_RIGHT_TO_OPT_OUT_FROM_SELLING_NOTICE" - Checks if your - // privacy policy mentions your users' right to opt out from information - // selling. - // "PRIVACY_POLICY_METHOD_TO_OPT_OUT_FROM_SELLING_OR_SHARING_NOTICE" - Checks - // if your privacy policy explains how your users opt out from the selling or - // sharing of their data. - // "PRIVACY_POLICY_DATA_CONTROLLER_IDENTITY" - Checks if your privacy policy - // provides the name and contact information for your data controller. - // "PRIVACY_POLICY_DPO_CONTACT_DETAILS" - Checks if your privacy policy - // provides the name and contact information for your Data Protection Officer. - // "PRIVACY_POLICY_RIGHT_TO_LODGE_A_COMPLAINT" - Checks if your privacy - // policy mentions your users' right to lodge a complaint with a supervisory - // authority. - // "PRIVACY_POLICY_LEGAL_BASIS" - Checks if your privacy policy mentions the - // legal basis you rely on for processing your users' data. - // "PRIVACY_POLICY_CHILDREN_INFO_COLLECTION" - Checks if your privacy policy - // mentions what personal information is collected from children. - // "PRIVACY_POLICY_CHILDREN_INFO_USAGE_PURPOSES" - Checks if your privacy - // policy mentions why you collect personal information from children. - // "PRIVACY_POLICY_CHILDREN_INFO_DISCLOSURE_PRACTICES" - Checks if your - // privacy policy mentions what personal information from children is shared - // with third parties. - // "PRIVACY_POLICY_CHILDREN_INFO_PUBLICITY" - Checks if your privacy policy - // mentions whether your app allows children to make their personal information - // publicly available. - // "PRIVACY_POLICY_PARENTS_METHOD_OF_INFO_DELETION" - Checks if your privacy - // policy mentions how parents/caregivers/guardians can request the deletion of - // their child's personal information. - // "PRIVACY_POLICY_PARENTS_METHOD_TO_INFO_REVIEW" - Checks if your privacy - // policy mentions how parents/caregivers/guardians can review their child's - // personal information. - // "PRIVACY_POLICY_PARENTS_METHOD_TO_STOP_FURTHER_INFO_COLLECTION_USE" - - // Checks if your privacy policy explains how a parent/caregiver/guardian can - // stop the collection/use from their child's personal information. - // "PRIVACY_POLICY_PARENTS_RIGHT_TO_INFO_DELETION" - Checks if your privacy - // policy mentions the right of a parent/caregiver/guardian to request the - // deletion of their child's personal information. - // "PRIVACY_POLICY_PARENTS_RIGHT_TO_INFO_REVIEW" - Checks if your privacy - // policy mentions the right of a parent/caregiver/guardian to review their - // child's personal information. - // "PRIVACY_POLICY_PARENTS_RIGHT_TO_STOP_FURTHER_INFO_COLLECTION_USE" - - // Checks if your privacy policy mentions the right of a - // parent/caregiver/guardian to stop collection/use from their child's personal - // information. - // "PRIVACY_POLICY_PSL_APPROXIMATE_LOCATION" - Checks if your privacy policy - // mentions collection of your users' approximate location if this data type is - // declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_PRECISE_LOCATION" - Checks if your privacy policy - // mentions collection of your users' precise location if this data type is - // declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_NAME" - Checks if your privacy policy mentions - // collection of your users' personal names if this data type is declared in - // your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_EMAIL_ADDRESS" - Checks if your privacy policy - // mentions collection of your users' email addresses if this data type is - // declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_USER_IDENTIFIERS" - Checks if your privacy policy - // mentions collection of your users' user IDs if this data type is declared in - // your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_ADDRESS" - Checks if your privacy policy mentions - // collection of your users' physical addresses if this data type is declared - // in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_PHONE_NUMBER" - Checks if your privacy policy mentions - // collection of your users' phone numbers if this data type is declared in - // your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_RACE_AND_ETHNICITY" - Checks if your privacy policy - // mentions collection of your users' race or ethnicity if this data type is - // declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_CREDIT_SCORE" - Checks if your privacy policy mentions - // collection of your users' credit score if this data type is declared in your - // Play Data Safety Section. - // "PRIVACY_POLICY_PSL_PURCHASE_HISTORY" - Checks if your privacy policy - // mentions collection of your users' purchase history if this data type is - // declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_HEALTH_INFO" - Checks if your privacy policy mentions - // collection of your users' health info if this data type is declared in your - // Play Data Safety Section. - // "PRIVACY_POLICY_PSL_FITNESS_INFO" - Checks if your privacy policy mentions - // collection of your users' fitness info if this data type is declared in your - // Play Data Safety Section. - // "PRIVACY_POLICY_PSL_EMAIL_MESSAGES" - Checks if your privacy policy - // mentions collection of your users' emails if this data type is declared in - // your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_TEXT_MESSAGES" - Checks if your privacy policy - // mentions collection of your users' text messages if this data type is - // declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_PHOTOS" - Checks if your privacy policy mentions - // collection of your users' photos if this data type is declared in your Play - // Data Safety Section. - // "PRIVACY_POLICY_PSL_VIDEOS" - Checks if your privacy policy mentions - // collection of your users' videos if this data type is declared in your Play - // Data Safety Section. - // "PRIVACY_POLICY_PSL_MUSIC_FILES" - Checks if your privacy policy mentions - // collection of your users' music files if this data type is declared in your - // Play Data Safety Section. - // "PRIVACY_POLICY_PSL_VOICE_OR_SOUND_RECORDINGS" - Checks if your privacy - // policy mentions collection of your users' voice or sound recordings if this - // data type is declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_FILES_AND_DOCS" - Checks if your privacy policy - // mentions collection of your users' files or documents if this data type is - // declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_CALENDAR_EVENTS" - Checks if your privacy policy - // mentions collection of your users' calendar events if this data type is - // declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_CONTACTS" - Checks if your privacy policy mentions - // collection of your users' contacts if this data type is declared in your - // Play Data Safety Section. - // "PRIVACY_POLICY_PSL_APP_INTERACTIONS" - Checks if your privacy policy - // mentions collection of your users' app interactions if this data type is - // declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_IN_APP_SEARCH_HISTORY" - Checks if your privacy policy - // mentions collection of your users' in-app search history if this data type - // is declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_WEB_BROWSING_HISTORY" - Checks if your privacy policy - // mentions collection of your users' web browsing history if this data type is - // declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_INSTALLED_APPS" - Checks if your privacy policy - // mentions collection of your users' installed apps if this data type is - // declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_CRASH_LOGS" - Checks if your privacy policy mentions - // collection of your users' crash logs if this data type is declared in your - // Play Data Safety Section. - // "PRIVACY_POLICY_PSL_DIAGNOSTICS" - Checks if your privacy policy mentions - // collection of your users' performance diagnostics if this data type is - // declared in your Play Data Safety Section. - // "PRIVACY_POLICY_PSL_DEVICE_OR_OTHER_IDS" - Checks if your privacy policy - // mentions collection of your users' device or other IDs if this data type is - // declared in your Play Data Safety Section. - // "DATA_MONITORING_NEW_ENDPOINT" - Checks if there is a new endpoint we've - // recently detected. Because this check accounts for flakiness, it may fail - // for several weeks even if the endpoint is not detected in the current - // report. - // "DATA_MONITORING_NEW_PERMISSION" - Checks if there is a new permission - // we've recently detected. Because this check accounts for flakiness, it may - // fail for several weeks even if the permission is not detected in the current - // report. - // "DATA_MONITORING_NEW_DATA_TYPE" - Checks if there is a new data type we've - // recently detected. Because this check accounts for flakiness, it may fail - // for several weeks even if the data type is not detected in the current - // report. - // "DATA_MONITORING_NEW_SDK" - Checks if there is a new SDK we've recently - // detected. Because this check accounts for flakiness, it may fail for several - // weeks even if the SDK is not detected in the current report. - // "DATA_MONITORING_ENCRYPTION" - Checks if there is any endpoint contacted - // using HTTP protocol instead of HTTPS. If no protocol is found in the URL, - // the endpoint is not considered for analysis. - // "DATA_MONITORING_NEW_DATA_TYPE_VERSION_DIFF" - Checks if new data types - // have been detected since a specific app version. - // "DATA_MONITORING_NEW_ENDPOINT_VERSION_DIFF" - Checks if new endpoints have - // been detected since a specific app version. - // "DATA_MONITORING_NEW_PERMISSION_VERSION_DIFF" - Checks if new permissions - // have been detected since a specific app version. - // "DATA_MONITORING_NEW_SDK_VERSION_DIFF" - Checks if new SDKs have been - // detected since a specific app version. - // "DATA_MONITORING_SDKS_DENYLIST_VIOLATION" - Checks if any SDKs were - // detected that are specified in the denylist. - // "DATA_MONITORING_PERMISSIONS_DENYLIST_VIOLATION" - Checks if any - // permissions were detected that are specified in the denylist. - // "DATA_MONITORING_ENDPOINTS_DENYLIST_VIOLATION" - Checks if any endpoints - // were detected that are specified in the denylist. - // "DATA_MONITORING_OUTDATED_SDK_VERSION" - Checks if there are any outdated - // SDKs. - // "DATA_MONITORING_CRITICAL_SDK_ISSUE" - Checks if there are any SDKs with - // critical issues. - // "PRIVACY_POLICY_DATA_TYPE_SENSITIVE_INFO" - Checks if the Sensitive - // Information data type declaration matches usage. - // "DATA_MONITORING_PII_LOGCAT_LEAK" - Checks if there were any PII leaked to - // device logs. - // "DATA_MONITORING_MINIMIZE_PERMISSION_MEDIA" - Checks if there are media - // (photo and video) permissions that are considered sensitive and should be - // minimized for Android. - // "DATA_MONITORING_MINIMIZE_PERMISSION_CAMERA" - Checks if there are camera - // use permissions that are considered sensitive and should be minimized for - // Android. - // "DATA_MONITORING_MINIMIZE_PERMISSION_DOCUMENTS" - Checks if there are - // documents and file permissions that are considered sensitive and should be - // minimized for Android. - Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Citations") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Citations") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleChecksReportV1alphaCheck) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheck - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleChecksReportV1alphaCheckCitation: Regulation or policy that serves as -// the legal basis for the check. -type GoogleChecksReportV1alphaCheckCitation struct { - // Type: Citation type. - // - // Possible values: - // "CITATION_TYPE_UNSPECIFIED" - Not specified. - // "COPPA" - Children's Online Privacy Protection Act. - // "GDPR" - General Data Protection Regulation. - // "FERPA" - Family Educational Rights and Privacy Act. - // "CAL_OPPA" - The California Online Privacy Protection Act. - // "CCPA" - California Consumer Privacy Act. - // "SOPIPA" - Student Online Personal Information Protection Act. - // "LGPD" - Lei Geral de Proteção de Dados. - // "CPRA" - California Consumer Privacy Act. - // "VCDPA" - Virginia Consumer Data Protection Act. - // "GOOGLE_PLAY_POLICY" - Google Play Policy. - // "APP_STORE_POLICY" - App Store Policy. - // "CPA" - Colorado Privacy Act. - // "CTDPA" - Connecticut Data Privacy Act. - // "UCPA" - Utah Consumer Privacy Act. - // "PIPEDA" - Personal Information Protection and Electronic Documents Act. - // "ALBERTA_PIPA" - Alberta (Canada) Personal Information Protection Act. - // "QUEBEC_ACT" - Quebec: Act Respecting the Protection of Personal - // Information in the Private Sector. - // "QUEBEC_BILL_64" - Quebec Bill 64: An Act to Modernize Legislative - // Provisions as Regards the Protection of Personal Information. - // "CHINA_PIPL" - China Personal Information Protection Law. - // "SOUTH_KOREA_PIPA" - South Korea Personal Information Protection Act. - // "SOUTH_AFRICA_POPIA" - South Africa Protection of Personal Information - // Act. - // "JAPAN_APPI" - Japan Act on the Protection of Personal Information. - // "INDIA_DPDPA" - India: The Digital Personal Data Protection Act, 2023. - // "OCPA" - Oregon Consumer Privacy Act. - // "TDPSA" - Texas Data Privacy and Security Act. - // "MCDPA" - Montana Consumer Data Privacy Act. - Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Type") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Type") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleChecksReportV1alphaCheckCitation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckCitation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleChecksReportV1alphaCheckDataSecurityEvidence: Evidence concerning data -// security. -type GoogleChecksReportV1alphaCheckDataSecurityEvidence struct { - // DataInTransitInfo: Evidence related to data in transit. - DataInTransitInfo []*GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo `json:"dataInTransitInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataInTransitInfo") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DataInTransitInfo") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleChecksReportV1alphaCheckDataSecurityEvidence) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckDataSecurityEvidence - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo: -// Evidence related to data in transit detected in your app. -type GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo struct { - // Uri: The URL contacted by your app. This includes the protocol, domain, and - // URL parameters. - Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Uri") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleChecksReportV1alphaCheckDataTypeEvidence: Evidence concerning a data -// type that was found in your app. -type GoogleChecksReportV1alphaCheckDataTypeEvidence struct { - // DataType: The data type that was found in your app. +// GoogleChecksRepoScanV1alphaCodeScan: A requested analysis of source code. +// Contains the source code and processing state. +type GoogleChecksRepoScanV1alphaCodeScan struct { + // DataTypeClassifications: Optional. Data type classification requests. + DataTypeClassifications []*GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification `json:"dataTypeClassifications,omitempty"` + // SourceCode: Required. Source code to analyze. + SourceCode *GoogleChecksRepoScanV1alphaSourceCode `json:"sourceCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataTypeClassifications") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataTypeClassifications") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksRepoScanV1alphaCodeScan) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksRepoScanV1alphaCodeScan + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification: A request to +// classify data types. +type GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification struct { + // DataType: Required. Candidate data type. // // Possible values: // "DATA_TYPE_UNSPECIFIED" - Not specified. @@ -1110,8 +741,8 @@ type GoogleChecksReportV1alphaCheckDataTypeEvidence struct { // device, browser or app. For example, an IMEI number, MAC address, Widevine // Device ID, Firebase installation ID, or advertising identifier. DataType string `json:"dataType,omitempty"` - // DataTypeEvidence: Evidence collected about the data type. - DataTypeEvidence *GoogleChecksReportV1alphaDataTypeEvidence `json:"dataTypeEvidence,omitempty"` + // LineNumber: Required. Line number (1-based). + LineNumber int64 `json:"lineNumber,omitempty"` // ForceSendFields is a list of field names (e.g. "DataType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1125,283 +756,1129 @@ type GoogleChecksReportV1alphaCheckDataTypeEvidence struct { NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaCheckDataTypeEvidence) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckDataTypeEvidence +func (s GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaCheckEndpointEvidence: Evidence concerning an -// endpoint that was contacted by your app. -type GoogleChecksReportV1alphaCheckEndpointEvidence struct { - // Endpoint: The endpoint that was contacted by your app. - Endpoint *GoogleChecksReportV1alphaEndpoint `json:"endpoint,omitempty"` - // ForceSendFields is a list of field names (e.g. "Endpoint") to +// GoogleChecksRepoScanV1alphaGenerateScanRequest: The request message for +// RepoScanService.GenerateScan. +type GoogleChecksRepoScanV1alphaGenerateScanRequest struct { + // CliAnalysis: Required. CLI analysis results. + CliAnalysis *GoogleChecksRepoScanV1alphaCliAnalysis `json:"cliAnalysis,omitempty"` + // CliVersion: Required. CLI version. + CliVersion string `json:"cliVersion,omitempty"` + // LocalScanPath: Required. Local scan path. + LocalScanPath string `json:"localScanPath,omitempty"` + // ScmMetadata: Required. SCM metadata. + ScmMetadata *GoogleChecksRepoScanV1alphaScmMetadata `json:"scmMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. "CliAnalysis") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Endpoint") to include in API + // NullFields is a list of field names (e.g. "CliAnalysis") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaCheckEndpointEvidence) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckEndpointEvidence +func (s GoogleChecksRepoScanV1alphaGenerateScanRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksRepoScanV1alphaGenerateScanRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence: Evidence -// collected from endpoint restriction violation analysis. -type GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence struct { - // EndpointDetails: Endpoints in violation. - EndpointDetails []*GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDetails `json:"endpointDetails,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndpointDetails") to +// GoogleChecksRepoScanV1alphaListRepoScansResponse: The response message for +// RepoScanService.ListRepoScans. +type GoogleChecksRepoScanV1alphaListRepoScansResponse struct { + // NextPageToken: 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 `json:"nextPageToken,omitempty"` + // RepoScans: The repo scans for the specified app. + RepoScans []*GoogleChecksRepoScanV1alphaRepoScan `json:"repoScans,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EndpointDetails") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence +func (s GoogleChecksRepoScanV1alphaListRepoScansResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksRepoScanV1alphaListRepoScansResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDet -// ails: Details of the endpoint in violation. -type GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDetails struct { - // Endpoint: The endpoint in violation. - Endpoint *GoogleChecksReportV1alphaEndpoint `json:"endpoint,omitempty"` - // ForceSendFields is a list of field names (e.g. "Endpoint") to +// GoogleChecksRepoScanV1alphaPullRequest: Pull request info. +type GoogleChecksRepoScanV1alphaPullRequest struct { + // BaseBranch: Required. For PR analysis, we compare against the most recent + // scan of the base branch to highlight new issues. + BaseBranch string `json:"baseBranch,omitempty"` + // PrNumber: Required. This can be supplied by the user or parsed automatically + // from predefined CI environment variables. + PrNumber string `json:"prNumber,omitempty"` + // ForceSendFields is a list of field names (e.g. "BaseBranch") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Endpoint") to include in API + // NullFields is a list of field names (e.g. "BaseBranch") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDetails) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDetails +func (s GoogleChecksRepoScanV1alphaPullRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksRepoScanV1alphaPullRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaCheckEvidence: Evidence for a check. -type GoogleChecksReportV1alphaCheckEvidence struct { - // DataSecurity: Evidence concerning data security. - DataSecurity *GoogleChecksReportV1alphaCheckDataSecurityEvidence `json:"dataSecurity,omitempty"` - // DataTypes: Evidence concerning data types found in your app. - DataTypes []*GoogleChecksReportV1alphaCheckDataTypeEvidence `json:"dataTypes,omitempty"` - // EndpointRestrictionViolations: Evidence collected from endpoint restriction - // violation analysis. - EndpointRestrictionViolations []*GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence `json:"endpointRestrictionViolations,omitempty"` - // Endpoints: Evidence concerning endpoints that were contacted by your app. - Endpoints []*GoogleChecksReportV1alphaCheckEndpointEvidence `json:"endpoints,omitempty"` - // PermissionRestrictionViolations: Evidence collected from permission - // restriction violation analysis. - PermissionRestrictionViolations []*GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence `json:"permissionRestrictionViolations,omitempty"` - // Permissions: Evidence concerning permissions that were found in your app. - Permissions []*GoogleChecksReportV1alphaCheckPermissionEvidence `json:"permissions,omitempty"` - // PrivacyPolicyTexts: Evidence collected from your privacy policy(s). - PrivacyPolicyTexts []*GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence `json:"privacyPolicyTexts,omitempty"` - // SdkIssues: Evidence concerning SDK issues. - SdkIssues []*GoogleChecksReportV1alphaCheckSdkIssueEvidence `json:"sdkIssues,omitempty"` - // SdkRestrictionViolations: Evidence collected from SDK restriction violation - // analysis. - SdkRestrictionViolations []*GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence `json:"sdkRestrictionViolations,omitempty"` - // Sdks: Evidence concerning SDKs that were found in your app. - Sdks []*GoogleChecksReportV1alphaCheckSdkEvidence `json:"sdks,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataSecurity") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DataSecurity") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleChecksReportV1alphaCheckEvidence) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckEvidence - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} +// GoogleChecksRepoScanV1alphaRepoScan: Repo scan. +type GoogleChecksRepoScanV1alphaRepoScan struct { + // CliVersion: CLI version. + CliVersion string `json:"cliVersion,omitempty"` + // LocalScanPath: Local scan path. + LocalScanPath string `json:"localScanPath,omitempty"` + // Name: Identifier. Resource name of the scan. + Name string `json:"name,omitempty"` + // ResultsUri: A URL to view results. + ResultsUri string `json:"resultsUri,omitempty"` + // ScmMetadata: SCM metadata. + ScmMetadata *GoogleChecksRepoScanV1alphaScmMetadata `json:"scmMetadata,omitempty"` + // Sources: Data sources detected. + Sources []*GoogleChecksRepoScanV1alphaSource `json:"sources,omitempty"` -// GoogleChecksReportV1alphaCheckPermissionEvidence: Evidence concerning a -// permission that was found in your app. -type GoogleChecksReportV1alphaCheckPermissionEvidence struct { - // Permission: The permission that was found in your app. - Permission *GoogleChecksReportV1alphaPermission `json:"permission,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permission") to + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CliVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Permission") to include in API + // NullFields is a list of field names (e.g. "CliVersion") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaCheckPermissionEvidence) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckPermissionEvidence - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence: -// Evidence collected from permission restriction violation analysis. -type GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence struct { - // PermissionDetails: Permissions in violation. - PermissionDetails []*GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissionDetails `json:"permissionDetails,omitempty"` - // ForceSendFields is a list of field names (e.g. "PermissionDetails") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PermissionDetails") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence +func (s GoogleChecksRepoScanV1alphaRepoScan) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksRepoScanV1alphaRepoScan return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissio -// nDetails: Details of the permission in violation. -type GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissionDetails struct { - // Permission: The permission in violation. - Permission *GoogleChecksReportV1alphaPermission `json:"permission,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permission") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// GoogleChecksRepoScanV1alphaScmMetadata: SCM metadata. +type GoogleChecksRepoScanV1alphaScmMetadata struct { + // Branch: Required. Branch name. + Branch string `json:"branch,omitempty"` + // PullRequest: Optional. Contains info about the associated pull request. This + // is only populated for pull request scans. + PullRequest *GoogleChecksRepoScanV1alphaPullRequest `json:"pullRequest,omitempty"` + // RemoteUri: Required. Git remote URL. + RemoteUri string `json:"remoteUri,omitempty"` + // RevisionId: Required. Revision ID, e.g. Git commit hash. + RevisionId string `json:"revisionId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Branch") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Permission") to include in API + // NullFields is a list of field names (e.g. "Branch") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissionDetails) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissionDetails +func (s GoogleChecksRepoScanV1alphaScmMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksRepoScanV1alphaScmMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence: Evidence collected -// from your privacy policy(s). -type GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence struct { - // PolicyFragment: The privacy policy fragment that was used during the check. - PolicyFragment *GoogleChecksReportV1alphaPolicyFragment `json:"policyFragment,omitempty"` - // ForceSendFields is a list of field names (e.g. "PolicyFragment") to +// GoogleChecksRepoScanV1alphaSource: Represents a data source finding. +type GoogleChecksRepoScanV1alphaSource struct { + // CodeAttribution: Optional. Source code attribution for the finding. + CodeAttribution *GoogleChecksRepoScanV1alphaCodeAttribution `json:"codeAttribution,omitempty"` + // DataType: Required. Data type. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" - Not specified. + // "DATA_TYPE_APPROXIMATE_LOCATION" - User or device physical location to an + // area greater than or equal to 3 square kilometers, such as the city a user + // is in, or location provided by Android's ACCESS_COARSE_LOCATION permission. + // "DATA_TYPE_PRECISE_LOCATION" - User or device physical location within an + // area less than 3 square kilometers, such as location provided by Android's + // ACCESS_FINE_LOCATION permission. + // "DATA_TYPE_PERSONAL_NAME" - How a user refers to themselves, such as their + // first or last name, or nickname. + // "DATA_TYPE_EMAIL_ADDRESS" - A user's email address. + // "DATA_TYPE_USER_IDS" - Identifiers that relate to an identifiable person. + // For example, an account ID, account number, or account name. + // "DATA_TYPE_PHYSICAL_ADDRESS" - A user's address, such as a mailing or home + // address. + // "DATA_TYPE_PHONE_NUMBER" - A user's phone number. + // "DATA_TYPE_RACE_AND_ETHNICITY" - Information about a user's race or + // ethnicity. + // "DATA_TYPE_POLITICAL_OR_RELIGIOUS_BELIEFS" - Information about a user's + // political or religious beliefs. + // "DATA_TYPE_SEXUAL_ORIENTATION" - Information about a user's sexual + // orientation. + // "DATA_TYPE_OTHER_PERSONAL_INFO" - Any other personal information such as + // date of birth, gender identity, veteran status, etc. + // "DATA_TYPE_PAYMENT_INFO" - Information about a user's financial accounts + // such as credit card number. + // "DATA_TYPE_PURCHASE_HISTORY" - Information about purchases or transactions + // a user has made. + // "DATA_TYPE_CREDIT_SCORE" - Information about a user's credit score. + // "DATA_TYPE_OTHER_FINANCIAL_INFO" - Any other financial information such as + // user salary or debts. + // "DATA_TYPE_HEALTH_INFO" - Information about a user's health, such as + // medical records or symptoms. + // "DATA_TYPE_FITNESS_INFO" - Information about a user's fitness, such as + // exercise or other physical activity. + // "DATA_TYPE_EMAILS" - A user's emails including the email subject line, + // sender, recipients, and the content of the email. + // "DATA_TYPE_TEXT_MESSAGES" - A user's text messages including the sender, + // recipients, and the content of the message. + // "DATA_TYPE_OTHER_IN_APP_MESSAGES" - Any other types of messages. For + // example, instant messages or chat content. + // "DATA_TYPE_PHOTOS" - A user's photos. + // "DATA_TYPE_VIDEOS" - A user's videos. + // "DATA_TYPE_VOICE_OR_SOUND_RECORDINGS" - A user's voice such as a voicemail + // or a sound recording. + // "DATA_TYPE_MUSIC_FILES" - A user's music files. + // "DATA_TYPE_OTHER_AUDIO_FILES" - Any other user-created or user-provided + // audio files. + // "DATA_TYPE_FILES_AND_DOCS" - A user's files or documents, or information + // about their files or documents such as file names. + // "DATA_TYPE_CALENDAR_EVENTS" - Information from a user's calendar such as + // events, event notes, and attendees. + // "DATA_TYPE_CONTACTS" - Information about the user’s contacts such as + // contact names, message history, and social graph information like usernames, + // contact recency, contact frequency, interaction duration and call history. + // "DATA_TYPE_APP_INTERACTIONS" - Information about how a user interacts with + // your app, such as the number of page views or taps. + // "DATA_TYPE_IN_APP_SEARCH_HISTORY" - Information about what a user has + // searched for in your app. + // "DATA_TYPE_INSTALLED_APPS" - Inventory of apps or packages installed on + // the user’s device. + // "DATA_TYPE_OTHER_USER_GENERATED_CONTENT" - Any other user-generated + // content not listed here, or in any other section. For example, user bios, + // notes, or open-ended responses. + // "DATA_TYPE_OTHER_ACTIONS" - Any other user activity or actions in-app not + // listed here such as gameplay, likes, and dialog options. + // "DATA_TYPE_WEB_BROWSING_HISTORY" - Information about the websites a user + // has visited. + // "DATA_TYPE_CRASH_LOGS" - Crash log data from your app. For example, the + // number of times your app has crashed, stack traces, or other information + // directly related to a crash. + // "DATA_TYPE_PERFORMANCE_DIAGNOSTICS" - Information about the performance of + // your app. For example battery life, loading time, latency, framerate, or any + // technical diagnostics. + // "DATA_TYPE_OTHER_APP_PERFORMANCE_DATA" - Any other app performance data + // not listed here. + // "DATA_TYPE_DEVICE_OR_OTHER_IDS" - Identifiers that relate to an individual + // device, browser or app. For example, an IMEI number, MAC address, Widevine + // Device ID, Firebase installation ID, or advertising identifier. + DataType string `json:"dataType,omitempty"` + // ForceSendFields is a list of field names (e.g. "CodeAttribution") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PolicyFragment") to include in + // NullFields is a list of field names (e.g. "CodeAttribution") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence +func (s GoogleChecksRepoScanV1alphaSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksRepoScanV1alphaSource return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaCheckSdkEvidence: Evidence conerning an SDK that -// was found in your app. -type GoogleChecksReportV1alphaCheckSdkEvidence struct { - // Sdk: The SDK that was found in your app. - Sdk *GoogleChecksReportV1alphaSdk `json:"sdk,omitempty"` - // ForceSendFields is a list of field names (e.g. "Sdk") to unconditionally +// GoogleChecksRepoScanV1alphaSourceCode: Contains source code from a repo. +type GoogleChecksRepoScanV1alphaSourceCode struct { + // Code: Required. Source code. + Code string `json:"code,omitempty"` + // EndLine: Required. End line number (1-based). + EndLine int64 `json:"endLine,omitempty"` + // Path: Required. Path of the file. + Path string `json:"path,omitempty"` + // StartLine: Required. Start line number (1-based). + StartLine int64 `json:"startLine,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Sdk") to include in API requests + // NullFields is a list of field names (e.g. "Code") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaCheckSdkEvidence) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckSdkEvidence +func (s GoogleChecksRepoScanV1alphaSourceCode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksRepoScanV1alphaSourceCode return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaCheckSdkIssueEvidence: Evidence concerning an SDK -// issue. -type GoogleChecksReportV1alphaCheckSdkIssueEvidence struct { - // Sdk: The SDK with an issue. - Sdk *GoogleChecksReportV1alphaSdk `json:"sdk,omitempty"` - // SdkVersion: The SDK version. - SdkVersion string `json:"sdkVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "Sdk") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// GoogleChecksReportV1alphaAnalyzeUploadRequest: The request message for +// ReportService.AnalyzeUpload. +type GoogleChecksReportV1alphaAnalyzeUploadRequest struct { + // AppBinaryFileType: Optional. The type of the uploaded app binary. If not + // provided, the server assumes APK file for Android and IPA file for iOS. + // + // Possible values: + // "APP_BINARY_FILE_TYPE_UNSPECIFIED" - Not specified. + // "ANDROID_APK" - .apk file type. + // "ANDROID_AAB" - .aab (app bundle) file type. + // "IOS_IPA" - .ipa file type. + AppBinaryFileType string `json:"appBinaryFileType,omitempty"` + // CodeReferenceId: Optional. Git commit hash or changelist number associated + // with the upload. + CodeReferenceId string `json:"codeReferenceId,omitempty"` + // ForceSendFields is a list of field names (e.g. "AppBinaryFileType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Sdk") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "AppBinaryFileType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaCheckSdkIssueEvidence) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckSdkIssueEvidence +func (s GoogleChecksReportV1alphaAnalyzeUploadRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaAnalyzeUploadRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence: Evidence -// collected from SDK restriction violation analysis. -type GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence struct { - // SdkDetails: SDKs in violation. - SdkDetails []*GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidenceSdkDetails `json:"sdkDetails,omitempty"` - // ForceSendFields is a list of field names (e.g. "SdkDetails") to +// GoogleChecksReportV1alphaAppBundle: Information about the analyzed app +// bundle. +type GoogleChecksReportV1alphaAppBundle struct { + // BundleId: Unique id of the bundle. For example: "com.google.Gmail". + BundleId string `json:"bundleId,omitempty"` + // CodeReferenceId: Git commit hash or changelist number associated with the + // release. + CodeReferenceId string `json:"codeReferenceId,omitempty"` + // ReleaseType: Identifies the type of release. + // + // Possible values: + // "APP_BUNDLE_RELEASE_TYPE_UNSPECIFIED" - Not specified. + // "PUBLIC" - Published production bundle. + // "PRE_RELEASE" - Pre-release bundle. + ReleaseType string `json:"releaseType,omitempty"` + // Version: The user-visible version of the bundle such as the Android + // `versionName` or iOS `CFBundleShortVersionString`. For example: "7.21.1". + Version string `json:"version,omitempty"` + // VersionId: The version used throughout the operating system and store to + // identify the build such as the Android `versionCode` or iOS + // `CFBundleVersion`. + VersionId string `json:"versionId,omitempty"` + // ForceSendFields is a list of field names (e.g. "BundleId") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SdkDetails") to include in API + // NullFields is a list of field names (e.g. "BundleId") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence +func (s GoogleChecksReportV1alphaAppBundle) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaAppBundle + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheck: A check that was run on your app. +type GoogleChecksReportV1alphaCheck struct { + // Citations: Regulations and policies that serve as the legal basis for the + // check. + Citations []*GoogleChecksReportV1alphaCheckCitation `json:"citations,omitempty"` + // Evidence: Evidence that substantiates the check result. + Evidence *GoogleChecksReportV1alphaCheckEvidence `json:"evidence,omitempty"` + // RegionCodes: Regions that are impacted by the check. For more info, see + // https://google.aip.dev/143#countries-and-regions. + RegionCodes []string `json:"regionCodes,omitempty"` + // Severity: The urgency or risk level of the check. + // + // Possible values: + // "CHECK_SEVERITY_UNSPECIFIED" - Not specified. + // "PRIORITY" - Important privacy issue. + // "POTENTIAL" - Potential privacy issue. + // "OPPORTUNITY" - Opportunity to improve privacy coverage. + Severity string `json:"severity,omitempty"` + // State: The result after running the check. + // + // Possible values: + // "CHECK_STATE_UNSPECIFIED" - Not specified. + // "PASSED" - The check passed. + // "FAILED" - The check failed. + // "UNCHECKED" - The check was not run. + State string `json:"state,omitempty"` + // StateMetadata: Additional information about the check state in relation to + // past reports. + StateMetadata *GoogleChecksReportV1alphaCheckStateMetadata `json:"stateMetadata,omitempty"` + // Type: The type of check that was run. A type will only appear once in a + // report's list of checks. + // + // Possible values: + // "CHECK_TYPE_UNSPECIFIED" - Not specified. + // "STORE_LISTING_PRIVACY_POLICY_LINK_PRESENT" - Checks that your store + // listing includes a working link to your privacy policy. + // "PRIVACY_POLICY_UPDATE_DATE_RECENT" - Checks that your privacy policy has + // been updated recently. + // "PRIVACY_POLICY_GDPR_GENERAL_RULES" - Checks if your privacy policy + // references rights under GDPR for users in the EU. + // "PRIVACY_POLICY_CCPA_GENERAL_RULES" - Checks if your privacy policy + // references rights under the CCPA. + // "PRIVACY_POLICY_COLLECTION_CATEGORIES_DATA_NOTICE" - Checks if your + // privacy policy mentions the categories of personal data that are collected. + // "PRIVACY_POLICY_PROCESSING_PURPOSE_DATA_NOTICE" - Checks if your privacy + // policy explains why personal data is processed. + // "PRIVACY_POLICY_SHARING_CATEGORIES_DATA_NOTICE" - Checks if your privacy + // policy includes information about third-party sharing of personal data. + // "PRIVACY_POLICY_DATA_RETENTION_NOTICE" - Checks if your privacy policy + // describes your data retention practices. + // "PRIVACY_POLICY_CONTACT_DETAILS_NOTICE" - Checks if contact information is + // included in your privacy policy. + // "PRIVACY_POLICY_CHILDREN_GENERAL_RULES" - Checks if information about + // requirements related to children is included in your privacy policy. + // "PRIVACY_POLICY_DATA_TYPE_PHONE_NUMBER" - Checks if the Phone Number data + // type declaration in your privacy policy matches usage. + // "PRIVACY_POLICY_DATA_TYPE_USER_ACCOUNT_INFO" - Checks if the User Account + // Info data type declaration in your privacy policy matches usage. + // "PRIVACY_POLICY_DATA_TYPE_PRECISE_LOCATION" - Checks if the Precise + // Location data type declaration in your privacy policy matches usage. + // "PRIVACY_POLICY_DATA_TYPE_DEVICE_ID" - Checks if the Device ID data type + // declaration in your privacy policy matches usage. + // "PRIVACY_POLICY_DATA_TYPE_APPS_ON_DEVICE" - Checks if the Apps on Device + // data type declaration in your privacy policy matches usage. + // "PRIVACY_POLICY_DATA_TYPE_CONTACTS" - Checks if the Contacts data type + // declaration in your privacy policy matches usage. + // "PRIVACY_POLICY_DATA_TYPE_TEXT_MESSAGES" - Checks if the Text Messages + // data type declaration in your privacy policy matches usage. + // "PRIVACY_POLICY_DATA_TYPE_PII" - Checks if the PII data type declaration + // in your privacy policy matches usage. + // "PRIVACY_POLICY_DATA_TYPE_PII_CATEGORIES" - Checks if the PII Categories + // data type declaration in your privacy policy matches usage. + // "PRIVACY_POLICY_DATA_TYPE_HEALTH_AND_BIOMETRIC" - Checks if the Health and + // Biometric data type declaration in your privacy policy matches usage. + // "PRIVACY_POLICY_BRAZIL_LGPD_GENERAL_RULES" - Checks if your privacy policy + // references rights under LGPD for users in Brazil. + // "PRIVACY_POLICY_VIRGINIA_VCDPA_GENERAL_RULES" - Checks if your privacy + // policy references rights under VCDPA for users in Virginia. + // "PRIVACY_POLICY_AFFILIATION_MENTION" - Checks if your privacy policy + // identifies your company or app name(s). + // "PRIVACY_POLICY_RIGHT_TO_DELETE_NOTICE" - Checks if your privacy policy + // mentions your users' right to delete their data. + // "PRIVACY_POLICY_RIGHT_TO_ACCESS_NOTICE" - Checks if your privacy policy + // mentions your users' right to access the data held about them. + // "PRIVACY_POLICY_RIGHT_TO_RECTIFICATION_NOTICE" - Checks if your privacy + // policy mentions your users' right to correct inaccuracies within their data. + // "PRIVACY_POLICY_RIGHT_TO_KNOW_ABOUT_SELLING_NOTICE" - Checks if your + // privacy policy mentions your users' right to know about information selling. + // "PRIVACY_POLICY_RIGHT_TO_KNOW_ABOUT_SHARING_NOTICE" - Checks if your + // privacy policy mentions your users' right to know about information sharing. + // "PRIVACY_POLICY_RIGHT_TO_OPT_OUT_FROM_SELLING_NOTICE" - Checks if your + // privacy policy mentions your users' right to opt out from information + // selling. + // "PRIVACY_POLICY_METHOD_TO_OPT_OUT_FROM_SELLING_OR_SHARING_NOTICE" - Checks + // if your privacy policy explains how your users opt out from the selling or + // sharing of their data. + // "PRIVACY_POLICY_DATA_CONTROLLER_IDENTITY" - Checks if your privacy policy + // provides the name and contact information for your data controller. + // "PRIVACY_POLICY_DPO_CONTACT_DETAILS" - Checks if your privacy policy + // provides the name and contact information for your Data Protection Officer. + // "PRIVACY_POLICY_RIGHT_TO_LODGE_A_COMPLAINT" - Checks if your privacy + // policy mentions your users' right to lodge a complaint with a supervisory + // authority. + // "PRIVACY_POLICY_LEGAL_BASIS" - Checks if your privacy policy mentions the + // legal basis you rely on for processing your users' data. + // "PRIVACY_POLICY_CHILDREN_INFO_COLLECTION" - Checks if your privacy policy + // mentions what personal information is collected from children. + // "PRIVACY_POLICY_CHILDREN_INFO_USAGE_PURPOSES" - Checks if your privacy + // policy mentions why you collect personal information from children. + // "PRIVACY_POLICY_CHILDREN_INFO_DISCLOSURE_PRACTICES" - Checks if your + // privacy policy mentions what personal information from children is shared + // with third parties. + // "PRIVACY_POLICY_CHILDREN_INFO_PUBLICITY" - Checks if your privacy policy + // mentions whether your app allows children to make their personal information + // publicly available. + // "PRIVACY_POLICY_PARENTS_METHOD_OF_INFO_DELETION" - Checks if your privacy + // policy mentions how parents/caregivers/guardians can request the deletion of + // their child's personal information. + // "PRIVACY_POLICY_PARENTS_METHOD_TO_INFO_REVIEW" - Checks if your privacy + // policy mentions how parents/caregivers/guardians can review their child's + // personal information. + // "PRIVACY_POLICY_PARENTS_METHOD_TO_STOP_FURTHER_INFO_COLLECTION_USE" - + // Checks if your privacy policy explains how a parent/caregiver/guardian can + // stop the collection/use from their child's personal information. + // "PRIVACY_POLICY_PARENTS_RIGHT_TO_INFO_DELETION" - Checks if your privacy + // policy mentions the right of a parent/caregiver/guardian to request the + // deletion of their child's personal information. + // "PRIVACY_POLICY_PARENTS_RIGHT_TO_INFO_REVIEW" - Checks if your privacy + // policy mentions the right of a parent/caregiver/guardian to review their + // child's personal information. + // "PRIVACY_POLICY_PARENTS_RIGHT_TO_STOP_FURTHER_INFO_COLLECTION_USE" - + // Checks if your privacy policy mentions the right of a + // parent/caregiver/guardian to stop collection/use from their child's personal + // information. + // "PRIVACY_POLICY_PSL_APPROXIMATE_LOCATION" - Checks if your privacy policy + // mentions collection of your users' approximate location if this data type is + // declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_PRECISE_LOCATION" - Checks if your privacy policy + // mentions collection of your users' precise location if this data type is + // declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_NAME" - Checks if your privacy policy mentions + // collection of your users' personal names if this data type is declared in + // your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_EMAIL_ADDRESS" - Checks if your privacy policy + // mentions collection of your users' email addresses if this data type is + // declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_USER_IDENTIFIERS" - Checks if your privacy policy + // mentions collection of your users' user IDs if this data type is declared in + // your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_ADDRESS" - Checks if your privacy policy mentions + // collection of your users' physical addresses if this data type is declared + // in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_PHONE_NUMBER" - Checks if your privacy policy mentions + // collection of your users' phone numbers if this data type is declared in + // your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_RACE_AND_ETHNICITY" - Checks if your privacy policy + // mentions collection of your users' race or ethnicity if this data type is + // declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_CREDIT_SCORE" - Checks if your privacy policy mentions + // collection of your users' credit score if this data type is declared in your + // Play Data Safety Section. + // "PRIVACY_POLICY_PSL_PURCHASE_HISTORY" - Checks if your privacy policy + // mentions collection of your users' purchase history if this data type is + // declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_HEALTH_INFO" - Checks if your privacy policy mentions + // collection of your users' health info if this data type is declared in your + // Play Data Safety Section. + // "PRIVACY_POLICY_PSL_FITNESS_INFO" - Checks if your privacy policy mentions + // collection of your users' fitness info if this data type is declared in your + // Play Data Safety Section. + // "PRIVACY_POLICY_PSL_EMAIL_MESSAGES" - Checks if your privacy policy + // mentions collection of your users' emails if this data type is declared in + // your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_TEXT_MESSAGES" - Checks if your privacy policy + // mentions collection of your users' text messages if this data type is + // declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_PHOTOS" - Checks if your privacy policy mentions + // collection of your users' photos if this data type is declared in your Play + // Data Safety Section. + // "PRIVACY_POLICY_PSL_VIDEOS" - Checks if your privacy policy mentions + // collection of your users' videos if this data type is declared in your Play + // Data Safety Section. + // "PRIVACY_POLICY_PSL_MUSIC_FILES" - Checks if your privacy policy mentions + // collection of your users' music files if this data type is declared in your + // Play Data Safety Section. + // "PRIVACY_POLICY_PSL_VOICE_OR_SOUND_RECORDINGS" - Checks if your privacy + // policy mentions collection of your users' voice or sound recordings if this + // data type is declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_FILES_AND_DOCS" - Checks if your privacy policy + // mentions collection of your users' files or documents if this data type is + // declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_CALENDAR_EVENTS" - Checks if your privacy policy + // mentions collection of your users' calendar events if this data type is + // declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_CONTACTS" - Checks if your privacy policy mentions + // collection of your users' contacts if this data type is declared in your + // Play Data Safety Section. + // "PRIVACY_POLICY_PSL_APP_INTERACTIONS" - Checks if your privacy policy + // mentions collection of your users' app interactions if this data type is + // declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_IN_APP_SEARCH_HISTORY" - Checks if your privacy policy + // mentions collection of your users' in-app search history if this data type + // is declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_WEB_BROWSING_HISTORY" - Checks if your privacy policy + // mentions collection of your users' web browsing history if this data type is + // declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_INSTALLED_APPS" - Checks if your privacy policy + // mentions collection of your users' installed apps if this data type is + // declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_CRASH_LOGS" - Checks if your privacy policy mentions + // collection of your users' crash logs if this data type is declared in your + // Play Data Safety Section. + // "PRIVACY_POLICY_PSL_DIAGNOSTICS" - Checks if your privacy policy mentions + // collection of your users' performance diagnostics if this data type is + // declared in your Play Data Safety Section. + // "PRIVACY_POLICY_PSL_DEVICE_OR_OTHER_IDS" - Checks if your privacy policy + // mentions collection of your users' device or other IDs if this data type is + // declared in your Play Data Safety Section. + // "DATA_MONITORING_NEW_ENDPOINT" - Checks if there is a new endpoint we've + // recently detected. Because this check accounts for flakiness, it may fail + // for several weeks even if the endpoint is not detected in the current + // report. + // "DATA_MONITORING_NEW_PERMISSION" - Checks if there is a new permission + // we've recently detected. Because this check accounts for flakiness, it may + // fail for several weeks even if the permission is not detected in the current + // report. + // "DATA_MONITORING_NEW_DATA_TYPE" - Checks if there is a new data type we've + // recently detected. Because this check accounts for flakiness, it may fail + // for several weeks even if the data type is not detected in the current + // report. + // "DATA_MONITORING_NEW_SDK" - Checks if there is a new SDK we've recently + // detected. Because this check accounts for flakiness, it may fail for several + // weeks even if the SDK is not detected in the current report. + // "DATA_MONITORING_ENCRYPTION" - Checks if there is any endpoint contacted + // using HTTP protocol instead of HTTPS. If no protocol is found in the URL, + // the endpoint is not considered for analysis. + // "DATA_MONITORING_NEW_DATA_TYPE_VERSION_DIFF" - Checks if new data types + // have been detected since a specific app version. + // "DATA_MONITORING_NEW_ENDPOINT_VERSION_DIFF" - Checks if new endpoints have + // been detected since a specific app version. + // "DATA_MONITORING_NEW_PERMISSION_VERSION_DIFF" - Checks if new permissions + // have been detected since a specific app version. + // "DATA_MONITORING_NEW_SDK_VERSION_DIFF" - Checks if new SDKs have been + // detected since a specific app version. + // "DATA_MONITORING_SDKS_DENYLIST_VIOLATION" - Checks if any SDKs were + // detected that are specified in the denylist. + // "DATA_MONITORING_PERMISSIONS_DENYLIST_VIOLATION" - Checks if any + // permissions were detected that are specified in the denylist. + // "DATA_MONITORING_ENDPOINTS_DENYLIST_VIOLATION" - Checks if any endpoints + // were detected that are specified in the denylist. + // "DATA_MONITORING_OUTDATED_SDK_VERSION" - Checks if there are any outdated + // SDKs. + // "DATA_MONITORING_CRITICAL_SDK_ISSUE" - Checks if there are any SDKs with + // critical issues. + // "PRIVACY_POLICY_DATA_TYPE_SENSITIVE_INFO" - Checks if the Sensitive + // Information data type declaration matches usage. + // "DATA_MONITORING_PII_LOGCAT_LEAK" - Checks if there were any PII leaked to + // device logs. + // "DATA_MONITORING_MINIMIZE_PERMISSION_MEDIA" - Checks if there are media + // (photo and video) permissions that are considered sensitive and should be + // minimized for Android. + // "DATA_MONITORING_MINIMIZE_PERMISSION_CAMERA" - Checks if there are camera + // use permissions that are considered sensitive and should be minimized for + // Android. + // "DATA_MONITORING_MINIMIZE_PERMISSION_DOCUMENTS" - Checks if there are + // documents and file permissions that are considered sensitive and should be + // minimized for Android. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "Citations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Citations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheck) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheck + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckCitation: Regulation or policy that serves as +// the legal basis for the check. +type GoogleChecksReportV1alphaCheckCitation struct { + // Type: Citation type. + // + // Possible values: + // "CITATION_TYPE_UNSPECIFIED" - Not specified. + // "COPPA" - Children's Online Privacy Protection Act. + // "GDPR" - General Data Protection Regulation. + // "FERPA" - Family Educational Rights and Privacy Act. + // "CAL_OPPA" - The California Online Privacy Protection Act. + // "CCPA" - California Consumer Privacy Act. + // "SOPIPA" - Student Online Personal Information Protection Act. + // "LGPD" - Lei Geral de Proteção de Dados. + // "CPRA" - California Consumer Privacy Act. + // "VCDPA" - Virginia Consumer Data Protection Act. + // "GOOGLE_PLAY_POLICY" - Google Play Policy. + // "APP_STORE_POLICY" - App Store Policy. + // "CPA" - Colorado Privacy Act. + // "CTDPA" - Connecticut Data Privacy Act. + // "UCPA" - Utah Consumer Privacy Act. + // "PIPEDA" - Personal Information Protection and Electronic Documents Act. + // "ALBERTA_PIPA" - Alberta (Canada) Personal Information Protection Act. + // "QUEBEC_ACT" - Quebec: Act Respecting the Protection of Personal + // Information in the Private Sector. + // "QUEBEC_BILL_64" - Quebec Bill 64: An Act to Modernize Legislative + // Provisions as Regards the Protection of Personal Information. + // "CHINA_PIPL" - China Personal Information Protection Law. + // "SOUTH_KOREA_PIPA" - South Korea Personal Information Protection Act. + // "SOUTH_AFRICA_POPIA" - South Africa Protection of Personal Information + // Act. + // "JAPAN_APPI" - Japan Act on the Protection of Personal Information. + // "INDIA_DPDPA" - India: The Digital Personal Data Protection Act, 2023. + // "OCPA" - Oregon Consumer Privacy Act. + // "TDPSA" - Texas Data Privacy and Security Act. + // "MCDPA" - Montana Consumer Data Privacy Act. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckCitation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckCitation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckDataSecurityEvidence: Evidence concerning data +// security. +type GoogleChecksReportV1alphaCheckDataSecurityEvidence struct { + // DataInTransitInfo: Evidence related to data in transit. + DataInTransitInfo []*GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo `json:"dataInTransitInfo,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataInTransitInfo") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataInTransitInfo") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckDataSecurityEvidence) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckDataSecurityEvidence + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo: +// Evidence related to data in transit detected in your app. +type GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo struct { + // Uri: The URL contacted by your app. This includes the protocol, domain, and + // URL parameters. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckDataTypeEvidence: Evidence concerning a data +// type that was found in your app. +type GoogleChecksReportV1alphaCheckDataTypeEvidence struct { + // DataType: The data type that was found in your app. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" - Not specified. + // "DATA_TYPE_APPROXIMATE_LOCATION" - User or device physical location to an + // area greater than or equal to 3 square kilometers, such as the city a user + // is in, or location provided by Android's ACCESS_COARSE_LOCATION permission. + // "DATA_TYPE_PRECISE_LOCATION" - User or device physical location within an + // area less than 3 square kilometers, such as location provided by Android's + // ACCESS_FINE_LOCATION permission. + // "DATA_TYPE_PERSONAL_NAME" - How a user refers to themselves, such as their + // first or last name, or nickname. + // "DATA_TYPE_EMAIL_ADDRESS" - A user's email address. + // "DATA_TYPE_USER_IDS" - Identifiers that relate to an identifiable person. + // For example, an account ID, account number, or account name. + // "DATA_TYPE_PHYSICAL_ADDRESS" - A user's address, such as a mailing or home + // address. + // "DATA_TYPE_PHONE_NUMBER" - A user's phone number. + // "DATA_TYPE_RACE_AND_ETHNICITY" - Information about a user's race or + // ethnicity. + // "DATA_TYPE_POLITICAL_OR_RELIGIOUS_BELIEFS" - Information about a user's + // political or religious beliefs. + // "DATA_TYPE_SEXUAL_ORIENTATION" - Information about a user's sexual + // orientation. + // "DATA_TYPE_OTHER_PERSONAL_INFO" - Any other personal information such as + // date of birth, gender identity, veteran status, etc. + // "DATA_TYPE_PAYMENT_INFO" - Information about a user's financial accounts + // such as credit card number. + // "DATA_TYPE_PURCHASE_HISTORY" - Information about purchases or transactions + // a user has made. + // "DATA_TYPE_CREDIT_SCORE" - Information about a user's credit score. + // "DATA_TYPE_OTHER_FINANCIAL_INFO" - Any other financial information such as + // user salary or debts. + // "DATA_TYPE_HEALTH_INFO" - Information about a user's health, such as + // medical records or symptoms. + // "DATA_TYPE_FITNESS_INFO" - Information about a user's fitness, such as + // exercise or other physical activity. + // "DATA_TYPE_EMAILS" - A user's emails including the email subject line, + // sender, recipients, and the content of the email. + // "DATA_TYPE_TEXT_MESSAGES" - A user's text messages including the sender, + // recipients, and the content of the message. + // "DATA_TYPE_OTHER_IN_APP_MESSAGES" - Any other types of messages. For + // example, instant messages or chat content. + // "DATA_TYPE_PHOTOS" - A user's photos. + // "DATA_TYPE_VIDEOS" - A user's videos. + // "DATA_TYPE_VOICE_OR_SOUND_RECORDINGS" - A user's voice such as a voicemail + // or a sound recording. + // "DATA_TYPE_MUSIC_FILES" - A user's music files. + // "DATA_TYPE_OTHER_AUDIO_FILES" - Any other user-created or user-provided + // audio files. + // "DATA_TYPE_FILES_AND_DOCS" - A user's files or documents, or information + // about their files or documents such as file names. + // "DATA_TYPE_CALENDAR_EVENTS" - Information from a user's calendar such as + // events, event notes, and attendees. + // "DATA_TYPE_CONTACTS" - Information about the user’s contacts such as + // contact names, message history, and social graph information like usernames, + // contact recency, contact frequency, interaction duration and call history. + // "DATA_TYPE_APP_INTERACTIONS" - Information about how a user interacts with + // your app, such as the number of page views or taps. + // "DATA_TYPE_IN_APP_SEARCH_HISTORY" - Information about what a user has + // searched for in your app. + // "DATA_TYPE_INSTALLED_APPS" - Inventory of apps or packages installed on + // the user’s device. + // "DATA_TYPE_OTHER_USER_GENERATED_CONTENT" - Any other user-generated + // content not listed here, or in any other section. For example, user bios, + // notes, or open-ended responses. + // "DATA_TYPE_OTHER_ACTIONS" - Any other user activity or actions in-app not + // listed here such as gameplay, likes, and dialog options. + // "DATA_TYPE_WEB_BROWSING_HISTORY" - Information about the websites a user + // has visited. + // "DATA_TYPE_CRASH_LOGS" - Crash log data from your app. For example, the + // number of times your app has crashed, stack traces, or other information + // directly related to a crash. + // "DATA_TYPE_PERFORMANCE_DIAGNOSTICS" - Information about the performance of + // your app. For example battery life, loading time, latency, framerate, or any + // technical diagnostics. + // "DATA_TYPE_OTHER_APP_PERFORMANCE_DATA" - Any other app performance data + // not listed here. + // "DATA_TYPE_DEVICE_OR_OTHER_IDS" - Identifiers that relate to an individual + // device, browser or app. For example, an IMEI number, MAC address, Widevine + // Device ID, Firebase installation ID, or advertising identifier. + DataType string `json:"dataType,omitempty"` + // DataTypeEvidence: Evidence collected about the data type. + DataTypeEvidence *GoogleChecksReportV1alphaDataTypeEvidence `json:"dataTypeEvidence,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckDataTypeEvidence) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckDataTypeEvidence + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckEndpointEvidence: Evidence concerning an +// endpoint that was contacted by your app. +type GoogleChecksReportV1alphaCheckEndpointEvidence struct { + // Endpoint: The endpoint that was contacted by your app. + Endpoint *GoogleChecksReportV1alphaEndpoint `json:"endpoint,omitempty"` + // ForceSendFields is a list of field names (e.g. "Endpoint") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Endpoint") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckEndpointEvidence) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckEndpointEvidence + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence: Evidence +// collected from endpoint restriction violation analysis. +type GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence struct { + // EndpointDetails: Endpoints in violation. + EndpointDetails []*GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDetails `json:"endpointDetails,omitempty"` + // ForceSendFields is a list of field names (e.g. "EndpointDetails") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EndpointDetails") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDet +// ails: Details of the endpoint in violation. +type GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDetails struct { + // Endpoint: The endpoint in violation. + Endpoint *GoogleChecksReportV1alphaEndpoint `json:"endpoint,omitempty"` + // ForceSendFields is a list of field names (e.g. "Endpoint") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Endpoint") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckEvidence: Evidence for a check. +type GoogleChecksReportV1alphaCheckEvidence struct { + // DataSecurity: Evidence concerning data security. + DataSecurity *GoogleChecksReportV1alphaCheckDataSecurityEvidence `json:"dataSecurity,omitempty"` + // DataTypes: Evidence concerning data types found in your app. + DataTypes []*GoogleChecksReportV1alphaCheckDataTypeEvidence `json:"dataTypes,omitempty"` + // EndpointRestrictionViolations: Evidence collected from endpoint restriction + // violation analysis. + EndpointRestrictionViolations []*GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence `json:"endpointRestrictionViolations,omitempty"` + // Endpoints: Evidence concerning endpoints that were contacted by your app. + Endpoints []*GoogleChecksReportV1alphaCheckEndpointEvidence `json:"endpoints,omitempty"` + // PermissionRestrictionViolations: Evidence collected from permission + // restriction violation analysis. + PermissionRestrictionViolations []*GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence `json:"permissionRestrictionViolations,omitempty"` + // Permissions: Evidence concerning permissions that were found in your app. + Permissions []*GoogleChecksReportV1alphaCheckPermissionEvidence `json:"permissions,omitempty"` + // PrivacyPolicyTexts: Evidence collected from your privacy policy(s). + PrivacyPolicyTexts []*GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence `json:"privacyPolicyTexts,omitempty"` + // SdkIssues: Evidence concerning SDK issues. + SdkIssues []*GoogleChecksReportV1alphaCheckSdkIssueEvidence `json:"sdkIssues,omitempty"` + // SdkRestrictionViolations: Evidence collected from SDK restriction violation + // analysis. + SdkRestrictionViolations []*GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence `json:"sdkRestrictionViolations,omitempty"` + // Sdks: Evidence concerning SDKs that were found in your app. + Sdks []*GoogleChecksReportV1alphaCheckSdkEvidence `json:"sdks,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataSecurity") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataSecurity") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckEvidence) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckEvidence + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckPermissionEvidence: Evidence concerning a +// permission that was found in your app. +type GoogleChecksReportV1alphaCheckPermissionEvidence struct { + // Permission: The permission that was found in your app. + Permission *GoogleChecksReportV1alphaPermission `json:"permission,omitempty"` + // ForceSendFields is a list of field names (e.g. "Permission") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Permission") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckPermissionEvidence) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckPermissionEvidence + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence: +// Evidence collected from permission restriction violation analysis. +type GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence struct { + // PermissionDetails: Permissions in violation. + PermissionDetails []*GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissionDetails `json:"permissionDetails,omitempty"` + // ForceSendFields is a list of field names (e.g. "PermissionDetails") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PermissionDetails") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissio +// nDetails: Details of the permission in violation. +type GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissionDetails struct { + // Permission: The permission in violation. + Permission *GoogleChecksReportV1alphaPermission `json:"permission,omitempty"` + // ForceSendFields is a list of field names (e.g. "Permission") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Permission") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissionDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissionDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence: Evidence collected +// from your privacy policy(s). +type GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence struct { + // PolicyFragment: The privacy policy fragment that was used during the check. + PolicyFragment *GoogleChecksReportV1alphaPolicyFragment `json:"policyFragment,omitempty"` + // ForceSendFields is a list of field names (e.g. "PolicyFragment") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PolicyFragment") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckSdkEvidence: Evidence conerning an SDK that +// was found in your app. +type GoogleChecksReportV1alphaCheckSdkEvidence struct { + // Sdk: The SDK that was found in your app. + Sdk *GoogleChecksReportV1alphaSdk `json:"sdk,omitempty"` + // ForceSendFields is a list of field names (e.g. "Sdk") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Sdk") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckSdkEvidence) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckSdkEvidence + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckSdkIssueEvidence: Evidence concerning an SDK +// issue. +type GoogleChecksReportV1alphaCheckSdkIssueEvidence struct { + // Sdk: The SDK with an issue. + Sdk *GoogleChecksReportV1alphaSdk `json:"sdk,omitempty"` + // SdkVersion: The SDK version. + SdkVersion string `json:"sdkVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "Sdk") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Sdk") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckSdkIssueEvidence) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckSdkIssueEvidence + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence: Evidence +// collected from SDK restriction violation analysis. +type GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence struct { + // SdkDetails: SDKs in violation. + SdkDetails []*GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidenceSdkDetails `json:"sdkDetails,omitempty"` + // ForceSendFields is a list of field names (e.g. "SdkDetails") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SdkDetails") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } @@ -1941,247 +2418,708 @@ type GoogleChecksReportV1alphaListReportsResponse struct { NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaListReportsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaListReportsResponse +func (s GoogleChecksReportV1alphaListReportsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaListReportsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaPermission: Information about a permission. +type GoogleChecksReportV1alphaPermission struct { + // Id: Permission identifier. + Id string `json:"id,omitempty"` + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaPermission) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaPermission + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaPolicyFragment: Information about a policy +// fragment. +type GoogleChecksReportV1alphaPolicyFragment struct { + // HtmlContent: HTML content. + HtmlContent string `json:"htmlContent,omitempty"` + // SourceUri: Policy URL. + SourceUri string `json:"sourceUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "HtmlContent") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "HtmlContent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaPolicyFragment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaPolicyFragment + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaReport: Privacy report. +type GoogleChecksReportV1alphaReport struct { + // AppBundle: Information about the analyzed app bundle. + AppBundle *GoogleChecksReportV1alphaAppBundle `json:"appBundle,omitempty"` + // Checks: List of checks that were run on the app bundle. + Checks []*GoogleChecksReportV1alphaCheck `json:"checks,omitempty"` + // DataMonitoring: Information related to data monitoring. + DataMonitoring *GoogleChecksReportV1alphaDataMonitoring `json:"dataMonitoring,omitempty"` + // Name: Resource name of the report. + Name string `json:"name,omitempty"` + // ResultsUri: A URL to view results. + ResultsUri string `json:"resultsUri,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AppBundle") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AppBundle") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaReport) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaReport + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChecksReportV1alphaSdk: Information about an SDK. +type GoogleChecksReportV1alphaSdk struct { + // Id: SDK identifier. + Id string `json:"id,omitempty"` + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChecksReportV1alphaSdk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChecksReportV1alphaSdk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListOperationsResponse: The response message for Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + // Operations: A list of operations that matches the specified filter in the + // request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is the +// result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. + Done bool `json:"done,omitempty"` + // Error: The error result of the operation in case of failure or cancellation. + Error *Status `json:"error,omitempty"` + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. + Name string `json:"name,omitempty"` + // Response: The normal, successful response of the operation. If the original + // method returns no data on success, such as `Delete`, the response is + // `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaPermission: Information about a permission. -type GoogleChecksReportV1alphaPermission struct { - // Id: Permission identifier. - Id string `json:"id,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to unconditionally +// Status: 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). +type Status struct { + // Code: The status code, which should be an enum value of google.rpc.Code. + Code int64 `json:"code,omitempty"` + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") to include in API requests + // NullFields is a list of field names (e.g. "Code") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaPermission) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaPermission +func (s Status) MarshalJSON() ([]byte, error) { + type NoMethod Status return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleChecksReportV1alphaPolicyFragment: Information about a policy -// fragment. -type GoogleChecksReportV1alphaPolicyFragment struct { - // HtmlContent: HTML content. - HtmlContent string `json:"htmlContent,omitempty"` - // SourceUri: Policy URL. - SourceUri string `json:"sourceUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "HtmlContent") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// WaitOperationRequest: The request message for Operations.WaitOperation. +type WaitOperationRequest struct { + // Timeout: The maximum duration to wait before timing out. If left blank, the + // wait will be at most the time permitted by the underlying HTTP/RPC protocol. + // If RPC context deadline is also specified, the shorter one will be used. + Timeout string `json:"timeout,omitempty"` + // ForceSendFields is a list of field names (e.g. "Timeout") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "HtmlContent") to include in API + // NullFields is a list of field names (e.g. "Timeout") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleChecksReportV1alphaPolicyFragment) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaPolicyFragment - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +func (s WaitOperationRequest) MarshalJSON() ([]byte, error) { + type NoMethod WaitOperationRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type AccountsAppsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an app. +// +// - name: Resource name of the app. Example: `accounts/123/apps/456`. +func (r *AccountsAppsService) Get(name string) *AccountsAppsGetCall { + c := &AccountsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AccountsAppsGetCall) Fields(s ...googleapi.Field) *AccountsAppsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *AccountsAppsGetCall) IfNoneMatch(entityTag string) *AccountsAppsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsAppsGetCall) Context(ctx context.Context) *AccountsAppsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AccountsAppsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsAppsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "checks.accounts.apps.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleChecksAccountV1alphaApp.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *AccountsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleChecksAccountV1alphaApp, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleChecksAccountV1alphaApp{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type AccountsAppsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the apps under the given account. +// +// - parent: The parent account. Example: `accounts/123`. +func (r *AccountsAppsService) List(parent string) *AccountsAppsListCall { + c := &AccountsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return. The server may further constrain the maximum number of +// results returned in a single page. If unspecified, the server will decide +// the number of results to be returned. +func (c *AccountsAppsListCall) PageSize(pageSize int64) *AccountsAppsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous `ListApps` call. Provide this to retrieve the subsequent +// page. +func (c *AccountsAppsListCall) PageToken(pageToken string) *AccountsAppsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AccountsAppsListCall) Fields(s ...googleapi.Field) *AccountsAppsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *AccountsAppsListCall) IfNoneMatch(entityTag string) *AccountsAppsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsAppsListCall) Context(ctx context.Context) *AccountsAppsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AccountsAppsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsAppsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/apps") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "checks.accounts.apps.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleChecksAccountV1alphaListAppsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *AccountsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleChecksAccountV1alphaListAppsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleChecksAccountV1alphaListAppsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil } -// GoogleChecksReportV1alphaReport: Privacy report. -type GoogleChecksReportV1alphaReport struct { - // AppBundle: Information about the analyzed app bundle. - AppBundle *GoogleChecksReportV1alphaAppBundle `json:"appBundle,omitempty"` - // Checks: List of checks that were run on the app bundle. - Checks []*GoogleChecksReportV1alphaCheck `json:"checks,omitempty"` - // DataMonitoring: Information related to data monitoring. - DataMonitoring *GoogleChecksReportV1alphaDataMonitoring `json:"dataMonitoring,omitempty"` - // Name: Resource name of the report. - Name string `json:"name,omitempty"` - // ResultsUri: A URL to view results. - ResultsUri string `json:"resultsUri,omitempty"` +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AccountsAppsListCall) Pages(ctx context.Context, f func(*GoogleChecksAccountV1alphaListAppsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AppBundle") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppBundle") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` +type AccountsAppsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -func (s GoogleChecksReportV1alphaReport) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaReport - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +// Cancel: 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`. +// +// - name: The name of the operation resource to be cancelled. +func (r *AccountsAppsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *AccountsAppsOperationsCancelCall { + c := &AccountsAppsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + return c } -// GoogleChecksReportV1alphaSdk: Information about an SDK. -type GoogleChecksReportV1alphaSdk struct { - // Id: SDK identifier. - Id string `json:"id,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AccountsAppsOperationsCancelCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c } -func (s GoogleChecksReportV1alphaSdk) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChecksReportV1alphaSdk - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +// Context sets the context to be used in this call's Do method. +func (c *AccountsAppsOperationsCancelCall) Context(ctx context.Context) *AccountsAppsOperationsCancelCall { + c.ctx_ = ctx + return c } -// ListOperationsResponse: The response message for Operations.ListOperations. -type ListOperationsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` - // Operations: A list of operations that matches the specified filter in the - // request. - Operations []*Operation `json:"operations,omitempty"` +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AccountsAppsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` +func (c *AccountsAppsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) } -func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListOperationsResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +// Do executes the "checks.accounts.apps.operations.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *AccountsAppsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil } -// Operation: This resource represents a long-running operation that is the -// result of a network API call. -type Operation struct { - // Done: If the value is `false`, it means the operation is still in progress. - // If `true`, the operation is completed, and either `error` or `response` is - // available. - Done bool `json:"done,omitempty"` - // Error: The error result of the operation in case of failure or cancellation. - Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as create - // time. Some services might not provide such metadata. Any method that returns - // a long-running operation should document the metadata type, if any. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: The server-assigned name, which is only unique within the same service - // that originally returns it. If you use the default HTTP mapping, the `name` - // should be a resource name ending with `operations/{unique_id}`. - Name string `json:"name,omitempty"` - // Response: The normal, successful response of the operation. If the original - // method returns no data on success, such as `Delete`, the response is - // `google.protobuf.Empty`. If the original method is standard - // `Get`/`Create`/`Update`, the response should be the resource. For other - // methods, the response should have the type `XxxResponse`, where `Xxx` is the - // original method name. For example, if the original method name is - // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. - Response googleapi.RawMessage `json:"response,omitempty"` +type AccountsAppsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Done") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Done") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` +// Delete: 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`. +// +// - name: The name of the operation resource to be deleted. +func (r *AccountsAppsOperationsService) Delete(name string) *AccountsAppsOperationsDeleteCall { + c := &AccountsAppsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c } -func (s Operation) MarshalJSON() ([]byte, error) { - type NoMethod Operation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AccountsAppsOperationsDeleteCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c } -// Status: 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). -type Status struct { - // Code: The status code, which should be an enum value of google.rpc.Code. - Code int64 `json:"code,omitempty"` - // Details: A list of messages that carry the error details. There is a common - // set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` - // Message: A developer-facing error message, which should be in English. Any - // user-facing error message should be localized and sent in the - // google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` - // ForceSendFields is a list of field names (e.g. "Code") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Code") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` +// Context sets the context to be used in this call's Do method. +func (c *AccountsAppsOperationsDeleteCall) Context(ctx context.Context) *AccountsAppsOperationsDeleteCall { + c.ctx_ = ctx + return c } -func (s Status) MarshalJSON() ([]byte, error) { - type NoMethod Status - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AccountsAppsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ } -// WaitOperationRequest: The request message for Operations.WaitOperation. -type WaitOperationRequest struct { - // Timeout: The maximum duration to wait before timing out. If left blank, the - // wait will be at most the time permitted by the underlying HTTP/RPC protocol. - // If RPC context deadline is also specified, the shorter one will be used. - Timeout string `json:"timeout,omitempty"` - // ForceSendFields is a list of field names (e.g. "Timeout") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Timeout") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` +func (c *AccountsAppsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) } -func (s WaitOperationRequest) MarshalJSON() ([]byte, error) { - type NoMethod WaitOperationRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +// Do executes the "checks.accounts.apps.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *AccountsAppsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil } -type AccountsAppsGetCall struct { +type AccountsAppsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -2190,11 +3128,13 @@ type AccountsAppsGetCall struct { header_ http.Header } -// Get: Gets an app. +// Get: 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. // -// - name: Resource name of the app. Example: `accounts/123/apps/456`. -func (r *AccountsAppsService) Get(name string) *AccountsAppsGetCall { - c := &AccountsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *AccountsAppsOperationsService) Get(name string) *AccountsAppsOperationsGetCall { + c := &AccountsAppsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -2202,7 +3142,7 @@ func (r *AccountsAppsService) Get(name string) *AccountsAppsGetCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AccountsAppsGetCall) Fields(s ...googleapi.Field) *AccountsAppsGetCall { +func (c *AccountsAppsOperationsGetCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2210,27 +3150,27 @@ func (c *AccountsAppsGetCall) Fields(s ...googleapi.Field) *AccountsAppsGetCall // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *AccountsAppsGetCall) IfNoneMatch(entityTag string) *AccountsAppsGetCall { +func (c *AccountsAppsOperationsGetCall) IfNoneMatch(entityTag string) *AccountsAppsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *AccountsAppsGetCall) Context(ctx context.Context) *AccountsAppsGetCall { +func (c *AccountsAppsOperationsGetCall) Context(ctx context.Context) *AccountsAppsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AccountsAppsGetCall) Header() http.Header { +func (c *AccountsAppsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsAppsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -2251,13 +3191,12 @@ func (c *AccountsAppsGetCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "checks.accounts.apps.get" call. +// Do executes the "checks.accounts.apps.operations.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleChecksAccountV1alphaApp.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *AccountsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleChecksAccountV1alphaApp, error) { +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *AccountsAppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2276,7 +3215,7 @@ func (c *AccountsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleChecksAcc if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleChecksAccountV1alphaApp{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2289,37 +3228,41 @@ func (c *AccountsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleChecksAcc return ret, nil } -type AccountsAppsListCall struct { +type AccountsAppsOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists the apps under the given account. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. // -// - parent: The parent account. Example: `accounts/123`. -func (r *AccountsAppsService) List(parent string) *AccountsAppsListCall { - c := &AccountsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *AccountsAppsOperationsService) List(name string) *AccountsAppsOperationsListCall { + c := &AccountsAppsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// PageSize sets the optional parameter "pageSize": The maximum number of -// results to return. The server may further constrain the maximum number of -// results returned in a single page. If unspecified, the server will decide -// the number of results to be returned. -func (c *AccountsAppsListCall) PageSize(pageSize int64) *AccountsAppsListCall { +// Filter sets the optional parameter "filter": The standard list filter. +func (c *AccountsAppsOperationsListCall) Filter(filter string) *AccountsAppsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *AccountsAppsOperationsListCall) PageSize(pageSize int64) *AccountsAppsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token received -// from a previous `ListApps` call. Provide this to retrieve the subsequent -// page. -func (c *AccountsAppsListCall) PageToken(pageToken string) *AccountsAppsListCall { +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *AccountsAppsOperationsListCall) PageToken(pageToken string) *AccountsAppsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -2327,7 +3270,7 @@ func (c *AccountsAppsListCall) PageToken(pageToken string) *AccountsAppsListCall // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AccountsAppsListCall) Fields(s ...googleapi.Field) *AccountsAppsListCall { +func (c *AccountsAppsOperationsListCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2335,27 +3278,27 @@ func (c *AccountsAppsListCall) Fields(s ...googleapi.Field) *AccountsAppsListCal // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *AccountsAppsListCall) IfNoneMatch(entityTag string) *AccountsAppsListCall { +func (c *AccountsAppsOperationsListCall) IfNoneMatch(entityTag string) *AccountsAppsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *AccountsAppsListCall) Context(ctx context.Context) *AccountsAppsListCall { +func (c *AccountsAppsOperationsListCall) Context(ctx context.Context) *AccountsAppsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AccountsAppsListCall) Header() http.Header { +func (c *AccountsAppsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsAppsListCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAppsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -2363,7 +3306,7 @@ func (c *AccountsAppsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/apps") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -2371,18 +3314,18 @@ func (c *AccountsAppsListCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "checks.accounts.apps.list" call. +// Do executes the "checks.accounts.apps.operations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleChecksAccountV1alphaListAppsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *AccountsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleChecksAccountV1alphaListAppsResponse, error) { +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *AccountsAppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2401,7 +3344,7 @@ func (c *AccountsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleChecksAc if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleChecksAccountV1alphaListAppsResponse{ + ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2417,7 +3360,7 @@ func (c *AccountsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleChecksAc // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *AccountsAppsListCall) Pages(ctx context.Context, f func(*GoogleChecksAccountV1alphaListAppsResponse) error) error { +func (c *AccountsAppsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -2435,66 +3378,66 @@ func (c *AccountsAppsListCall) Pages(ctx context.Context, f func(*GoogleChecksAc } } -type AccountsAppsOperationsCancelCall struct { - s *Service - name string - canceloperationrequest *CancelOperationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AccountsAppsOperationsWaitCall struct { + s *Service + name string + waitoperationrequest *WaitOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: 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`. +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. // -// - name: The name of the operation resource to be cancelled. -func (r *AccountsAppsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *AccountsAppsOperationsCancelCall { - c := &AccountsAppsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *AccountsAppsOperationsService) Wait(name string, waitoperationrequest *WaitOperationRequest) *AccountsAppsOperationsWaitCall { + c := &AccountsAppsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.canceloperationrequest = canceloperationrequest + c.waitoperationrequest = waitoperationrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AccountsAppsOperationsCancelCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsCancelCall { +func (c *AccountsAppsOperationsWaitCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *AccountsAppsOperationsCancelCall) Context(ctx context.Context) *AccountsAppsOperationsCancelCall { +func (c *AccountsAppsOperationsWaitCall) Context(ctx context.Context) *AccountsAppsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AccountsAppsOperationsCancelCall) Header() http.Header { +func (c *AccountsAppsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsAppsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAppsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.waitoperationrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -2507,12 +3450,12 @@ func (c *AccountsAppsOperationsCancelCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "checks.accounts.apps.operations.cancel" call. +// Do executes the "checks.accounts.apps.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) in +// *Operation.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was returned. -func (c *AccountsAppsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *AccountsAppsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2531,7 +3474,7 @@ func (c *AccountsAppsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Em if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2544,57 +3487,79 @@ func (c *AccountsAppsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Em return ret, nil } -type AccountsAppsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AccountsAppsReportsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: 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`. +// Get: Gets a report. By default, only the name and results_uri fields are +// returned. You can include other fields by listing them in the `fields` URL +// query parameter. For example, `?fields=name,checks` will return the name and +// checks fields. // -// - name: The name of the operation resource to be deleted. -func (r *AccountsAppsOperationsService) Delete(name string) *AccountsAppsOperationsDeleteCall { - c := &AccountsAppsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name of the report. Example: +// `accounts/123/apps/456/reports/789`. +func (r *AccountsAppsReportsService) Get(name string) *AccountsAppsReportsGetCall { + c := &AccountsAppsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// ChecksFilter sets the optional parameter "checksFilter": An AIP-160 +// (https://google.aip.dev/160) filter string to filter checks within the +// report. Only checks that match the filter string are included in the +// response. Example: `state = FAILED` +func (c *AccountsAppsReportsGetCall) ChecksFilter(checksFilter string) *AccountsAppsReportsGetCall { + c.urlParams_.Set("checksFilter", checksFilter) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AccountsAppsOperationsDeleteCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsDeleteCall { +func (c *AccountsAppsReportsGetCall) Fields(s ...googleapi.Field) *AccountsAppsReportsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *AccountsAppsReportsGetCall) IfNoneMatch(entityTag string) *AccountsAppsReportsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *AccountsAppsOperationsDeleteCall) Context(ctx context.Context) *AccountsAppsOperationsDeleteCall { +func (c *AccountsAppsReportsGetCall) Context(ctx context.Context) *AccountsAppsReportsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AccountsAppsOperationsDeleteCall) Header() http.Header { +func (c *AccountsAppsReportsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsAppsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAppsReportsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -2605,12 +3570,13 @@ func (c *AccountsAppsOperationsDeleteCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "checks.accounts.apps.operations.delete" call. +// Do executes the "checks.accounts.apps.reports.get" call. // Any non-2xx status code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *AccountsAppsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// *GoogleChecksReportV1alphaReport.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *AccountsAppsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleChecksReportV1alphaReport, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2629,7 +3595,7 @@ func (c *AccountsAppsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Em if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &GoogleChecksReportV1alphaReport{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2642,30 +3608,65 @@ func (c *AccountsAppsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Em return ret, nil } -type AccountsAppsOperationsGetCall struct { +type AccountsAppsReportsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: 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. +// List: Lists reports for the specified app. By default, only the name and +// results_uri fields are returned. You can include other fields by listing +// them in the `fields` URL query parameter. For example, +// `?fields=reports(name,checks)` will return the name and checks fields. // -// - name: The name of the operation resource. -func (r *AccountsAppsOperationsService) Get(name string) *AccountsAppsOperationsGetCall { - c := &AccountsAppsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: Resource name of the app. Example: `accounts/123/apps/456`. +func (r *AccountsAppsReportsService) List(parent string) *AccountsAppsReportsListCall { + c := &AccountsAppsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// ChecksFilter sets the optional parameter "checksFilter": An AIP-160 +// (https://google.aip.dev/160) filter string to filter checks within reports. +// Only checks that match the filter string are included in the response. +// Example: `state = FAILED` +func (c *AccountsAppsReportsListCall) ChecksFilter(checksFilter string) *AccountsAppsReportsListCall { + c.urlParams_.Set("checksFilter", checksFilter) + return c +} + +// Filter sets the optional parameter "filter": An AIP-160 +// (https://google.aip.dev/160) filter string to filter reports. Example: +// `appBundle.releaseType = PRE_RELEASE` +func (c *AccountsAppsReportsListCall) Filter(filter string) *AccountsAppsReportsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// reports to return. If unspecified, at most 10 reports will be returned. The +// maximum value is 50; values above 50 will be coerced to 50. +func (c *AccountsAppsReportsListCall) PageSize(pageSize int64) *AccountsAppsReportsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous `ListReports` call. Provide this to retrieve the subsequent +// page. When paginating, all other parameters provided to `ListReports` must +// match the call that provided the page token. +func (c *AccountsAppsReportsListCall) PageToken(pageToken string) *AccountsAppsReportsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AccountsAppsOperationsGetCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsGetCall { +func (c *AccountsAppsReportsListCall) Fields(s ...googleapi.Field) *AccountsAppsReportsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2673,27 +3674,27 @@ func (c *AccountsAppsOperationsGetCall) Fields(s ...googleapi.Field) *AccountsAp // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *AccountsAppsOperationsGetCall) IfNoneMatch(entityTag string) *AccountsAppsOperationsGetCall { +func (c *AccountsAppsReportsListCall) IfNoneMatch(entityTag string) *AccountsAppsReportsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *AccountsAppsOperationsGetCall) Context(ctx context.Context) *AccountsAppsOperationsGetCall { +func (c *AccountsAppsReportsListCall) Context(ctx context.Context) *AccountsAppsReportsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AccountsAppsOperationsGetCall) Header() http.Header { +func (c *AccountsAppsReportsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsAppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAppsReportsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -2701,7 +3702,7 @@ func (c *AccountsAppsOperationsGetCall) doRequest(alt string) (*http.Response, e var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/reports") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -2709,17 +3710,18 @@ func (c *AccountsAppsOperationsGetCall) doRequest(alt string) (*http.Response, e } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "checks.accounts.apps.operations.get" call. +// Do executes the "checks.accounts.apps.reports.list" call. // Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *AccountsAppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *GoogleChecksReportV1alphaListReportsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *AccountsAppsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleChecksReportV1alphaListReportsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2738,7 +3740,7 @@ func (c *AccountsAppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Opera if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &GoogleChecksReportV1alphaListReportsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2751,7 +3753,28 @@ func (c *AccountsAppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Opera return ret, nil } -type AccountsAppsOperationsListCall struct { +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AccountsAppsReportsListCall) Pages(ctx context.Context, f func(*GoogleChecksReportV1alphaListReportsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type AccountsReposOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -2760,40 +3783,21 @@ type AccountsAppsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the request. If -// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// Get: 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. // -// - name: The name of the operation's parent resource. -func (r *AccountsAppsOperationsService) List(name string) *AccountsAppsOperationsListCall { - c := &AccountsAppsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list filter. -func (c *AccountsAppsOperationsListCall) Filter(filter string) *AccountsAppsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *AccountsAppsOperationsListCall) PageSize(pageSize int64) *AccountsAppsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *AccountsAppsOperationsListCall) PageToken(pageToken string) *AccountsAppsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - name: The name of the operation resource. +func (r *AccountsReposOperationsService) Get(name string) *AccountsReposOperationsGetCall { + c := &AccountsReposOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AccountsAppsOperationsListCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsListCall { +func (c *AccountsReposOperationsGetCall) Fields(s ...googleapi.Field) *AccountsReposOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2801,27 +3805,27 @@ func (c *AccountsAppsOperationsListCall) Fields(s ...googleapi.Field) *AccountsA // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *AccountsAppsOperationsListCall) IfNoneMatch(entityTag string) *AccountsAppsOperationsListCall { +func (c *AccountsReposOperationsGetCall) IfNoneMatch(entityTag string) *AccountsReposOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *AccountsAppsOperationsListCall) Context(ctx context.Context) *AccountsAppsOperationsListCall { +func (c *AccountsReposOperationsGetCall) Context(ctx context.Context) *AccountsReposOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AccountsAppsOperationsListCall) Header() http.Header { +func (c *AccountsReposOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsAppsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsReposOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -2829,7 +3833,7 @@ func (c *AccountsAppsOperationsListCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -2842,13 +3846,12 @@ func (c *AccountsAppsOperationsListCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "checks.accounts.apps.operations.list" call. +// Do executes the "checks.accounts.repos.operations.get" call. // Any non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *AccountsAppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *AccountsReposOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2867,7 +3870,7 @@ func (c *AccountsAppsOperationsListCall) Do(opts ...googleapi.CallOption) (*List if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListOperationsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2880,87 +3883,60 @@ func (c *AccountsAppsOperationsListCall) Do(opts ...googleapi.CallOption) (*List return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *AccountsAppsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type AccountsAppsOperationsWaitCall struct { - s *Service - name string - waitoperationrequest *WaitOperationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AccountsReposScansGenerateCall struct { + s *Service + parent string + googlechecksreposcanv1alphageneratescanrequest *GoogleChecksRepoScanV1alphaGenerateScanRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or reaches at -// most a specified timeout, returning the latest state. If the operation is -// already done, the latest state is immediately returned. If the timeout -// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout -// is used. If the server does not support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort -// basis. It may return the latest state before the specified timeout -// (including immediately), meaning even an immediate response is no guarantee -// that the operation is done. +// Generate: Uploads the results of local Code Compliance analysis and +// generates a scan of privacy issues. Returns a google.longrunning.Operation +// containing analysis and findings. // -// - name: The name of the operation resource to wait on. -func (r *AccountsAppsOperationsService) Wait(name string, waitoperationrequest *WaitOperationRequest) *AccountsAppsOperationsWaitCall { - c := &AccountsAppsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.waitoperationrequest = waitoperationrequest +// - parent: Resource name of the repo. Example: `accounts/123/repos/456`. +func (r *AccountsReposScansService) Generate(parent string, googlechecksreposcanv1alphageneratescanrequest *GoogleChecksRepoScanV1alphaGenerateScanRequest) *AccountsReposScansGenerateCall { + c := &AccountsReposScansGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlechecksreposcanv1alphageneratescanrequest = googlechecksreposcanv1alphageneratescanrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AccountsAppsOperationsWaitCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsWaitCall { +func (c *AccountsReposScansGenerateCall) Fields(s ...googleapi.Field) *AccountsReposScansGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *AccountsAppsOperationsWaitCall) Context(ctx context.Context) *AccountsAppsOperationsWaitCall { +func (c *AccountsReposScansGenerateCall) Context(ctx context.Context) *AccountsReposScansGenerateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AccountsAppsOperationsWaitCall) Header() http.Header { +func (c *AccountsReposScansGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsAppsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsReposScansGenerateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.waitoperationrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlechecksreposcanv1alphageneratescanrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/scans:generate") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -2968,17 +3944,17 @@ func (c *AccountsAppsOperationsWaitCall) doRequest(alt string) (*http.Response, } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "checks.accounts.apps.operations.wait" call. +// Do executes the "checks.accounts.repos.scans.generate" call. // Any non-2xx status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was returned. -func (c *AccountsAppsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *AccountsReposScansGenerateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3010,7 +3986,7 @@ func (c *AccountsAppsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Oper return ret, nil } -type AccountsAppsReportsGetCall struct { +type AccountsReposScansGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -3019,32 +3995,23 @@ type AccountsAppsReportsGetCall struct { header_ http.Header } -// Get: Gets a report. By default, only the name and results_uri fields are +// Get: Gets a repo scan. By default, only the name and results_uri fields are // returned. You can include other fields by listing them in the `fields` URL -// query parameter. For example, `?fields=name,checks` will return the name and -// checks fields. +// query parameter. For example, `?fields=name,sources` will return the name +// and sources fields. // -// - name: Resource name of the report. Example: -// `accounts/123/apps/456/reports/789`. -func (r *AccountsAppsReportsService) Get(name string) *AccountsAppsReportsGetCall { - c := &AccountsAppsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name of the repo scan. Example: +// `accounts/123/repos/456/scans/789`. +func (r *AccountsReposScansService) Get(name string) *AccountsReposScansGetCall { + c := &AccountsReposScansGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// ChecksFilter sets the optional parameter "checksFilter": An AIP-160 -// (https://google.aip.dev/160) filter string to filter checks within the -// report. Only checks that match the filter string are included in the -// response. Example: `state = FAILED` -func (c *AccountsAppsReportsGetCall) ChecksFilter(checksFilter string) *AccountsAppsReportsGetCall { - c.urlParams_.Set("checksFilter", checksFilter) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AccountsAppsReportsGetCall) Fields(s ...googleapi.Field) *AccountsAppsReportsGetCall { +func (c *AccountsReposScansGetCall) Fields(s ...googleapi.Field) *AccountsReposScansGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -3052,27 +4019,27 @@ func (c *AccountsAppsReportsGetCall) Fields(s ...googleapi.Field) *AccountsAppsR // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *AccountsAppsReportsGetCall) IfNoneMatch(entityTag string) *AccountsAppsReportsGetCall { +func (c *AccountsReposScansGetCall) IfNoneMatch(entityTag string) *AccountsReposScansGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *AccountsAppsReportsGetCall) Context(ctx context.Context) *AccountsAppsReportsGetCall { +func (c *AccountsReposScansGetCall) Context(ctx context.Context) *AccountsReposScansGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AccountsAppsReportsGetCall) Header() http.Header { +func (c *AccountsReposScansGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsAppsReportsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsReposScansGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -3093,13 +4060,13 @@ func (c *AccountsAppsReportsGetCall) doRequest(alt string) (*http.Response, erro return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "checks.accounts.apps.reports.get" call. +// Do executes the "checks.accounts.repos.scans.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleChecksReportV1alphaReport.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleChecksRepoScanV1alphaRepoScan.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *AccountsAppsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleChecksReportV1alphaReport, error) { +func (c *AccountsReposScansGetCall) Do(opts ...googleapi.CallOption) (*GoogleChecksRepoScanV1alphaRepoScan, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3118,7 +4085,7 @@ func (c *AccountsAppsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCh if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleChecksReportV1alphaReport{ + ret := &GoogleChecksRepoScanV1alphaRepoScan{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3131,7 +4098,7 @@ func (c *AccountsAppsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCh return ret, nil } -type AccountsAppsReportsListCall struct { +type AccountsReposScansListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -3140,48 +4107,36 @@ type AccountsAppsReportsListCall struct { header_ http.Header } -// List: Lists reports for the specified app. By default, only the name and -// results_uri fields are returned. You can include other fields by listing -// them in the `fields` URL query parameter. For example, -// `?fields=reports(name,checks)` will return the name and checks fields. +// List: Lists repo scans for the specified repo. // -// - parent: Resource name of the app. Example: `accounts/123/apps/456`. -func (r *AccountsAppsReportsService) List(parent string) *AccountsAppsReportsListCall { - c := &AccountsAppsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: Resource name of the repo. Example: `accounts/123/repos/456`. +func (r *AccountsReposScansService) List(parent string) *AccountsReposScansListCall { + c := &AccountsReposScansListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// ChecksFilter sets the optional parameter "checksFilter": An AIP-160 -// (https://google.aip.dev/160) filter string to filter checks within reports. -// Only checks that match the filter string are included in the response. -// Example: `state = FAILED` -func (c *AccountsAppsReportsListCall) ChecksFilter(checksFilter string) *AccountsAppsReportsListCall { - c.urlParams_.Set("checksFilter", checksFilter) - return c -} - // Filter sets the optional parameter "filter": An AIP-160 -// (https://google.aip.dev/160) filter string to filter reports. Example: -// `appBundle.releaseType = PRE_RELEASE` -func (c *AccountsAppsReportsListCall) Filter(filter string) *AccountsAppsReportsListCall { +// (https://google.aip.dev/160) filter string to filter repo scans. Example: +// `scmMetadata.branch = main` +func (c *AccountsReposScansListCall) Filter(filter string) *AccountsReposScansListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number of -// reports to return. If unspecified, at most 10 reports will be returned. The +// PageSize sets the optional parameter "pageSize": The maximum number of repo +// scans to return. If unspecified, at most 10 repo scans will be returned. The // maximum value is 50; values above 50 will be coerced to 50. -func (c *AccountsAppsReportsListCall) PageSize(pageSize int64) *AccountsAppsReportsListCall { +func (c *AccountsReposScansListCall) PageSize(pageSize int64) *AccountsReposScansListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token received -// from a previous `ListReports` call. Provide this to retrieve the subsequent -// page. When paginating, all other parameters provided to `ListReports` must -// match the call that provided the page token. -func (c *AccountsAppsReportsListCall) PageToken(pageToken string) *AccountsAppsReportsListCall { +// from a previous `ListRepoScans` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListRepoScans` must match the call that provided the page token. +func (c *AccountsReposScansListCall) PageToken(pageToken string) *AccountsReposScansListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -3189,7 +4144,7 @@ func (c *AccountsAppsReportsListCall) PageToken(pageToken string) *AccountsAppsR // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AccountsAppsReportsListCall) Fields(s ...googleapi.Field) *AccountsAppsReportsListCall { +func (c *AccountsReposScansListCall) Fields(s ...googleapi.Field) *AccountsReposScansListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -3197,27 +4152,27 @@ func (c *AccountsAppsReportsListCall) Fields(s ...googleapi.Field) *AccountsApps // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *AccountsAppsReportsListCall) IfNoneMatch(entityTag string) *AccountsAppsReportsListCall { +func (c *AccountsReposScansListCall) IfNoneMatch(entityTag string) *AccountsReposScansListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *AccountsAppsReportsListCall) Context(ctx context.Context) *AccountsAppsReportsListCall { +func (c *AccountsReposScansListCall) Context(ctx context.Context) *AccountsReposScansListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AccountsAppsReportsListCall) Header() http.Header { +func (c *AccountsReposScansListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsAppsReportsListCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsReposScansListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -3225,7 +4180,7 @@ func (c *AccountsAppsReportsListCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/reports") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/scans") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -3238,13 +4193,13 @@ func (c *AccountsAppsReportsListCall) doRequest(alt string) (*http.Response, err return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "checks.accounts.apps.reports.list" call. +// Do executes the "checks.accounts.repos.scans.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleChecksReportV1alphaListReportsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleChecksRepoScanV1alphaListRepoScansResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *AccountsAppsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleChecksReportV1alphaListReportsResponse, error) { +func (c *AccountsReposScansListCall) Do(opts ...googleapi.CallOption) (*GoogleChecksRepoScanV1alphaListRepoScansResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3263,7 +4218,7 @@ func (c *AccountsAppsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleC if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleChecksReportV1alphaListReportsResponse{ + ret := &GoogleChecksRepoScanV1alphaListRepoScansResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3279,7 +4234,7 @@ func (c *AccountsAppsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleC // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *AccountsAppsReportsListCall) Pages(ctx context.Context, f func(*GoogleChecksReportV1alphaListReportsResponse) error) error { +func (c *AccountsReposScansListCall) Pages(ctx context.Context, f func(*GoogleChecksRepoScanV1alphaListRepoScansResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -3297,115 +4252,6 @@ func (c *AccountsAppsReportsListCall) Pages(ctx context.Context, f func(*GoogleC } } -type AccountsReposOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: 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. -// -// - name: The name of the operation resource. -func (r *AccountsReposOperationsService) Get(name string) *AccountsReposOperationsGetCall { - c := &AccountsReposOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AccountsReposOperationsGetCall) Fields(s ...googleapi.Field) *AccountsReposOperationsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *AccountsReposOperationsGetCall) IfNoneMatch(entityTag string) *AccountsReposOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsReposOperationsGetCall) Context(ctx context.Context) *AccountsReposOperationsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AccountsReposOperationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsReposOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "checks.accounts.repos.operations.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *AccountsReposOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - type AisafetyClassifyContentCall struct { s *Service googlechecksaisafetyv1alphaclassifycontentrequest *GoogleChecksAisafetyV1alphaClassifyContentRequest diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index 567bda02ee5..3196dddea21 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -344,6 +344,97 @@ } } }, + "profiles": { + "methods": { + "delete": { + "description": "Deletes the data collected from a Chrome browser profile.", + "flatPath": "v1/customers/{customersId}/profiles/{profilesId}", + "httpMethod": "DELETE", + "id": "chromemanagement.customers.profiles.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: customers/{customer_id}/profiles/{profile_permanent_id}", + "location": "path", + "pattern": "^customers/[^/]+/profiles/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + } + }, + "get": { + "description": "Gets a Chrome browser profile with customer ID and profile permanent ID.", + "flatPath": "v1/customers/{customersId}/profiles/{profilesId}", + "httpMethod": "GET", + "id": "chromemanagement.customers.profiles.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: customers/{customer_id}/profiles/{profile_permanent_id}", + "location": "path", + "pattern": "^customers/[^/]+/profiles/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleChromeManagementVersionsV1ChromeBrowserProfile" + } + }, + "list": { + "description": "Lists Chrome browser profiles of a customer based on the given search and sorting criteria.", + "flatPath": "v1/customers/{customersId}/profiles", + "httpMethod": "GET", + "id": "chromemanagement.customers.profiles.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The filter used to filter profiles. The following fields can be used in the filter: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - ouId Any of the above fields can be used to specify a filter, and filtering by multiple fields is supported with AND operator. String type fields and enum type fields support '=' and '!=' operators. The integer type and the timestamp type fields support '=', '!=', '\u003c', '\u003e', '\u003c=' and '\u003e=' operators. Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). Wildcard '*' can be used with a string type field filter. In addition, string literal filtering is also supported, for example, 'ABC' as a filter maps to a filter that checks if any of the filterable string type fields contains 'ABC'. Organization unit number can be used as a filtering criteria here by specifying 'ouId = ${your_org_unit_id}', please note that only single OU ID matching is supported.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. The fields used to specify the ordering of the results. The supported fields are: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state By default, sorting is in ascending order, to specify descending order for a field, a suffix \" desc\" should be added to the field name. The default ordering is the descending order of last_status_report_time.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of profiles to return. The default page size is 100 if page_size is unspecified, and the maximum page size allowed is 200.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The page token used to retrieve a specific page of the listing request.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Format: customers/{customer_id}", + "location": "path", + "pattern": "^customers/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/profiles", + "response": { + "$ref": "GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse" + } + } + } + }, "reports": { "methods": { "countChromeBrowsersNeedingAttention": { @@ -1172,7 +1263,7 @@ } } }, - "revision": "20241107", + "revision": "20241119", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -4780,6 +4871,528 @@ }, "type": "object" }, + "GoogleChromeManagementVersionsV1AttestationCredential": { + "description": "Information of public key associated with a Chrome browser profile.", + "id": "GoogleChromeManagementVersionsV1AttestationCredential", + "properties": { + "keyRotationTime": { + "description": "Output only. Latest rotation timestamp of the public key rotation.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "keyTrustLevel": { + "description": "Output only. Trust level of the public key.", + "enum": [ + "KEY_TRUST_LEVEL_UNSPECIFIED", + "CHROME_BROWSER_HW_KEY", + "CHROME_BROWSER_OS_KEY" + ], + "enumDescriptions": [ + "Represents an unspecified public key trust level.", + "Represents a HW key.", + "Represents an OS key." + ], + "readOnly": true, + "type": "string" + }, + "keyType": { + "description": "Output only. Type of the public key.", + "enum": [ + "KEY_TYPE_UNSPECIFIED", + "RSA_KEY", + "EC_KEY" + ], + "enumDescriptions": [ + "Represents an unspecified public key type.", + "Represents a RSA key.", + "Represents an EC key." + ], + "readOnly": true, + "type": "string" + }, + "publicKey": { + "description": "Output only. Value of the public key.", + "format": "byte", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleChromeManagementVersionsV1ChromeBrowserProfile": { + "description": "A representation of a Chrome browser profile.", + "id": "GoogleChromeManagementVersionsV1ChromeBrowserProfile", + "properties": { + "affiliationState": { + "description": "Output only. The specific affiliation state of the profile.", + "enum": [ + "AFFILIATION_STATE_UNSPECIFIED", + "UNAFFILIATED_GENERIC", + "PROFILE_ONLY", + "UNAFFILIATED_LOCAL_MACHINE", + "UNAFFILIATED_CLOUD_MACHINE", + "AFFILIATED_CLOUD_MANAGED" + ], + "enumDescriptions": [ + "Unspecified affiliation state.", + "Unaffiliated - but we do not have the details for the type of unaffiliated profile.", + "Unaffiliated - A managed profile that appears on a totally unamanaged browser.", + "Unaffiliated - A managed profile that appears on a machine that is locally managed by a different organization (through platform management mechanisms like GPO).", + "Unaffiliated - A managed profile that appears on a managed browser that is cloud managed by a different organization (using Chrome Browser Cloud Management).", + "Affiliated - Both the profile and the managed browser are managed by the same organization." + ], + "readOnly": true, + "type": "string" + }, + "annotatedLocation": { + "description": "Optional. Location of the profile annotated by the admin.", + "type": "string" + }, + "annotatedUser": { + "description": "Optional. User of the profile annotated by the admin.", + "type": "string" + }, + "attestationCredential": { + "$ref": "GoogleChromeManagementVersionsV1AttestationCredential", + "description": "Output only. Attestation credential information of the profile.", + "readOnly": true + }, + "browserChannel": { + "description": "Output only. Channel of the browser on which the profile exists.", + "readOnly": true, + "type": "string" + }, + "browserVersion": { + "description": "Output only. Version of the browser on which the profile exists.", + "readOnly": true, + "type": "string" + }, + "deviceInfo": { + "$ref": "GoogleChromeManagementVersionsV1DeviceInfo", + "description": "Output only. Basic information of the device on which the profile exists. This information is only available for the affiliated profiles.", + "readOnly": true + }, + "displayName": { + "description": "Output only. Profile display name set by client.", + "readOnly": true, + "type": "string" + }, + "etag": { + "description": "Output only. Etag of this ChromeBrowserProfile resource. This etag can be used with UPDATE operation to ensure consistency.", + "readOnly": true, + "type": "string" + }, + "extensionCount": { + "description": "Output only. Number of extensions installed on the profile.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "firstEnrollmentTime": { + "description": "Output only. Timestamp of the first enrollment of the profile.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "identityProvider": { + "description": "Output only. Identify provider of the profile.", + "enum": [ + "IDENTITY_PROVIDER_UNSPECIFIED", + "GOOGLE_IDENTITY_PROVIDER", + "EXTERNAL_IDENTITY_PROVIDER" + ], + "enumDescriptions": [ + "Represents an unspecified identity provider.", + "Represents a Google identity provider.", + "Represents an external identity provider." + ], + "readOnly": true, + "type": "string" + }, + "lastActivityTime": { + "description": "Output only. Timestamp of the latest activity by the profile.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "lastPolicyFetchTime": { + "description": "Output only. Timestamp of the latest policy fetch by the profile.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "lastPolicySyncTime": { + "description": "Output only. Timestamp of the latest policy sync by the profile.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "lastStatusReportTime": { + "description": "Output only. Timestamp of the latest status report by the profile.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. Format: customers/{customer_id}/profiles/{profile_permanent_id}", + "type": "string" + }, + "osPlatformType": { + "description": "Output only. OS platform of the device on which the profile exists.", + "readOnly": true, + "type": "string" + }, + "osPlatformVersion": { + "description": "Output only. Major OS version of the device on which the profile exists. (i.e. Windows 10)", + "readOnly": true, + "type": "string" + }, + "osVersion": { + "description": "Output only. OS version of the device on which the profile exists.", + "readOnly": true, + "type": "string" + }, + "policyCount": { + "description": "Output only. Number of policies applied on the profile.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "profileId": { + "description": "Output only. Chrome client side profile ID.", + "readOnly": true, + "type": "string" + }, + "profilePermanentId": { + "description": "Output only. Profile permanent ID is the unique identifier of a profile within one customer.", + "readOnly": true, + "type": "string" + }, + "reportingData": { + "$ref": "GoogleChromeManagementVersionsV1ReportingData", + "description": "Output only. Detailed reporting data of the profile. This information is only available when the profile reporting policy is enabled.", + "readOnly": true + }, + "userEmail": { + "description": "Output only. Email address of the user to which the profile belongs.", + "readOnly": true, + "type": "string" + }, + "userId": { + "description": "Output only. Unique Directory API ID of the user that can be used in Admin SDK Users API.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleChromeManagementVersionsV1DeviceInfo": { + "description": "Information of a device that runs a Chrome browser profile.", + "id": "GoogleChromeManagementVersionsV1DeviceInfo", + "properties": { + "affiliatedDeviceId": { + "description": "Output only. Device ID that identifies the affiliated device on which the profile exists. If the device type is CHROME_BROWSER, then this represents a unique Directory API ID of the device that can be used in Admin SDK Browsers API.", + "readOnly": true, + "type": "string" + }, + "deviceType": { + "description": "Output only. Type of the device on which the profile exists.", + "enum": [ + "DEVICE_TYPE_UNSPECIFIED", + "CHROME_BROWSER" + ], + "enumDescriptions": [ + "Represents an unspecified device type.", + "Represents a Chrome browser device." + ], + "readOnly": true, + "type": "string" + }, + "hostname": { + "description": "Output only. Hostname of the device on which the profile exists.", + "readOnly": true, + "type": "string" + }, + "machine": { + "description": "Output only. Machine name of the device on which the profile exists. On platforms which do not report the machine name (currently iOS and Android) this is instead set to the browser's device_id - but note that this is a different device_id than the |affiliated_device_id|.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse": { + "description": "Response to ListChromeBrowserProfiles method.", + "id": "GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse", + "properties": { + "chromeBrowserProfiles": { + "description": "The list of profiles returned.", + "items": { + "$ref": "GoogleChromeManagementVersionsV1ChromeBrowserProfile" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The pagination token that can be used to list the next page.", + "type": "string" + }, + "totalSize": { + "description": "Total size represents an estimated number of resources returned. Not guaranteed to be accurate above 10k profiles.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleChromeManagementVersionsV1ReportingData": { + "description": "Reporting data of a Chrome browser profile.", + "id": "GoogleChromeManagementVersionsV1ReportingData", + "properties": { + "browserExecutablePath": { + "description": "Output only. Executable path of the installed Chrome browser. A valid path is included only in affiliated profiles.", + "readOnly": true, + "type": "string" + }, + "extensionData": { + "description": "Output only. Information of the extensions installed on the profile.", + "items": { + "$ref": "GoogleChromeManagementVersionsV1ReportingDataExtensionData" + }, + "readOnly": true, + "type": "array" + }, + "extensionPolicyData": { + "description": "Output only. Information of the policies applied on the extensions.", + "items": { + "$ref": "GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData" + }, + "readOnly": true, + "type": "array" + }, + "installedBrowserVersion": { + "description": "Output only. Updated version of a browser, if it is different from the active browser version.", + "readOnly": true, + "type": "string" + }, + "policyData": { + "description": "Output only. Information of the policies applied on the profile.", + "items": { + "$ref": "GoogleChromeManagementVersionsV1ReportingDataPolicyData" + }, + "readOnly": true, + "type": "array" + }, + "profilePath": { + "description": "Output only. Path of the profile. A valid path is included only in affiliated profiles.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData": { + "description": "Information of conflicting policy applied on a Chrome browser profile.", + "id": "GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData", + "properties": { + "source": { + "description": "Output only. Source of the policy.", + "enum": [ + "POLICY_SOURCE_UNSPECIFIED", + "MACHINE_PLATFORM", + "USER_PLATFORM", + "MACHINE_LEVEL_USER_CLOUD", + "USER_CLOUD", + "MACHINE_MERGED" + ], + "enumDescriptions": [ + "Represents an unspecified policy source.", + "Represents a machine level platform policy.", + "Represents a user level platform policy.", + "Represents a machine level user cloud policy.", + "Represents a user level cloud policy.", + "Represents a machine level merged policy." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleChromeManagementVersionsV1ReportingDataExtensionData": { + "description": "Information of an extension installed on a Chrome browser profile.", + "id": "GoogleChromeManagementVersionsV1ReportingDataExtensionData", + "properties": { + "description": { + "description": "Output only. Description of the extension.", + "readOnly": true, + "type": "string" + }, + "extensionId": { + "description": "Output only. ID of the extension.", + "readOnly": true, + "type": "string" + }, + "extensionType": { + "description": "Output only. Type of the extension.", + "enum": [ + "EXTENSION_TYPE_UNSPECIFIED", + "EXTENSION", + "APP", + "THEME", + "HOSTED_APP" + ], + "enumDescriptions": [ + "Represents an unspecified extension type.", + "Represents an extension.", + "Represents an app.", + "Represents a theme.", + "Represents a hosted app." + ], + "readOnly": true, + "type": "string" + }, + "homepageUri": { + "description": "Output only. The URL of the homepage of the extension.", + "readOnly": true, + "type": "string" + }, + "installationType": { + "description": "Output only. Installation type of the extension.", + "enum": [ + "INSTALLATION_TYPE_UNSPECIFIED", + "MULTIPLE", + "NORMAL", + "ADMIN", + "DEVELOPMENT", + "SIDELOAD", + "OTHER" + ], + "enumDescriptions": [ + "Represents an unspecified installation type.", + "Represents instances of the extension having mixed installation types.", + "Represents a normal installation type.", + "Represents an installation by admin.", + "Represents a development installation type.", + "Represents a sideload installation type.", + "Represents an installation type that is not covered in the other options." + ], + "readOnly": true, + "type": "string" + }, + "isDisabled": { + "description": "Output only. Represents whether the user disabled the extension.", + "readOnly": true, + "type": "boolean" + }, + "isWebstoreExtension": { + "description": "Output only. Represents whether the extension is from the webstore.", + "readOnly": true, + "type": "boolean" + }, + "manifestVersion": { + "description": "Output only. Manifest version of the extension.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "name": { + "description": "Output only. Name of the extension.", + "readOnly": true, + "type": "string" + }, + "permissions": { + "description": "Output only. Permissions requested by the extension.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "version": { + "description": "Output only. Version of the extension.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData": { + "description": "Information of the policies applied on an extension.", + "id": "GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData", + "properties": { + "extensionId": { + "description": "Output only. ID of the extension.", + "readOnly": true, + "type": "string" + }, + "extensionName": { + "description": "Output only. Name of the extension.", + "readOnly": true, + "type": "string" + }, + "policyData": { + "description": "Output only. Information of the policies applied on the extension.", + "items": { + "$ref": "GoogleChromeManagementVersionsV1ReportingDataPolicyData" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleChromeManagementVersionsV1ReportingDataPolicyData": { + "description": "Information of a policy applied on a Chrome browser profile.", + "id": "GoogleChromeManagementVersionsV1ReportingDataPolicyData", + "properties": { + "conflicts": { + "description": "Output only. Conflicting policy information.", + "items": { + "$ref": "GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData" + }, + "readOnly": true, + "type": "array" + }, + "error": { + "description": "Output only. Error message of the policy, if any.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. Name of the policy.", + "readOnly": true, + "type": "string" + }, + "source": { + "description": "Output only. Source of the policy.", + "enum": [ + "POLICY_SOURCE_UNSPECIFIED", + "MACHINE_PLATFORM", + "USER_PLATFORM", + "MACHINE_LEVEL_USER_CLOUD", + "USER_CLOUD", + "MACHINE_MERGED" + ], + "enumDescriptions": [ + "Represents an unspecified policy source.", + "Represents a machine level platform policy.", + "Represents a user level platform policy.", + "Represents a machine level user cloud policy.", + "Represents a user level cloud policy.", + "Represents a machine level merged policy." + ], + "readOnly": true, + "type": "string" + }, + "value": { + "description": "Output only. Value of the policy.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleProtobufEmpty": { "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": "GoogleProtobufEmpty", diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index 6ab6cad8da9..f1083eb5351 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -172,6 +172,7 @@ func (s *Service) userAgent() string { func NewCustomersService(s *Service) *CustomersService { rs := &CustomersService{s: s} rs.Apps = NewCustomersAppsService(s) + rs.Profiles = NewCustomersProfilesService(s) rs.Reports = NewCustomersReportsService(s) rs.Telemetry = NewCustomersTelemetryService(s) return rs @@ -182,6 +183,8 @@ type CustomersService struct { Apps *CustomersAppsService + Profiles *CustomersProfilesService + Reports *CustomersReportsService Telemetry *CustomersTelemetryService @@ -232,6 +235,15 @@ type CustomersAppsWebService struct { s *Service } +func NewCustomersProfilesService(s *Service) *CustomersProfilesService { + rs := &CustomersProfilesService{s: s} + return rs +} + +type CustomersProfilesService struct { + s *Service +} + func NewCustomersReportsService(s *Service) *CustomersReportsService { rs := &CustomersReportsService{s: s} return rs @@ -4002,6 +4014,433 @@ func (s GoogleChromeManagementV1UserRequestingExtensionDetails) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleChromeManagementVersionsV1AttestationCredential: Information of public +// key associated with a Chrome browser profile. +type GoogleChromeManagementVersionsV1AttestationCredential struct { + // KeyRotationTime: Output only. Latest rotation timestamp of the public key + // rotation. + KeyRotationTime string `json:"keyRotationTime,omitempty"` + // KeyTrustLevel: Output only. Trust level of the public key. + // + // Possible values: + // "KEY_TRUST_LEVEL_UNSPECIFIED" - Represents an unspecified public key trust + // level. + // "CHROME_BROWSER_HW_KEY" - Represents a HW key. + // "CHROME_BROWSER_OS_KEY" - Represents an OS key. + KeyTrustLevel string `json:"keyTrustLevel,omitempty"` + // KeyType: Output only. Type of the public key. + // + // Possible values: + // "KEY_TYPE_UNSPECIFIED" - Represents an unspecified public key type. + // "RSA_KEY" - Represents a RSA key. + // "EC_KEY" - Represents an EC key. + KeyType string `json:"keyType,omitempty"` + // PublicKey: Output only. Value of the public key. + PublicKey string `json:"publicKey,omitempty"` + // ForceSendFields is a list of field names (e.g. "KeyRotationTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "KeyRotationTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChromeManagementVersionsV1AttestationCredential) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementVersionsV1AttestationCredential + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementVersionsV1ChromeBrowserProfile: A representation of a +// Chrome browser profile. +type GoogleChromeManagementVersionsV1ChromeBrowserProfile struct { + // AffiliationState: Output only. The specific affiliation state of the + // profile. + // + // Possible values: + // "AFFILIATION_STATE_UNSPECIFIED" - Unspecified affiliation state. + // "UNAFFILIATED_GENERIC" - Unaffiliated - but we do not have the details for + // the type of unaffiliated profile. + // "PROFILE_ONLY" - Unaffiliated - A managed profile that appears on a + // totally unamanaged browser. + // "UNAFFILIATED_LOCAL_MACHINE" - Unaffiliated - A managed profile that + // appears on a machine that is locally managed by a different organization + // (through platform management mechanisms like GPO). + // "UNAFFILIATED_CLOUD_MACHINE" - Unaffiliated - A managed profile that + // appears on a managed browser that is cloud managed by a different + // organization (using Chrome Browser Cloud Management). + // "AFFILIATED_CLOUD_MANAGED" - Affiliated - Both the profile and the managed + // browser are managed by the same organization. + AffiliationState string `json:"affiliationState,omitempty"` + // AnnotatedLocation: Optional. Location of the profile annotated by the admin. + AnnotatedLocation string `json:"annotatedLocation,omitempty"` + // AnnotatedUser: Optional. User of the profile annotated by the admin. + AnnotatedUser string `json:"annotatedUser,omitempty"` + // AttestationCredential: Output only. Attestation credential information of + // the profile. + AttestationCredential *GoogleChromeManagementVersionsV1AttestationCredential `json:"attestationCredential,omitempty"` + // BrowserChannel: Output only. Channel of the browser on which the profile + // exists. + BrowserChannel string `json:"browserChannel,omitempty"` + // BrowserVersion: Output only. Version of the browser on which the profile + // exists. + BrowserVersion string `json:"browserVersion,omitempty"` + // DeviceInfo: Output only. Basic information of the device on which the + // profile exists. This information is only available for the affiliated + // profiles. + DeviceInfo *GoogleChromeManagementVersionsV1DeviceInfo `json:"deviceInfo,omitempty"` + // DisplayName: Output only. Profile display name set by client. + DisplayName string `json:"displayName,omitempty"` + // Etag: Output only. Etag of this ChromeBrowserProfile resource. This etag can + // be used with UPDATE operation to ensure consistency. + Etag string `json:"etag,omitempty"` + // ExtensionCount: Output only. Number of extensions installed on the profile. + ExtensionCount int64 `json:"extensionCount,omitempty,string"` + // FirstEnrollmentTime: Output only. Timestamp of the first enrollment of the + // profile. + FirstEnrollmentTime string `json:"firstEnrollmentTime,omitempty"` + // IdentityProvider: Output only. Identify provider of the profile. + // + // Possible values: + // "IDENTITY_PROVIDER_UNSPECIFIED" - Represents an unspecified identity + // provider. + // "GOOGLE_IDENTITY_PROVIDER" - Represents a Google identity provider. + // "EXTERNAL_IDENTITY_PROVIDER" - Represents an external identity provider. + IdentityProvider string `json:"identityProvider,omitempty"` + // LastActivityTime: Output only. Timestamp of the latest activity by the + // profile. + LastActivityTime string `json:"lastActivityTime,omitempty"` + // LastPolicyFetchTime: Output only. Timestamp of the latest policy fetch by + // the profile. + LastPolicyFetchTime string `json:"lastPolicyFetchTime,omitempty"` + // LastPolicySyncTime: Output only. Timestamp of the latest policy sync by the + // profile. + LastPolicySyncTime string `json:"lastPolicySyncTime,omitempty"` + // LastStatusReportTime: Output only. Timestamp of the latest status report by + // the profile. + LastStatusReportTime string `json:"lastStatusReportTime,omitempty"` + // Name: Identifier. Format: + // customers/{customer_id}/profiles/{profile_permanent_id} + Name string `json:"name,omitempty"` + // OsPlatformType: Output only. OS platform of the device on which the profile + // exists. + OsPlatformType string `json:"osPlatformType,omitempty"` + // OsPlatformVersion: Output only. Major OS version of the device on which the + // profile exists. (i.e. Windows 10) + OsPlatformVersion string `json:"osPlatformVersion,omitempty"` + // OsVersion: Output only. OS version of the device on which the profile + // exists. + OsVersion string `json:"osVersion,omitempty"` + // PolicyCount: Output only. Number of policies applied on the profile. + PolicyCount int64 `json:"policyCount,omitempty,string"` + // ProfileId: Output only. Chrome client side profile ID. + ProfileId string `json:"profileId,omitempty"` + // ProfilePermanentId: Output only. Profile permanent ID is the unique + // identifier of a profile within one customer. + ProfilePermanentId string `json:"profilePermanentId,omitempty"` + // ReportingData: Output only. Detailed reporting data of the profile. This + // information is only available when the profile reporting policy is enabled. + ReportingData *GoogleChromeManagementVersionsV1ReportingData `json:"reportingData,omitempty"` + // UserEmail: Output only. Email address of the user to which the profile + // belongs. + UserEmail string `json:"userEmail,omitempty"` + // UserId: Output only. Unique Directory API ID of the user that can be used in + // Admin SDK Users API. + UserId string `json:"userId,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AffiliationState") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AffiliationState") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChromeManagementVersionsV1ChromeBrowserProfile) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementVersionsV1ChromeBrowserProfile + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementVersionsV1DeviceInfo: Information of a device that +// runs a Chrome browser profile. +type GoogleChromeManagementVersionsV1DeviceInfo struct { + // AffiliatedDeviceId: Output only. Device ID that identifies the affiliated + // device on which the profile exists. If the device type is CHROME_BROWSER, + // then this represents a unique Directory API ID of the device that can be + // used in Admin SDK Browsers API. + AffiliatedDeviceId string `json:"affiliatedDeviceId,omitempty"` + // DeviceType: Output only. Type of the device on which the profile exists. + // + // Possible values: + // "DEVICE_TYPE_UNSPECIFIED" - Represents an unspecified device type. + // "CHROME_BROWSER" - Represents a Chrome browser device. + DeviceType string `json:"deviceType,omitempty"` + // Hostname: Output only. Hostname of the device on which the profile exists. + Hostname string `json:"hostname,omitempty"` + // Machine: Output only. Machine name of the device on which the profile + // exists. On platforms which do not report the machine name (currently iOS and + // Android) this is instead set to the browser's device_id - but note that this + // is a different device_id than the |affiliated_device_id|. + Machine string `json:"machine,omitempty"` + // ForceSendFields is a list of field names (e.g. "AffiliatedDeviceId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AffiliatedDeviceId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChromeManagementVersionsV1DeviceInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementVersionsV1DeviceInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse: Response +// to ListChromeBrowserProfiles method. +type GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse struct { + // ChromeBrowserProfiles: The list of profiles returned. + ChromeBrowserProfiles []*GoogleChromeManagementVersionsV1ChromeBrowserProfile `json:"chromeBrowserProfiles,omitempty"` + // NextPageToken: The pagination token that can be used to list the next page. + NextPageToken string `json:"nextPageToken,omitempty"` + // TotalSize: Total size represents an estimated number of resources returned. + // Not guaranteed to be accurate above 10k profiles. + TotalSize int64 `json:"totalSize,omitempty,string"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ChromeBrowserProfiles") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ChromeBrowserProfiles") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementVersionsV1ReportingData: Reporting data of a Chrome +// browser profile. +type GoogleChromeManagementVersionsV1ReportingData struct { + // BrowserExecutablePath: Output only. Executable path of the installed Chrome + // browser. A valid path is included only in affiliated profiles. + BrowserExecutablePath string `json:"browserExecutablePath,omitempty"` + // ExtensionData: Output only. Information of the extensions installed on the + // profile. + ExtensionData []*GoogleChromeManagementVersionsV1ReportingDataExtensionData `json:"extensionData,omitempty"` + // ExtensionPolicyData: Output only. Information of the policies applied on the + // extensions. + ExtensionPolicyData []*GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData `json:"extensionPolicyData,omitempty"` + // InstalledBrowserVersion: Output only. Updated version of a browser, if it is + // different from the active browser version. + InstalledBrowserVersion string `json:"installedBrowserVersion,omitempty"` + // PolicyData: Output only. Information of the policies applied on the profile. + PolicyData []*GoogleChromeManagementVersionsV1ReportingDataPolicyData `json:"policyData,omitempty"` + // ProfilePath: Output only. Path of the profile. A valid path is included only + // in affiliated profiles. + ProfilePath string `json:"profilePath,omitempty"` + // ForceSendFields is a list of field names (e.g. "BrowserExecutablePath") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BrowserExecutablePath") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChromeManagementVersionsV1ReportingData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementVersionsV1ReportingData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData: +// Information of conflicting policy applied on a Chrome browser profile. +type GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData struct { + // Source: Output only. Source of the policy. + // + // Possible values: + // "POLICY_SOURCE_UNSPECIFIED" - Represents an unspecified policy source. + // "MACHINE_PLATFORM" - Represents a machine level platform policy. + // "USER_PLATFORM" - Represents a user level platform policy. + // "MACHINE_LEVEL_USER_CLOUD" - Represents a machine level user cloud policy. + // "USER_CLOUD" - Represents a user level cloud policy. + // "MACHINE_MERGED" - Represents a machine level merged policy. + Source string `json:"source,omitempty"` + // ForceSendFields is a list of field names (e.g. "Source") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Source") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementVersionsV1ReportingDataExtensionData: Information of +// an extension installed on a Chrome browser profile. +type GoogleChromeManagementVersionsV1ReportingDataExtensionData struct { + // Description: Output only. Description of the extension. + Description string `json:"description,omitempty"` + // ExtensionId: Output only. ID of the extension. + ExtensionId string `json:"extensionId,omitempty"` + // ExtensionType: Output only. Type of the extension. + // + // Possible values: + // "EXTENSION_TYPE_UNSPECIFIED" - Represents an unspecified extension type. + // "EXTENSION" - Represents an extension. + // "APP" - Represents an app. + // "THEME" - Represents a theme. + // "HOSTED_APP" - Represents a hosted app. + ExtensionType string `json:"extensionType,omitempty"` + // HomepageUri: Output only. The URL of the homepage of the extension. + HomepageUri string `json:"homepageUri,omitempty"` + // InstallationType: Output only. Installation type of the extension. + // + // Possible values: + // "INSTALLATION_TYPE_UNSPECIFIED" - Represents an unspecified installation + // type. + // "MULTIPLE" - Represents instances of the extension having mixed + // installation types. + // "NORMAL" - Represents a normal installation type. + // "ADMIN" - Represents an installation by admin. + // "DEVELOPMENT" - Represents a development installation type. + // "SIDELOAD" - Represents a sideload installation type. + // "OTHER" - Represents an installation type that is not covered in the other + // options. + InstallationType string `json:"installationType,omitempty"` + // IsDisabled: Output only. Represents whether the user disabled the extension. + IsDisabled bool `json:"isDisabled,omitempty"` + // IsWebstoreExtension: Output only. Represents whether the extension is from + // the webstore. + IsWebstoreExtension bool `json:"isWebstoreExtension,omitempty"` + // ManifestVersion: Output only. Manifest version of the extension. + ManifestVersion int64 `json:"manifestVersion,omitempty"` + // Name: Output only. Name of the extension. + Name string `json:"name,omitempty"` + // Permissions: Output only. Permissions requested by the extension. + Permissions []string `json:"permissions,omitempty"` + // Version: Output only. Version of the extension. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChromeManagementVersionsV1ReportingDataExtensionData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementVersionsV1ReportingDataExtensionData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData: +// Information of the policies applied on an extension. +type GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData struct { + // ExtensionId: Output only. ID of the extension. + ExtensionId string `json:"extensionId,omitempty"` + // ExtensionName: Output only. Name of the extension. + ExtensionName string `json:"extensionName,omitempty"` + // PolicyData: Output only. Information of the policies applied on the + // extension. + PolicyData []*GoogleChromeManagementVersionsV1ReportingDataPolicyData `json:"policyData,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExtensionId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ExtensionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementVersionsV1ReportingDataPolicyData: Information of a +// policy applied on a Chrome browser profile. +type GoogleChromeManagementVersionsV1ReportingDataPolicyData struct { + // Conflicts: Output only. Conflicting policy information. + Conflicts []*GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData `json:"conflicts,omitempty"` + // Error: Output only. Error message of the policy, if any. + Error string `json:"error,omitempty"` + // Name: Output only. Name of the policy. + Name string `json:"name,omitempty"` + // Source: Output only. Source of the policy. + // + // Possible values: + // "POLICY_SOURCE_UNSPECIFIED" - Represents an unspecified policy source. + // "MACHINE_PLATFORM" - Represents a machine level platform policy. + // "USER_PLATFORM" - Represents a user level platform policy. + // "MACHINE_LEVEL_USER_CLOUD" - Represents a machine level user cloud policy. + // "USER_CLOUD" - Represents a user level cloud policy. + // "MACHINE_MERGED" - Represents a machine level merged policy. + Source string `json:"source,omitempty"` + // Value: Output only. Value of the policy. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Conflicts") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Conflicts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleChromeManagementVersionsV1ReportingDataPolicyData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementVersionsV1ReportingDataPolicyData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleProtobufEmpty: 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: @@ -4902,6 +5341,392 @@ func (c *CustomersAppsWebGetCall) Do(opts ...googleapi.CallOption) (*GoogleChrom return ret, nil } +type CustomersProfilesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the data collected from a Chrome browser profile. +// +// - name: Format: customers/{customer_id}/profiles/{profile_permanent_id}. +func (r *CustomersProfilesService) Delete(name string) *CustomersProfilesDeleteCall { + c := &CustomersProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *CustomersProfilesDeleteCall) Fields(s ...googleapi.Field) *CustomersProfilesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *CustomersProfilesDeleteCall) Context(ctx context.Context) *CustomersProfilesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *CustomersProfilesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CustomersProfilesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "chromemanagement.customers.profiles.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *CustomersProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type CustomersProfilesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a Chrome browser profile with customer ID and profile permanent +// ID. +// +// - name: Format: customers/{customer_id}/profiles/{profile_permanent_id}. +func (r *CustomersProfilesService) Get(name string) *CustomersProfilesGetCall { + c := &CustomersProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *CustomersProfilesGetCall) Fields(s ...googleapi.Field) *CustomersProfilesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *CustomersProfilesGetCall) IfNoneMatch(entityTag string) *CustomersProfilesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *CustomersProfilesGetCall) Context(ctx context.Context) *CustomersProfilesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *CustomersProfilesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CustomersProfilesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "chromemanagement.customers.profiles.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleChromeManagementVersionsV1ChromeBrowserProfile.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *CustomersProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementVersionsV1ChromeBrowserProfile, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleChromeManagementVersionsV1ChromeBrowserProfile{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type CustomersProfilesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Chrome browser profiles of a customer based on the given search +// and sorting criteria. +// +// - parent: Format: customers/{customer_id}. +func (r *CustomersProfilesService) List(parent string) *CustomersProfilesListCall { + c := &CustomersProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The filter used to filter +// profiles. The following fields can be used in the filter: - profile_id - +// display_name - user_email - last_activity_time - last_policy_sync_time - +// last_status_report_time - first_enrollment_time - os_platform_type - +// os_version - browser_version - browser_channel - policy_count - +// extension_count - identity_provider - affiliation_state - ouId Any of the +// above fields can be used to specify a filter, and filtering by multiple +// fields is supported with AND operator. String type fields and enum type +// fields support '=' and '!=' operators. The integer type and the timestamp +// type fields support '=', '!=', '<', '>', '<=' and '>=' operators. Timestamps +// expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). +// Wildcard '*' can be used with a string type field filter. In addition, +// string literal filtering is also supported, for example, 'ABC' as a filter +// maps to a filter that checks if any of the filterable string type fields +// contains 'ABC'. Organization unit number can be used as a filtering criteria +// here by specifying 'ouId = ${your_org_unit_id}', please note that only +// single OU ID matching is supported. +func (c *CustomersProfilesListCall) Filter(filter string) *CustomersProfilesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": The fields used to specify +// the ordering of the results. The supported fields are: - profile_id - +// display_name - user_email - last_activity_time - last_policy_sync_time - +// last_status_report_time - first_enrollment_time - os_platform_type - +// os_version - browser_version - browser_channel - policy_count - +// extension_count - identity_provider - affiliation_state By default, sorting +// is in ascending order, to specify descending order for a field, a suffix " +// desc" should be added to the field name. The default ordering is the +// descending order of last_status_report_time. +func (c *CustomersProfilesListCall) OrderBy(orderBy string) *CustomersProfilesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// profiles to return. The default page size is 100 if page_size is +// unspecified, and the maximum page size allowed is 200. +func (c *CustomersProfilesListCall) PageSize(pageSize int64) *CustomersProfilesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token used to +// retrieve a specific page of the listing request. +func (c *CustomersProfilesListCall) PageToken(pageToken string) *CustomersProfilesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *CustomersProfilesListCall) Fields(s ...googleapi.Field) *CustomersProfilesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *CustomersProfilesListCall) IfNoneMatch(entityTag string) *CustomersProfilesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *CustomersProfilesListCall) Context(ctx context.Context) *CustomersProfilesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *CustomersProfilesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CustomersProfilesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/profiles") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "chromemanagement.customers.profiles.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse.ServerResp +// onse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *CustomersProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *CustomersProfilesListCall) Pages(ctx context.Context, f func(*GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type CustomersReportsCountChromeBrowsersNeedingAttentionCall struct { s *Service customer string diff --git a/cloudasset/v1/cloudasset-api.json b/cloudasset/v1/cloudasset-api.json index c04fd666ee0..68557fc58d4 100644 --- a/cloudasset/v1/cloudasset-api.json +++ b/cloudasset/v1/cloudasset-api.json @@ -1095,7 +1095,7 @@ } } }, - "revision": "20241110", + "revision": "20241115", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AccessSelector": { @@ -3063,7 +3063,7 @@ "type": "string" }, "etag": { - "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. Clients should not expect this to be in any specific format. If etag is not provided, the operation will be performed as if a valid etag is provided.", + "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. This identifier does not follow any specific format. If an etag is not provided, the operation will be performed as if a valid etag is provided.", "type": "string" }, "name": { diff --git a/cloudasset/v1/cloudasset-gen.go b/cloudasset/v1/cloudasset-gen.go index 118ae5e948d..e7f1300ac31 100644 --- a/cloudasset/v1/cloudasset-gen.go +++ b/cloudasset/v1/cloudasset-gen.go @@ -3376,9 +3376,9 @@ type GoogleIdentityAccesscontextmanagerV1ServicePerimeter struct { // affect behavior. Description string `json:"description,omitempty"` // Etag: Optional. An opaque identifier for the current version of the - // `ServicePerimeter`. Clients should not expect this to be in any specific - // format. If etag is not provided, the operation will be performed as if a - // valid etag is provided. + // `ServicePerimeter`. This identifier does not follow any specific format. If + // an etag is not provided, the operation will be performed as if a valid etag + // is provided. Etag string `json:"etag,omitempty"` // Name: Identifier. Resource name for the `ServicePerimeter`. Format: // `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The diff --git a/cloudasset/v1beta1/cloudasset-api.json b/cloudasset/v1beta1/cloudasset-api.json index 7793cd104fc..1319a8bd431 100644 --- a/cloudasset/v1beta1/cloudasset-api.json +++ b/cloudasset/v1beta1/cloudasset-api.json @@ -411,7 +411,7 @@ } } }, - "revision": "20241110", + "revision": "20241115", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AnalyzeIamPolicyLongrunningMetadata": { @@ -1373,7 +1373,7 @@ "type": "string" }, "etag": { - "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. Clients should not expect this to be in any specific format. If etag is not provided, the operation will be performed as if a valid etag is provided.", + "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. This identifier does not follow any specific format. If an etag is not provided, the operation will be performed as if a valid etag is provided.", "type": "string" }, "name": { diff --git a/cloudasset/v1beta1/cloudasset-gen.go b/cloudasset/v1beta1/cloudasset-gen.go index e8ad161a1d1..6dc67ac7990 100644 --- a/cloudasset/v1beta1/cloudasset-gen.go +++ b/cloudasset/v1beta1/cloudasset-gen.go @@ -1821,9 +1821,9 @@ type GoogleIdentityAccesscontextmanagerV1ServicePerimeter struct { // affect behavior. Description string `json:"description,omitempty"` // Etag: Optional. An opaque identifier for the current version of the - // `ServicePerimeter`. Clients should not expect this to be in any specific - // format. If etag is not provided, the operation will be performed as if a - // valid etag is provided. + // `ServicePerimeter`. This identifier does not follow any specific format. If + // an etag is not provided, the operation will be performed as if a valid etag + // is provided. Etag string `json:"etag,omitempty"` // Name: Identifier. Resource name for the `ServicePerimeter`. Format: // `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The diff --git a/cloudasset/v1p1beta1/cloudasset-api.json b/cloudasset/v1p1beta1/cloudasset-api.json index ede514f9a35..58debd5f84f 100644 --- a/cloudasset/v1p1beta1/cloudasset-api.json +++ b/cloudasset/v1p1beta1/cloudasset-api.json @@ -207,7 +207,7 @@ } } }, - "revision": "20241110", + "revision": "20241115", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AnalyzeIamPolicyLongrunningMetadata": { @@ -1075,7 +1075,7 @@ "type": "string" }, "etag": { - "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. Clients should not expect this to be in any specific format. If etag is not provided, the operation will be performed as if a valid etag is provided.", + "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. This identifier does not follow any specific format. If an etag is not provided, the operation will be performed as if a valid etag is provided.", "type": "string" }, "name": { diff --git a/cloudasset/v1p1beta1/cloudasset-gen.go b/cloudasset/v1p1beta1/cloudasset-gen.go index 569cf5b66eb..818ada63913 100644 --- a/cloudasset/v1p1beta1/cloudasset-gen.go +++ b/cloudasset/v1p1beta1/cloudasset-gen.go @@ -1632,9 +1632,9 @@ type GoogleIdentityAccesscontextmanagerV1ServicePerimeter struct { // affect behavior. Description string `json:"description,omitempty"` // Etag: Optional. An opaque identifier for the current version of the - // `ServicePerimeter`. Clients should not expect this to be in any specific - // format. If etag is not provided, the operation will be performed as if a - // valid etag is provided. + // `ServicePerimeter`. This identifier does not follow any specific format. If + // an etag is not provided, the operation will be performed as if a valid etag + // is provided. Etag string `json:"etag,omitempty"` // Name: Identifier. Resource name for the `ServicePerimeter`. Format: // `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The diff --git a/cloudasset/v1p5beta1/cloudasset-api.json b/cloudasset/v1p5beta1/cloudasset-api.json index fd5185456aa..ebf43b77993 100644 --- a/cloudasset/v1p5beta1/cloudasset-api.json +++ b/cloudasset/v1p5beta1/cloudasset-api.json @@ -177,7 +177,7 @@ } } }, - "revision": "20241110", + "revision": "20241115", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AnalyzeIamPolicyLongrunningMetadata": { @@ -1080,7 +1080,7 @@ "type": "string" }, "etag": { - "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. Clients should not expect this to be in any specific format. If etag is not provided, the operation will be performed as if a valid etag is provided.", + "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. This identifier does not follow any specific format. If an etag is not provided, the operation will be performed as if a valid etag is provided.", "type": "string" }, "name": { diff --git a/cloudasset/v1p5beta1/cloudasset-gen.go b/cloudasset/v1p5beta1/cloudasset-gen.go index de3f24d25aa..4ead190c758 100644 --- a/cloudasset/v1p5beta1/cloudasset-gen.go +++ b/cloudasset/v1p5beta1/cloudasset-gen.go @@ -1666,9 +1666,9 @@ type GoogleIdentityAccesscontextmanagerV1ServicePerimeter struct { // affect behavior. Description string `json:"description,omitempty"` // Etag: Optional. An opaque identifier for the current version of the - // `ServicePerimeter`. Clients should not expect this to be in any specific - // format. If etag is not provided, the operation will be performed as if a - // valid etag is provided. + // `ServicePerimeter`. This identifier does not follow any specific format. If + // an etag is not provided, the operation will be performed as if a valid etag + // is provided. Etag string `json:"etag,omitempty"` // Name: Identifier. Resource name for the `ServicePerimeter`. Format: // `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The diff --git a/cloudasset/v1p7beta1/cloudasset-api.json b/cloudasset/v1p7beta1/cloudasset-api.json index 5680b36d72b..3a6eeed53f9 100644 --- a/cloudasset/v1p7beta1/cloudasset-api.json +++ b/cloudasset/v1p7beta1/cloudasset-api.json @@ -167,7 +167,7 @@ } } }, - "revision": "20241110", + "revision": "20241115", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AnalyzeIamPolicyLongrunningMetadata": { @@ -1149,7 +1149,7 @@ "type": "string" }, "etag": { - "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. Clients should not expect this to be in any specific format. If etag is not provided, the operation will be performed as if a valid etag is provided.", + "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. This identifier does not follow any specific format. If an etag is not provided, the operation will be performed as if a valid etag is provided.", "type": "string" }, "name": { diff --git a/cloudasset/v1p7beta1/cloudasset-gen.go b/cloudasset/v1p7beta1/cloudasset-gen.go index f3815592e86..a4b94ae8eb2 100644 --- a/cloudasset/v1p7beta1/cloudasset-gen.go +++ b/cloudasset/v1p7beta1/cloudasset-gen.go @@ -1842,9 +1842,9 @@ type GoogleIdentityAccesscontextmanagerV1ServicePerimeter struct { // affect behavior. Description string `json:"description,omitempty"` // Etag: Optional. An opaque identifier for the current version of the - // `ServicePerimeter`. Clients should not expect this to be in any specific - // format. If etag is not provided, the operation will be performed as if a - // valid etag is provided. + // `ServicePerimeter`. This identifier does not follow any specific format. If + // an etag is not provided, the operation will be performed as if a valid etag + // is provided. Etag string `json:"etag,omitempty"` // Name: Identifier. Resource name for the `ServicePerimeter`. Format: // `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index a22cd189f4c..43b4401dee2 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -716,7 +716,7 @@ } } }, - "revision": "20241024", + "revision": "20241117", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -828,7 +828,7 @@ "type": "string" }, "dockerRepository": { - "description": "Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.", + "description": "Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be 'DOCKER'.", "type": "string" }, "entryPoint": { diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index ee62fefa9a8..ea60ed968e3 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -424,8 +424,7 @@ type BuildConfig struct { // encryption key. Otherwise, GCF will create and use a repository named // 'gcf-artifacts' for every deployed region. It must match the pattern // `projects/{project}/locations/{location}/repositories/{repository}`. - // Cross-project repositories are not supported. Cross-location repositories - // are not supported. Repository format must be 'DOCKER'. + // Repository format must be 'DOCKER'. DockerRepository string `json:"dockerRepository,omitempty"` // EntryPoint: The name of the function (as defined in source code) that will // be executed. Defaults to the resource name suffix, if not specified. For diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 9f4763dc162..a27ac278cb2 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -716,7 +716,7 @@ } } }, - "revision": "20241024", + "revision": "20241117", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -828,7 +828,7 @@ "type": "string" }, "dockerRepository": { - "description": "Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.", + "description": "Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be 'DOCKER'.", "type": "string" }, "entryPoint": { diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index afe1d8ab21d..cf06845e93c 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -424,8 +424,7 @@ type BuildConfig struct { // encryption key. Otherwise, GCF will create and use a repository named // 'gcf-artifacts' for every deployed region. It must match the pattern // `projects/{project}/locations/{location}/repositories/{repository}`. - // Cross-project repositories are not supported. Cross-location repositories - // are not supported. Repository format must be 'DOCKER'. + // Repository format must be 'DOCKER'. DockerRepository string `json:"dockerRepository,omitempty"` // EntryPoint: The name of the function (as defined in source code) that will // be executed. Defaults to the resource name suffix, if not specified. For diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index c9a11116cd2..7f408df7b65 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -716,7 +716,7 @@ } } }, - "revision": "20241024", + "revision": "20241117", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -828,7 +828,7 @@ "type": "string" }, "dockerRepository": { - "description": "Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.", + "description": "Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be 'DOCKER'.", "type": "string" }, "entryPoint": { diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index f6adbb0c68c..b4dada26aef 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -424,8 +424,7 @@ type BuildConfig struct { // encryption key. Otherwise, GCF will create and use a repository named // 'gcf-artifacts' for every deployed region. It must match the pattern // `projects/{project}/locations/{location}/repositories/{repository}`. - // Cross-project repositories are not supported. Cross-location repositories - // are not supported. Repository format must be 'DOCKER'. + // Repository format must be 'DOCKER'. DockerRepository string `json:"dockerRepository,omitempty"` // EntryPoint: The name of the function (as defined in source code) that will // be executed. Defaults to the resource name suffix, if not specified. For diff --git a/cloudkms/v1/cloudkms-api.json b/cloudkms/v1/cloudkms-api.json index 564d18634c3..a80a98cb9be 100644 --- a/cloudkms/v1/cloudkms-api.json +++ b/cloudkms/v1/cloudkms-api.json @@ -2132,7 +2132,7 @@ } } }, - "revision": "20240926", + "revision": "20241111", "rootUrl": "https://cloudkms.googleapis.com/", "schemas": { "AsymmetricDecryptRequest": { @@ -3760,7 +3760,7 @@ "type": "string" }, "macCrc32c": { - "description": "Optional. An optional CRC32C checksum of the MacVerifyRequest.mac. If specified, KeyManagementService will verify the integrity of the received MacVerifyRequest.mac using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(MacVerifyRequest.tag) is equal to MacVerifyRequest.mac_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.", + "description": "Optional. An optional CRC32C checksum of the MacVerifyRequest.mac. If specified, KeyManagementService will verify the integrity of the received MacVerifyRequest.mac using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(MacVerifyRequest.mac) is equal to MacVerifyRequest.mac_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.", "format": "int64", "type": "string" } diff --git a/cloudkms/v1/cloudkms-gen.go b/cloudkms/v1/cloudkms-gen.go index a12cc2e5d4d..f1ec3fcae29 100644 --- a/cloudkms/v1/cloudkms-gen.go +++ b/cloudkms/v1/cloudkms-gen.go @@ -2508,7 +2508,7 @@ type MacVerifyRequest struct { // integrity of the received MacVerifyRequest.mac using this checksum. // KeyManagementService will report an error if the checksum verification // fails. If you receive a checksum error, your client should verify that - // CRC32C(MacVerifyRequest.tag) is equal to MacVerifyRequest.mac_crc32c, and if + // CRC32C(MacVerifyRequest.mac) is equal to MacVerifyRequest.mac_crc32c, and if // so, perform a limited number of retries. A persistent mismatch may indicate // an issue in your computation of the CRC32C checksum. Note: This field is // defined as int64 for reasons of compatibility across different languages. diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index a9a28c37d87..cd4ef587abb 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -3060,7 +3060,7 @@ ] }, "create": { - "description": "Creates a conversation profile in the specified project. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API.", + "description": "Creates a conversation profile in the specified project. ConversationProfile.create_time and ConversationProfile.update_time aren't populated in the response. You can retrieve them via GetConversationProfile API.", "flatPath": "v2/projects/{projectsId}/conversationProfiles", "httpMethod": "POST", "id": "dialogflow.projects.conversationProfiles.create", @@ -3178,7 +3178,7 @@ ] }, "patch": { - "description": "Updates the specified conversation profile. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API.", + "description": "Updates the specified conversation profile. ConversationProfile.create_time and ConversationProfile.update_time aren't populated in the response. You can retrieve them via GetConversationProfile API.", "flatPath": "v2/projects/{projectsId}/conversationProfiles/{conversationProfilesId}", "httpMethod": "PATCH", "id": "dialogflow.projects.conversationProfiles.patch", @@ -7033,7 +7033,7 @@ ] }, "create": { - "description": "Creates a conversation profile in the specified project. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API.", + "description": "Creates a conversation profile in the specified project. ConversationProfile.create_time and ConversationProfile.update_time aren't populated in the response. You can retrieve them via GetConversationProfile API.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/conversationProfiles", "httpMethod": "POST", "id": "dialogflow.projects.locations.conversationProfiles.create", @@ -7151,7 +7151,7 @@ ] }, "patch": { - "description": "Updates the specified conversation profile. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API.", + "description": "Updates the specified conversation profile. ConversationProfile.create_time and ConversationProfile.update_time aren't populated in the response. You can retrieve them via GetConversationProfile API.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/conversationProfiles/{conversationProfilesId}", "httpMethod": "PATCH", "id": "dialogflow.projects.locations.conversationProfiles.patch", @@ -8714,7 +8714,7 @@ } } }, - "revision": "20241019", + "revision": "20241119", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -8834,7 +8834,7 @@ "type": "object" }, "GoogleCloudDialogflowCxV3BargeInConfig": { - "description": "Configuration of the barge-in behavior. Barge-in instructs the API to return a detected utterance at a proper time while the client is playing back the response audio from a previous request. When the client sees the utterance, it should stop the playback and immediately get ready for receiving the responses for the current request. The barge-in handling requires the client to start streaming audio input as soon as it starts playing back the audio from the previous response. The playback is modeled into two phases: * No barge-in phase: which goes first and during which speech detection should not be carried out. * Barge-in phase: which follows the no barge-in phase and during which the API starts speech detection and may inform the client that an utterance has been detected. Note that no-speech event is not expected in this phase. The client provides this configuration in terms of the durations of those two phases. The durations are measured in terms of the audio length from the the start of the input audio. No-speech event is a response with END_OF_UTTERANCE without any transcript following up.", + "description": "Configuration of the barge-in behavior. Barge-in instructs the API to return a detected utterance at a proper time while the client is playing back the response audio from a previous request. When the client sees the utterance, it should stop the playback and immediately get ready for receiving the responses for the current request. The barge-in handling requires the client to start streaming audio input as soon as it starts playing back the audio from the previous response. The playback is modeled into two phases: * No barge-in phase: which goes first and during which speech detection should not be carried out. * Barge-in phase: which follows the no barge-in phase and during which the API starts speech detection and may inform the client that an utterance has been detected. Note that no-speech event is not expected in this phase. The client provides this configuration in terms of the durations of those two phases. The durations are measured in terms of the audio length from the start of the input audio. No-speech event is a response with END_OF_UTTERANCE without any transcript following up.", "id": "GoogleCloudDialogflowCxV3BargeInConfig", "properties": { "noBargeInDuration": { @@ -11141,7 +11141,7 @@ "type": "object" }, "GoogleCloudDialogflowCxV3beta1BargeInConfig": { - "description": "Configuration of the barge-in behavior. Barge-in instructs the API to return a detected utterance at a proper time while the client is playing back the response audio from a previous request. When the client sees the utterance, it should stop the playback and immediately get ready for receiving the responses for the current request. The barge-in handling requires the client to start streaming audio input as soon as it starts playing back the audio from the previous response. The playback is modeled into two phases: * No barge-in phase: which goes first and during which speech detection should not be carried out. * Barge-in phase: which follows the no barge-in phase and during which the API starts speech detection and may inform the client that an utterance has been detected. Note that no-speech event is not expected in this phase. The client provides this configuration in terms of the durations of those two phases. The durations are measured in terms of the audio length from the the start of the input audio. No-speech event is a response with END_OF_UTTERANCE without any transcript following up.", + "description": "Configuration of the barge-in behavior. Barge-in instructs the API to return a detected utterance at a proper time while the client is playing back the response audio from a previous request. When the client sees the utterance, it should stop the playback and immediately get ready for receiving the responses for the current request. The barge-in handling requires the client to start streaming audio input as soon as it starts playing back the audio from the previous response. The playback is modeled into two phases: * No barge-in phase: which goes first and during which speech detection should not be carried out. * Barge-in phase: which follows the no barge-in phase and during which the API starts speech detection and may inform the client that an utterance has been detected. Note that no-speech event is not expected in this phase. The client provides this configuration in terms of the durations of those two phases. The durations are measured in terms of the audio length from the start of the input audio. No-speech event is a response with END_OF_UTTERANCE without any transcript following up.", "id": "GoogleCloudDialogflowCxV3beta1BargeInConfig", "properties": { "noBargeInDuration": { @@ -13680,7 +13680,7 @@ "properties": { "automatedAgentReply": { "$ref": "GoogleCloudDialogflowV2AutomatedAgentReply", - "description": "Only set if a Dialogflow automated agent has responded. Note that: AutomatedAgentReply.detect_intent_response.output_audio and AutomatedAgentReply.detect_intent_response.output_audio_config are always empty, use reply_audio instead." + "description": "Only set if a Dialogflow automated agent has responded. Note that in AutomatedAgentReply.DetectIntentResponse, Sessions.DetectIntentResponse.output_audio and Sessions.DetectIntentResponse.output_audio_config are always empty, use reply_audio instead." }, "dtmfParameters": { "$ref": "GoogleCloudDialogflowV2DtmfParameters", @@ -13780,7 +13780,7 @@ "type": "object" }, "GoogleCloudDialogflowV2AnswerRecord": { - "description": "Answer records are records to manage answer history and feedbacks for Dialogflow. Currently, answer record includes: - human agent assistant article suggestion - human agent assistant faq article It doesn't include: - `DetectIntent` intent matching - `DetectIntent` knowledge Answer records are not related to the conversation history in the Dialogflow Console. A Record is generated even when the end-user disables conversation history in the console. Records are created when there's a human agent assistant suggestion generated. A typical workflow for customers provide feedback to an answer is: 1. For human agent assistant, customers get suggestion via ListSuggestions API. Together with the answers, AnswerRecord.name are returned to the customers. 2. The customer uses the AnswerRecord.name to call the UpdateAnswerRecord method to send feedback about a specific answer that they believe is wrong.", + "description": "Answer records are records to manage answer history and feedbacks for Dialogflow. Currently, answer record includes: - human agent assistant article suggestion - human agent assistant faq article It doesn't include: - `DetectIntent` intent matching - `DetectIntent` knowledge Answer records are not related to the conversation history in the Dialogflow Console. A Record is generated even when the end-user disables conversation history in the console. Records are created when there's a human agent assistant suggestion generated. A typical workflow for customers provide feedback to an answer is: 1. For human agent assistant, customers get suggestion via ListSuggestions API. Together with the answers, AnswerRecord.name are returned to the customers. 2. The customer uses the AnswerRecord.name to call the AnswerRecords.UpdateAnswerRecord method to send feedback about a specific answer that they believe is wrong.", "id": "GoogleCloudDialogflowV2AnswerRecord", "properties": { "agentAssistantRecord": { @@ -14096,7 +14096,7 @@ "type": "object" }, "GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata": { - "description": "Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.", + "description": "Metadata for a ConversationProfiles.ClearSuggestionFeatureConfig operation.", "id": "GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata", "properties": { "conversationProfile": { @@ -14148,7 +14148,7 @@ "type": "object" }, "GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest": { - "description": "The request message for ConversationProfiles.ClearFeature.", + "description": "The request message for ConversationProfiles.ClearSuggestionFeatureConfig.", "id": "GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest", "properties": { "participantRole": { @@ -14594,7 +14594,7 @@ "type": "object" }, "GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata": { - "description": "Metadata for ConversationDatasets.", + "description": "Metadata for CreateConversationDataset.", "id": "GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata", "properties": { "conversationDataset": { @@ -14694,7 +14694,7 @@ "type": "object" }, "GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata": { - "description": "Metadata for ConversationDatasets.", + "description": "Metadata for DeleteConversationDataset.", "id": "GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata", "properties": {}, "type": "object" @@ -15293,7 +15293,7 @@ "type": "object" }, "GoogleCloudDialogflowV2FewShotExample": { - "description": "Providing examples in the generator (i.e. building a few-shot generator) helps convey the desired format of the LLM response. NEXT_ID: 10", + "description": "Providing examples in the generator (i.e. building a few-shot generator) helps convey the desired format of the LLM response.", "id": "GoogleCloudDialogflowV2FewShotExample", "properties": { "conversationContext": { @@ -15513,7 +15513,7 @@ "id": "GoogleCloudDialogflowV2GenerateStatelessSummaryResponse", "properties": { "contextSize": { - "description": "Number of messages prior to and including last_conversation_message used to compile the suggestion. It may be smaller than the GenerateStatelessSummaryRequest.context_size field in the request if there weren't that many messages in the conversation.", + "description": "Number of messages prior to and including latest_message used to compile the suggestion. It may be smaller than the GenerateStatelessSummaryRequest.max_context_size field in the request if there weren't that many messages in the conversation.", "format": "int32", "type": "integer" }, @@ -18347,7 +18347,7 @@ "id": "GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecs", "properties": { "dataStores": { - "description": "Optional. Data Stores where the boosting configuration is applied. The full names of the referenced data stores. Formats: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` `projects/{project}/locations/{location}/dataStores/{data_store}", + "description": "Optional. Data Stores where the boosting configuration is applied. The full names of the referenced data stores. Formats: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` `projects/{project}/locations/{location}/dataStores/{data_store}`", "items": { "type": "string" }, @@ -18522,7 +18522,7 @@ "type": "object" }, "GoogleCloudDialogflowV2SentimentAnalysisResult": { - "description": "The result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral. For Participants.DetectIntent, it needs to be configured in DetectIntentRequest.query_params. For Participants.StreamingDetectIntent, it needs to be configured in StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it needs to be configured in ConversationProfile.human_agent_assistant_config", + "description": "The result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral. For DetectIntent, it needs to be configured in DetectIntentRequest.query_params. For StreamingDetectIntent, it needs to be configured in StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it needs to be configured in ConversationProfile.human_agent_assistant_config", "id": "GoogleCloudDialogflowV2SentimentAnalysisResult", "properties": { "queryTextSentiment": { @@ -18565,7 +18565,7 @@ "type": "object" }, "GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata": { - "description": "Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.", + "description": "Metadata for a ConversationProfiles.SetSuggestionFeatureConfig operation.", "id": "GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata", "properties": { "conversationProfile": { @@ -18617,7 +18617,7 @@ "type": "object" }, "GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest": { - "description": "The request message for ConversationProfiles.SetSuggestionFeature.", + "description": "The request message for ConversationProfiles.SetSuggestionFeatureConfig.", "id": "GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest", "properties": { "participantRole": { @@ -18889,7 +18889,7 @@ "id": "GoogleCloudDialogflowV2SuggestConversationSummaryResponse", "properties": { "contextSize": { - "description": "Number of messages prior to and including last_conversation_message used to compile the suggestion. It may be smaller than the SuggestSummaryRequest.context_size field in the request if there weren't that many messages in the conversation.", + "description": "Number of messages prior to and including latest_message used to compile the suggestion. It may be smaller than the SuggestConversationSummaryRequest.context_size field in the request if there weren't that many messages in the conversation.", "format": "int32", "type": "integer" }, diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index ab4fa8546c6..047954abdd1 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -1119,7 +1119,7 @@ func (s GoogleCloudDialogflowCxV3AudioInput) MarshalJSON() ([]byte, error) { // an utterance has been detected. Note that no-speech event is not expected in // this phase. The client provides this configuration in terms of the durations // of those two phases. The durations are measured in terms of the audio length -// from the the start of the input audio. No-speech event is a response with +// from the start of the input audio. No-speech event is a response with // END_OF_UTTERANCE without any transcript following up. type GoogleCloudDialogflowCxV3BargeInConfig struct { // NoBargeInDuration: Duration that is not eligible for barge-in at the @@ -4400,7 +4400,7 @@ func (s GoogleCloudDialogflowCxV3beta1AudioInput) MarshalJSON() ([]byte, error) // an utterance has been detected. Note that no-speech event is not expected in // this phase. The client provides this configuration in terms of the durations // of those two phases. The durations are measured in terms of the audio length -// from the the start of the input audio. No-speech event is a response with +// from the start of the input audio. No-speech event is a response with // END_OF_UTTERANCE without any transcript following up. type GoogleCloudDialogflowCxV3beta1BargeInConfig struct { // NoBargeInDuration: Duration that is not eligible for barge-in at the @@ -7905,9 +7905,10 @@ func (s GoogleCloudDialogflowV2AnalyzeContentRequest) MarshalJSON() ([]byte, err // Participants.AnalyzeContent. type GoogleCloudDialogflowV2AnalyzeContentResponse struct { // AutomatedAgentReply: Only set if a Dialogflow automated agent has responded. - // Note that: AutomatedAgentReply.detect_intent_response.output_audio and - // AutomatedAgentReply.detect_intent_response.output_audio_config are always - // empty, use reply_audio instead. + // Note that in AutomatedAgentReply.DetectIntentResponse, + // Sessions.DetectIntentResponse.output_audio and + // Sessions.DetectIntentResponse.output_audio_config are always empty, use + // reply_audio instead. AutomatedAgentReply *GoogleCloudDialogflowV2AutomatedAgentReply `json:"automatedAgentReply,omitempty"` // DtmfParameters: Indicates the parameters of DTMF. DtmfParameters *GoogleCloudDialogflowV2DtmfParameters `json:"dtmfParameters,omitempty"` @@ -8048,8 +8049,9 @@ func (s GoogleCloudDialogflowV2AnswerFeedback) MarshalJSON() ([]byte, error) { // workflow for customers provide feedback to an answer is: 1. For human agent // assistant, customers get suggestion via ListSuggestions API. Together with // the answers, AnswerRecord.name are returned to the customers. 2. The -// customer uses the AnswerRecord.name to call the UpdateAnswerRecord method to -// send feedback about a specific answer that they believe is wrong. +// customer uses the AnswerRecord.name to call the +// AnswerRecords.UpdateAnswerRecord method to send feedback about a specific +// answer that they believe is wrong. type GoogleCloudDialogflowV2AnswerRecord struct { // AgentAssistantRecord: Output only. The record for human agent assistant. AgentAssistantRecord *GoogleCloudDialogflowV2AgentAssistantRecord `json:"agentAssistantRecord,omitempty"` @@ -8525,7 +8527,7 @@ func (s GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte } // GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata: -// Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation. +// Metadata for a ConversationProfiles.ClearSuggestionFeatureConfig operation. type GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata struct { // ConversationProfile: The resource name of the conversation profile. Format: // `projects//locations//conversationProfiles/` @@ -8575,7 +8577,7 @@ func (s GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata) Ma } // GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest: The request -// message for ConversationProfiles.ClearFeature. +// message for ConversationProfiles.ClearSuggestionFeatureConfig. type GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest struct { // ParticipantRole: Required. The participant role to remove the suggestion // feature config. Only HUMAN_AGENT or END_USER can be used. @@ -9112,7 +9114,7 @@ func (s GoogleCloudDialogflowV2ConversationProfile) MarshalJSON() ([]byte, error } // GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata: Metadata -// for ConversationDatasets. +// for CreateConversationDataset. type GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata struct { // ConversationDataset: The resource name of the conversation dataset that will // be created. Format: `projects//locations//conversationDatasets/` @@ -9241,7 +9243,7 @@ func (s GoogleCloudDialogflowV2CreateConversationModelOperationMetadata) Marshal } // GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata: Metadata -// for ConversationDatasets. +// for DeleteConversationDataset. type GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata struct { } @@ -10131,7 +10133,7 @@ func (s *GoogleCloudDialogflowV2FaqAnswer) UnmarshalJSON(data []byte) error { // GoogleCloudDialogflowV2FewShotExample: Providing examples in the generator // (i.e. building a few-shot generator) helps convey the desired format of the -// LLM response. NEXT_ID: 10 +// LLM response. type GoogleCloudDialogflowV2FewShotExample struct { // ConversationContext: Optional. Conversation transcripts. ConversationContext *GoogleCloudDialogflowV2ConversationContext `json:"conversationContext,omitempty"` @@ -10458,10 +10460,10 @@ func (s GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversatio // GoogleCloudDialogflowV2GenerateStatelessSummaryResponse: The response // message for Conversations.GenerateStatelessSummary. type GoogleCloudDialogflowV2GenerateStatelessSummaryResponse struct { - // ContextSize: Number of messages prior to and including - // last_conversation_message used to compile the suggestion. It may be smaller - // than the GenerateStatelessSummaryRequest.context_size field in the request - // if there weren't that many messages in the conversation. + // ContextSize: Number of messages prior to and including latest_message used + // to compile the suggestion. It may be smaller than the + // GenerateStatelessSummaryRequest.max_context_size field in the request if + // there weren't that many messages in the conversation. ContextSize int64 `json:"contextSize,omitempty"` // LatestMessage: The name of the latest conversation message used as context // for compiling suggestion. The format is specific to the user and the names @@ -14444,7 +14446,7 @@ type GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecs struct // applied. The full names of the referenced data stores. Formats: // `projects/{project}/locations/{location}/collections/{collection}/dataStores/ // {data_store}` - // `projects/{project}/locations/{location}/dataStores/{data_store} + // `projects/{project}/locations/{location}/dataStores/{data_store}` DataStores []string `json:"dataStores,omitempty"` // Spec: Optional. A list of boosting specifications. Spec []*GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec `json:"spec,omitempty"` @@ -14787,10 +14789,9 @@ func (s GoogleCloudDialogflowV2SentimentAnalysisRequestConfig) MarshalJSON() ([] // GoogleCloudDialogflowV2SentimentAnalysisResult: The result of sentiment // analysis. Sentiment analysis inspects user input and identifies the // prevailing subjective opinion, especially to determine a user's attitude as -// positive, negative, or neutral. For Participants.DetectIntent, it needs to -// be configured in DetectIntentRequest.query_params. For -// Participants.StreamingDetectIntent, it needs to be configured in -// StreamingDetectIntentRequest.query_params. And for +// positive, negative, or neutral. For DetectIntent, it needs to be configured +// in DetectIntentRequest.query_params. For StreamingDetectIntent, it needs to +// be configured in StreamingDetectIntentRequest.query_params. And for // Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it // needs to be configured in ConversationProfile.human_agent_assistant_config type GoogleCloudDialogflowV2SentimentAnalysisResult struct { @@ -14873,7 +14874,7 @@ func (s GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) } // GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata: Metadata -// for a ConversationProfile.SetSuggestionFeatureConfig operation. +// for a ConversationProfiles.SetSuggestionFeatureConfig operation. type GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata struct { // ConversationProfile: The resource name of the conversation profile. Format: // `projects//locations//conversationProfiles/` @@ -14923,7 +14924,7 @@ func (s GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata) Mars } // GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest: The request -// message for ConversationProfiles.SetSuggestionFeature. +// message for ConversationProfiles.SetSuggestionFeatureConfig. type GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest struct { // ParticipantRole: Required. The participant role to add or update the // suggestion feature config. Only HUMAN_AGENT or END_USER can be used. @@ -15388,9 +15389,9 @@ func (s GoogleCloudDialogflowV2SuggestConversationSummaryRequest) MarshalJSON() // GoogleCloudDialogflowV2SuggestConversationSummaryResponse: The response // message for Conversations.SuggestConversationSummary. type GoogleCloudDialogflowV2SuggestConversationSummaryResponse struct { - // ContextSize: Number of messages prior to and including - // last_conversation_message used to compile the suggestion. It may be smaller - // than the SuggestSummaryRequest.context_size field in the request if there + // ContextSize: Number of messages prior to and including latest_message used + // to compile the suggestion. It may be smaller than the + // SuggestConversationSummaryRequest.context_size field in the request if there // weren't that many messages in the conversation. ContextSize int64 `json:"contextSize,omitempty"` // LatestMessage: The name of the latest conversation message used as context @@ -30804,7 +30805,7 @@ type ProjectsConversationProfilesCreateCall struct { } // Create: Creates a conversation profile in the specified project. -// ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't +// ConversationProfile.create_time and ConversationProfile.update_time aren't // populated in the response. You can retrieve them via GetConversationProfile // API. // @@ -31261,7 +31262,7 @@ type ProjectsConversationProfilesPatchCall struct { } // Patch: Updates the specified conversation profile. -// ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't +// ConversationProfile.create_time and ConversationProfile.update_time aren't // populated in the response. You can retrieve them via GetConversationProfile // API. // @@ -45083,7 +45084,7 @@ type ProjectsLocationsConversationProfilesCreateCall struct { } // Create: Creates a conversation profile in the specified project. -// ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't +// ConversationProfile.create_time and ConversationProfile.update_time aren't // populated in the response. You can retrieve them via GetConversationProfile // API. // @@ -45540,7 +45541,7 @@ type ProjectsLocationsConversationProfilesPatchCall struct { } // Patch: Updates the specified conversation profile. -// ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't +// ConversationProfile.create_time and ConversationProfile.update_time aren't // populated in the response. You can retrieve them via GetConversationProfile // API. // diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json index 260f7d43120..d7ae06e9041 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json @@ -776,7 +776,7 @@ } } }, - "revision": "20241115", + "revision": "20241120", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "schemas": { "AndroidxCrawlerOutputPoint": { @@ -1804,7 +1804,7 @@ "description": "Optional. Instructions for AI driven test." }, "displayName": { - "description": "Optional. Display name of the test case.", + "description": "Required. Display name of the test case.", "type": "string" }, "name": { diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go index 38fafb7f41a..56e2893ecab 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go @@ -1451,7 +1451,7 @@ func (s GoogleFirebaseAppdistroV1alphaTerminalAction) MarshalJSON() ([]byte, err type GoogleFirebaseAppdistroV1alphaTestCase struct { // AiInstructions: Optional. Instructions for AI driven test. AiInstructions *GoogleFirebaseAppdistroV1alphaAiInstructions `json:"aiInstructions,omitempty"` - // DisplayName: Optional. Display name of the test case. + // DisplayName: Required. Display name of the test case. DisplayName string `json:"displayName,omitempty"` // Name: Identifier. The name of the test case resource. Format: // `projects/{project_number}/apps/{app_id}/testCases/{test_case_id}` diff --git a/migrationcenter/v1/migrationcenter-api.json b/migrationcenter/v1/migrationcenter-api.json index d69dd2d971a..68a829bb058 100644 --- a/migrationcenter/v1/migrationcenter-api.json +++ b/migrationcenter/v1/migrationcenter-api.json @@ -2309,7 +2309,7 @@ } } }, - "revision": "20241014", + "revision": "20241114", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -2542,6 +2542,16 @@ "readOnly": true, "type": "string" }, + "databaseDeploymentDetails": { + "$ref": "DatabaseDeploymentDetails", + "description": "Output only. Asset information specific for database deployments.", + "readOnly": true + }, + "databaseDetails": { + "$ref": "DatabaseDetails", + "description": "Output only. Asset information specific for logical databases.", + "readOnly": true + }, "insightList": { "$ref": "InsightList", "description": "Output only. The list of insights associated with the asset.", @@ -2577,6 +2587,11 @@ "readOnly": true, "type": "array" }, + "title": { + "description": "Output only. Server generated human readable name of the asset.", + "readOnly": true, + "type": "string" + }, "updateTime": { "description": "Output only. The timestamp when the asset was last updated.", "format": "google-datetime", @@ -2617,6 +2632,14 @@ ], "type": "string" }, + "databaseDeploymentDetails": { + "$ref": "DatabaseDeploymentDetails", + "description": "Asset information specific for database deployments." + }, + "databaseDetails": { + "$ref": "DatabaseDetails", + "description": "Asset information specific for logical databases." + }, "labels": { "additionalProperties": { "type": "string" @@ -3000,7 +3023,15 @@ "properties": { "iops": { "$ref": "DailyResourceUsageAggregationStats", - "description": "Disk I/O operations per second." + "description": "Optional. Disk I/O operations per second." + }, + "readIops": { + "$ref": "DailyResourceUsageAggregationStats", + "description": "Optional. Disk read I/O operations per second." + }, + "writeIops": { + "$ref": "DailyResourceUsageAggregationStats", + "description": "Optional. Disk write I/O operations per second." } }, "type": "object" @@ -3058,6 +3089,284 @@ }, "type": "object" }, + "DatabaseDeploymentDetails": { + "description": "The details of a database deployment asset.", + "id": "DatabaseDeploymentDetails", + "properties": { + "aggregatedStats": { + "$ref": "DatabaseDeploymentDetailsAggregatedStats", + "description": "Output only. Aggregated stats for the database deployment.", + "readOnly": true + }, + "edition": { + "description": "Optional. The database deployment edition.", + "type": "string" + }, + "generatedId": { + "description": "Optional. The database deployment generated ID.", + "type": "string" + }, + "manualUniqueId": { + "description": "Optional. A manual unique ID set by the user.", + "type": "string" + }, + "mysql": { + "$ref": "MysqlDatabaseDeployment", + "description": "Optional. Details of a MYSQL database deployment." + }, + "postgresql": { + "$ref": "PostgreSqlDatabaseDeployment", + "description": "Optional. Details of a PostgreSQL database deployment." + }, + "sqlServer": { + "$ref": "SqlServerDatabaseDeployment", + "description": "Optional. Details of a Microsoft SQL Server database deployment." + }, + "topology": { + "$ref": "DatabaseDeploymentTopology", + "description": "Optional. Details of the database deployment topology." + }, + "version": { + "description": "Optional. The database deployment version.", + "type": "string" + } + }, + "type": "object" + }, + "DatabaseDeploymentDetailsAggregatedStats": { + "description": "Aggregated stats for the database deployment.", + "id": "DatabaseDeploymentDetailsAggregatedStats", + "properties": { + "databaseCount": { + "description": "Output only. The number of databases in the deployment.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, + "DatabaseDeploymentTopology": { + "description": "Details of database deployment's topology.", + "id": "DatabaseDeploymentTopology", + "properties": { + "coreCount": { + "description": "Optional. Number of total logical cores.", + "format": "int32", + "type": "integer" + }, + "coreLimit": { + "description": "Optional. Number of total logical cores limited by db deployment.", + "format": "int32", + "type": "integer" + }, + "diskAllocatedBytes": { + "description": "Optional. Disk allocated in bytes.", + "format": "int64", + "type": "string" + }, + "diskUsedBytes": { + "description": "Optional. Disk used in bytes.", + "format": "int64", + "type": "string" + }, + "instances": { + "description": "Optional. List of database instances.", + "items": { + "$ref": "DatabaseInstance" + }, + "type": "array" + }, + "memoryBytes": { + "description": "Optional. Total memory in bytes.", + "format": "int64", + "type": "string" + }, + "memoryLimitBytes": { + "description": "Optional. Total memory in bytes limited by db deployment.", + "format": "int64", + "type": "string" + }, + "physicalCoreCount": { + "description": "Optional. Number of total physical cores.", + "format": "int32", + "type": "integer" + }, + "physicalCoreLimit": { + "description": "Optional. Number of total physical cores limited by db deployment.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DatabaseDetails": { + "description": "Details of a logical database.", + "id": "DatabaseDetails", + "properties": { + "allocatedStorageBytes": { + "description": "Optional. The allocated storage for the database in bytes.", + "format": "int64", + "type": "string" + }, + "databaseName": { + "description": "Required. The name of the database.", + "type": "string" + }, + "parentDatabaseDeployment": { + "$ref": "DatabaseDetailsParentDatabaseDeployment", + "description": "Required. The parent database deployment that contains the logical database." + }, + "schemas": { + "description": "Optional. The database schemas.", + "items": { + "$ref": "DatabaseSchema" + }, + "type": "array" + } + }, + "type": "object" + }, + "DatabaseDetailsParentDatabaseDeployment": { + "description": "The identifiers of the parent database deployment.", + "id": "DatabaseDetailsParentDatabaseDeployment", + "properties": { + "generatedId": { + "description": "Optional. The parent database deployment generated ID.", + "type": "string" + }, + "manualUniqueId": { + "description": "Optional. The parent database deployment optional manual unique ID set by the user.", + "type": "string" + } + }, + "type": "object" + }, + "DatabaseInstance": { + "description": "Details of a database instance.", + "id": "DatabaseInstance", + "properties": { + "instanceName": { + "description": "Optional. The instance's name.", + "type": "string" + }, + "network": { + "$ref": "DatabaseInstanceNetwork", + "description": "Optional. Networking details." + }, + "role": { + "description": "Optional. The instance role in the database engine.", + "enum": [ + "ROLE_UNSPECIFIED", + "PRIMARY", + "SECONDARY", + "ARBITER" + ], + "enumDescriptions": [ + "Unspecified.", + "Primary.", + "Secondary.", + "Arbiter." + ], + "type": "string" + } + }, + "type": "object" + }, + "DatabaseInstanceNetwork": { + "description": "Network details of a database instance.", + "id": "DatabaseInstanceNetwork", + "properties": { + "hostNames": { + "description": "Optional. The instance's host names.", + "items": { + "type": "string" + }, + "type": "array" + }, + "ipAddresses": { + "description": "Optional. The instance's IP addresses.", + "items": { + "type": "string" + }, + "type": "array" + }, + "primaryMacAddress": { + "description": "Optional. The instance's primary MAC address.", + "type": "string" + } + }, + "type": "object" + }, + "DatabaseObjects": { + "description": "Details of a group of database objects.", + "id": "DatabaseObjects", + "properties": { + "category": { + "description": "Optional. The category of the objects.", + "enum": [ + "CATEGORY_UNSPECIFIED", + "TABLE", + "INDEX", + "CONSTRAINTS", + "VIEWS", + "SOURCE_CODE", + "OTHER" + ], + "enumDescriptions": [ + "Unspecified type.", + "Table.", + "Index.", + "Constraints.", + "Views.", + "Source code, e.g. procedures.", + "Uncategorized objects." + ], + "type": "string" + }, + "count": { + "description": "Optional. The number of objects.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "DatabaseSchema": { + "description": "Details of a database schema.", + "id": "DatabaseSchema", + "properties": { + "mysql": { + "$ref": "MySqlSchemaDetails", + "description": "Optional. Details of a Mysql schema." + }, + "objects": { + "description": "Optional. List of details of objects by category.", + "items": { + "$ref": "DatabaseObjects" + }, + "type": "array" + }, + "postgresql": { + "$ref": "PostgreSqlSchemaDetails", + "description": "Optional. Details of a PostgreSql schema." + }, + "schemaName": { + "description": "Required. The name of the schema.", + "type": "string" + }, + "sqlServer": { + "$ref": "SqlServerSchemaDetails", + "description": "Optional. Details of a SqlServer schema." + }, + "tablesSizeBytes": { + "description": "Optional. The total size of tables in bytes.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "Date": { "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", @@ -3311,7 +3620,17 @@ "id": "DiskUsageSample", "properties": { "averageIops": { - "description": "Average IOPS sampled over a short window. Must be non-negative.", + "description": "Optional. Average IOPS sampled over a short window. Must be non-negative. Must be equal to the sum of read and write if one of them is positive. if both read and write are zero they are ignored.", + "format": "float", + "type": "number" + }, + "averageReadIops": { + "description": "Optional. Average read IOPS sampled over a short window. Must be non-negative.", + "format": "float", + "type": "number" + }, + "averageWriteIops": { + "description": "Optional. Average write IOPS sampled over a short window. Must be non-negative.", "format": "float", "type": "number" } @@ -3817,7 +4136,8 @@ "IMPORT_JOB_FORMAT_RVTOOLS_CSV", "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV", "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV", - "IMPORT_JOB_FORMAT_STRATOZONE_CSV" + "IMPORT_JOB_FORMAT_STRATOZONE_CSV", + "IMPORT_JOB_FORMAT_DATABASE_ZIP" ], "enumDescriptions": [ "Default value.", @@ -3825,7 +4145,8 @@ "RVTools format (CSV).", "CSV format exported from AWS using the AWS collection script.", "CSV format exported from Azure using the Azure collection script.", - "CSV format created manually and following the StratoZone format. For more information, see Manually create and upload data tables." + "CSV format created manually and following the StratoZone format. For more information, see Manually create and upload data tables.", + "ZIP file with nested CSV files generated by a database collector." ], "type": "string" }, @@ -3967,6 +4288,15 @@ "description": "A resource that reports the import job errors at row level.", "id": "ImportRowError", "properties": { + "archiveError": { + "$ref": "ImportRowErrorArchiveErrorDetails", + "description": "Error details for an archive file." + }, + "assetTitle": { + "description": "Output only. The asset title.", + "readOnly": true, + "type": "string" + }, "csvError": { "$ref": "ImportRowErrorCsvErrorDetails", "description": "Error details for a CSV file." @@ -3999,6 +4329,22 @@ }, "type": "object" }, + "ImportRowErrorArchiveErrorDetails": { + "description": "Error details for an archive file.", + "id": "ImportRowErrorArchiveErrorDetails", + "properties": { + "csvError": { + "$ref": "ImportRowErrorCsvErrorDetails", + "description": "Error details for a CSV file." + }, + "filePath": { + "description": "Output only. The file path inside the archive where the error was detected.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ImportRowErrorCsvErrorDetails": { "description": "Error details for a CSV file.", "id": "ImportRowErrorCsvErrorDetails", @@ -4033,7 +4379,7 @@ "properties": { "genericInsight": { "$ref": "GenericInsight", - "description": "Output only. A generic insight about an asset", + "description": "Output only. A generic insight about an asset.", "readOnly": true }, "migrationInsight": { @@ -4638,6 +4984,160 @@ }, "type": "object" }, + "MySqlPlugin": { + "description": "MySql plugin.", + "id": "MySqlPlugin", + "properties": { + "enabled": { + "description": "Required. The plugin is active.", + "type": "boolean" + }, + "plugin": { + "description": "Required. The plugin name.", + "type": "string" + }, + "version": { + "description": "Required. The plugin version.", + "type": "string" + } + }, + "type": "object" + }, + "MySqlProperty": { + "description": "MySql property.", + "id": "MySqlProperty", + "properties": { + "enabled": { + "description": "Required. The property is enabled.", + "type": "boolean" + }, + "numericValue": { + "description": "Required. The property numeric value.", + "format": "int64", + "type": "string" + }, + "property": { + "description": "Required. The property name.", + "type": "string" + } + }, + "type": "object" + }, + "MySqlSchemaDetails": { + "description": "Specific details for a Mysql database.", + "id": "MySqlSchemaDetails", + "properties": { + "storageEngines": { + "description": "Optional. Mysql storage engine tables.", + "items": { + "$ref": "MySqlStorageEngineDetails" + }, + "type": "array" + } + }, + "type": "object" + }, + "MySqlStorageEngineDetails": { + "description": "Mysql storage engine tables.", + "id": "MySqlStorageEngineDetails", + "properties": { + "encryptedTableCount": { + "description": "Optional. The number of encrypted tables.", + "format": "int32", + "type": "integer" + }, + "engine": { + "description": "Required. The storage engine.", + "enum": [ + "ENGINE_UNSPECIFIED", + "INNODB", + "MYISAM", + "MEMORY", + "CSV", + "ARCHIVE", + "BLACKHOLE", + "NDB", + "MERGE", + "FEDERATED", + "EXAMPLE", + "OTHER" + ], + "enumDescriptions": [ + "Unspecified storage engine.", + "InnoDB.", + "MyISAM.", + "Memory.", + "CSV.", + "Archive.", + "Blackhole.", + "NDB.", + "Merge.", + "Federated.", + "Example.", + "Other." + ], + "type": "string" + }, + "tableCount": { + "description": "Optional. The number of tables.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "MySqlVariable": { + "description": "MySql variable.", + "id": "MySqlVariable", + "properties": { + "category": { + "description": "Required. The variable category.", + "type": "string" + }, + "value": { + "description": "Required. The variable value.", + "type": "string" + }, + "variable": { + "description": "Required. The variable name.", + "type": "string" + } + }, + "type": "object" + }, + "MysqlDatabaseDeployment": { + "description": "Specific details for a Mysql database deployment.", + "id": "MysqlDatabaseDeployment", + "properties": { + "plugins": { + "description": "Optional. List of MySql plugins.", + "items": { + "$ref": "MySqlPlugin" + }, + "type": "array" + }, + "properties": { + "description": "Optional. List of MySql properties.", + "items": { + "$ref": "MySqlProperty" + }, + "type": "array" + }, + "resourceGroupsCount": { + "description": "Optional. Number of resource groups.", + "format": "int32", + "type": "integer" + }, + "variables": { + "description": "Optional. List of MySql variables.", + "items": { + "$ref": "MySqlVariable" + }, + "type": "array" + } + }, + "type": "object" + }, "NetworkAdapterDetails": { "description": "Details of network adapter.", "id": "NetworkAdapterDetails", @@ -5038,6 +5538,118 @@ }, "type": "object" }, + "PostgreSqlDatabaseDeployment": { + "description": "Specific details for a PostgreSQL database deployment.", + "id": "PostgreSqlDatabaseDeployment", + "properties": { + "properties": { + "description": "Optional. List of PostgreSql properties.", + "items": { + "$ref": "PostgreSqlProperty" + }, + "type": "array" + }, + "settings": { + "description": "Optional. List of PostgreSql settings.", + "items": { + "$ref": "PostgreSqlSetting" + }, + "type": "array" + } + }, + "type": "object" + }, + "PostgreSqlExtension": { + "description": "PostgreSql extension.", + "id": "PostgreSqlExtension", + "properties": { + "extension": { + "description": "Required. The extension name.", + "type": "string" + }, + "version": { + "description": "Required. The extension version.", + "type": "string" + } + }, + "type": "object" + }, + "PostgreSqlProperty": { + "description": "PostgreSql property.", + "id": "PostgreSqlProperty", + "properties": { + "enabled": { + "description": "Required. The property is enabled.", + "type": "boolean" + }, + "numericValue": { + "description": "Required. The property numeric value.", + "format": "int64", + "type": "string" + }, + "property": { + "description": "Required. The property name.", + "type": "string" + } + }, + "type": "object" + }, + "PostgreSqlSchemaDetails": { + "description": "Specific details for a PostgreSql schema.", + "id": "PostgreSqlSchemaDetails", + "properties": { + "foreignTablesCount": { + "description": "Optional. PostgreSql foreign tables.", + "format": "int32", + "type": "integer" + }, + "postgresqlExtensions": { + "description": "Optional. PostgreSql extensions.", + "items": { + "$ref": "PostgreSqlExtension" + }, + "type": "array" + } + }, + "type": "object" + }, + "PostgreSqlSetting": { + "description": "PostgreSql setting.", + "id": "PostgreSqlSetting", + "properties": { + "boolValue": { + "description": "Required. The setting boolean value.", + "type": "boolean" + }, + "intValue": { + "description": "Required. The setting int value.", + "format": "int64", + "type": "string" + }, + "realValue": { + "description": "Required. The setting real value.", + "format": "float", + "type": "number" + }, + "setting": { + "description": "Required. The setting name.", + "type": "string" + }, + "source": { + "description": "Required. The setting source.", + "type": "string" + }, + "stringValue": { + "description": "Required. The setting string value. Notice that enum values are stored as strings.", + "type": "string" + }, + "unit": { + "description": "Optional. The setting unit.", + "type": "string" + } + }, + "type": "object" + }, "PreferenceSet": { "description": "The preferences that apply to all assets in a given context.", "id": "PreferenceSet", @@ -5973,6 +6585,107 @@ }, "type": "object" }, + "SqlServerDatabaseDeployment": { + "description": "Specific details for a Microsoft SQL Server database deployment.", + "id": "SqlServerDatabaseDeployment", + "properties": { + "features": { + "description": "Optional. List of SQL Server features.", + "items": { + "$ref": "SqlServerFeature" + }, + "type": "array" + }, + "serverFlags": { + "description": "Optional. List of SQL Server server flags.", + "items": { + "$ref": "SqlServerServerFlag" + }, + "type": "array" + }, + "traceFlags": { + "description": "Optional. List of SQL Server trace flags.", + "items": { + "$ref": "SqlServerTraceFlag" + }, + "type": "array" + } + }, + "type": "object" + }, + "SqlServerFeature": { + "description": "SQL Server feature details.", + "id": "SqlServerFeature", + "properties": { + "enabled": { + "description": "Required. Field enabled is set when a feature is used on the source deployment.", + "type": "boolean" + }, + "featureName": { + "description": "Required. The feature name.", + "type": "string" + } + }, + "type": "object" + }, + "SqlServerSchemaDetails": { + "description": "Specific details for a SqlServer database.", + "id": "SqlServerSchemaDetails", + "properties": { + "clrObjectCount": { + "description": "Optional. SqlServer number of CLR objects.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "SqlServerServerFlag": { + "description": "SQL Server server flag details.", + "id": "SqlServerServerFlag", + "properties": { + "serverFlagName": { + "description": "Required. The server flag name.", + "type": "string" + }, + "value": { + "description": "Required. The server flag value set by the user.", + "type": "string" + }, + "valueInUse": { + "description": "Required. The server flag actual value. If `value_in_use` is different from `value` it means that either the configuration change was not applied or it is an expected behavior. See SQL Server documentation for more details.", + "type": "string" + } + }, + "type": "object" + }, + "SqlServerTraceFlag": { + "description": "SQL Server trace flag details.", + "id": "SqlServerTraceFlag", + "properties": { + "scope": { + "description": "Required. The trace flag scope.", + "enum": [ + "SCOPE_UNSPECIFIED", + "OFF", + "GLOBAL", + "SESSION" + ], + "enumDescriptions": [ + "Unspecified.", + "Off.", + "Global.", + "Session." + ], + "type": "string" + }, + "traceFlagName": { + "description": "Required. The trace flag name.", + "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", @@ -6137,7 +6850,7 @@ "enumDescriptions": [ "Unspecified (default value).", "Prefer to migrate to Google Cloud Compute Engine.", - "Prefer to migrate to Google Cloud VMware Engine.", + "Prefer to migrate to Google Cloud VMware Engine.6278", "Prefer to migrate to Google Cloud Sole Tenant Nodes." ], "type": "string" diff --git a/migrationcenter/v1/migrationcenter-gen.go b/migrationcenter/v1/migrationcenter-gen.go index c40a7f5df45..5d89cb59a6e 100644 --- a/migrationcenter/v1/migrationcenter-gen.go +++ b/migrationcenter/v1/migrationcenter-gen.go @@ -671,6 +671,12 @@ type Asset struct { Attributes map[string]string `json:"attributes,omitempty"` // CreateTime: Output only. The timestamp when the asset was created. CreateTime string `json:"createTime,omitempty"` + // DatabaseDeploymentDetails: Output only. Asset information specific for + // database deployments. + DatabaseDeploymentDetails *DatabaseDeploymentDetails `json:"databaseDeploymentDetails,omitempty"` + // DatabaseDetails: Output only. Asset information specific for logical + // databases. + DatabaseDetails *DatabaseDetails `json:"databaseDetails,omitempty"` // InsightList: Output only. The list of insights associated with the asset. InsightList *InsightList `json:"insightList,omitempty"` // Labels: Labels as key value pairs. @@ -684,6 +690,8 @@ type Asset struct { PerformanceData *AssetPerformanceData `json:"performanceData,omitempty"` // Sources: Output only. The list of sources contributing to the asset. Sources []string `json:"sources,omitempty"` + // Title: Output only. Server generated human readable name of the asset. + Title string `json:"title,omitempty"` // UpdateTime: Output only. The timestamp when the asset was last updated. UpdateTime string `json:"updateTime,omitempty"` @@ -723,6 +731,11 @@ type AssetFrame struct { // "SOURCE_TYPE_CUSTOM" - Third-party owned sources. // "SOURCE_TYPE_DISCOVERY_CLIENT" - Discovery clients CollectionType string `json:"collectionType,omitempty"` + // DatabaseDeploymentDetails: Asset information specific for database + // deployments. + DatabaseDeploymentDetails *DatabaseDeploymentDetails `json:"databaseDeploymentDetails,omitempty"` + // DatabaseDetails: Asset information specific for logical databases. + DatabaseDetails *DatabaseDetails `json:"databaseDetails,omitempty"` // Labels: Labels as key value pairs. Labels map[string]string `json:"labels,omitempty"` // MachineDetails: Asset information specific for virtual machines. @@ -1205,8 +1218,12 @@ func (s DailyResourceUsageAggregationCPU) MarshalJSON() ([]byte, error) { // DailyResourceUsageAggregationDisk: Statistical aggregation of disk usage. type DailyResourceUsageAggregationDisk struct { - // Iops: Disk I/O operations per second. + // Iops: Optional. Disk I/O operations per second. Iops *DailyResourceUsageAggregationStats `json:"iops,omitempty"` + // ReadIops: Optional. Disk read I/O operations per second. + ReadIops *DailyResourceUsageAggregationStats `json:"readIops,omitempty"` + // WriteIops: Optional. Disk write I/O operations per second. + WriteIops *DailyResourceUsageAggregationStats `json:"writeIops,omitempty"` // ForceSendFields is a list of field names (e.g. "Iops") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -1322,6 +1339,285 @@ func (s *DailyResourceUsageAggregationStats) UnmarshalJSON(data []byte) error { return nil } +// DatabaseDeploymentDetails: The details of a database deployment asset. +type DatabaseDeploymentDetails struct { + // AggregatedStats: Output only. Aggregated stats for the database deployment. + AggregatedStats *DatabaseDeploymentDetailsAggregatedStats `json:"aggregatedStats,omitempty"` + // Edition: Optional. The database deployment edition. + Edition string `json:"edition,omitempty"` + // GeneratedId: Optional. The database deployment generated ID. + GeneratedId string `json:"generatedId,omitempty"` + // ManualUniqueId: Optional. A manual unique ID set by the user. + ManualUniqueId string `json:"manualUniqueId,omitempty"` + // Mysql: Optional. Details of a MYSQL database deployment. + Mysql *MysqlDatabaseDeployment `json:"mysql,omitempty"` + // Postgresql: Optional. Details of a PostgreSQL database deployment. + Postgresql *PostgreSqlDatabaseDeployment `json:"postgresql,omitempty"` + // SqlServer: Optional. Details of a Microsoft SQL Server database deployment. + SqlServer *SqlServerDatabaseDeployment `json:"sqlServer,omitempty"` + // Topology: Optional. Details of the database deployment topology. + Topology *DatabaseDeploymentTopology `json:"topology,omitempty"` + // Version: Optional. The database deployment version. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "AggregatedStats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AggregatedStats") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseDeploymentDetails) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseDeploymentDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DatabaseDeploymentDetailsAggregatedStats: Aggregated stats for the database +// deployment. +type DatabaseDeploymentDetailsAggregatedStats struct { + // DatabaseCount: Output only. The number of databases in the deployment. + DatabaseCount int64 `json:"databaseCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "DatabaseCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DatabaseCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseDeploymentDetailsAggregatedStats) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseDeploymentDetailsAggregatedStats + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DatabaseDeploymentTopology: Details of database deployment's topology. +type DatabaseDeploymentTopology struct { + // CoreCount: Optional. Number of total logical cores. + CoreCount int64 `json:"coreCount,omitempty"` + // CoreLimit: Optional. Number of total logical cores limited by db deployment. + CoreLimit int64 `json:"coreLimit,omitempty"` + // DiskAllocatedBytes: Optional. Disk allocated in bytes. + DiskAllocatedBytes int64 `json:"diskAllocatedBytes,omitempty,string"` + // DiskUsedBytes: Optional. Disk used in bytes. + DiskUsedBytes int64 `json:"diskUsedBytes,omitempty,string"` + // Instances: Optional. List of database instances. + Instances []*DatabaseInstance `json:"instances,omitempty"` + // MemoryBytes: Optional. Total memory in bytes. + MemoryBytes int64 `json:"memoryBytes,omitempty,string"` + // MemoryLimitBytes: Optional. Total memory in bytes limited by db deployment. + MemoryLimitBytes int64 `json:"memoryLimitBytes,omitempty,string"` + // PhysicalCoreCount: Optional. Number of total physical cores. + PhysicalCoreCount int64 `json:"physicalCoreCount,omitempty"` + // PhysicalCoreLimit: Optional. Number of total physical cores limited by db + // deployment. + PhysicalCoreLimit int64 `json:"physicalCoreLimit,omitempty"` + // ForceSendFields is a list of field names (e.g. "CoreCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CoreCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseDeploymentTopology) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseDeploymentTopology + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DatabaseDetails: Details of a logical database. +type DatabaseDetails struct { + // AllocatedStorageBytes: Optional. The allocated storage for the database in + // bytes. + AllocatedStorageBytes int64 `json:"allocatedStorageBytes,omitempty,string"` + // DatabaseName: Required. The name of the database. + DatabaseName string `json:"databaseName,omitempty"` + // ParentDatabaseDeployment: Required. The parent database deployment that + // contains the logical database. + ParentDatabaseDeployment *DatabaseDetailsParentDatabaseDeployment `json:"parentDatabaseDeployment,omitempty"` + // Schemas: Optional. The database schemas. + Schemas []*DatabaseSchema `json:"schemas,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllocatedStorageBytes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AllocatedStorageBytes") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseDetails) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DatabaseDetailsParentDatabaseDeployment: The identifiers of the parent +// database deployment. +type DatabaseDetailsParentDatabaseDeployment struct { + // GeneratedId: Optional. The parent database deployment generated ID. + GeneratedId string `json:"generatedId,omitempty"` + // ManualUniqueId: Optional. The parent database deployment optional manual + // unique ID set by the user. + ManualUniqueId string `json:"manualUniqueId,omitempty"` + // ForceSendFields is a list of field names (e.g. "GeneratedId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GeneratedId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseDetailsParentDatabaseDeployment) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseDetailsParentDatabaseDeployment + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DatabaseInstance: Details of a database instance. +type DatabaseInstance struct { + // InstanceName: Optional. The instance's name. + InstanceName string `json:"instanceName,omitempty"` + // Network: Optional. Networking details. + Network *DatabaseInstanceNetwork `json:"network,omitempty"` + // Role: Optional. The instance role in the database engine. + // + // Possible values: + // "ROLE_UNSPECIFIED" - Unspecified. + // "PRIMARY" - Primary. + // "SECONDARY" - Secondary. + // "ARBITER" - Arbiter. + Role string `json:"role,omitempty"` + // ForceSendFields is a list of field names (e.g. "InstanceName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "InstanceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseInstance) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseInstance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DatabaseInstanceNetwork: Network details of a database instance. +type DatabaseInstanceNetwork struct { + // HostNames: Optional. The instance's host names. + HostNames []string `json:"hostNames,omitempty"` + // IpAddresses: Optional. The instance's IP addresses. + IpAddresses []string `json:"ipAddresses,omitempty"` + // PrimaryMacAddress: Optional. The instance's primary MAC address. + PrimaryMacAddress string `json:"primaryMacAddress,omitempty"` + // ForceSendFields is a list of field names (e.g. "HostNames") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "HostNames") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseInstanceNetwork) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseInstanceNetwork + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DatabaseObjects: Details of a group of database objects. +type DatabaseObjects struct { + // Category: Optional. The category of the objects. + // + // Possible values: + // "CATEGORY_UNSPECIFIED" - Unspecified type. + // "TABLE" - Table. + // "INDEX" - Index. + // "CONSTRAINTS" - Constraints. + // "VIEWS" - Views. + // "SOURCE_CODE" - Source code, e.g. procedures. + // "OTHER" - Uncategorized objects. + Category string `json:"category,omitempty"` + // Count: Optional. The number of objects. + Count int64 `json:"count,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Category") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Category") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseObjects) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseObjects + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DatabaseSchema: Details of a database schema. +type DatabaseSchema struct { + // Mysql: Optional. Details of a Mysql schema. + Mysql *MySqlSchemaDetails `json:"mysql,omitempty"` + // Objects: Optional. List of details of objects by category. + Objects []*DatabaseObjects `json:"objects,omitempty"` + // Postgresql: Optional. Details of a PostgreSql schema. + Postgresql *PostgreSqlSchemaDetails `json:"postgresql,omitempty"` + // SchemaName: Required. The name of the schema. + SchemaName string `json:"schemaName,omitempty"` + // SqlServer: Optional. Details of a SqlServer schema. + SqlServer *SqlServerSchemaDetails `json:"sqlServer,omitempty"` + // TablesSizeBytes: Optional. The total size of tables in bytes. + TablesSizeBytes int64 `json:"tablesSizeBytes,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Mysql") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Mysql") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseSchema) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseSchema + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Date: Represents a whole or partial calendar date, such as a birthday. The // time of day and time zone are either specified elsewhere or are // insignificant. The date is relative to the Gregorian Calendar. This can @@ -1560,8 +1856,16 @@ func (s DiskPartitionList) MarshalJSON() ([]byte, error) { // DiskUsageSample: Disk usage sample. Values are across all disks. type DiskUsageSample struct { - // AverageIops: Average IOPS sampled over a short window. Must be non-negative. + // AverageIops: Optional. Average IOPS sampled over a short window. Must be + // non-negative. Must be equal to the sum of read and write if one of them is + // positive. if both read and write are zero they are ignored. AverageIops float64 `json:"averageIops,omitempty"` + // AverageReadIops: Optional. Average read IOPS sampled over a short window. + // Must be non-negative. + AverageReadIops float64 `json:"averageReadIops,omitempty"` + // AverageWriteIops: Optional. Average write IOPS sampled over a short window. + // Must be non-negative. + AverageWriteIops float64 `json:"averageWriteIops,omitempty"` // ForceSendFields is a list of field names (e.g. "AverageIops") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1583,7 +1887,9 @@ func (s DiskUsageSample) MarshalJSON() ([]byte, error) { func (s *DiskUsageSample) UnmarshalJSON(data []byte) error { type NoMethod DiskUsageSample var s1 struct { - AverageIops gensupport.JSONFloat64 `json:"averageIops"` + AverageIops gensupport.JSONFloat64 `json:"averageIops"` + AverageReadIops gensupport.JSONFloat64 `json:"averageReadIops"` + AverageWriteIops gensupport.JSONFloat64 `json:"averageWriteIops"` *NoMethod } s1.NoMethod = (*NoMethod)(s) @@ -1591,6 +1897,8 @@ func (s *DiskUsageSample) UnmarshalJSON(data []byte) error { return err } s.AverageIops = float64(s1.AverageIops) + s.AverageReadIops = float64(s1.AverageReadIops) + s.AverageWriteIops = float64(s1.AverageWriteIops) return nil } @@ -2154,6 +2462,8 @@ type ImportDataFile struct { // "IMPORT_JOB_FORMAT_STRATOZONE_CSV" - CSV format created manually and // following the StratoZone format. For more information, see Manually create // and upload data tables. + // "IMPORT_JOB_FORMAT_DATABASE_ZIP" - ZIP file with nested CSV files + // generated by a database collector. Format string `json:"format,omitempty"` // Name: Output only. The name of the file. Name string `json:"name,omitempty"` @@ -2280,6 +2590,10 @@ func (s ImportJob) MarshalJSON() ([]byte, error) { // ImportRowError: A resource that reports the import job errors at row level. type ImportRowError struct { + // ArchiveError: Error details for an archive file. + ArchiveError *ImportRowErrorArchiveErrorDetails `json:"archiveError,omitempty"` + // AssetTitle: Output only. The asset title. + AssetTitle string `json:"assetTitle,omitempty"` // CsvError: Error details for a CSV file. CsvError *ImportRowErrorCsvErrorDetails `json:"csvError,omitempty"` // Errors: The list of errors detected in the row. @@ -2292,13 +2606,13 @@ type ImportRowError struct { VmUuid string `json:"vmUuid,omitempty"` // XlsxError: Error details for an XLSX file. XlsxError *ImportRowErrorXlsxErrorDetails `json:"xlsxError,omitempty"` - // ForceSendFields is a list of field names (e.g. "CsvError") to + // ForceSendFields is a list of field names (e.g. "ArchiveError") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CsvError") to include in API + // NullFields is a list of field names (e.g. "ArchiveError") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -2310,6 +2624,31 @@ func (s ImportRowError) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ImportRowErrorArchiveErrorDetails: Error details for an archive file. +type ImportRowErrorArchiveErrorDetails struct { + // CsvError: Error details for a CSV file. + CsvError *ImportRowErrorCsvErrorDetails `json:"csvError,omitempty"` + // FilePath: Output only. The file path inside the archive where the error was + // detected. + FilePath string `json:"filePath,omitempty"` + // ForceSendFields is a list of field names (e.g. "CsvError") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CsvError") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ImportRowErrorArchiveErrorDetails) MarshalJSON() ([]byte, error) { + type NoMethod ImportRowErrorArchiveErrorDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ImportRowErrorCsvErrorDetails: Error details for a CSV file. type ImportRowErrorCsvErrorDetails struct { // RowNumber: The row number where the error was detected. @@ -2358,7 +2697,7 @@ func (s ImportRowErrorXlsxErrorDetails) MarshalJSON() ([]byte, error) { // Insight: An insight about an asset. type Insight struct { - // GenericInsight: Output only. A generic insight about an asset + // GenericInsight: Output only. A generic insight about an asset. GenericInsight *GenericInsight `json:"genericInsight,omitempty"` // MigrationInsight: Output only. An insight about potential migrations for an // asset. @@ -3103,6 +3442,174 @@ func (s Money) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// MySqlPlugin: MySql plugin. +type MySqlPlugin struct { + // Enabled: Required. The plugin is active. + Enabled bool `json:"enabled,omitempty"` + // Plugin: Required. The plugin name. + Plugin string `json:"plugin,omitempty"` + // Version: Required. The plugin version. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s MySqlPlugin) MarshalJSON() ([]byte, error) { + type NoMethod MySqlPlugin + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// MySqlProperty: MySql property. +type MySqlProperty struct { + // Enabled: Required. The property is enabled. + Enabled bool `json:"enabled,omitempty"` + // NumericValue: Required. The property numeric value. + NumericValue int64 `json:"numericValue,omitempty,string"` + // Property: Required. The property name. + Property string `json:"property,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s MySqlProperty) MarshalJSON() ([]byte, error) { + type NoMethod MySqlProperty + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// MySqlSchemaDetails: Specific details for a Mysql database. +type MySqlSchemaDetails struct { + // StorageEngines: Optional. Mysql storage engine tables. + StorageEngines []*MySqlStorageEngineDetails `json:"storageEngines,omitempty"` + // ForceSendFields is a list of field names (e.g. "StorageEngines") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "StorageEngines") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s MySqlSchemaDetails) MarshalJSON() ([]byte, error) { + type NoMethod MySqlSchemaDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// MySqlStorageEngineDetails: Mysql storage engine tables. +type MySqlStorageEngineDetails struct { + // EncryptedTableCount: Optional. The number of encrypted tables. + EncryptedTableCount int64 `json:"encryptedTableCount,omitempty"` + // Engine: Required. The storage engine. + // + // Possible values: + // "ENGINE_UNSPECIFIED" - Unspecified storage engine. + // "INNODB" - InnoDB. + // "MYISAM" - MyISAM. + // "MEMORY" - Memory. + // "CSV" - CSV. + // "ARCHIVE" - Archive. + // "BLACKHOLE" - Blackhole. + // "NDB" - NDB. + // "MERGE" - Merge. + // "FEDERATED" - Federated. + // "EXAMPLE" - Example. + // "OTHER" - Other. + Engine string `json:"engine,omitempty"` + // TableCount: Optional. The number of tables. + TableCount int64 `json:"tableCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "EncryptedTableCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EncryptedTableCount") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s MySqlStorageEngineDetails) MarshalJSON() ([]byte, error) { + type NoMethod MySqlStorageEngineDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// MySqlVariable: MySql variable. +type MySqlVariable struct { + // Category: Required. The variable category. + Category string `json:"category,omitempty"` + // Value: Required. The variable value. + Value string `json:"value,omitempty"` + // Variable: Required. The variable name. + Variable string `json:"variable,omitempty"` + // ForceSendFields is a list of field names (e.g. "Category") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Category") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s MySqlVariable) MarshalJSON() ([]byte, error) { + type NoMethod MySqlVariable + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// MysqlDatabaseDeployment: Specific details for a Mysql database deployment. +type MysqlDatabaseDeployment struct { + // Plugins: Optional. List of MySql plugins. + Plugins []*MySqlPlugin `json:"plugins,omitempty"` + // Properties: Optional. List of MySql properties. + Properties []*MySqlProperty `json:"properties,omitempty"` + // ResourceGroupsCount: Optional. Number of resource groups. + ResourceGroupsCount int64 `json:"resourceGroupsCount,omitempty"` + // Variables: Optional. List of MySql variables. + Variables []*MySqlVariable `json:"variables,omitempty"` + // ForceSendFields is a list of field names (e.g. "Plugins") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Plugins") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s MysqlDatabaseDeployment) MarshalJSON() ([]byte, error) { + type NoMethod MysqlDatabaseDeployment + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // NetworkAdapterDetails: Details of network adapter. type NetworkAdapterDetails struct { // AdapterType: Network adapter type (e.g. VMXNET3). @@ -3591,6 +4098,154 @@ func (s PlatformDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PostgreSqlDatabaseDeployment: Specific details for a PostgreSQL database +// deployment. +type PostgreSqlDatabaseDeployment struct { + // Properties: Optional. List of PostgreSql properties. + Properties []*PostgreSqlProperty `json:"properties,omitempty"` + // Settings: Optional. List of PostgreSql settings. + Settings []*PostgreSqlSetting `json:"settings,omitempty"` + // ForceSendFields is a list of field names (e.g. "Properties") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Properties") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PostgreSqlDatabaseDeployment) MarshalJSON() ([]byte, error) { + type NoMethod PostgreSqlDatabaseDeployment + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PostgreSqlExtension: PostgreSql extension. +type PostgreSqlExtension struct { + // Extension: Required. The extension name. + Extension string `json:"extension,omitempty"` + // Version: Required. The extension version. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Extension") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Extension") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PostgreSqlExtension) MarshalJSON() ([]byte, error) { + type NoMethod PostgreSqlExtension + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PostgreSqlProperty: PostgreSql property. +type PostgreSqlProperty struct { + // Enabled: Required. The property is enabled. + Enabled bool `json:"enabled,omitempty"` + // NumericValue: Required. The property numeric value. + NumericValue int64 `json:"numericValue,omitempty,string"` + // Property: Required. The property name. + Property string `json:"property,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PostgreSqlProperty) MarshalJSON() ([]byte, error) { + type NoMethod PostgreSqlProperty + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PostgreSqlSchemaDetails: Specific details for a PostgreSql schema. +type PostgreSqlSchemaDetails struct { + // ForeignTablesCount: Optional. PostgreSql foreign tables. + ForeignTablesCount int64 `json:"foreignTablesCount,omitempty"` + // PostgresqlExtensions: Optional. PostgreSql extensions. + PostgresqlExtensions []*PostgreSqlExtension `json:"postgresqlExtensions,omitempty"` + // ForceSendFields is a list of field names (e.g. "ForeignTablesCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ForeignTablesCount") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PostgreSqlSchemaDetails) MarshalJSON() ([]byte, error) { + type NoMethod PostgreSqlSchemaDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PostgreSqlSetting: PostgreSql setting. +type PostgreSqlSetting struct { + // BoolValue: Required. The setting boolean value. + BoolValue bool `json:"boolValue,omitempty"` + // IntValue: Required. The setting int value. + IntValue int64 `json:"intValue,omitempty,string"` + // RealValue: Required. The setting real value. + RealValue float64 `json:"realValue,omitempty"` + // Setting: Required. The setting name. + Setting string `json:"setting,omitempty"` + // Source: Required. The setting source. + Source string `json:"source,omitempty"` + // StringValue: Required. The setting string value. Notice that enum values are + // stored as strings. + StringValue string `json:"stringValue,omitempty"` + // Unit: Optional. The setting unit. + Unit string `json:"unit,omitempty"` + // ForceSendFields is a list of field names (e.g. "BoolValue") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BoolValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PostgreSqlSetting) MarshalJSON() ([]byte, error) { + type NoMethod PostgreSqlSetting + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *PostgreSqlSetting) UnmarshalJSON(data []byte) error { + type NoMethod PostgreSqlSetting + var s1 struct { + RealValue gensupport.JSONFloat64 `json:"realValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.RealValue = float64(s1.RealValue) + return nil +} + // PreferenceSet: The preferences that apply to all assets in a given context. type PreferenceSet struct { // CreateTime: Output only. The timestamp when the preference set was created. @@ -4682,6 +5337,139 @@ func (s Source) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// SqlServerDatabaseDeployment: Specific details for a Microsoft SQL Server +// database deployment. +type SqlServerDatabaseDeployment struct { + // Features: Optional. List of SQL Server features. + Features []*SqlServerFeature `json:"features,omitempty"` + // ServerFlags: Optional. List of SQL Server server flags. + ServerFlags []*SqlServerServerFlag `json:"serverFlags,omitempty"` + // TraceFlags: Optional. List of SQL Server trace flags. + TraceFlags []*SqlServerTraceFlag `json:"traceFlags,omitempty"` + // ForceSendFields is a list of field names (e.g. "Features") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Features") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SqlServerDatabaseDeployment) MarshalJSON() ([]byte, error) { + type NoMethod SqlServerDatabaseDeployment + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SqlServerFeature: SQL Server feature details. +type SqlServerFeature struct { + // Enabled: Required. Field enabled is set when a feature is used on the source + // deployment. + Enabled bool `json:"enabled,omitempty"` + // FeatureName: Required. The feature name. + FeatureName string `json:"featureName,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SqlServerFeature) MarshalJSON() ([]byte, error) { + type NoMethod SqlServerFeature + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SqlServerSchemaDetails: Specific details for a SqlServer database. +type SqlServerSchemaDetails struct { + // ClrObjectCount: Optional. SqlServer number of CLR objects. + ClrObjectCount int64 `json:"clrObjectCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClrObjectCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ClrObjectCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SqlServerSchemaDetails) MarshalJSON() ([]byte, error) { + type NoMethod SqlServerSchemaDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SqlServerServerFlag: SQL Server server flag details. +type SqlServerServerFlag struct { + // ServerFlagName: Required. The server flag name. + ServerFlagName string `json:"serverFlagName,omitempty"` + // Value: Required. The server flag value set by the user. + Value string `json:"value,omitempty"` + // ValueInUse: Required. The server flag actual value. If `value_in_use` is + // different from `value` it means that either the configuration change was not + // applied or it is an expected behavior. See SQL Server documentation for more + // details. + ValueInUse string `json:"valueInUse,omitempty"` + // ForceSendFields is a list of field names (e.g. "ServerFlagName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ServerFlagName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SqlServerServerFlag) MarshalJSON() ([]byte, error) { + type NoMethod SqlServerServerFlag + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SqlServerTraceFlag: SQL Server trace flag details. +type SqlServerTraceFlag struct { + // Scope: Required. The trace flag scope. + // + // Possible values: + // "SCOPE_UNSPECIFIED" - Unspecified. + // "OFF" - Off. + // "GLOBAL" - Global. + // "SESSION" - Session. + Scope string `json:"scope,omitempty"` + // TraceFlagName: Required. The trace flag name. + TraceFlagName string `json:"traceFlagName,omitempty"` + // ForceSendFields is a list of field names (e.g. "Scope") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Scope") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SqlServerTraceFlag) MarshalJSON() ([]byte, error) { + type NoMethod SqlServerTraceFlag + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Status: 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 @@ -4891,7 +5679,7 @@ type VirtualMachinePreferences struct { // "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE" - Prefer to migrate to // Google Cloud Compute Engine. // "COMPUTE_MIGRATION_TARGET_PRODUCT_VMWARE_ENGINE" - Prefer to migrate to - // Google Cloud VMware Engine. + // Google Cloud VMware Engine.6278 // "COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY" - Prefer to migrate to // Google Cloud Sole Tenant Nodes. TargetProduct string `json:"targetProduct,omitempty"` diff --git a/monitoring/v3/monitoring-api.json b/monitoring/v3/monitoring-api.json index f099d51186e..65be5e5a640 100644 --- a/monitoring/v3/monitoring-api.json +++ b/monitoring/v3/monitoring-api.json @@ -1205,7 +1205,7 @@ ], "parameters": { "filter": { - "description": "If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter (https://cloud.google.com/monitoring/api/v3/filters) specifies which metric descriptors are to be returned. For example, the following filter matches all custom metrics (https://cloud.google.com/monitoring/custom-metrics): metric.type = starts_with(\"custom.googleapis.com/\") ", + "description": "Optional. If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter (https://cloud.google.com/monitoring/api/v3/filters) specifies which metric descriptors are to be returned. For example, the following filter matches all custom metrics (https://cloud.google.com/monitoring/custom-metrics): metric.type = starts_with(\"custom.googleapis.com/\") ", "location": "query", "type": "string" }, @@ -1217,13 +1217,13 @@ "type": "string" }, "pageSize": { - "description": "A positive number that is the maximum number of results to return. The default and maximum value is 10,000. If a page_size \u003c= 0 or \u003e 10,000 is submitted, will instead return a maximum of 10,000 results.", + "description": "Optional. A positive number that is the maximum number of results to return. The default and maximum value is 10,000. If a page_size \u003c= 0 or \u003e 10,000 is submitted, will instead return a maximum of 10,000 results.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.", + "description": "Optional. If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.", "location": "query", "type": "string" } @@ -2715,7 +2715,7 @@ } } }, - "revision": "20241017", + "revision": "20241114", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -5263,6 +5263,10 @@ "description": "Optional. The alerting rule name of this alert in the corresponding Prometheus configuration file.Some external tools may require this field to be populated correctly in order to refer to the original Prometheus configuration file. The rule group name and the alert name are necessary to update the relevant AlertPolicies in case the definition of the rule group changes in the future.This field is optional. If this field is not empty, then it must be a valid Prometheus label name (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). This field may not exceed 2048 Unicode characters in length.", "type": "string" }, + "disableMetricValidation": { + "description": "Optional. Whether to disable metric existence validation for this condition.This allows alerting policies to be defined on metrics that do not yet exist, improving advanced customer workflows such as configuring alerting policies using Terraform.Users with the monitoring.alertPolicyViewer role are able to see the name of the non-existent metric in the alerting policy condition.", + "type": "boolean" + }, "duration": { "description": "Optional. Alerts are considered firing once their PromQL expression was evaluated to be \"true\" for this long. Alerts whose PromQL expression was not evaluated to be \"true\" for long enough are considered pending. Must be a non-negative duration or missing. This field is optional. Its default value is zero.", "format": "google-duration", diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index 7ac84fbb33e..77d1ddf4e13 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -4401,6 +4401,13 @@ type PrometheusQueryLanguageCondition struct { // (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). // This field may not exceed 2048 Unicode characters in length. AlertRule string `json:"alertRule,omitempty"` + // DisableMetricValidation: Optional. Whether to disable metric existence + // validation for this condition.This allows alerting policies to be defined on + // metrics that do not yet exist, improving advanced customer workflows such as + // configuring alerting policies using Terraform.Users with the + // monitoring.alertPolicyViewer role are able to see the name of the + // non-existent metric in the alerting policy condition. + DisableMetricValidation bool `json:"disableMetricValidation,omitempty"` // Duration: Optional. Alerts are considered firing once their PromQL // expression was evaluated to be "true" for this long. Alerts whose PromQL // expression was not evaluated to be "true" for long enough are considered diff --git a/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-api.json b/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-api.json index e6a83102560..b8df7e8c826 100644 --- a/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-api.json +++ b/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-api.json @@ -530,7 +530,7 @@ } } }, - "revision": "20230117", + "revision": "20241120", "rootUrl": "https://mybusinessaccountmanagement.googleapis.com/", "schemas": { "AcceptInvitationRequest": { @@ -844,18 +844,18 @@ "type": "object" }, "PostalAddress": { - "description": "Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478", + "description": "Represents a postal address. For example for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478", "id": "PostalAddress", "properties": { "addressLines": { - "description": "Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a single field (e.g. \"Austin, TX\"), it is important that the line order is clear. The order of address lines should be \"envelope order\" for the country/region of the address. In places where this can vary (e.g. Japan), address_language is used to make it explicit (e.g. \"ja\" for large-to-small ordering and \"ja-Latn\" or \"en\" for small-to-large). This way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a region_code with all remaining information placed in the address_lines. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a region_code and address_lines, and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).", + "description": "Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a single field (For example \"Austin, TX\"), it is important that the line order is clear. The order of address lines should be \"envelope order\" for the country/region of the address. In places where this can vary (For example Japan), address_language is used to make it explicit (For example \"ja\" for large-to-small ordering and \"ja-Latn\" or \"en\" for small-to-large). This way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a region_code with all remaining information placed in the address_lines. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a region_code and address_lines, and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).", "items": { "type": "string" }, "type": "array" }, "administrativeArea": { - "description": "Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (e.g. \"Barcelona\" and not \"Catalonia\"). Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated.", + "description": "Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (For example \"Barcelona\" and not \"Catalonia\"). Many countries don't use an administrative area in postal addresses. For example in Switzerland this should be left unpopulated.", "type": "string" }, "languageCode": { @@ -871,7 +871,7 @@ "type": "string" }, "postalCode": { - "description": "Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (e.g. state/zip validation in the U.S.A.).", + "description": "Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (For example state/zip validation in the U.S.A.).", "type": "string" }, "recipients": { @@ -891,7 +891,7 @@ "type": "integer" }, "sortingCode": { - "description": "Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like \"CEDEX\", optionally followed by a number (e.g. \"CEDEX 7\"), or just a number alone, representing the \"sector code\" (Jamaica), \"delivery area indicator\" (Malawi) or \"post office indicator\" (e.g. Côte d'Ivoire).", + "description": "Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like \"CEDEX\", optionally followed by a number (For example \"CEDEX 7\"), or just a number alone, representing the \"sector code\" (Jamaica), \"delivery area indicator\" (Malawi) or \"post office indicator\" (For example Côte d'Ivoire).", "type": "string" }, "sublocality": { diff --git a/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go b/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go index 00cecd6f615..1fa10bfef65 100644 --- a/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go +++ b/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go @@ -554,42 +554,43 @@ func (s OrganizationInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PostalAddress: Represents a postal address, e.g. for postal delivery or -// payments addresses. Given a postal address, a postal service can deliver +// PostalAddress: Represents a postal address. For example for postal delivery +// or payments addresses. Given a postal address, a postal service can deliver // items to a premise, P.O. Box or similar. It is not intended to model // geographical locations (roads, towns, mountains). In typical usage an -// address would be created via user input or from importing existing data, +// address would be created by user input or from importing existing data, // depending on the type of process. Advice on address input / editing: - Use // an internationalization-ready address widget such as // https://github.com/google/libaddressinput) - Users should not be presented // with UI elements for input or editing of fields outside countries where that -// field is used. For more guidance on how to use this schema, please see: +// field is used. For more guidance on how to use this schema, see: // https://support.google.com/business/answer/6397478 type PostalAddress struct { // AddressLines: Unstructured address lines describing the lower levels of an // address. Because values in address_lines do not have type information and - // may sometimes contain multiple values in a single field (e.g. "Austin, TX"), - // it is important that the line order is clear. The order of address lines - // should be "envelope order" for the country/region of the address. In places - // where this can vary (e.g. Japan), address_language is used to make it - // explicit (e.g. "ja" for large-to-small ordering and "ja-Latn" or "en" for - // small-to-large). This way, the most specific line of an address can be - // selected based on the language. The minimum permitted structural - // representation of an address consists of a region_code with all remaining - // information placed in the address_lines. It would be possible to format such - // an address very approximately without geocoding, but no semantic reasoning - // could be made about any of the address components until it was at least - // partially resolved. Creating an address only containing a region_code and - // address_lines, and then geocoding is the recommended way to handle + // may sometimes contain multiple values in a single field (For example + // "Austin, TX"), it is important that the line order is clear. The order of + // address lines should be "envelope order" for the country/region of the + // address. In places where this can vary (For example Japan), address_language + // is used to make it explicit (For example "ja" for large-to-small ordering + // and "ja-Latn" or "en" for small-to-large). This way, the most specific line + // of an address can be selected based on the language. The minimum permitted + // structural representation of an address consists of a region_code with all + // remaining information placed in the address_lines. It would be possible to + // format such an address very approximately without geocoding, but no semantic + // reasoning could be made about any of the address components until it was at + // least partially resolved. Creating an address only containing a region_code + // and address_lines, and then geocoding is the recommended way to handle // completely unstructured addresses (as opposed to guessing which parts of the // address should be localities or administrative areas). AddressLines []string `json:"addressLines,omitempty"` // AdministrativeArea: Optional. Highest administrative subdivision which is // used for postal addresses of a country or region. For example, this can be a // state, a province, an oblast, or a prefecture. Specifically, for Spain this - // is the province and not the autonomous community (e.g. "Barcelona" and not - // "Catalonia"). Many countries don't use an administrative area in postal - // addresses. E.g. in Switzerland this should be left unpopulated. + // is the province and not the autonomous community (For example "Barcelona" + // and not "Catalonia"). Many countries don't use an administrative area in + // postal addresses. For example in Switzerland this should be left + // unpopulated. AdministrativeArea string `json:"administrativeArea,omitempty"` // LanguageCode: Optional. BCP-47 language code of the contents of this address // (if known). This is often the UI language of the input form or is expected @@ -609,7 +610,7 @@ type PostalAddress struct { Organization string `json:"organization,omitempty"` // PostalCode: Optional. Postal code of the address. Not all countries use or // require postal codes to be present, but where they are used, they may - // trigger additional validation with other parts of the address (e.g. + // trigger additional validation with other parts of the address (For example // state/zip validation in the U.S.A.). PostalCode string `json:"postalCode,omitempty"` // Recipients: Optional. The recipient at the address. This field may, under @@ -628,9 +629,10 @@ type PostalAddress struct { Revision int64 `json:"revision,omitempty"` // SortingCode: Optional. Additional, country-specific, sorting code. This is // not used in most regions. Where it is used, the value is either a string - // like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a - // number alone, representing the "sector code" (Jamaica), "delivery area - // indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + // like "CEDEX", optionally followed by a number (For example "CEDEX 7"), or + // just a number alone, representing the "sector code" (Jamaica), "delivery + // area indicator" (Malawi) or "post office indicator" (For example Côte + // d'Ivoire). SortingCode string `json:"sortingCode,omitempty"` // Sublocality: Optional. Sublocality of the address. For example, this can be // neighborhoods, boroughs, districts. diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json index 236042f6343..e84e53ca552 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json @@ -612,7 +612,7 @@ } } }, - "revision": "20241002", + "revision": "20241120", "rootUrl": "https://mybusinessbusinessinformation.googleapis.com/", "schemas": { "AdWordsLocationExtensions": { @@ -1386,18 +1386,18 @@ "type": "object" }, "PostalAddress": { - "description": "Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478", + "description": "Represents a postal address. For example for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478", "id": "PostalAddress", "properties": { "addressLines": { - "description": "Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a single field (e.g. \"Austin, TX\"), it is important that the line order is clear. The order of address lines should be \"envelope order\" for the country/region of the address. In places where this can vary (e.g. Japan), address_language is used to make it explicit (e.g. \"ja\" for large-to-small ordering and \"ja-Latn\" or \"en\" for small-to-large). This way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a region_code with all remaining information placed in the address_lines. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a region_code and address_lines, and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).", + "description": "Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a single field (For example \"Austin, TX\"), it is important that the line order is clear. The order of address lines should be \"envelope order\" for the country/region of the address. In places where this can vary (For example Japan), address_language is used to make it explicit (For example \"ja\" for large-to-small ordering and \"ja-Latn\" or \"en\" for small-to-large). This way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a region_code with all remaining information placed in the address_lines. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a region_code and address_lines, and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).", "items": { "type": "string" }, "type": "array" }, "administrativeArea": { - "description": "Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (e.g. \"Barcelona\" and not \"Catalonia\"). Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated.", + "description": "Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (For example \"Barcelona\" and not \"Catalonia\"). Many countries don't use an administrative area in postal addresses. For example in Switzerland this should be left unpopulated.", "type": "string" }, "languageCode": { @@ -1413,7 +1413,7 @@ "type": "string" }, "postalCode": { - "description": "Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (e.g. state/zip validation in the U.S.A.).", + "description": "Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (For example state/zip validation in the U.S.A.).", "type": "string" }, "recipients": { @@ -1433,7 +1433,7 @@ "type": "integer" }, "sortingCode": { - "description": "Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like \"CEDEX\", optionally followed by a number (e.g. \"CEDEX 7\"), or just a number alone, representing the \"sector code\" (Jamaica), \"delivery area indicator\" (Malawi) or \"post office indicator\" (e.g. Côte d'Ivoire).", + "description": "Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like \"CEDEX\", optionally followed by a number (For example \"CEDEX 7\"), or just a number alone, representing the \"sector code\" (Jamaica), \"delivery area indicator\" (Malawi) or \"post office indicator\" (For example Côte d'Ivoire).", "type": "string" }, "sublocality": { diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go index c0a57c91755..bd3c412d10d 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go @@ -1310,42 +1310,43 @@ func (s Places) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PostalAddress: Represents a postal address, e.g. for postal delivery or -// payments addresses. Given a postal address, a postal service can deliver +// PostalAddress: Represents a postal address. For example for postal delivery +// or payments addresses. Given a postal address, a postal service can deliver // items to a premise, P.O. Box or similar. It is not intended to model // geographical locations (roads, towns, mountains). In typical usage an -// address would be created via user input or from importing existing data, +// address would be created by user input or from importing existing data, // depending on the type of process. Advice on address input / editing: - Use // an internationalization-ready address widget such as // https://github.com/google/libaddressinput) - Users should not be presented // with UI elements for input or editing of fields outside countries where that -// field is used. For more guidance on how to use this schema, please see: +// field is used. For more guidance on how to use this schema, see: // https://support.google.com/business/answer/6397478 type PostalAddress struct { // AddressLines: Unstructured address lines describing the lower levels of an // address. Because values in address_lines do not have type information and - // may sometimes contain multiple values in a single field (e.g. "Austin, TX"), - // it is important that the line order is clear. The order of address lines - // should be "envelope order" for the country/region of the address. In places - // where this can vary (e.g. Japan), address_language is used to make it - // explicit (e.g. "ja" for large-to-small ordering and "ja-Latn" or "en" for - // small-to-large). This way, the most specific line of an address can be - // selected based on the language. The minimum permitted structural - // representation of an address consists of a region_code with all remaining - // information placed in the address_lines. It would be possible to format such - // an address very approximately without geocoding, but no semantic reasoning - // could be made about any of the address components until it was at least - // partially resolved. Creating an address only containing a region_code and - // address_lines, and then geocoding is the recommended way to handle + // may sometimes contain multiple values in a single field (For example + // "Austin, TX"), it is important that the line order is clear. The order of + // address lines should be "envelope order" for the country/region of the + // address. In places where this can vary (For example Japan), address_language + // is used to make it explicit (For example "ja" for large-to-small ordering + // and "ja-Latn" or "en" for small-to-large). This way, the most specific line + // of an address can be selected based on the language. The minimum permitted + // structural representation of an address consists of a region_code with all + // remaining information placed in the address_lines. It would be possible to + // format such an address very approximately without geocoding, but no semantic + // reasoning could be made about any of the address components until it was at + // least partially resolved. Creating an address only containing a region_code + // and address_lines, and then geocoding is the recommended way to handle // completely unstructured addresses (as opposed to guessing which parts of the // address should be localities or administrative areas). AddressLines []string `json:"addressLines,omitempty"` // AdministrativeArea: Optional. Highest administrative subdivision which is // used for postal addresses of a country or region. For example, this can be a // state, a province, an oblast, or a prefecture. Specifically, for Spain this - // is the province and not the autonomous community (e.g. "Barcelona" and not - // "Catalonia"). Many countries don't use an administrative area in postal - // addresses. E.g. in Switzerland this should be left unpopulated. + // is the province and not the autonomous community (For example "Barcelona" + // and not "Catalonia"). Many countries don't use an administrative area in + // postal addresses. For example in Switzerland this should be left + // unpopulated. AdministrativeArea string `json:"administrativeArea,omitempty"` // LanguageCode: Optional. BCP-47 language code of the contents of this address // (if known). This is often the UI language of the input form or is expected @@ -1365,7 +1366,7 @@ type PostalAddress struct { Organization string `json:"organization,omitempty"` // PostalCode: Optional. Postal code of the address. Not all countries use or // require postal codes to be present, but where they are used, they may - // trigger additional validation with other parts of the address (e.g. + // trigger additional validation with other parts of the address (For example // state/zip validation in the U.S.A.). PostalCode string `json:"postalCode,omitempty"` // Recipients: Optional. The recipient at the address. This field may, under @@ -1384,9 +1385,10 @@ type PostalAddress struct { Revision int64 `json:"revision,omitempty"` // SortingCode: Optional. Additional, country-specific, sorting code. This is // not used in most regions. Where it is used, the value is either a string - // like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a - // number alone, representing the "sector code" (Jamaica), "delivery area - // indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + // like "CEDEX", optionally followed by a number (For example "CEDEX 7"), or + // just a number alone, representing the "sector code" (Jamaica), "delivery + // area indicator" (Malawi) or "post office indicator" (For example Côte + // d'Ivoire). SortingCode string `json:"sortingCode,omitempty"` // Sublocality: Optional. Sublocality of the address. For example, this can be // neighborhoods, boroughs, districts. diff --git a/mybusinessverifications/v1/mybusinessverifications-api.json b/mybusinessverifications/v1/mybusinessverifications-api.json index 65a2521f5e0..7474acd1966 100644 --- a/mybusinessverifications/v1/mybusinessverifications-api.json +++ b/mybusinessverifications/v1/mybusinessverifications-api.json @@ -237,7 +237,7 @@ } } }, - "revision": "20230914", + "revision": "20241120", "rootUrl": "https://mybusinessverifications.googleapis.com/", "schemas": { "AddressVerificationData": { @@ -370,18 +370,18 @@ "type": "object" }, "PostalAddress": { - "description": "Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478", + "description": "Represents a postal address. For example for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478", "id": "PostalAddress", "properties": { "addressLines": { - "description": "Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a single field (e.g. \"Austin, TX\"), it is important that the line order is clear. The order of address lines should be \"envelope order\" for the country/region of the address. In places where this can vary (e.g. Japan), address_language is used to make it explicit (e.g. \"ja\" for large-to-small ordering and \"ja-Latn\" or \"en\" for small-to-large). This way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a region_code with all remaining information placed in the address_lines. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a region_code and address_lines, and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).", + "description": "Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a single field (For example \"Austin, TX\"), it is important that the line order is clear. The order of address lines should be \"envelope order\" for the country/region of the address. In places where this can vary (For example Japan), address_language is used to make it explicit (For example \"ja\" for large-to-small ordering and \"ja-Latn\" or \"en\" for small-to-large). This way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a region_code with all remaining information placed in the address_lines. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a region_code and address_lines, and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).", "items": { "type": "string" }, "type": "array" }, "administrativeArea": { - "description": "Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (e.g. \"Barcelona\" and not \"Catalonia\"). Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated.", + "description": "Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (For example \"Barcelona\" and not \"Catalonia\"). Many countries don't use an administrative area in postal addresses. For example in Switzerland this should be left unpopulated.", "type": "string" }, "languageCode": { @@ -397,7 +397,7 @@ "type": "string" }, "postalCode": { - "description": "Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (e.g. state/zip validation in the U.S.A.).", + "description": "Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (For example state/zip validation in the U.S.A.).", "type": "string" }, "recipients": { @@ -417,7 +417,7 @@ "type": "integer" }, "sortingCode": { - "description": "Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like \"CEDEX\", optionally followed by a number (e.g. \"CEDEX 7\"), or just a number alone, representing the \"sector code\" (Jamaica), \"delivery area indicator\" (Malawi) or \"post office indicator\" (e.g. Côte d'Ivoire).", + "description": "Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like \"CEDEX\", optionally followed by a number (For example \"CEDEX 7\"), or just a number alone, representing the \"sector code\" (Jamaica), \"delivery area indicator\" (Malawi) or \"post office indicator\" (For example Côte d'Ivoire).", "type": "string" }, "sublocality": { diff --git a/mybusinessverifications/v1/mybusinessverifications-gen.go b/mybusinessverifications/v1/mybusinessverifications-gen.go index 454c088f1eb..a3e0178d48e 100644 --- a/mybusinessverifications/v1/mybusinessverifications-gen.go +++ b/mybusinessverifications/v1/mybusinessverifications-gen.go @@ -388,42 +388,43 @@ func (s ListVerificationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PostalAddress: Represents a postal address, e.g. for postal delivery or -// payments addresses. Given a postal address, a postal service can deliver +// PostalAddress: Represents a postal address. For example for postal delivery +// or payments addresses. Given a postal address, a postal service can deliver // items to a premise, P.O. Box or similar. It is not intended to model // geographical locations (roads, towns, mountains). In typical usage an -// address would be created via user input or from importing existing data, +// address would be created by user input or from importing existing data, // depending on the type of process. Advice on address input / editing: - Use // an internationalization-ready address widget such as // https://github.com/google/libaddressinput) - Users should not be presented // with UI elements for input or editing of fields outside countries where that -// field is used. For more guidance on how to use this schema, please see: +// field is used. For more guidance on how to use this schema, see: // https://support.google.com/business/answer/6397478 type PostalAddress struct { // AddressLines: Unstructured address lines describing the lower levels of an // address. Because values in address_lines do not have type information and - // may sometimes contain multiple values in a single field (e.g. "Austin, TX"), - // it is important that the line order is clear. The order of address lines - // should be "envelope order" for the country/region of the address. In places - // where this can vary (e.g. Japan), address_language is used to make it - // explicit (e.g. "ja" for large-to-small ordering and "ja-Latn" or "en" for - // small-to-large). This way, the most specific line of an address can be - // selected based on the language. The minimum permitted structural - // representation of an address consists of a region_code with all remaining - // information placed in the address_lines. It would be possible to format such - // an address very approximately without geocoding, but no semantic reasoning - // could be made about any of the address components until it was at least - // partially resolved. Creating an address only containing a region_code and - // address_lines, and then geocoding is the recommended way to handle + // may sometimes contain multiple values in a single field (For example + // "Austin, TX"), it is important that the line order is clear. The order of + // address lines should be "envelope order" for the country/region of the + // address. In places where this can vary (For example Japan), address_language + // is used to make it explicit (For example "ja" for large-to-small ordering + // and "ja-Latn" or "en" for small-to-large). This way, the most specific line + // of an address can be selected based on the language. The minimum permitted + // structural representation of an address consists of a region_code with all + // remaining information placed in the address_lines. It would be possible to + // format such an address very approximately without geocoding, but no semantic + // reasoning could be made about any of the address components until it was at + // least partially resolved. Creating an address only containing a region_code + // and address_lines, and then geocoding is the recommended way to handle // completely unstructured addresses (as opposed to guessing which parts of the // address should be localities or administrative areas). AddressLines []string `json:"addressLines,omitempty"` // AdministrativeArea: Optional. Highest administrative subdivision which is // used for postal addresses of a country or region. For example, this can be a // state, a province, an oblast, or a prefecture. Specifically, for Spain this - // is the province and not the autonomous community (e.g. "Barcelona" and not - // "Catalonia"). Many countries don't use an administrative area in postal - // addresses. E.g. in Switzerland this should be left unpopulated. + // is the province and not the autonomous community (For example "Barcelona" + // and not "Catalonia"). Many countries don't use an administrative area in + // postal addresses. For example in Switzerland this should be left + // unpopulated. AdministrativeArea string `json:"administrativeArea,omitempty"` // LanguageCode: Optional. BCP-47 language code of the contents of this address // (if known). This is often the UI language of the input form or is expected @@ -443,7 +444,7 @@ type PostalAddress struct { Organization string `json:"organization,omitempty"` // PostalCode: Optional. Postal code of the address. Not all countries use or // require postal codes to be present, but where they are used, they may - // trigger additional validation with other parts of the address (e.g. + // trigger additional validation with other parts of the address (For example // state/zip validation in the U.S.A.). PostalCode string `json:"postalCode,omitempty"` // Recipients: Optional. The recipient at the address. This field may, under @@ -462,9 +463,10 @@ type PostalAddress struct { Revision int64 `json:"revision,omitempty"` // SortingCode: Optional. Additional, country-specific, sorting code. This is // not used in most regions. Where it is used, the value is either a string - // like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a - // number alone, representing the "sector code" (Jamaica), "delivery area - // indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + // like "CEDEX", optionally followed by a number (For example "CEDEX 7"), or + // just a number alone, representing the "sector code" (Jamaica), "delivery + // area indicator" (Malawi) or "post office indicator" (For example Côte + // d'Ivoire). SortingCode string `json:"sortingCode,omitempty"` // Sublocality: Optional. Sublocality of the address. For example, this can be // neighborhoods, boroughs, districts. diff --git a/playdeveloperreporting/v1alpha1/playdeveloperreporting-api.json b/playdeveloperreporting/v1alpha1/playdeveloperreporting-api.json index 842012f6a61..83192d4e7cb 100644 --- a/playdeveloperreporting/v1alpha1/playdeveloperreporting-api.json +++ b/playdeveloperreporting/v1alpha1/playdeveloperreporting-api.json @@ -434,12 +434,12 @@ "type": "integer" }, "interval.endTime.timeZone.id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", "location": "query", "type": "string" }, "interval.endTime.timeZone.version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", "location": "query", "type": "string" }, @@ -492,12 +492,12 @@ "type": "integer" }, "interval.startTime.timeZone.id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", "location": "query", "type": "string" }, "interval.startTime.timeZone.version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", "location": "query", "type": "string" }, @@ -606,12 +606,12 @@ "type": "integer" }, "interval.endTime.timeZone.id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", "location": "query", "type": "string" }, "interval.endTime.timeZone.version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", "location": "query", "type": "string" }, @@ -664,12 +664,12 @@ "type": "integer" }, "interval.startTime.timeZone.id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", "location": "query", "type": "string" }, "interval.startTime.timeZone.version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", "location": "query", "type": "string" }, @@ -947,7 +947,7 @@ } } }, - "revision": "20241102", + "revision": "20241120", "rootUrl": "https://playdeveloperreporting.googleapis.com/", "schemas": { "GooglePlayDeveloperReportingV1alpha1Anomaly": { @@ -2179,11 +2179,11 @@ "id": "GoogleTypeTimeZone", "properties": { "id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", "type": "string" }, "version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", "type": "string" } }, diff --git a/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go b/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go index 3f681d07889..7fac55eaa7c 100644 --- a/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go +++ b/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go @@ -2745,9 +2745,10 @@ func (s GoogleTypeDecimal) MarshalJSON() ([]byte, error) { // GoogleTypeTimeZone: Represents a time zone from the IANA Time Zone Database // (https://www.iana.org/time-zones). type GoogleTypeTimeZone struct { - // Id: IANA Time Zone Database time zone, e.g. "America/New_York". + // Id: IANA Time Zone Database time zone. For example "America/New_York". Id string `json:"id,omitempty"` - // Version: Optional. IANA Time Zone Database version number, e.g. "2019a". + // Version: Optional. IANA Time Zone Database version number. For example + // "2019a". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -3983,16 +3984,16 @@ func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeSeconds(intervalEndTimeSec } // IntervalEndTimeTimeZoneId sets the optional parameter -// "interval.endTime.timeZone.id": IANA Time Zone Database time zone, e.g. -// "America/New_York". +// "interval.endTime.timeZone.id": IANA Time Zone Database time zone. For +// example "America/New_York". func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeTimeZoneId(intervalEndTimeTimeZoneId string) *VitalsErrorsIssuesSearchCall { c.urlParams_.Set("interval.endTime.timeZone.id", intervalEndTimeTimeZoneId) return c } // IntervalEndTimeTimeZoneVersion sets the optional parameter -// "interval.endTime.timeZone.version": IANA Time Zone Database version number, -// e.g. "2019a". +// "interval.endTime.timeZone.version": IANA Time Zone Database version number. +// For example "2019a". func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeTimeZoneVersion(intervalEndTimeTimeZoneVersion string) *VitalsErrorsIssuesSearchCall { c.urlParams_.Set("interval.endTime.timeZone.version", intervalEndTimeTimeZoneVersion) return c @@ -4066,8 +4067,8 @@ func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeSeconds(intervalStartTim } // IntervalStartTimeTimeZoneId sets the optional parameter -// "interval.startTime.timeZone.id": IANA Time Zone Database time zone, e.g. -// "America/New_York". +// "interval.startTime.timeZone.id": IANA Time Zone Database time zone. For +// example "America/New_York". func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeTimeZoneId(intervalStartTimeTimeZoneId string) *VitalsErrorsIssuesSearchCall { c.urlParams_.Set("interval.startTime.timeZone.id", intervalStartTimeTimeZoneId) return c @@ -4075,7 +4076,7 @@ func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeTimeZoneId(intervalStart // IntervalStartTimeTimeZoneVersion sets the optional parameter // "interval.startTime.timeZone.version": IANA Time Zone Database version -// number, e.g. "2019a". +// number. For example "2019a". func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeTimeZoneVersion(intervalStartTimeTimeZoneVersion string) *VitalsErrorsIssuesSearchCall { c.urlParams_.Set("interval.startTime.timeZone.version", intervalStartTimeTimeZoneVersion) return c @@ -4358,16 +4359,16 @@ func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeSeconds(intervalEndTimeSe } // IntervalEndTimeTimeZoneId sets the optional parameter -// "interval.endTime.timeZone.id": IANA Time Zone Database time zone, e.g. -// "America/New_York". +// "interval.endTime.timeZone.id": IANA Time Zone Database time zone. For +// example "America/New_York". func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeTimeZoneId(intervalEndTimeTimeZoneId string) *VitalsErrorsReportsSearchCall { c.urlParams_.Set("interval.endTime.timeZone.id", intervalEndTimeTimeZoneId) return c } // IntervalEndTimeTimeZoneVersion sets the optional parameter -// "interval.endTime.timeZone.version": IANA Time Zone Database version number, -// e.g. "2019a". +// "interval.endTime.timeZone.version": IANA Time Zone Database version number. +// For example "2019a". func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeTimeZoneVersion(intervalEndTimeTimeZoneVersion string) *VitalsErrorsReportsSearchCall { c.urlParams_.Set("interval.endTime.timeZone.version", intervalEndTimeTimeZoneVersion) return c @@ -4441,8 +4442,8 @@ func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeSeconds(intervalStartTi } // IntervalStartTimeTimeZoneId sets the optional parameter -// "interval.startTime.timeZone.id": IANA Time Zone Database time zone, e.g. -// "America/New_York". +// "interval.startTime.timeZone.id": IANA Time Zone Database time zone. For +// example "America/New_York". func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeTimeZoneId(intervalStartTimeTimeZoneId string) *VitalsErrorsReportsSearchCall { c.urlParams_.Set("interval.startTime.timeZone.id", intervalStartTimeTimeZoneId) return c @@ -4450,7 +4451,7 @@ func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeTimeZoneId(intervalStar // IntervalStartTimeTimeZoneVersion sets the optional parameter // "interval.startTime.timeZone.version": IANA Time Zone Database version -// number, e.g. "2019a". +// number. For example "2019a". func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeTimeZoneVersion(intervalStartTimeTimeZoneVersion string) *VitalsErrorsReportsSearchCall { c.urlParams_.Set("interval.startTime.timeZone.version", intervalStartTimeTimeZoneVersion) return c diff --git a/playdeveloperreporting/v1beta1/playdeveloperreporting-api.json b/playdeveloperreporting/v1beta1/playdeveloperreporting-api.json index da952d3cf19..c7d3159dbab 100644 --- a/playdeveloperreporting/v1beta1/playdeveloperreporting-api.json +++ b/playdeveloperreporting/v1beta1/playdeveloperreporting-api.json @@ -434,12 +434,12 @@ "type": "integer" }, "interval.endTime.timeZone.id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", "location": "query", "type": "string" }, "interval.endTime.timeZone.version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", "location": "query", "type": "string" }, @@ -492,12 +492,12 @@ "type": "integer" }, "interval.startTime.timeZone.id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", "location": "query", "type": "string" }, "interval.startTime.timeZone.version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", "location": "query", "type": "string" }, @@ -606,12 +606,12 @@ "type": "integer" }, "interval.endTime.timeZone.id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", "location": "query", "type": "string" }, "interval.endTime.timeZone.version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", "location": "query", "type": "string" }, @@ -664,12 +664,12 @@ "type": "integer" }, "interval.startTime.timeZone.id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", "location": "query", "type": "string" }, "interval.startTime.timeZone.version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", "location": "query", "type": "string" }, @@ -947,7 +947,7 @@ } } }, - "revision": "20241102", + "revision": "20241120", "rootUrl": "https://playdeveloperreporting.googleapis.com/", "schemas": { "GooglePlayDeveloperReportingV1beta1Anomaly": { @@ -2179,11 +2179,11 @@ "id": "GoogleTypeTimeZone", "properties": { "id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", "type": "string" }, "version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", "type": "string" } }, diff --git a/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go b/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go index daf3e50d659..21b4727bb41 100644 --- a/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go +++ b/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go @@ -2745,9 +2745,10 @@ func (s GoogleTypeDecimal) MarshalJSON() ([]byte, error) { // GoogleTypeTimeZone: Represents a time zone from the IANA Time Zone Database // (https://www.iana.org/time-zones). type GoogleTypeTimeZone struct { - // Id: IANA Time Zone Database time zone, e.g. "America/New_York". + // Id: IANA Time Zone Database time zone. For example "America/New_York". Id string `json:"id,omitempty"` - // Version: Optional. IANA Time Zone Database version number, e.g. "2019a". + // Version: Optional. IANA Time Zone Database version number. For example + // "2019a". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -3983,16 +3984,16 @@ func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeSeconds(intervalEndTimeSec } // IntervalEndTimeTimeZoneId sets the optional parameter -// "interval.endTime.timeZone.id": IANA Time Zone Database time zone, e.g. -// "America/New_York". +// "interval.endTime.timeZone.id": IANA Time Zone Database time zone. For +// example "America/New_York". func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeTimeZoneId(intervalEndTimeTimeZoneId string) *VitalsErrorsIssuesSearchCall { c.urlParams_.Set("interval.endTime.timeZone.id", intervalEndTimeTimeZoneId) return c } // IntervalEndTimeTimeZoneVersion sets the optional parameter -// "interval.endTime.timeZone.version": IANA Time Zone Database version number, -// e.g. "2019a". +// "interval.endTime.timeZone.version": IANA Time Zone Database version number. +// For example "2019a". func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeTimeZoneVersion(intervalEndTimeTimeZoneVersion string) *VitalsErrorsIssuesSearchCall { c.urlParams_.Set("interval.endTime.timeZone.version", intervalEndTimeTimeZoneVersion) return c @@ -4066,8 +4067,8 @@ func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeSeconds(intervalStartTim } // IntervalStartTimeTimeZoneId sets the optional parameter -// "interval.startTime.timeZone.id": IANA Time Zone Database time zone, e.g. -// "America/New_York". +// "interval.startTime.timeZone.id": IANA Time Zone Database time zone. For +// example "America/New_York". func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeTimeZoneId(intervalStartTimeTimeZoneId string) *VitalsErrorsIssuesSearchCall { c.urlParams_.Set("interval.startTime.timeZone.id", intervalStartTimeTimeZoneId) return c @@ -4075,7 +4076,7 @@ func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeTimeZoneId(intervalStart // IntervalStartTimeTimeZoneVersion sets the optional parameter // "interval.startTime.timeZone.version": IANA Time Zone Database version -// number, e.g. "2019a". +// number. For example "2019a". func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeTimeZoneVersion(intervalStartTimeTimeZoneVersion string) *VitalsErrorsIssuesSearchCall { c.urlParams_.Set("interval.startTime.timeZone.version", intervalStartTimeTimeZoneVersion) return c @@ -4358,16 +4359,16 @@ func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeSeconds(intervalEndTimeSe } // IntervalEndTimeTimeZoneId sets the optional parameter -// "interval.endTime.timeZone.id": IANA Time Zone Database time zone, e.g. -// "America/New_York". +// "interval.endTime.timeZone.id": IANA Time Zone Database time zone. For +// example "America/New_York". func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeTimeZoneId(intervalEndTimeTimeZoneId string) *VitalsErrorsReportsSearchCall { c.urlParams_.Set("interval.endTime.timeZone.id", intervalEndTimeTimeZoneId) return c } // IntervalEndTimeTimeZoneVersion sets the optional parameter -// "interval.endTime.timeZone.version": IANA Time Zone Database version number, -// e.g. "2019a". +// "interval.endTime.timeZone.version": IANA Time Zone Database version number. +// For example "2019a". func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeTimeZoneVersion(intervalEndTimeTimeZoneVersion string) *VitalsErrorsReportsSearchCall { c.urlParams_.Set("interval.endTime.timeZone.version", intervalEndTimeTimeZoneVersion) return c @@ -4441,8 +4442,8 @@ func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeSeconds(intervalStartTi } // IntervalStartTimeTimeZoneId sets the optional parameter -// "interval.startTime.timeZone.id": IANA Time Zone Database time zone, e.g. -// "America/New_York". +// "interval.startTime.timeZone.id": IANA Time Zone Database time zone. For +// example "America/New_York". func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeTimeZoneId(intervalStartTimeTimeZoneId string) *VitalsErrorsReportsSearchCall { c.urlParams_.Set("interval.startTime.timeZone.id", intervalStartTimeTimeZoneId) return c @@ -4450,7 +4451,7 @@ func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeTimeZoneId(intervalStar // IntervalStartTimeTimeZoneVersion sets the optional parameter // "interval.startTime.timeZone.version": IANA Time Zone Database version -// number, e.g. "2019a". +// number. For example "2019a". func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeTimeZoneVersion(intervalStartTimeTimeZoneVersion string) *VitalsErrorsReportsSearchCall { c.urlParams_.Set("interval.startTime.timeZone.version", intervalStartTimeTimeZoneVersion) return c diff --git a/run/v2/run-api.json b/run/v2/run-api.json index c5c394c773e..601d5a41804 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1526,7 +1526,7 @@ } } }, - "revision": "20241109", + "revision": "20241115", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -1575,6 +1575,10 @@ "description": "Optional. Name of the function target if the source is a function source. Required for function builds.", "type": "string" }, + "projectDescriptor": { + "description": "Optional. project_descriptor stores the path to the project descriptor file. When empty, it means that there is no project descriptor file in the source.", + "type": "string" + }, "runtime": { "deprecated": true, "description": "The runtime name, e.g. 'go113'. Leave blank for generic builds.", @@ -3082,7 +3086,7 @@ "type": "object" }, "maxInstanceRequestConcurrency": { - "description": "Optional. Sets the maximum number of requests that each serving instance can receive. If not specified or 0, defaults to 80 when requested `CPU \u003e= 1` and defaults to 1 when requested `CPU \u003c 1`.", + "description": "Optional. Sets the maximum number of requests that each serving instance can receive. If not specified or 0, concurrency defaults to 80 when requested `CPU \u003e= 1` and defaults to 1 when requested `CPU \u003c 1`.", "format": "int32", "type": "integer" }, @@ -3168,7 +3172,7 @@ "id": "GoogleCloudRunV2SecretVolumeSource", "properties": { "defaultMode": { - "description": "Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. This might be in conflict with other options that affect the file mode, like fsGroup, and as a result, other mode bits could be set.", + "description": "Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. This might be in conflict with other options that affect the file mode, like fsGroup, and as a result, other mode bits could be set.", "format": "int32", "type": "integer" }, @@ -3881,7 +3885,7 @@ "id": "GoogleCloudRunV2VersionToPath", "properties": { "mode": { - "description": "Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "description": "Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", "format": "int32", "type": "integer" }, diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index fa014249c90..1e98a652b22 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -313,6 +313,10 @@ type GoogleCloudRunV2BuildpacksBuild struct { // FunctionTarget: Optional. Name of the function target if the source is a // function source. Required for function builds. FunctionTarget string `json:"functionTarget,omitempty"` + // ProjectDescriptor: Optional. project_descriptor stores the path to the + // project descriptor file. When empty, it means that there is no project + // descriptor file in the source. + ProjectDescriptor string `json:"projectDescriptor,omitempty"` // Runtime: The runtime name, e.g. 'go113'. Leave blank for generic builds. Runtime string `json:"runtime,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseImage") to @@ -2016,8 +2020,9 @@ type GoogleCloudRunV2RevisionTemplate struct { // v2 RevisionTemplate. Labels map[string]string `json:"labels,omitempty"` // MaxInstanceRequestConcurrency: Optional. Sets the maximum number of requests - // that each serving instance can receive. If not specified or 0, defaults to - // 80 when requested `CPU >= 1` and defaults to 1 when requested `CPU < 1`. + // that each serving instance can receive. If not specified or 0, concurrency + // defaults to 80 when requested `CPU >= 1` and defaults to 1 when requested + // `CPU < 1`. MaxInstanceRequestConcurrency int64 `json:"maxInstanceRequestConcurrency,omitempty"` // NodeSelector: Optional. The node selector for the revision template. NodeSelector *GoogleCloudRunV2NodeSelector `json:"nodeSelector,omitempty"` @@ -2131,13 +2136,12 @@ type GoogleCloudRunV2SecretVolumeSource struct { // Internally, a umask of 0222 will be applied to any non-zero value. * This is // an integer representation of the mode bits. So, the octal integer value // should look exactly as the chmod numeric notation with a leading zero. Some - // examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For - // chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 - // (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in - // conflict with other options that affect the file mode, like fsGroup, and the - // result can be other mode bits set. This might be in conflict with other - // options that affect the file mode, like fsGroup, and as a result, other mode - // bits could be set. + // examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). + // For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * + // This might be in conflict with other options that affect the file mode, like + // fsGroup, and the result can be other mode bits set. This might be in + // conflict with other options that affect the file mode, like fsGroup, and as + // a result, other mode bits could be set. DefaultMode int64 `json:"defaultMode,omitempty"` // Items: If unspecified, the volume will expose a file whose name is the // secret, relative to VolumeMount.mount_path. If specified, the key will be @@ -2874,11 +2878,10 @@ type GoogleCloudRunV2VersionToPath struct { // used. Notes * Internally, a umask of 0222 will be applied to any non-zero // value. * This is an integer representation of the mode bits. So, the octal // integer value should look exactly as the chmod numeric notation with a - // leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or - // 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 - // (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 - // (base-10). * This might be in conflict with other options that affect the - // file mode, like fsGroup, and the result can be other mode bits set. + // leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) + // or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or + // 493 (base-10). * This might be in conflict with other options that affect + // the file mode, like fsGroup, and the result can be other mode bits set. Mode int64 `json:"mode,omitempty"` // Path: Required. The relative path of the secret in the container. Path string `json:"path,omitempty"` diff --git a/secretmanager/v1/secretmanager-api.json b/secretmanager/v1/secretmanager-api.json index 3d693383ddb..f52641ac640 100644 --- a/secretmanager/v1/secretmanager-api.json +++ b/secretmanager/v1/secretmanager-api.json @@ -1190,7 +1190,7 @@ } } }, - "revision": "20240924", + "revision": "20241114", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { @@ -1821,7 +1821,7 @@ "type": "object" }, "UserManaged": { - "description": "A replication policy that replicates the Secret payload into the locations specified in Secret.replication.user_managed.replicas", + "description": "A replication policy that replicates the Secret payload into the locations specified in Replication.UserManaged.replicas", "id": "UserManaged", "properties": { "replicas": { diff --git a/secretmanager/v1/secretmanager-gen.go b/secretmanager/v1/secretmanager-gen.go index 1697865012d..359558a4b16 100644 --- a/secretmanager/v1/secretmanager-gen.go +++ b/secretmanager/v1/secretmanager-gen.go @@ -1348,7 +1348,7 @@ func (s Topic) MarshalJSON() ([]byte, error) { } // UserManaged: A replication policy that replicates the Secret payload into -// the locations specified in Secret.replication.user_managed.replicas +// the locations specified in Replication.UserManaged.replicas type UserManaged struct { // Replicas: Required. The list of Replicas for this Secret. Cannot be empty. Replicas []*Replica `json:"replicas,omitempty"` diff --git a/secretmanager/v1beta2/secretmanager-api.json b/secretmanager/v1beta2/secretmanager-api.json index 95a184f7bf3..5e42f990d9d 100644 --- a/secretmanager/v1beta2/secretmanager-api.json +++ b/secretmanager/v1beta2/secretmanager-api.json @@ -1190,7 +1190,7 @@ } } }, - "revision": "20240726", + "revision": "20241114", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { @@ -1821,7 +1821,7 @@ "type": "object" }, "UserManaged": { - "description": "A replication policy that replicates the Secret payload into the locations specified in Secret.replication.user_managed.replicas", + "description": "A replication policy that replicates the Secret payload into the locations specified in Replication.UserManaged.replicas", "id": "UserManaged", "properties": { "replicas": { diff --git a/secretmanager/v1beta2/secretmanager-gen.go b/secretmanager/v1beta2/secretmanager-gen.go index 2900c63e0ed..455a6ed497a 100644 --- a/secretmanager/v1beta2/secretmanager-gen.go +++ b/secretmanager/v1beta2/secretmanager-gen.go @@ -1348,7 +1348,7 @@ func (s Topic) MarshalJSON() ([]byte, error) { } // UserManaged: A replication policy that replicates the Secret payload into -// the locations specified in Secret.replication.user_managed.replicas +// the locations specified in Replication.UserManaged.replicas type UserManaged struct { // Replicas: Required. The list of Replicas for this Secret. Cannot be empty. Replicas []*Replica `json:"replicas,omitempty"` diff --git a/serviceusage/v1/serviceusage-api.json b/serviceusage/v1/serviceusage-api.json index 7e76a43bfe5..6e511615741 100644 --- a/serviceusage/v1/serviceusage-api.json +++ b/serviceusage/v1/serviceusage-api.json @@ -114,7 +114,7 @@ "operations": { "methods": { "cancel": { - "description": "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`.", + "description": "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`.", "flatPath": "v1/operations/{operationsId}:cancel", "httpMethod": "POST", "id": "serviceusage.operations.cancel", @@ -426,7 +426,7 @@ } } }, - "revision": "20241025", + "revision": "20241115", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -1524,6 +1524,10 @@ "description": "Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.", "id": "ExperimentalFeatures", "properties": { + "protobufPythonicTypesEnabled": { + "description": "Enables generation of protobuf code using new types that are more Pythonic which are included in `protobuf\u003e=5.29.x`. This feature will be enabled by default 1 month after launching the feature in preview packages.", + "type": "boolean" + }, "restAsyncIoEnabled": { "description": "Enables generation of asynchronous REST clients if `rest` transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages.", "type": "boolean" @@ -1692,6 +1696,13 @@ "common": { "$ref": "CommonLanguageSettings", "description": "Some settings." + }, + "renamedServices": { + "additionalProperties": { + "type": "string" + }, + "description": "Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options. publishing: go_settings: renamed_services: Publisher: TopicAdmin", + "type": "object" } }, "type": "object" @@ -3226,7 +3237,7 @@ "type": "string" }, "unit": { - "description": "Specify the unit of the quota limit. It uses the same syntax as Metric.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * \"1/min/{project}\" for quota per minute per project. Note: the order of unit components is insignificant. The \"1\" at the beginning is required to follow the metric unit syntax.", + "description": "Specify the unit of the quota limit. It uses the same syntax as MetricDescriptor.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * \"1/min/{project}\" for quota per minute per project. Note: the order of unit components is insignificant. The \"1\" at the beginning is required to follow the metric unit syntax.", "type": "string" }, "values": { diff --git a/serviceusage/v1/serviceusage-gen.go b/serviceusage/v1/serviceusage-gen.go index ecef356446a..934196b91cf 100644 --- a/serviceusage/v1/serviceusage-gen.go +++ b/serviceusage/v1/serviceusage-gen.go @@ -1733,20 +1733,25 @@ func (s EnumValue) MarshalJSON() ([]byte, error) { // library generation. These fields will be deprecated once the feature // graduates and is enabled by default. type ExperimentalFeatures struct { + // ProtobufPythonicTypesEnabled: Enables generation of protobuf code using new + // types that are more Pythonic which are included in `protobuf>=5.29.x`. This + // feature will be enabled by default 1 month after launching the feature in + // preview packages. + ProtobufPythonicTypesEnabled bool `json:"protobufPythonicTypesEnabled,omitempty"` // RestAsyncIoEnabled: Enables generation of asynchronous REST clients if // `rest` transport is enabled. By default, asynchronous REST clients will not // be generated. This feature will be enabled by default 1 month after // launching the feature in preview packages. RestAsyncIoEnabled bool `json:"restAsyncIoEnabled,omitempty"` - // ForceSendFields is a list of field names (e.g. "RestAsyncIoEnabled") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. + // ForceSendFields is a list of field names (e.g. + // "ProtobufPythonicTypesEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RestAsyncIoEnabled") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "ProtobufPythonicTypesEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -1907,6 +1912,11 @@ func (s GetServiceIdentityResponse) MarshalJSON() ([]byte, error) { type GoSettings struct { // Common: Some settings. Common *CommonLanguageSettings `json:"common,omitempty"` + // RenamedServices: Map of service names to renamed services. Keys are the + // package relative service names and values are the name to be used for the + // service client and call options. publishing: go_settings: renamed_services: + // Publisher: TopicAdmin + RenamedServices map[string]string `json:"renamedServices,omitempty"` // ForceSendFields is a list of field names (e.g. "Common") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -4161,10 +4171,10 @@ type QuotaLimit struct { // as well as '-'. The maximum length of the limit name is 64 characters. Name string `json:"name,omitempty"` // Unit: Specify the unit of the quota limit. It uses the same syntax as - // Metric.unit. The supported unit kinds are determined by the quota backend - // system. Here are some examples: * "1/min/{project}" for quota per minute per - // project. Note: the order of unit components is insignificant. The "1" at the - // beginning is required to follow the metric unit syntax. + // MetricDescriptor.unit. The supported unit kinds are determined by the quota + // backend system. Here are some examples: * "1/min/{project}" for quota per + // minute per project. Note: the order of unit components is insignificant. The + // "1" at the beginning is required to follow the metric unit syntax. Unit string `json:"unit,omitempty"` // Values: Tiered limit values. You must specify this as a key:value pair, with // an integer value that is the maximum number of requests allowed for the @@ -4675,7 +4685,7 @@ type OperationsCancelCall struct { // 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 +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. diff --git a/serviceusage/v1beta1/serviceusage-api.json b/serviceusage/v1beta1/serviceusage-api.json index 07f2a796ff3..eb0f5b12b54 100644 --- a/serviceusage/v1beta1/serviceusage-api.json +++ b/serviceusage/v1beta1/serviceusage-api.json @@ -964,7 +964,7 @@ } } }, - "revision": "20241025", + "revision": "20241115", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -2101,6 +2101,10 @@ "description": "Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.", "id": "ExperimentalFeatures", "properties": { + "protobufPythonicTypesEnabled": { + "description": "Enables generation of protobuf code using new types that are more Pythonic which are included in `protobuf\u003e=5.29.x`. This feature will be enabled by default 1 month after launching the feature in preview packages.", + "type": "boolean" + }, "restAsyncIoEnabled": { "description": "Enables generation of asynchronous REST clients if `rest` transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages.", "type": "boolean" @@ -2269,6 +2273,13 @@ "common": { "$ref": "CommonLanguageSettings", "description": "Some settings." + }, + "renamedServices": { + "additionalProperties": { + "type": "string" + }, + "description": "Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options. publishing: go_settings: renamed_services: Publisher: TopicAdmin", + "type": "object" } }, "type": "object" @@ -4014,7 +4025,7 @@ "type": "string" }, "unit": { - "description": "Specify the unit of the quota limit. It uses the same syntax as Metric.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * \"1/min/{project}\" for quota per minute per project. Note: the order of unit components is insignificant. The \"1\" at the beginning is required to follow the metric unit syntax.", + "description": "Specify the unit of the quota limit. It uses the same syntax as MetricDescriptor.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * \"1/min/{project}\" for quota per minute per project. Note: the order of unit components is insignificant. The \"1\" at the beginning is required to follow the metric unit syntax.", "type": "string" }, "values": { diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go index 6674da8238b..2a54f2f3d78 100644 --- a/serviceusage/v1beta1/serviceusage-gen.go +++ b/serviceusage/v1beta1/serviceusage-gen.go @@ -1812,20 +1812,25 @@ func (s EnumValue) MarshalJSON() ([]byte, error) { // library generation. These fields will be deprecated once the feature // graduates and is enabled by default. type ExperimentalFeatures struct { + // ProtobufPythonicTypesEnabled: Enables generation of protobuf code using new + // types that are more Pythonic which are included in `protobuf>=5.29.x`. This + // feature will be enabled by default 1 month after launching the feature in + // preview packages. + ProtobufPythonicTypesEnabled bool `json:"protobufPythonicTypesEnabled,omitempty"` // RestAsyncIoEnabled: Enables generation of asynchronous REST clients if // `rest` transport is enabled. By default, asynchronous REST clients will not // be generated. This feature will be enabled by default 1 month after // launching the feature in preview packages. RestAsyncIoEnabled bool `json:"restAsyncIoEnabled,omitempty"` - // ForceSendFields is a list of field names (e.g. "RestAsyncIoEnabled") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. + // ForceSendFields is a list of field names (e.g. + // "ProtobufPythonicTypesEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RestAsyncIoEnabled") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "ProtobufPythonicTypesEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -1986,6 +1991,11 @@ func (s GetServiceIdentityResponse) MarshalJSON() ([]byte, error) { type GoSettings struct { // Common: Some settings. Common *CommonLanguageSettings `json:"common,omitempty"` + // RenamedServices: Map of service names to renamed services. Keys are the + // package relative service names and values are the name to be used for the + // service client and call options. publishing: go_settings: renamed_services: + // Publisher: TopicAdmin + RenamedServices map[string]string `json:"renamedServices,omitempty"` // ForceSendFields is a list of field names (e.g. "Common") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -4539,10 +4549,10 @@ type QuotaLimit struct { // as well as '-'. The maximum length of the limit name is 64 characters. Name string `json:"name,omitempty"` // Unit: Specify the unit of the quota limit. It uses the same syntax as - // Metric.unit. The supported unit kinds are determined by the quota backend - // system. Here are some examples: * "1/min/{project}" for quota per minute per - // project. Note: the order of unit components is insignificant. The "1" at the - // beginning is required to follow the metric unit syntax. + // MetricDescriptor.unit. The supported unit kinds are determined by the quota + // backend system. Here are some examples: * "1/min/{project}" for quota per + // minute per project. Note: the order of unit components is insignificant. The + // "1" at the beginning is required to follow the metric unit syntax. Unit string `json:"unit,omitempty"` // Values: Tiered limit values. You must specify this as a key:value pair, with // an integer value that is the maximum number of requests allowed for the diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index 5f29265035b..626c4767baa 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -2806,7 +2806,7 @@ "type": "string" }, "instancePartitionDeadline": { - "description": "Optional. Deadline used while retrieving metadata for instance partition operations. Instance partitions whose operation metadata cannot be retrieved within this deadline will be added to unreachable in ListInstancePartitionOperationsResponse.", + "description": "Optional. Deadline used while retrieving metadata for instance partition operations. Instance partitions whose operation metadata cannot be retrieved within this deadline will be added to unreachable_instance_partitions in ListInstancePartitionOperationsResponse.", "format": "google-datetime", "location": "query", "type": "string" @@ -3319,7 +3319,7 @@ } } }, - "revision": "20241020", + "revision": "20241119", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "AsymmetricAutoscalingOption": { @@ -3578,7 +3578,7 @@ "type": "object" }, "BackupSchedule": { - "description": "BackupSchedule expresses the automated backup creation specification for a Spanner database. Next ID: 10", + "description": "BackupSchedule expresses the automated backup creation specification for a Spanner database.", "id": "BackupSchedule", "properties": { "encryptionConfig": { @@ -4126,7 +4126,7 @@ "type": "object" }, "CreateInstanceConfigRequest": { - "description": "The request for CreateInstanceConfigRequest.", + "description": "The request for CreateInstanceConfig.", "id": "CreateInstanceConfigRequest", "properties": { "instanceConfig": { @@ -4912,7 +4912,7 @@ "enumDescriptions": [ "Not specified.", "No default backup schedule will be created automatically on creation of a database within the instance.", - "A default backup schedule will be created automatically on creation of a database within the instance. The default backup schedule creates a full backup every 24 hours and retains the backup for a period of 7 days. Once created, the default backup schedule can be edited/deleted similar to any other backup schedule." + "A default backup schedule will be created automatically on creation of a database within the instance. Once created, the default backup schedule can be edited or deleted just like any other backup schedule. Currently, the default backup schedule creates a full backup every 24 hours and retains the backup for a period of 7 days." ], "type": "string" }, @@ -7240,7 +7240,7 @@ "type": "object" }, "UpdateInstanceConfigRequest": { - "description": "The request for UpdateInstanceConfigRequest.", + "description": "The request for UpdateInstanceConfig.", "id": "UpdateInstanceConfigRequest", "properties": { "instanceConfig": { diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index 9de3748ac86..02d628c5731 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -749,7 +749,7 @@ func (s BackupInfo) MarshalJSON() ([]byte, error) { } // BackupSchedule: BackupSchedule expresses the automated backup creation -// specification for a Spanner database. Next ID: 10 +// specification for a Spanner database. type BackupSchedule struct { // EncryptionConfig: Optional. The encryption configuration that will be used // to encrypt the backup. If this field is not specified, the backup will use @@ -1651,7 +1651,7 @@ func (s CreateInstanceConfigMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreateInstanceConfigRequest: The request for CreateInstanceConfigRequest. +// CreateInstanceConfigRequest: The request for CreateInstanceConfig. type CreateInstanceConfigRequest struct { // InstanceConfig: Required. The `InstanceConfig` proto of the configuration to // create. `instance_config.name` must be `/instanceConfigs/`. @@ -2831,10 +2831,10 @@ type Instance struct { // "NONE" - No default backup schedule will be created automatically on // creation of a database within the instance. // "AUTOMATIC" - A default backup schedule will be created automatically on - // creation of a database within the instance. The default backup schedule - // creates a full backup every 24 hours and retains the backup for a period of - // 7 days. Once created, the default backup schedule can be edited/deleted - // similar to any other backup schedule. + // creation of a database within the instance. Once created, the default backup + // schedule can be edited or deleted just like any other backup schedule. + // Currently, the default backup schedule creates a full backup every 24 hours + // and retains the backup for a period of 7 days. DefaultBackupScheduleType string `json:"defaultBackupScheduleType,omitempty"` // DisplayName: Required. The descriptive name for this instance as it appears // in UIs. Must be unique per project and between 4 and 30 characters in @@ -6431,7 +6431,7 @@ func (s UpdateInstanceConfigMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UpdateInstanceConfigRequest: The request for UpdateInstanceConfigRequest. +// UpdateInstanceConfigRequest: The request for UpdateInstanceConfig. type UpdateInstanceConfigRequest struct { // InstanceConfig: Required. The user instance configuration to update, which // must always include the instance configuration name. Otherwise, only fields @@ -16396,8 +16396,8 @@ func (c *ProjectsInstancesInstancePartitionOperationsListCall) Filter(filter str // InstancePartitionDeadline sets the optional parameter // "instancePartitionDeadline": Deadline used while retrieving metadata for // instance partition operations. Instance partitions whose operation metadata -// cannot be retrieved within this deadline will be added to unreachable in -// ListInstancePartitionOperationsResponse. +// cannot be retrieved within this deadline will be added to +// unreachable_instance_partitions in ListInstancePartitionOperationsResponse. func (c *ProjectsInstancesInstancePartitionOperationsListCall) InstancePartitionDeadline(instancePartitionDeadline string) *ProjectsInstancesInstancePartitionOperationsListCall { c.urlParams_.Set("instancePartitionDeadline", instancePartitionDeadline) return c diff --git a/vmmigration/v1/vmmigration-api.json b/vmmigration/v1/vmmigration-api.json index 6c3894df2fc..f8cf5d8bd8f 100644 --- a/vmmigration/v1/vmmigration-api.json +++ b/vmmigration/v1/vmmigration-api.json @@ -666,7 +666,7 @@ "operations": { "methods": { "cancel": { - "description": "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`.", + "description": "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`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", "httpMethod": "POST", "id": "vmmigration.projects.locations.operations.cancel", @@ -2220,7 +2220,7 @@ } } }, - "revision": "20241013", + "revision": "20241114", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index 07232bee8f8..cbe19a0d56d 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -6069,7 +6069,7 @@ type ProjectsLocationsOperationsCancelCall struct { // 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 +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. diff --git a/vmmigration/v1alpha1/vmmigration-api.json b/vmmigration/v1alpha1/vmmigration-api.json index d59f2c5d207..e80d2ef56bb 100644 --- a/vmmigration/v1alpha1/vmmigration-api.json +++ b/vmmigration/v1alpha1/vmmigration-api.json @@ -666,7 +666,7 @@ "operations": { "methods": { "cancel": { - "description": "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`.", + "description": "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`.", "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", "httpMethod": "POST", "id": "vmmigration.projects.locations.operations.cancel", @@ -2220,7 +2220,7 @@ } } }, - "revision": "20241013", + "revision": "20241114", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index e624b8e0d53..d98e50deb81 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -6206,7 +6206,7 @@ type ProjectsLocationsOperationsCancelCall struct { // 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 +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled.