diff --git a/api-list.json b/api-list.json index 61b4d957ee7..e0c9cf4d5b8 100644 --- a/api-list.json +++ b/api-list.json @@ -218,7 +218,7 @@ "name": "alertcenter", "version": "v1beta1", "title": "Google Workspace Alert Center API", - "description": "Manages alerts on issues affecting your domain.", + "description": "Manages alerts on issues affecting your domain. Note: The current version of this API (v1beta1) is available to all Google Workspace customers.", "discoveryRestUrl": "https://alertcenter.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -571,6 +571,21 @@ "documentationLink": "https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "baremetalsolution:v1alpha1", + "name": "baremetalsolution", + "version": "v1alpha1", + "title": "Bare Metal Solution API", + "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", + "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1alpha1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/bare-metal", + "preferred": false + }, { "kind": "discovery#directoryItem", "id": "baremetalsolution:v1", diff --git a/bigqueryreservation/v1/bigqueryreservation-api.json b/bigqueryreservation/v1/bigqueryreservation-api.json index 64d7564d305..02a07e495ec 100644 --- a/bigqueryreservation/v1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1/bigqueryreservation-api.json @@ -823,7 +823,7 @@ } } }, - "revision": "20220415", + "revision": "20220511", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { @@ -1106,7 +1106,7 @@ "type": "string" }, "slotCapacity": { - "description": "Minimum slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false. If the new reservation's slot capacity exceeds the project's slot capacity or if total slot capacity of the new reservation and its siblings exceeds the project's slot capacity, the request will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`. NOTE: for reservations in US or EU multi-regions, slot capacity constraints are checked separately for default and auxiliary regions. See multi_region_auxiliary flag for more details.", + "description": "Minimum slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false. If total slot_capacity of the reservation and its siblings exceeds the total slot_count of all capacity commitments, the request will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`. NOTE: for reservations in US or EU multi-regions, slot capacity constraints are checked separately for default and auxiliary regions. See multi_region_auxiliary flag for more details.", "format": "int64", "type": "string" }, diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index 56887b81664..7da91c7dd61 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -664,10 +664,9 @@ type Reservation struct { // SlotCapacity: Minimum slots available to this reservation. A slot is // a unit of computational power in BigQuery, and serves as the unit of // parallelism. Queries using this reservation might use more slots - // during runtime if ignore_idle_slots is set to false. If the new - // reservation's slot capacity exceeds the project's slot capacity or if - // total slot capacity of the new reservation and its siblings exceeds - // the project's slot capacity, the request will fail with + // during runtime if ignore_idle_slots is set to false. If total + // slot_capacity of the reservation and its siblings exceeds the total + // slot_count of all capacity commitments, the request will fail with // `google.rpc.Code.RESOURCE_EXHAUSTED`. NOTE: for reservations in US or // EU multi-regions, slot capacity constraints are checked separately // for default and auxiliary regions. See multi_region_auxiliary flag diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index aee117bd665..d5e726d6728 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -642,7 +642,7 @@ } } }, - "revision": "20220506", + "revision": "20220511", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -2462,7 +2462,7 @@ "type": "string" }, "lastUpdateTime": { - "description": "Output only. The time at which the message was last updated in Google Chat server. If the message was never updated, this field will be same as create_time.", + "description": "Output only. The time at which the message was last updated. If the message was never updated, this field matches `create_time`.", "format": "google-datetime", "readOnly": true, "type": "string" diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 4211c4aa469..49cb50aa53a 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -3102,8 +3102,8 @@ type Message struct { FallbackText string `json:"fallbackText,omitempty"` // LastUpdateTime: Output only. The time at which the message was last - // updated in Google Chat server. If the message was never updated, this - // field will be same as create_time. + // updated. If the message was never updated, this field matches + // `create_time`. LastUpdateTime string `json:"lastUpdateTime,omitempty"` // MatchedUrl: Output only. A URL in `spaces.messages.text` that matches diff --git a/cloudsupport/v2beta/cloudsupport-api.json b/cloudsupport/v2beta/cloudsupport-api.json index b432580d430..39d013dc6bc 100644 --- a/cloudsupport/v2beta/cloudsupport-api.json +++ b/cloudsupport/v2beta/cloudsupport-api.json @@ -285,7 +285,7 @@ ] }, "list": { - "description": "Retrieve all cases under the specified parent.", + "description": "Retrieve all cases under the specified parent. Note: Listing cases under an Organization returns only the cases directly parented by that organization. To retrieve all cases under an organization, including cases parented by projects under that organization, use `cases.search`.", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases", "httpMethod": "GET", "id": "cloudsupport.cases.list", @@ -294,7 +294,7 @@ ], "parameters": { "filter": { - "description": "An expression written in the Cloud filter language. If non-empty, then only cases whose fields match the filter are returned. If empty, then no messages are filtered out. Filter strings can use the following fields: - state (Accepted values: OPEN or CLOSED) - severity (Accepted values: S0, S1, S2, S3, or S4) - creator.email with the operators equals (=) and AND. Additionally, a global restriction (with no operator) can be used to search across displayName, description, and comments (e.g. \"my search\").", + "description": "An expression written in filter language. If non-empty, the query returns the cases that match the filter. Else, the query doesn't filter the cases. Filter expressions use the following fields with the operators equals (`=`) and `AND`: - `state`: The accepted values are `OPEN` or `CLOSED`. - `priority`: The accepted values are `P0`, `P1`, `P2`, `P3`, or `P4`. You can specify multiple values for priority using the `OR` operator. For example, `priority=P1 OR priority=P2`. - [DEPRECATED] `severity`: The accepted values are `S0`, `S1`, `S2`, `S3`, or `S4`. - `creator.email`: The email address of the case creator. Examples: - `state=CLOSED` - `state=OPEN AND creator.email=\"tester@example.com\"` - `state=OPEN AND (priority=P0 OR priority=P1)`", "location": "query", "type": "string" }, @@ -378,7 +378,7 @@ "type": "string" }, "query": { - "description": "An expression written in the Cloud filter language. Filter strings can use the following fields: - organization (A name of the form organizations/) - project (A name of the form projects/) - customer (A name of the form customers/) - state (Accepted values: OPEN or CLOSED) - severity (Accepted values: S0, S1, S2, S3, or S4) - creator.email with the operators equals (=) and AND. Additionally, a global restriction (with no key/operator) can be used to search across display_name, description, and comments (e.g. \"my search\"). One of organization, project, or customer field must be specified.", + "description": "An expression written in filter language. A query uses the following fields with the operators equals (`=`) and `AND`: - `organization`: An organization name in the form `organizations/`. - `project`: A project name in the form `projects/`. - `state`: The accepted values are `OPEN` or `CLOSED`. - `priority`: The accepted values are `P0`, `P1`, `P2`, `P3`, or `P4`. You can specify multiple values for priority using the `OR` operator. For example, `priority=P1 OR priority=P2`. - [DEPRECATED] `severity`: The accepted values are `S0`, `S1`, `S2`, `S3`, or `S4`. - `creator.email`: The email address of the case creator. You must specify eitehr `organization` or `project`. To search across `displayName`, `description`, and comments, use a global restriction with no keyword or operator. For example, `\"my search\"`. To search only cases updated after a certain date, use `update_time` retricted with that particular date, time, and timezone in ISO datetime format. For example, `update_time\u003e\"2020-01-01T00:00:00-05:00\"`. `update_time` only supports the greater than operator (`\u003e`). Examples: - `organization=\"organizations/123456789\"` - `project=\"projects/my-project-id\"` - `project=\"projects/123456789\"` - `organization=\"organizations/123456789\" AND state=CLOSED` - `project=\"projects/my-project-id\" AND creator.email=\"tester@example.com\"` - `project=\"projects/my-project-id\" AND (priority=P0 OR priority=P1)`", "location": "query", "type": "string" } @@ -575,7 +575,7 @@ } } }, - "revision": "20220513", + "revision": "20220516", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { diff --git a/cloudsupport/v2beta/cloudsupport-gen.go b/cloudsupport/v2beta/cloudsupport-gen.go index a633b96f419..1b5dc4a81ad 100644 --- a/cloudsupport/v2beta/cloudsupport-gen.go +++ b/cloudsupport/v2beta/cloudsupport-gen.go @@ -2343,7 +2343,11 @@ type CasesListCall struct { header_ http.Header } -// List: Retrieve all cases under the specified parent. +// List: Retrieve all cases under the specified parent. Note: Listing +// cases under an Organization returns only the cases directly parented +// by that organization. To retrieve all cases under an organization, +// including cases parented by projects under that organization, use +// `cases.search`. // // - parent: The fully qualified name of parent resource to list cases // under. @@ -2354,14 +2358,17 @@ func (r *CasesService) List(parent string) *CasesListCall { } // Filter sets the optional parameter "filter": An expression written in -// the Cloud filter language. If non-empty, then only cases whose fields -// match the filter are returned. If empty, then no messages are -// filtered out. Filter strings can use the following fields: - state -// (Accepted values: OPEN or CLOSED) - severity (Accepted values: S0, -// S1, S2, S3, or S4) - creator.email with the operators equals (=) and -// AND. Additionally, a global restriction (with no operator) can be -// used to search across displayName, description, and comments (e.g. -// "my search"). +// filter language. If non-empty, the query returns the cases that match +// the filter. Else, the query doesn't filter the cases. Filter +// expressions use the following fields with the operators equals (`=`) +// and `AND`: - `state`: The accepted values are `OPEN` or `CLOSED`. - +// `priority`: The accepted values are `P0`, `P1`, `P2`, `P3`, or `P4`. +// You can specify multiple values for priority using the `OR` operator. +// For example, `priority=P1 OR priority=P2`. - [DEPRECATED] `severity`: +// The accepted values are `S0`, `S1`, `S2`, `S3`, or `S4`. - +// `creator.email`: The email address of the case creator. Examples: - +// `state=CLOSED` - `state=OPEN AND creator.email="tester@example.com" +// - `state=OPEN AND (priority=P0 OR priority=P1)` func (c *CasesListCall) Filter(filter string) *CasesListCall { c.urlParams_.Set("filter", filter) return c @@ -2481,7 +2488,7 @@ func (c *CasesListCall) Do(opts ...googleapi.CallOption) (*ListCasesResponse, er } return ret, nil // { - // "description": "Retrieve all cases under the specified parent.", + // "description": "Retrieve all cases under the specified parent. Note: Listing cases under an Organization returns only the cases directly parented by that organization. To retrieve all cases under an organization, including cases parented by projects under that organization, use `cases.search`.", // "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases", // "httpMethod": "GET", // "id": "cloudsupport.cases.list", @@ -2490,7 +2497,7 @@ func (c *CasesListCall) Do(opts ...googleapi.CallOption) (*ListCasesResponse, er // ], // "parameters": { // "filter": { - // "description": "An expression written in the Cloud filter language. If non-empty, then only cases whose fields match the filter are returned. If empty, then no messages are filtered out. Filter strings can use the following fields: - state (Accepted values: OPEN or CLOSED) - severity (Accepted values: S0, S1, S2, S3, or S4) - creator.email with the operators equals (=) and AND. Additionally, a global restriction (with no operator) can be used to search across displayName, description, and comments (e.g. \"my search\").", + // "description": "An expression written in filter language. If non-empty, the query returns the cases that match the filter. Else, the query doesn't filter the cases. Filter expressions use the following fields with the operators equals (`=`) and `AND`: - `state`: The accepted values are `OPEN` or `CLOSED`. - `priority`: The accepted values are `P0`, `P1`, `P2`, `P3`, or `P4`. You can specify multiple values for priority using the `OR` operator. For example, `priority=P1 OR priority=P2`. - [DEPRECATED] `severity`: The accepted values are `S0`, `S1`, `S2`, `S3`, or `S4`. - `creator.email`: The email address of the case creator. Examples: - `state=CLOSED` - `state=OPEN AND creator.email=\"tester@example.com\"` - `state=OPEN AND (priority=P0 OR priority=P1)`", // "location": "query", // "type": "string" // }, @@ -2742,15 +2749,28 @@ func (c *CasesSearchCall) PageToken(pageToken string) *CasesSearchCall { } // Query sets the optional parameter "query": An expression written in -// the Cloud filter language. Filter strings can use the following -// fields: - organization (A name of the form organizations/) - project -// (A name of the form projects/) - customer (A name of the form -// customers/) - state (Accepted values: OPEN or CLOSED) - severity -// (Accepted values: S0, S1, S2, S3, or S4) - creator.email with the -// operators equals (=) and AND. Additionally, a global restriction -// (with no key/operator) can be used to search across display_name, -// description, and comments (e.g. "my search"). One of organization, -// project, or customer field must be specified. +// filter language. A query uses the following fields with the operators +// equals (`=`) and `AND`: - `organization`: An organization name in the +// form `organizations/`. - `project`: A project name in the form +// `projects/`. - `state`: The accepted values are `OPEN` or `CLOSED`. - +// `priority`: The accepted values are `P0`, `P1`, `P2`, `P3`, or `P4`. +// You can specify multiple values for priority using the `OR` operator. +// For example, `priority=P1 OR priority=P2`. - [DEPRECATED] `severity`: +// The accepted values are `S0`, `S1`, `S2`, `S3`, or `S4`. - +// `creator.email`: The email address of the case creator. You must +// specify eitehr `organization` or `project`. To search across +// `displayName`, `description`, and comments, use a global restriction +// with no keyword or operator. For example, "my search". To search +// only cases updated after a certain date, use `update_time` retricted +// with that particular date, time, and timezone in ISO datetime format. +// For example, `update_time>"2020-01-01T00:00:00-05:00". `update_time` +// only supports the greater than operator (`>`). Examples: - +// `organization="organizations/123456789" - +// `project="projects/my-project-id" - `project="projects/123456789" - +// `organization="organizations/123456789" AND state=CLOSED` - +// `project="projects/my-project-id" AND +// creator.email="tester@example.com" - +// `project="projects/my-project-id" AND (priority=P0 OR priority=P1)` func (c *CasesSearchCall) Query(query string) *CasesSearchCall { c.urlParams_.Set("query", query) return c @@ -2870,7 +2890,7 @@ func (c *CasesSearchCall) Do(opts ...googleapi.CallOption) (*SearchCasesResponse // "type": "string" // }, // "query": { - // "description": "An expression written in the Cloud filter language. Filter strings can use the following fields: - organization (A name of the form organizations/) - project (A name of the form projects/) - customer (A name of the form customers/) - state (Accepted values: OPEN or CLOSED) - severity (Accepted values: S0, S1, S2, S3, or S4) - creator.email with the operators equals (=) and AND. Additionally, a global restriction (with no key/operator) can be used to search across display_name, description, and comments (e.g. \"my search\"). One of organization, project, or customer field must be specified.", + // "description": "An expression written in filter language. A query uses the following fields with the operators equals (`=`) and `AND`: - `organization`: An organization name in the form `organizations/`. - `project`: A project name in the form `projects/`. - `state`: The accepted values are `OPEN` or `CLOSED`. - `priority`: The accepted values are `P0`, `P1`, `P2`, `P3`, or `P4`. You can specify multiple values for priority using the `OR` operator. For example, `priority=P1 OR priority=P2`. - [DEPRECATED] `severity`: The accepted values are `S0`, `S1`, `S2`, `S3`, or `S4`. - `creator.email`: The email address of the case creator. You must specify eitehr `organization` or `project`. To search across `displayName`, `description`, and comments, use a global restriction with no keyword or operator. For example, `\"my search\"`. To search only cases updated after a certain date, use `update_time` retricted with that particular date, time, and timezone in ISO datetime format. For example, `update_time\u003e\"2020-01-01T00:00:00-05:00\"`. `update_time` only supports the greater than operator (`\u003e`). Examples: - `organization=\"organizations/123456789\"` - `project=\"projects/my-project-id\"` - `project=\"projects/123456789\"` - `organization=\"organizations/123456789\" AND state=CLOSED` - `project=\"projects/my-project-id\" AND creator.email=\"tester@example.com\"` - `project=\"projects/my-project-id\" AND (priority=P0 OR priority=P1)`", // "location": "query", // "type": "string" // } diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index b3839b17a50..22170c923fb 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -1229,7 +1229,7 @@ } } }, - "revision": "20220506", + "revision": "20220513", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "Artifact": { @@ -1478,24 +1478,27 @@ "type": "object" }, "CVSS": { - "description": "Common Vulnerability Scoring System.", + "description": "Common Vulnerability Scoring System. This message is compatible with CVSS v2 and v3. For CVSS v2 details, see https://www.first.org/cvss/v2/guide CVSS v2 calculator: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator For CVSS v3 details, see https://www.first.org/cvss/specification-document CVSS v3 calculator: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "id": "CVSS", "properties": { "attackComplexity": { + "description": "Defined in CVSS v3, CVSS v2", "enum": [ "ATTACK_COMPLEXITY_UNSPECIFIED", "ATTACK_COMPLEXITY_LOW", - "ATTACK_COMPLEXITY_HIGH" + "ATTACK_COMPLEXITY_HIGH", + "ATTACK_COMPLEXITY_MEDIUM" ], "enumDescriptions": [ - "", - "", - "" + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v2" ], "type": "string" }, "attackVector": { - "description": "Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.", + "description": "Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. Defined in CVSS v3, CVSS v2", "enum": [ "ATTACK_VECTOR_UNSPECIFIED", "ATTACK_VECTOR_NETWORK", @@ -1504,15 +1507,16 @@ "ATTACK_VECTOR_PHYSICAL" ], "enumDescriptions": [ - "", - "", - "", - "", - "" + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3" ], "type": "string" }, "authentication": { + "description": "Defined in CVSS v2", "enum": [ "AUTHENTICATION_UNSPECIFIED", "AUTHENTICATION_MULTIPLE", @@ -1520,25 +1524,30 @@ "AUTHENTICATION_NONE" ], "enumDescriptions": [ - "", - "", - "", - "" + "Defined in CVSS v2", + "Defined in CVSS v2", + "Defined in CVSS v2", + "Defined in CVSS v2" ], "type": "string" }, "availabilityImpact": { + "description": "Defined in CVSS v3, CVSS v2", "enum": [ "IMPACT_UNSPECIFIED", "IMPACT_HIGH", "IMPACT_LOW", - "IMPACT_NONE" + "IMPACT_NONE", + "IMPACT_PARTIAL", + "IMPACT_COMPLETE" ], "enumDescriptions": [ - "", - "", - "", - "" + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v2", + "Defined in CVSS v2" ], "type": "string" }, @@ -1548,17 +1557,22 @@ "type": "number" }, "confidentialityImpact": { + "description": "Defined in CVSS v3, CVSS v2", "enum": [ "IMPACT_UNSPECIFIED", "IMPACT_HIGH", "IMPACT_LOW", - "IMPACT_NONE" + "IMPACT_NONE", + "IMPACT_PARTIAL", + "IMPACT_COMPLETE" ], "enumDescriptions": [ - "", - "", - "", - "" + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v2", + "Defined in CVSS v2" ], "type": "string" }, @@ -1571,21 +1585,27 @@ "type": "number" }, "integrityImpact": { + "description": "Defined in CVSS v3, CVSS v2", "enum": [ "IMPACT_UNSPECIFIED", "IMPACT_HIGH", "IMPACT_LOW", - "IMPACT_NONE" + "IMPACT_NONE", + "IMPACT_PARTIAL", + "IMPACT_COMPLETE" ], "enumDescriptions": [ - "", - "", - "", - "" + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v2", + "Defined in CVSS v2" ], "type": "string" }, "privilegesRequired": { + "description": "Defined in CVSS v3", "enum": [ "PRIVILEGES_REQUIRED_UNSPECIFIED", "PRIVILEGES_REQUIRED_NONE", @@ -1593,36 +1613,38 @@ "PRIVILEGES_REQUIRED_HIGH" ], "enumDescriptions": [ - "", - "", - "", - "" + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3" ], "type": "string" }, "scope": { + "description": "Defined in CVSS v3", "enum": [ "SCOPE_UNSPECIFIED", "SCOPE_UNCHANGED", "SCOPE_CHANGED" ], "enumDescriptions": [ - "", - "", - "" + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3" ], "type": "string" }, "userInteraction": { + "description": "Defined in CVSS v3", "enum": [ "USER_INTERACTION_UNSPECIFIED", "USER_INTERACTION_NONE", "USER_INTERACTION_REQUIRED" ], "enumDescriptions": [ - "", - "", - "" + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3" ], "type": "string" } diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 730eb98b2bb..e64794d9623 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -750,78 +750,106 @@ func (s *BuilderConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CVSS: Common Vulnerability Scoring System. +// CVSS: Common Vulnerability Scoring System. This message is compatible +// with CVSS v2 and v3. For CVSS v2 details, see +// https://www.first.org/cvss/v2/guide CVSS v2 calculator: +// https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator For CVSS v3 +// details, see https://www.first.org/cvss/specification-document CVSS +// v3 calculator: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator type CVSS struct { + // AttackComplexity: Defined in CVSS v3, CVSS v2 + // // Possible values: - // "ATTACK_COMPLEXITY_UNSPECIFIED" - // "ATTACK_COMPLEXITY_LOW" - // "ATTACK_COMPLEXITY_HIGH" + // "ATTACK_COMPLEXITY_UNSPECIFIED" - Defined in CVSS v3, CVSS v2 + // "ATTACK_COMPLEXITY_LOW" - Defined in CVSS v3, CVSS v2 + // "ATTACK_COMPLEXITY_HIGH" - Defined in CVSS v3, CVSS v2 + // "ATTACK_COMPLEXITY_MEDIUM" - Defined in CVSS v2 AttackComplexity string `json:"attackComplexity,omitempty"` // AttackVector: Base Metrics Represents the intrinsic characteristics // of a vulnerability that are constant over time and across user - // environments. + // environments. Defined in CVSS v3, CVSS v2 // // Possible values: - // "ATTACK_VECTOR_UNSPECIFIED" - // "ATTACK_VECTOR_NETWORK" - // "ATTACK_VECTOR_ADJACENT" - // "ATTACK_VECTOR_LOCAL" - // "ATTACK_VECTOR_PHYSICAL" + // "ATTACK_VECTOR_UNSPECIFIED" - Defined in CVSS v3, CVSS v2 + // "ATTACK_VECTOR_NETWORK" - Defined in CVSS v3, CVSS v2 + // "ATTACK_VECTOR_ADJACENT" - Defined in CVSS v3, CVSS v2 + // "ATTACK_VECTOR_LOCAL" - Defined in CVSS v3, CVSS v2 + // "ATTACK_VECTOR_PHYSICAL" - Defined in CVSS v3 AttackVector string `json:"attackVector,omitempty"` + // Authentication: Defined in CVSS v2 + // // Possible values: - // "AUTHENTICATION_UNSPECIFIED" - // "AUTHENTICATION_MULTIPLE" - // "AUTHENTICATION_SINGLE" - // "AUTHENTICATION_NONE" + // "AUTHENTICATION_UNSPECIFIED" - Defined in CVSS v2 + // "AUTHENTICATION_MULTIPLE" - Defined in CVSS v2 + // "AUTHENTICATION_SINGLE" - Defined in CVSS v2 + // "AUTHENTICATION_NONE" - Defined in CVSS v2 Authentication string `json:"authentication,omitempty"` + // AvailabilityImpact: Defined in CVSS v3, CVSS v2 + // // Possible values: - // "IMPACT_UNSPECIFIED" - // "IMPACT_HIGH" - // "IMPACT_LOW" - // "IMPACT_NONE" + // "IMPACT_UNSPECIFIED" - Defined in CVSS v3, CVSS v2 + // "IMPACT_HIGH" - Defined in CVSS v3 + // "IMPACT_LOW" - Defined in CVSS v3 + // "IMPACT_NONE" - Defined in CVSS v3, CVSS v2 + // "IMPACT_PARTIAL" - Defined in CVSS v2 + // "IMPACT_COMPLETE" - Defined in CVSS v2 AvailabilityImpact string `json:"availabilityImpact,omitempty"` // BaseScore: The base score is a function of the base metric scores. BaseScore float64 `json:"baseScore,omitempty"` + // ConfidentialityImpact: Defined in CVSS v3, CVSS v2 + // // Possible values: - // "IMPACT_UNSPECIFIED" - // "IMPACT_HIGH" - // "IMPACT_LOW" - // "IMPACT_NONE" + // "IMPACT_UNSPECIFIED" - Defined in CVSS v3, CVSS v2 + // "IMPACT_HIGH" - Defined in CVSS v3 + // "IMPACT_LOW" - Defined in CVSS v3 + // "IMPACT_NONE" - Defined in CVSS v3, CVSS v2 + // "IMPACT_PARTIAL" - Defined in CVSS v2 + // "IMPACT_COMPLETE" - Defined in CVSS v2 ConfidentialityImpact string `json:"confidentialityImpact,omitempty"` ExploitabilityScore float64 `json:"exploitabilityScore,omitempty"` ImpactScore float64 `json:"impactScore,omitempty"` + // IntegrityImpact: Defined in CVSS v3, CVSS v2 + // // Possible values: - // "IMPACT_UNSPECIFIED" - // "IMPACT_HIGH" - // "IMPACT_LOW" - // "IMPACT_NONE" + // "IMPACT_UNSPECIFIED" - Defined in CVSS v3, CVSS v2 + // "IMPACT_HIGH" - Defined in CVSS v3 + // "IMPACT_LOW" - Defined in CVSS v3 + // "IMPACT_NONE" - Defined in CVSS v3, CVSS v2 + // "IMPACT_PARTIAL" - Defined in CVSS v2 + // "IMPACT_COMPLETE" - Defined in CVSS v2 IntegrityImpact string `json:"integrityImpact,omitempty"` + // PrivilegesRequired: Defined in CVSS v3 + // // Possible values: - // "PRIVILEGES_REQUIRED_UNSPECIFIED" - // "PRIVILEGES_REQUIRED_NONE" - // "PRIVILEGES_REQUIRED_LOW" - // "PRIVILEGES_REQUIRED_HIGH" + // "PRIVILEGES_REQUIRED_UNSPECIFIED" - Defined in CVSS v3 + // "PRIVILEGES_REQUIRED_NONE" - Defined in CVSS v3 + // "PRIVILEGES_REQUIRED_LOW" - Defined in CVSS v3 + // "PRIVILEGES_REQUIRED_HIGH" - Defined in CVSS v3 PrivilegesRequired string `json:"privilegesRequired,omitempty"` + // Scope: Defined in CVSS v3 + // // Possible values: - // "SCOPE_UNSPECIFIED" - // "SCOPE_UNCHANGED" - // "SCOPE_CHANGED" + // "SCOPE_UNSPECIFIED" - Defined in CVSS v3 + // "SCOPE_UNCHANGED" - Defined in CVSS v3 + // "SCOPE_CHANGED" - Defined in CVSS v3 Scope string `json:"scope,omitempty"` + // UserInteraction: Defined in CVSS v3 + // // Possible values: - // "USER_INTERACTION_UNSPECIFIED" - // "USER_INTERACTION_NONE" - // "USER_INTERACTION_REQUIRED" + // "USER_INTERACTION_UNSPECIFIED" - Defined in CVSS v3 + // "USER_INTERACTION_NONE" - Defined in CVSS v3 + // "USER_INTERACTION_REQUIRED" - Defined in CVSS v3 UserInteraction string `json:"userInteraction,omitempty"` // ForceSendFields is a list of field names (e.g. "AttackComplexity") to diff --git a/containeranalysis/v1beta1/containeranalysis-api.json b/containeranalysis/v1beta1/containeranalysis-api.json index ea9e35ba9a8..56ac93a9b12 100644 --- a/containeranalysis/v1beta1/containeranalysis-api.json +++ b/containeranalysis/v1beta1/containeranalysis-api.json @@ -853,7 +853,7 @@ } } }, - "revision": "20220506", + "revision": "20220513", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -1180,24 +1180,27 @@ "type": "object" }, "CVSS": { - "description": "Common Vulnerability Scoring System. For details, see https://www.first.org/cvss/specification-document", + "description": "Common Vulnerability Scoring System. This message is compatible with CVSS v2 and v3. For CVSS v2 details, see https://www.first.org/cvss/v2/guide CVSS v2 calculator: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator For CVSS v3 details, see https://www.first.org/cvss/specification-document CVSS v3 calculator: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "id": "CVSS", "properties": { "attackComplexity": { + "description": "Defined in CVSS v3, CVSS v2", "enum": [ "ATTACK_COMPLEXITY_UNSPECIFIED", "ATTACK_COMPLEXITY_LOW", - "ATTACK_COMPLEXITY_HIGH" + "ATTACK_COMPLEXITY_HIGH", + "ATTACK_COMPLEXITY_MEDIUM" ], "enumDescriptions": [ - "", - "", - "" + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v2" ], "type": "string" }, "attackVector": { - "description": "Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.", + "description": "Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. Defined in CVSS v3, CVSS v2", "enum": [ "ATTACK_VECTOR_UNSPECIFIED", "ATTACK_VECTOR_NETWORK", @@ -1206,15 +1209,16 @@ "ATTACK_VECTOR_PHYSICAL" ], "enumDescriptions": [ - "", - "", - "", - "", - "" + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3" ], "type": "string" }, "authentication": { + "description": "Defined in CVSS v2", "enum": [ "AUTHENTICATION_UNSPECIFIED", "AUTHENTICATION_MULTIPLE", @@ -1222,25 +1226,30 @@ "AUTHENTICATION_NONE" ], "enumDescriptions": [ - "", - "", - "", - "" + "Defined in CVSS v2", + "Defined in CVSS v2", + "Defined in CVSS v2", + "Defined in CVSS v2" ], "type": "string" }, "availabilityImpact": { + "description": "Defined in CVSS v3, CVSS v2", "enum": [ "IMPACT_UNSPECIFIED", "IMPACT_HIGH", "IMPACT_LOW", - "IMPACT_NONE" + "IMPACT_NONE", + "IMPACT_PARTIAL", + "IMPACT_COMPLETE" ], "enumDescriptions": [ - "", - "", - "", - "" + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v2", + "Defined in CVSS v2" ], "type": "string" }, @@ -1250,17 +1259,22 @@ "type": "number" }, "confidentialityImpact": { + "description": "Defined in CVSS v3, CVSS v2", "enum": [ "IMPACT_UNSPECIFIED", "IMPACT_HIGH", "IMPACT_LOW", - "IMPACT_NONE" + "IMPACT_NONE", + "IMPACT_PARTIAL", + "IMPACT_COMPLETE" ], "enumDescriptions": [ - "", - "", - "", - "" + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v2", + "Defined in CVSS v2" ], "type": "string" }, @@ -1273,21 +1287,27 @@ "type": "number" }, "integrityImpact": { + "description": "Defined in CVSS v3, CVSS v2", "enum": [ "IMPACT_UNSPECIFIED", "IMPACT_HIGH", "IMPACT_LOW", - "IMPACT_NONE" + "IMPACT_NONE", + "IMPACT_PARTIAL", + "IMPACT_COMPLETE" ], "enumDescriptions": [ - "", - "", - "", - "" + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3, CVSS v2", + "Defined in CVSS v2", + "Defined in CVSS v2" ], "type": "string" }, "privilegesRequired": { + "description": "Defined in CVSS v3", "enum": [ "PRIVILEGES_REQUIRED_UNSPECIFIED", "PRIVILEGES_REQUIRED_NONE", @@ -1295,36 +1315,38 @@ "PRIVILEGES_REQUIRED_HIGH" ], "enumDescriptions": [ - "", - "", - "", - "" + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3" ], "type": "string" }, "scope": { + "description": "Defined in CVSS v3", "enum": [ "SCOPE_UNSPECIFIED", "SCOPE_UNCHANGED", "SCOPE_CHANGED" ], "enumDescriptions": [ - "", - "", - "" + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3" ], "type": "string" }, "userInteraction": { + "description": "Defined in CVSS v3", "enum": [ "USER_INTERACTION_UNSPECIFIED", "USER_INTERACTION_NONE", "USER_INTERACTION_REQUIRED" ], "enumDescriptions": [ - "", - "", - "" + "Defined in CVSS v3", + "Defined in CVSS v3", + "Defined in CVSS v3" ], "type": "string" } diff --git a/containeranalysis/v1beta1/containeranalysis-gen.go b/containeranalysis/v1beta1/containeranalysis-gen.go index 440ca137698..62bc78310e2 100644 --- a/containeranalysis/v1beta1/containeranalysis-gen.go +++ b/containeranalysis/v1beta1/containeranalysis-gen.go @@ -829,79 +829,106 @@ func (s *ByProducts) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CVSS: Common Vulnerability Scoring System. For details, see -// https://www.first.org/cvss/specification-document +// CVSS: Common Vulnerability Scoring System. This message is compatible +// with CVSS v2 and v3. For CVSS v2 details, see +// https://www.first.org/cvss/v2/guide CVSS v2 calculator: +// https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator For CVSS v3 +// details, see https://www.first.org/cvss/specification-document CVSS +// v3 calculator: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator type CVSS struct { + // AttackComplexity: Defined in CVSS v3, CVSS v2 + // // Possible values: - // "ATTACK_COMPLEXITY_UNSPECIFIED" - // "ATTACK_COMPLEXITY_LOW" - // "ATTACK_COMPLEXITY_HIGH" + // "ATTACK_COMPLEXITY_UNSPECIFIED" - Defined in CVSS v3, CVSS v2 + // "ATTACK_COMPLEXITY_LOW" - Defined in CVSS v3, CVSS v2 + // "ATTACK_COMPLEXITY_HIGH" - Defined in CVSS v3, CVSS v2 + // "ATTACK_COMPLEXITY_MEDIUM" - Defined in CVSS v2 AttackComplexity string `json:"attackComplexity,omitempty"` // AttackVector: Base Metrics Represents the intrinsic characteristics // of a vulnerability that are constant over time and across user - // environments. + // environments. Defined in CVSS v3, CVSS v2 // // Possible values: - // "ATTACK_VECTOR_UNSPECIFIED" - // "ATTACK_VECTOR_NETWORK" - // "ATTACK_VECTOR_ADJACENT" - // "ATTACK_VECTOR_LOCAL" - // "ATTACK_VECTOR_PHYSICAL" + // "ATTACK_VECTOR_UNSPECIFIED" - Defined in CVSS v3, CVSS v2 + // "ATTACK_VECTOR_NETWORK" - Defined in CVSS v3, CVSS v2 + // "ATTACK_VECTOR_ADJACENT" - Defined in CVSS v3, CVSS v2 + // "ATTACK_VECTOR_LOCAL" - Defined in CVSS v3, CVSS v2 + // "ATTACK_VECTOR_PHYSICAL" - Defined in CVSS v3 AttackVector string `json:"attackVector,omitempty"` + // Authentication: Defined in CVSS v2 + // // Possible values: - // "AUTHENTICATION_UNSPECIFIED" - // "AUTHENTICATION_MULTIPLE" - // "AUTHENTICATION_SINGLE" - // "AUTHENTICATION_NONE" + // "AUTHENTICATION_UNSPECIFIED" - Defined in CVSS v2 + // "AUTHENTICATION_MULTIPLE" - Defined in CVSS v2 + // "AUTHENTICATION_SINGLE" - Defined in CVSS v2 + // "AUTHENTICATION_NONE" - Defined in CVSS v2 Authentication string `json:"authentication,omitempty"` + // AvailabilityImpact: Defined in CVSS v3, CVSS v2 + // // Possible values: - // "IMPACT_UNSPECIFIED" - // "IMPACT_HIGH" - // "IMPACT_LOW" - // "IMPACT_NONE" + // "IMPACT_UNSPECIFIED" - Defined in CVSS v3, CVSS v2 + // "IMPACT_HIGH" - Defined in CVSS v3 + // "IMPACT_LOW" - Defined in CVSS v3 + // "IMPACT_NONE" - Defined in CVSS v3, CVSS v2 + // "IMPACT_PARTIAL" - Defined in CVSS v2 + // "IMPACT_COMPLETE" - Defined in CVSS v2 AvailabilityImpact string `json:"availabilityImpact,omitempty"` // BaseScore: The base score is a function of the base metric scores. BaseScore float64 `json:"baseScore,omitempty"` + // ConfidentialityImpact: Defined in CVSS v3, CVSS v2 + // // Possible values: - // "IMPACT_UNSPECIFIED" - // "IMPACT_HIGH" - // "IMPACT_LOW" - // "IMPACT_NONE" + // "IMPACT_UNSPECIFIED" - Defined in CVSS v3, CVSS v2 + // "IMPACT_HIGH" - Defined in CVSS v3 + // "IMPACT_LOW" - Defined in CVSS v3 + // "IMPACT_NONE" - Defined in CVSS v3, CVSS v2 + // "IMPACT_PARTIAL" - Defined in CVSS v2 + // "IMPACT_COMPLETE" - Defined in CVSS v2 ConfidentialityImpact string `json:"confidentialityImpact,omitempty"` ExploitabilityScore float64 `json:"exploitabilityScore,omitempty"` ImpactScore float64 `json:"impactScore,omitempty"` + // IntegrityImpact: Defined in CVSS v3, CVSS v2 + // // Possible values: - // "IMPACT_UNSPECIFIED" - // "IMPACT_HIGH" - // "IMPACT_LOW" - // "IMPACT_NONE" + // "IMPACT_UNSPECIFIED" - Defined in CVSS v3, CVSS v2 + // "IMPACT_HIGH" - Defined in CVSS v3 + // "IMPACT_LOW" - Defined in CVSS v3 + // "IMPACT_NONE" - Defined in CVSS v3, CVSS v2 + // "IMPACT_PARTIAL" - Defined in CVSS v2 + // "IMPACT_COMPLETE" - Defined in CVSS v2 IntegrityImpact string `json:"integrityImpact,omitempty"` + // PrivilegesRequired: Defined in CVSS v3 + // // Possible values: - // "PRIVILEGES_REQUIRED_UNSPECIFIED" - // "PRIVILEGES_REQUIRED_NONE" - // "PRIVILEGES_REQUIRED_LOW" - // "PRIVILEGES_REQUIRED_HIGH" + // "PRIVILEGES_REQUIRED_UNSPECIFIED" - Defined in CVSS v3 + // "PRIVILEGES_REQUIRED_NONE" - Defined in CVSS v3 + // "PRIVILEGES_REQUIRED_LOW" - Defined in CVSS v3 + // "PRIVILEGES_REQUIRED_HIGH" - Defined in CVSS v3 PrivilegesRequired string `json:"privilegesRequired,omitempty"` + // Scope: Defined in CVSS v3 + // // Possible values: - // "SCOPE_UNSPECIFIED" - // "SCOPE_UNCHANGED" - // "SCOPE_CHANGED" + // "SCOPE_UNSPECIFIED" - Defined in CVSS v3 + // "SCOPE_UNCHANGED" - Defined in CVSS v3 + // "SCOPE_CHANGED" - Defined in CVSS v3 Scope string `json:"scope,omitempty"` + // UserInteraction: Defined in CVSS v3 + // // Possible values: - // "USER_INTERACTION_UNSPECIFIED" - // "USER_INTERACTION_NONE" - // "USER_INTERACTION_REQUIRED" + // "USER_INTERACTION_UNSPECIFIED" - Defined in CVSS v3 + // "USER_INTERACTION_NONE" - Defined in CVSS v3 + // "USER_INTERACTION_REQUIRED" - Defined in CVSS v3 UserInteraction string `json:"userInteraction,omitempty"` // ForceSendFields is a list of field names (e.g. "AttackComplexity") to diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 8ae080baba2..4e8fdeaa187 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1029,7 +1029,7 @@ } } }, - "revision": "20220505", + "revision": "20220513", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -3058,6 +3058,11 @@ "description": "Request message for the process document method.", "id": "GoogleCloudDocumentaiV1ProcessRequest", "properties": { + "fieldMask": { + "description": "Specifies which fields to include in ProcessResponse's document.", + "format": "google-fieldmask", + "type": "string" + }, "inlineDocument": { "$ref": "GoogleCloudDocumentaiV1Document", "description": "An inline document proto." diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 158c499fcad..cc76f3d0d79 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -3768,6 +3768,10 @@ func (s *GoogleCloudDocumentaiV1NormalizedVertex) UnmarshalJSON(data []byte) err // GoogleCloudDocumentaiV1ProcessRequest: Request message for the // process document method. type GoogleCloudDocumentaiV1ProcessRequest struct { + // FieldMask: Specifies which fields to include in ProcessResponse's + // document. + FieldMask string `json:"fieldMask,omitempty"` + // InlineDocument: An inline document proto. InlineDocument *GoogleCloudDocumentaiV1Document `json:"inlineDocument,omitempty"` @@ -3778,7 +3782,7 @@ type GoogleCloudDocumentaiV1ProcessRequest struct { // this request. Default to false. SkipHumanReview bool `json:"skipHumanReview,omitempty"` - // ForceSendFields is a list of field names (e.g. "InlineDocument") to + // ForceSendFields is a list of field names (e.g. "FieldMask") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3786,13 +3790,12 @@ type GoogleCloudDocumentaiV1ProcessRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "InlineDocument") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FieldMask") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index d9e640c124a..a55bb78b58d 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -796,7 +796,7 @@ } } }, - "revision": "20220505", + "revision": "20220513", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -5636,6 +5636,11 @@ "$ref": "GoogleCloudDocumentaiV1beta3Document", "description": "The document payload, the [content] and [mime_type] fields must be set." }, + "fieldMask": { + "description": "Specifies which fields to include in ProcessResponse's document.", + "format": "google-fieldmask", + "type": "string" + }, "inlineDocument": { "$ref": "GoogleCloudDocumentaiV1beta3Document", "description": "An inline document proto." diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 018def3d1e3..a335b9fd6ea 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -8293,6 +8293,10 @@ type GoogleCloudDocumentaiV1beta3ProcessRequest struct { // must be set. Document *GoogleCloudDocumentaiV1beta3Document `json:"document,omitempty"` + // FieldMask: Specifies which fields to include in ProcessResponse's + // document. + FieldMask string `json:"fieldMask,omitempty"` + // InlineDocument: An inline document proto. InlineDocument *GoogleCloudDocumentaiV1beta3Document `json:"inlineDocument,omitempty"` diff --git a/firebaseappcheck/v1beta/firebaseappcheck-api.json b/firebaseappcheck/v1beta/firebaseappcheck-api.json index ac6a6cc5079..8ea6dfb1f5d 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-api.json +++ b/firebaseappcheck/v1beta/firebaseappcheck-api.json @@ -346,7 +346,7 @@ ] }, "exchangeRecaptchaToken": { - "description": "This method has been renamed to ExchangeRecaptchaV3Token. Validates a [reCAPTCHA v3 response token](https://developers.google.com/recaptcha/docs/v3). If valid, returns an AppCheckToken.", + "description": "Validates a [reCAPTCHA v3 response token](https://developers.google.com/recaptcha/docs/v3). If valid, returns an AppCheckToken.", "flatPath": "v1beta/projects/{projectsId}/apps/{appsId}:exchangeRecaptchaToken", "httpMethod": "POST", "id": "firebaseappcheck.projects.apps.exchangeRecaptchaToken", @@ -943,7 +943,7 @@ "recaptchaConfig": { "methods": { "batchGet": { - "description": "The RecaptchaConfig REST resource has been renamed to RecaptchaV3Config. Please use BatchGetRecaptchaV3Configs instead. Atomically gets the RecaptchaConfigs for the specified list of apps. For security reasons, the `site_secret` field is never populated in the response.", + "description": "Atomically gets the RecaptchaConfigs for the specified list of apps. For security reasons, the `site_secret` field is never populated in the response.", "flatPath": "v1beta/projects/{projectsId}/apps/-/recaptchaConfig:batchGet", "httpMethod": "GET", "id": "firebaseappcheck.projects.apps.recaptchaConfig.batchGet", @@ -975,7 +975,7 @@ ] }, "get": { - "description": "The RecaptchaConfig REST resource has been renamed to RecaptchaV3Config. Please use GetRecaptchaV3Config instead. Gets the RecaptchaConfig for the specified app. For security reasons, the `site_secret` field is never populated in the response.", + "description": "Gets the RecaptchaConfig for the specified app. For security reasons, the `site_secret` field is never populated in the response.", "flatPath": "v1beta/projects/{projectsId}/apps/{appsId}/recaptchaConfig", "httpMethod": "GET", "id": "firebaseappcheck.projects.apps.recaptchaConfig.get", @@ -1001,7 +1001,7 @@ ] }, "patch": { - "description": "The RecaptchaConfig REST resource has been renamed to RecaptchaV3Config. Please use UpdateRecaptchaV3Config instead. Updates the RecaptchaConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA tokens for App Check tokens. For security reasons, the `site_secret` field is never populated in the response.", + "description": "Updates the RecaptchaConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA tokens for App Check tokens. For security reasons, the `site_secret` field is never populated in the response.", "flatPath": "v1beta/projects/{projectsId}/apps/{appsId}/recaptchaConfig", "httpMethod": "PATCH", "id": "firebaseappcheck.projects.apps.recaptchaConfig.patch", @@ -1464,7 +1464,7 @@ } } }, - "revision": "20220425", + "revision": "20220513", "rootUrl": "https://firebaseappcheck.googleapis.com/", "schemas": { "GoogleFirebaseAppcheckV1betaAppAttestConfig": { @@ -1488,7 +1488,7 @@ "id": "GoogleFirebaseAppcheckV1betaAppCheckToken", "properties": { "attestationToken": { - "description": "This field has been renamed to `token`. An App Check token. App Check tokens are signed [JWTs](https://tools.ietf.org/html/rfc7519) containing claims that identify the attested app and Firebase project. This token is used to access Firebase services protected by App Check.", + "description": "An App Check token. App Check tokens are signed [JWTs](https://tools.ietf.org/html/rfc7519) containing claims that identify the attested app and Firebase project. This token is used to access Firebase services protected by App Check.", "type": "string" }, "token": { @@ -1757,7 +1757,7 @@ }, "attestationToken": { "$ref": "GoogleFirebaseAppcheckV1betaAttestationTokenResponse", - "description": "This field has been renamed to `app_check_token`. Encapsulates an App Check token." + "description": "Encapsulates an App Check token." } }, "type": "object" @@ -1993,7 +1993,7 @@ "type": "object" }, "GoogleFirebaseAppcheckV1betaRecaptchaConfig": { - "description": "This REST resource has been renamed to RecaptchaV3Config. An app's reCAPTCHA v3 configuration object. This configuration is used by ExchangeRecaptchaToken to validate reCAPTCHA tokens issued to apps by reCAPTCHA v3. It also controls certain properties of the returned `AppCheckToken`, such as its ttl.", + "description": "An app's reCAPTCHA v3 configuration object. This configuration is used by ExchangeRecaptchaToken to validate reCAPTCHA tokens issued to apps by reCAPTCHA v3. It also controls certain properties of the returned `AppCheckToken`, such as its ttl.", "id": "GoogleFirebaseAppcheckV1betaRecaptchaConfig", "properties": { "name": { diff --git a/firebaseappcheck/v1beta/firebaseappcheck-gen.go b/firebaseappcheck/v1beta/firebaseappcheck-gen.go index b24abeabf3b..a7a63ba5170 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1beta/firebaseappcheck-gen.go @@ -336,11 +336,10 @@ func (s *GoogleFirebaseAppcheckV1betaAppAttestConfig) MarshalJSON() ([]byte, err // token*, which are used to access Firebase services protected by App // Check. type GoogleFirebaseAppcheckV1betaAppCheckToken struct { - // AttestationToken: This field has been renamed to `token`. An App - // Check token. App Check tokens are signed JWTs - // (https://tools.ietf.org/html/rfc7519) containing claims that identify - // the attested app and Firebase project. This token is used to access - // Firebase services protected by App Check. + // AttestationToken: An App Check token. App Check tokens are signed + // JWTs (https://tools.ietf.org/html/rfc7519) containing claims that + // identify the attested app and Firebase project. This token is used to + // access Firebase services protected by App Check. AttestationToken string `json:"attestationToken,omitempty"` // Token: An App Check token. App Check tokens are signed JWTs @@ -925,8 +924,7 @@ type GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse struct { // ExchangeAppAttestAssertion. Artifact string `json:"artifact,omitempty"` - // AttestationToken: This field has been renamed to `app_check_token`. - // Encapsulates an App Check token. + // AttestationToken: Encapsulates an App Check token. AttestationToken *GoogleFirebaseAppcheckV1betaAttestationTokenResponse `json:"attestationToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -1520,8 +1518,7 @@ func (s *GoogleFirebaseAppcheckV1betaPublicJwkSet) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleFirebaseAppcheckV1betaRecaptchaConfig: This REST resource has -// been renamed to RecaptchaV3Config. An app's reCAPTCHA v3 +// GoogleFirebaseAppcheckV1betaRecaptchaConfig: An app's reCAPTCHA v3 // configuration object. This configuration is used by // ExchangeRecaptchaToken to validate reCAPTCHA tokens issued to apps by // reCAPTCHA v3. It also controls certain properties of the returned @@ -3082,8 +3079,7 @@ type ProjectsAppsExchangeRecaptchaTokenCall struct { header_ http.Header } -// ExchangeRecaptchaToken: This method has been renamed to -// ExchangeRecaptchaV3Token. Validates a reCAPTCHA v3 response token +// ExchangeRecaptchaToken: Validates a reCAPTCHA v3 response token // (https://developers.google.com/recaptcha/docs/v3). If valid, returns // an AppCheckToken. // @@ -3192,7 +3188,7 @@ func (c *ProjectsAppsExchangeRecaptchaTokenCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "This method has been renamed to ExchangeRecaptchaV3Token. Validates a [reCAPTCHA v3 response token](https://developers.google.com/recaptcha/docs/v3). If valid, returns an AppCheckToken.", + // "description": "Validates a [reCAPTCHA v3 response token](https://developers.google.com/recaptcha/docs/v3). If valid, returns an AppCheckToken.", // "flatPath": "v1beta/projects/{projectsId}/apps/{appsId}:exchangeRecaptchaToken", // "httpMethod": "POST", // "id": "firebaseappcheck.projects.apps.exchangeRecaptchaToken", @@ -6105,11 +6101,9 @@ type ProjectsAppsRecaptchaConfigBatchGetCall struct { header_ http.Header } -// BatchGet: The RecaptchaConfig REST resource has been renamed to -// RecaptchaV3Config. Please use BatchGetRecaptchaV3Configs instead. -// Atomically gets the RecaptchaConfigs for the specified list of apps. -// For security reasons, the `site_secret` field is never populated in -// the response. +// BatchGet: Atomically gets the RecaptchaConfigs for the specified list +// of apps. For security reasons, the `site_secret` field is never +// populated in the response. // // - parent: The parent project name shared by all RecaptchaConfigs // being retrieved, in the format ``` projects/{project_number} ``` @@ -6232,7 +6226,7 @@ func (c *ProjectsAppsRecaptchaConfigBatchGetCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "The RecaptchaConfig REST resource has been renamed to RecaptchaV3Config. Please use BatchGetRecaptchaV3Configs instead. Atomically gets the RecaptchaConfigs for the specified list of apps. For security reasons, the `site_secret` field is never populated in the response.", + // "description": "Atomically gets the RecaptchaConfigs for the specified list of apps. For security reasons, the `site_secret` field is never populated in the response.", // "flatPath": "v1beta/projects/{projectsId}/apps/-/recaptchaConfig:batchGet", // "httpMethod": "GET", // "id": "firebaseappcheck.projects.apps.recaptchaConfig.batchGet", @@ -6277,10 +6271,8 @@ type ProjectsAppsRecaptchaConfigGetCall struct { header_ http.Header } -// Get: The RecaptchaConfig REST resource has been renamed to -// RecaptchaV3Config. Please use GetRecaptchaV3Config instead. Gets the -// RecaptchaConfig for the specified app. For security reasons, the -// `site_secret` field is never populated in the response. +// Get: Gets the RecaptchaConfig for the specified app. For security +// reasons, the `site_secret` field is never populated in the response. // // - name: The relative resource name of the RecaptchaConfig, in the // format: ``` projects/{project_number}/apps/{app_id}/recaptchaConfig @@ -6392,7 +6384,7 @@ func (c *ProjectsAppsRecaptchaConfigGetCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "The RecaptchaConfig REST resource has been renamed to RecaptchaV3Config. Please use GetRecaptchaV3Config instead. Gets the RecaptchaConfig for the specified app. For security reasons, the `site_secret` field is never populated in the response.", + // "description": "Gets the RecaptchaConfig for the specified app. For security reasons, the `site_secret` field is never populated in the response.", // "flatPath": "v1beta/projects/{projectsId}/apps/{appsId}/recaptchaConfig", // "httpMethod": "GET", // "id": "firebaseappcheck.projects.apps.recaptchaConfig.get", @@ -6431,9 +6423,7 @@ type ProjectsAppsRecaptchaConfigPatchCall struct { header_ http.Header } -// Patch: The RecaptchaConfig REST resource has been renamed to -// RecaptchaV3Config. Please use UpdateRecaptchaV3Config instead. -// Updates the RecaptchaConfig for the specified app. While this +// Patch: Updates the RecaptchaConfig for the specified app. While this // configuration is incomplete or invalid, the app will be unable to // exchange reCAPTCHA tokens for App Check tokens. For security reasons, // the `site_secret` field is never populated in the response. @@ -6549,7 +6539,7 @@ func (c *ProjectsAppsRecaptchaConfigPatchCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "The RecaptchaConfig REST resource has been renamed to RecaptchaV3Config. Please use UpdateRecaptchaV3Config instead. Updates the RecaptchaConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA tokens for App Check tokens. For security reasons, the `site_secret` field is never populated in the response.", + // "description": "Updates the RecaptchaConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA tokens for App Check tokens. For security reasons, the `site_secret` field is never populated in the response.", // "flatPath": "v1beta/projects/{projectsId}/apps/{appsId}/recaptchaConfig", // "httpMethod": "PATCH", // "id": "firebaseappcheck.projects.apps.recaptchaConfig.patch", diff --git a/iam/v1/iam-api.json b/iam/v1/iam-api.json index 8d88f26aa31..b55232f1ea4 100644 --- a/iam/v1/iam-api.json +++ b/iam/v1/iam-api.json @@ -1653,7 +1653,7 @@ ] }, "disable": { - "description": "Disable a ServiceAccountKey. A disabled service account key can be enabled through EnableServiceAccountKey.", + "description": "Disable a ServiceAccountKey. A disabled service account key can be re-enabled with EnableServiceAccountKey.", "flatPath": "v1/projects/{projectsId}/serviceAccounts/{serviceAccountsId}/keys/{keysId}:disable", "httpMethod": "POST", "id": "iam.projects.serviceAccounts.keys.disable", @@ -1921,7 +1921,7 @@ } } }, - "revision": "20220509", + "revision": "20220511", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AdminAuditData": { @@ -2414,7 +2414,7 @@ "type": "object" }, "PatchServiceAccountRequest": { - "description": "The request for PatchServiceAccount. You can patch only the `display_name` and `description` fields. You must use the `update_mask` field to specify which of these fields you want to patch. Only the fields specified in the request are guaranteed to be returned in the response. Other fields may be empty in the response.", + "description": "The service account patch request. You can patch only the `display_name` and `description` fields. You must use the `update_mask` field to specify which of these fields you want to patch. Only the fields specified in the request are guaranteed to be returned in the response. Other fields may be empty in the response.", "id": "PatchServiceAccountRequest", "properties": { "serviceAccount": { diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index 06f5f6d60b9..5265d9f1dd5 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -1416,7 +1416,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PatchServiceAccountRequest: The request for PatchServiceAccount. You +// PatchServiceAccountRequest: The service account patch request. You // can patch only the `display_name` and `description` fields. You must // use the `update_mask` field to specify which of these fields you want // to patch. Only the fields specified in the request are guaranteed to @@ -10882,7 +10882,7 @@ type ProjectsServiceAccountsKeysDisableCall struct { } // Disable: Disable a ServiceAccountKey. A disabled service account key -// can be enabled through EnableServiceAccountKey. +// can be re-enabled with EnableServiceAccountKey. // // - name: The resource name of the service account key in the following // format: @@ -10988,7 +10988,7 @@ func (c *ProjectsServiceAccountsKeysDisableCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Disable a ServiceAccountKey. A disabled service account key can be enabled through EnableServiceAccountKey.", + // "description": "Disable a ServiceAccountKey. A disabled service account key can be re-enabled with EnableServiceAccountKey.", // "flatPath": "v1/projects/{projectsId}/serviceAccounts/{serviceAccountsId}/keys/{keysId}:disable", // "httpMethod": "POST", // "id": "iam.projects.serviceAccounts.keys.disable", diff --git a/recaptchaenterprise/v1/recaptchaenterprise-api.json b/recaptchaenterprise/v1/recaptchaenterprise-api.json index a65a75841d6..2ecb21f0242 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-api.json +++ b/recaptchaenterprise/v1/recaptchaenterprise-api.json @@ -369,31 +369,6 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "retrieveLegacySecretKey": { - "description": "Returns the secret key related to the specified public key. You should use the legacy secret key only if you are integrating with a 3rd party using the legacy reCAPTCHA instead of reCAPTCHA Enterprise.", - "flatPath": "v1/projects/{projectsId}/keys/{keysId}:retrieveLegacySecretKey", - "httpMethod": "GET", - "id": "recaptchaenterprise.projects.keys.retrieveLegacySecretKey", - "parameterOrder": [ - "key" - ], - "parameters": { - "key": { - "description": "Required. The public key name linked to the requested secret key , in the format \"projects/{project}/keys/{key}\".", - "location": "path", - "pattern": "^projects/[^/]+/keys/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+key}:retrieveLegacySecretKey", - "response": { - "$ref": "GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } } }, @@ -514,7 +489,7 @@ } } }, - "revision": "20220505", + "revision": "20220513", "rootUrl": "https://recaptchaenterprise.googleapis.com/", "schemas": { "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": { @@ -901,17 +876,6 @@ }, "type": "object" }, - "GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse": { - "description": "Secret key used in legacy reCAPTCHA only. Should be used when integrating with a 3rd party which is still using legacy reCAPTCHA.", - "id": "GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse", - "properties": { - "legacySecretKey": { - "description": "The secret key (also known as shared secret) authorizes communication between your application backend and the reCAPTCHA Enterprise server to create an assessment. The secret key needs to be kept safe for security purposes.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudRecaptchaenterpriseV1RiskAnalysis": { "description": "Risk analysis result for an event.", "id": "GoogleCloudRecaptchaenterpriseV1RiskAnalysis", diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index 0882f55326c..41df774aadf 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -858,44 +858,6 @@ func (s *GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership) MarshalJ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse: -// Secret key used in legacy reCAPTCHA only. Should be used when -// integrating with a 3rd party which is still using legacy reCAPTCHA. -type GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse struct { - // LegacySecretKey: The secret key (also known as shared secret) - // authorizes communication between your application backend and the - // reCAPTCHA Enterprise server to create an assessment. The secret key - // needs to be kept safe for security purposes. - LegacySecretKey string `json:"legacySecretKey,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "LegacySecretKey") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LegacySecretKey") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudRecaptchaenterpriseV1RiskAnalysis: Risk analysis result // for an event. type GoogleCloudRecaptchaenterpriseV1RiskAnalysis struct { @@ -2720,159 +2682,6 @@ func (c *ProjectsKeysPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRe } -// method id "recaptchaenterprise.projects.keys.retrieveLegacySecretKey": - -type ProjectsKeysRetrieveLegacySecretKeyCall struct { - s *Service - key string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// RetrieveLegacySecretKey: Returns the secret key related to the -// specified public key. You should use the legacy secret key only if -// you are integrating with a 3rd party using the legacy reCAPTCHA -// instead of reCAPTCHA Enterprise. -// -// - key: The public key name linked to the requested secret key , in -// the format "projects/{project}/keys/{key}". -func (r *ProjectsKeysService) RetrieveLegacySecretKey(key string) *ProjectsKeysRetrieveLegacySecretKeyCall { - c := &ProjectsKeysRetrieveLegacySecretKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.key = key - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsKeysRetrieveLegacySecretKeyCall) Fields(s ...googleapi.Field) *ProjectsKeysRetrieveLegacySecretKeyCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsKeysRetrieveLegacySecretKeyCall) IfNoneMatch(entityTag string) *ProjectsKeysRetrieveLegacySecretKeyCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsKeysRetrieveLegacySecretKeyCall) Context(ctx context.Context) *ProjectsKeysRetrieveLegacySecretKeyCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsKeysRetrieveLegacySecretKeyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsKeysRetrieveLegacySecretKeyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - 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/{+key}:retrieveLegacySecretKey") - 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{ - "key": c.key, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "recaptchaenterprise.projects.keys.retrieveLegacySecretKey" call. -// Exactly one of -// *GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse.Serve -// rResponse.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 *ProjectsKeysRetrieveLegacySecretKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse, 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, &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, err - } - ret := &GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse{ - 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 - // { - // "description": "Returns the secret key related to the specified public key. You should use the legacy secret key only if you are integrating with a 3rd party using the legacy reCAPTCHA instead of reCAPTCHA Enterprise.", - // "flatPath": "v1/projects/{projectsId}/keys/{keysId}:retrieveLegacySecretKey", - // "httpMethod": "GET", - // "id": "recaptchaenterprise.projects.keys.retrieveLegacySecretKey", - // "parameterOrder": [ - // "key" - // ], - // "parameters": { - // "key": { - // "description": "Required. The public key name linked to the requested secret key , in the format \"projects/{project}/keys/{key}\".", - // "location": "path", - // "pattern": "^projects/[^/]+/keys/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+key}:retrieveLegacySecretKey", - // "response": { - // "$ref": "GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "recaptchaenterprise.projects.relatedaccountgroupmemberships.search": type ProjectsRelatedaccountgroupmembershipsSearchCall struct { diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 4213fef5172..648307a9a27 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1717,7 +1717,7 @@ } } }, - "revision": "20220506", + "revision": "20220516", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -3098,6 +3098,11 @@ "description": "The resource name of the SecurityCenterSettings. Format: organizations/{organization}/securityCenterSettings Format: folders/{folder}/securityCenterSettings Format: projects/{project}/securityCenterSettings", "type": "string" }, + "onboardingTime": { + "description": "Timestamp of when the customer organization was onboarded to SCC.", + "format": "google-datetime", + "type": "string" + }, "orgServiceAccount": { "description": "The organization level service account to be used for security center components.", "type": "string" diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 43046c2c380..c12e7822b29 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -2209,6 +2209,10 @@ type SecurityCenterSettings struct { // projects/{project}/securityCenterSettings Name string `json:"name,omitempty"` + // OnboardingTime: Timestamp of when the customer organization was + // onboarded to SCC. + OnboardingTime string `json:"onboardingTime,omitempty"` + // OrgServiceAccount: The organization level service account to be used // for security center components. OrgServiceAccount string `json:"orgServiceAccount,omitempty"`