diff --git a/analyticshub/v1/analyticshub-api.json b/analyticshub/v1/analyticshub-api.json index f861470a4ff..a6d121ed2b1 100644 --- a/analyticshub/v1/analyticshub-api.json +++ b/analyticshub/v1/analyticshub-api.json @@ -422,7 +422,7 @@ ] }, "subscribe": { - "description": "Creates a Subscription to a Data Exchange. This is a long-running operation as it will create one or more linked datasets.", + "description": "Creates a Subscription to a Data Clean Room. This is a long-running operation as it will create one or more linked datasets.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataExchanges/{dataExchangesId}:subscribe", "httpMethod": "POST", "id": "analyticshub.projects.locations.dataExchanges.subscribe", @@ -1022,7 +1022,7 @@ } } }, - "revision": "20240624", + "revision": "20240715", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AnalyticsHubSubscriptionInfo": { diff --git a/analyticshub/v1/analyticshub-gen.go b/analyticshub/v1/analyticshub-gen.go index b381c21b660..65a69c62956 100644 --- a/analyticshub/v1/analyticshub-gen.go +++ b/analyticshub/v1/analyticshub-gen.go @@ -3409,8 +3409,8 @@ type ProjectsLocationsDataExchangesSubscribeCall struct { header_ http.Header } -// Subscribe: Creates a Subscription to a Data Exchange. This is a long-running -// operation as it will create one or more linked datasets. +// Subscribe: Creates a Subscription to a Data Clean Room. This is a +// long-running operation as it will create one or more linked datasets. // // - name: Resource name of the Data Exchange. e.g. // `projects/publisherproject/locations/US/dataExchanges/123`. diff --git a/cloudbuild/v2/cloudbuild-api.json b/cloudbuild/v2/cloudbuild-api.json index 2528e812612..965af1e02c8 100644 --- a/cloudbuild/v2/cloudbuild-api.json +++ b/cloudbuild/v2/cloudbuild-api.json @@ -844,7 +844,7 @@ } } }, - "revision": "20240704", + "revision": "20240720", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "AuditConfig": { @@ -2513,8 +2513,7 @@ "type": "string" }, "secretVersion": { - "description": "Output only. Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*", - "readOnly": true, + "description": "Optional. Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*", "type": "string" } }, @@ -2525,6 +2524,7 @@ "id": "Security", "properties": { "privilegeMode": { + "deprecated": true, "description": "Optional. Privilege mode.", "enum": [ "PRIVILEGE_MODE_UNSPECIFIED", diff --git a/cloudbuild/v2/cloudbuild-gen.go b/cloudbuild/v2/cloudbuild-gen.go index 265f437a84f..41e7081c499 100644 --- a/cloudbuild/v2/cloudbuild-gen.go +++ b/cloudbuild/v2/cloudbuild-gen.go @@ -2195,7 +2195,7 @@ func (s RunWorkflowCustomOperationMetadata) MarshalJSON() ([]byte, error) { type SecretVolumeSource struct { // SecretName: Name of the secret referenced by the WorkspaceBinding. SecretName string `json:"secretName,omitempty"` - // SecretVersion: Output only. Resource name of the SecretVersion. In format: + // SecretVersion: Optional. Resource name of the SecretVersion. In format: // projects/*/secrets/*/versions/* SecretVersion string `json:"secretVersion,omitempty"` // ForceSendFields is a list of field names (e.g. "SecretName") to diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index ee87baeb550..07ace1d74d7 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -1156,7 +1156,7 @@ } } }, - "revision": "20240506", + "revision": "20240723", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "CloudAiPlatformTenantresourceCloudSqlInstanceConfig": { @@ -3994,11 +3994,19 @@ "description": "Document represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality.", "id": "GoogleCloudDocumentaiV1Document", "properties": { + "chunkedDocument": { + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocument", + "description": "Document chunked based on chunking config." + }, "content": { "description": "Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.", "format": "byte", "type": "string" }, + "documentLayout": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayout", + "description": "Parsed layout of the document." + }, "entities": { "description": "A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.", "items": { @@ -4065,6 +4073,282 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1DocumentChunkedDocument": { + "description": "Represents the chunks that the document is divided into.", + "id": "GoogleCloudDocumentaiV1DocumentChunkedDocument", + "properties": { + "chunks": { + "description": "List of chunks.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk": { + "description": "Represents a chunk.", + "id": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk", + "properties": { + "chunkId": { + "description": "ID of the chunk.", + "type": "string" + }, + "content": { + "description": "Text content of the chunk.", + "type": "string" + }, + "pageFooters": { + "description": "Page footers associated with the chunk.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter" + }, + "type": "array" + }, + "pageHeaders": { + "description": "Page headers associated with the chunk.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader" + }, + "type": "array" + }, + "pageSpan": { + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan", + "description": "Page span of the chunk." + }, + "sourceBlockIds": { + "description": "Unused.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter": { + "description": "Represents the page footer associated with the chunk.", + "id": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter", + "properties": { + "pageSpan": { + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan", + "description": "Page span of the footer." + }, + "text": { + "description": "Footer in text format.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader": { + "description": "Represents the page header associated with the chunk.", + "id": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader", + "properties": { + "pageSpan": { + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan", + "description": "Page span of the header." + }, + "text": { + "description": "Header in text format.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan": { + "description": "Represents where the chunk starts and ends in the document.", + "id": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan", + "properties": { + "pageEnd": { + "description": "Page where chunk ends in the document.", + "format": "int32", + "type": "integer" + }, + "pageStart": { + "description": "Page where chunk starts in the document.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayout": { + "description": "Represents the parsed layout of a document as a collection of blocks that the document is divided into.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayout", + "properties": { + "blocks": { + "description": "List of blocks in the document.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock": { + "description": "Represents a block. A block could be one of the various types (text, table, list) supported.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock", + "properties": { + "blockId": { + "description": "ID of the block.", + "type": "string" + }, + "listBlock": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock", + "description": "Block consisting of list content/structure." + }, + "pageSpan": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan", + "description": "Page span of the block." + }, + "tableBlock": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock", + "description": "Block consisting of table content/structure." + }, + "textBlock": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock", + "description": "Block consisting of text content." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock": { + "description": "Represents a list type block.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock", + "properties": { + "listEntries": { + "description": "List entries that constitute a list block.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry" + }, + "type": "array" + }, + "type": { + "description": "Type of the list_entries (if exist). Available options are `ordered` and `unordered`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry": { + "description": "Represents an entry in the list.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry", + "properties": { + "blocks": { + "description": "A list entry is a list of blocks. Repeated blocks support further hierarchies and nested blocks.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan": { + "description": "Represents where the block starts and ends in the document.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan", + "properties": { + "pageEnd": { + "description": "Page where block ends in the document.", + "format": "int32", + "type": "integer" + }, + "pageStart": { + "description": "Page where block starts in the document.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock": { + "description": "Represents a table type block.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock", + "properties": { + "bodyRows": { + "description": "Body rows containing main table content.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow" + }, + "type": "array" + }, + "caption": { + "description": "Table caption/title.", + "type": "string" + }, + "headerRows": { + "description": "Header rows at the top of the table.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell": { + "description": "Represents a cell in a table row.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell", + "properties": { + "blocks": { + "description": "A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock" + }, + "type": "array" + }, + "colSpan": { + "description": "How many columns this cell spans.", + "format": "int32", + "type": "integer" + }, + "rowSpan": { + "description": "How many rows this cell spans.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow": { + "description": "Represents a row in a table.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow", + "properties": { + "cells": { + "description": "A table row is a list of table cells.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock": { + "description": "Represents a text type block.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock", + "properties": { + "blocks": { + "description": "A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock" + }, + "type": "array" + }, + "text": { + "description": "Text content stored in the block.", + "type": "string" + }, + "type": { + "description": "Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1DocumentEntity": { "description": "An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity type, such as a person, an organization, or location.", "id": "GoogleCloudDocumentaiV1DocumentEntity", diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index 0aa6845d05f..a9b312f470a 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -4121,10 +4121,14 @@ func (s GoogleCloudDocumentaiV1BoundingPoly) MarshalJSON() ([]byte, error) { // into documents and allows for collaboration between users and Document AI to // iterate and optimize for quality. type GoogleCloudDocumentaiV1Document struct { + // ChunkedDocument: Document chunked based on chunking config. + ChunkedDocument *GoogleCloudDocumentaiV1DocumentChunkedDocument `json:"chunkedDocument,omitempty"` // Content: Optional. Inline document content, represented as a stream of // bytes. Note: As with all `bytes` fields, protobuffers use a pure binary // representation, whereas JSON representations use base64. Content string `json:"content,omitempty"` + // DocumentLayout: Parsed layout of the document. + DocumentLayout *GoogleCloudDocumentaiV1DocumentDocumentLayout `json:"documentLayout,omitempty"` // Entities: A list of entities detected on Document.text. For document shards, // entities in this list may cross shard boundaries. Entities []*GoogleCloudDocumentaiV1DocumentEntity `json:"entities,omitempty"` @@ -4156,21 +4160,389 @@ type GoogleCloudDocumentaiV1Document struct { // information, refer to Google Cloud Storage Request URIs // (https://cloud.google.com/storage/docs/reference-uris). Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // ForceSendFields is a list of field names (e.g. "ChunkedDocument") 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. "ChunkedDocument") 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 GoogleCloudDocumentaiV1Document) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1Document + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentChunkedDocument: Represents the chunks that +// the document is divided into. +type GoogleCloudDocumentaiV1DocumentChunkedDocument struct { + // Chunks: List of chunks. + Chunks []*GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk `json:"chunks,omitempty"` + // ForceSendFields is a list of field names (e.g. "Chunks") 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. "Content") to include in API + // NullFields is a list of field names (e.g. "Chunks") 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 GoogleCloudDocumentaiV1Document) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiV1Document +func (s GoogleCloudDocumentaiV1DocumentChunkedDocument) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentChunkedDocument + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk: Represents a chunk. +type GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk struct { + // ChunkId: ID of the chunk. + ChunkId string `json:"chunkId,omitempty"` + // Content: Text content of the chunk. + Content string `json:"content,omitempty"` + // PageFooters: Page footers associated with the chunk. + PageFooters []*GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter `json:"pageFooters,omitempty"` + // PageHeaders: Page headers associated with the chunk. + PageHeaders []*GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader `json:"pageHeaders,omitempty"` + // PageSpan: Page span of the chunk. + PageSpan *GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"` + // SourceBlockIds: Unused. + SourceBlockIds []string `json:"sourceBlockIds,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChunkId") 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. "ChunkId") 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 GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter: +// Represents the page footer associated with the chunk. +type GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter struct { + // PageSpan: Page span of the footer. + PageSpan *GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"` + // Text: Footer in text format. + Text string `json:"text,omitempty"` + // ForceSendFields is a list of field names (e.g. "PageSpan") 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. "PageSpan") 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 GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader: +// Represents the page header associated with the chunk. +type GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader struct { + // PageSpan: Page span of the header. + PageSpan *GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"` + // Text: Header in text format. + Text string `json:"text,omitempty"` + // ForceSendFields is a list of field names (e.g. "PageSpan") 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. "PageSpan") 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 GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan: Represents +// where the chunk starts and ends in the document. +type GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan struct { + // PageEnd: Page where chunk ends in the document. + PageEnd int64 `json:"pageEnd,omitempty"` + // PageStart: Page where chunk starts in the document. + PageStart int64 `json:"pageStart,omitempty"` + // ForceSendFields is a list of field names (e.g. "PageEnd") 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. "PageEnd") 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 GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentDocumentLayout: Represents the parsed layout +// of a document as a collection of blocks that the document is divided into. +type GoogleCloudDocumentaiV1DocumentDocumentLayout struct { + // Blocks: List of blocks in the document. + Blocks []*GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"` + // ForceSendFields is a list of field names (e.g. "Blocks") 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. "Blocks") 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 GoogleCloudDocumentaiV1DocumentDocumentLayout) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentDocumentLayout + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock: Represents +// a block. A block could be one of the various types (text, table, list) +// supported. +type GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock struct { + // BlockId: ID of the block. + BlockId string `json:"blockId,omitempty"` + // ListBlock: Block consisting of list content/structure. + ListBlock *GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock `json:"listBlock,omitempty"` + // PageSpan: Page span of the block. + PageSpan *GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan `json:"pageSpan,omitempty"` + // TableBlock: Block consisting of table content/structure. + TableBlock *GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock `json:"tableBlock,omitempty"` + // TextBlock: Block consisting of text content. + TextBlock *GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock `json:"textBlock,omitempty"` + // ForceSendFields is a list of field names (e.g. "BlockId") 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. "BlockId") 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 GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlo +// ck: Represents a list type block. +type GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock struct { + // ListEntries: List entries that constitute a list block. + ListEntries []*GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry `json:"listEntries,omitempty"` + // Type: Type of the list_entries (if exist). Available options are `ordered` + // and `unordered`. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "ListEntries") 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. "ListEntries") 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 GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEnt +// ry: Represents an entry in the list. +type GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry struct { + // Blocks: A list entry is a list of blocks. Repeated blocks support further + // hierarchies and nested blocks. + Blocks []*GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"` + // ForceSendFields is a list of field names (e.g. "Blocks") 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. "Blocks") 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 GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpa +// n: Represents where the block starts and ends in the document. +type GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan struct { + // PageEnd: Page where block ends in the document. + PageEnd int64 `json:"pageEnd,omitempty"` + // PageStart: Page where block starts in the document. + PageStart int64 `json:"pageStart,omitempty"` + // ForceSendFields is a list of field names (e.g. "PageEnd") 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. "PageEnd") 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 GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBl +// ock: Represents a table type block. +type GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock struct { + // BodyRows: Body rows containing main table content. + BodyRows []*GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow `json:"bodyRows,omitempty"` + // Caption: Table caption/title. + Caption string `json:"caption,omitempty"` + // HeaderRows: Header rows at the top of the table. + HeaderRows []*GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow `json:"headerRows,omitempty"` + // ForceSendFields is a list of field names (e.g. "BodyRows") 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. "BodyRows") 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 GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCe +// ll: Represents a cell in a table row. +type GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell struct { + // Blocks: A table cell is a list of blocks. Repeated blocks support further + // hierarchies and nested blocks. + Blocks []*GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"` + // ColSpan: How many columns this cell spans. + ColSpan int64 `json:"colSpan,omitempty"` + // RowSpan: How many rows this cell spans. + RowSpan int64 `json:"rowSpan,omitempty"` + // ForceSendFields is a list of field names (e.g. "Blocks") 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. "Blocks") 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 GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRo +// w: Represents a row in a table. +type GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow struct { + // Cells: A table row is a list of table cells. + Cells []*GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell `json:"cells,omitempty"` + // ForceSendFields is a list of field names (e.g. "Cells") 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. "Cells") 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 GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlo +// ck: Represents a text type block. +type GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock struct { + // Blocks: A text block could further have child blocks. Repeated blocks + // support further hierarchies and nested blocks. + Blocks []*GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"` + // Text: Text content stored in the block. + Text string `json:"text,omitempty"` + // Type: Type of the text in the block. Available options are: `paragraph`, + // `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, + // `header`, `footer`. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "Blocks") 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. "Blocks") 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 GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index d74ae41b673..645e4f90249 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8714,7 +8714,7 @@ } } }, - "revision": "20240704", + "revision": "20240721", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -8774,6 +8774,10 @@ "description": "Define behaviors on logging.", "id": "GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings", "properties": { + "enableConsentBasedRedaction": { + "description": "Enables consent-based end-user input redaction, if true, a pre-defined session parameter `$session.params.conversation-redaction` will be used to determine if the utterance should be redacted.", + "type": "boolean" + }, "enableInteractionLogging": { "description": "Enables DF Interaction logging.", "type": "boolean" @@ -11168,6 +11172,10 @@ "description": "Define behaviors on logging.", "id": "GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings", "properties": { + "enableConsentBasedRedaction": { + "description": "Enables consent-based end-user input redaction, if true, a pre-defined session parameter `$session.params.conversation-redaction` will be used to determine if the utterance should be redacted.", + "type": "boolean" + }, "enableInteractionLogging": { "description": "Enables DF Interaction logging.", "type": "boolean" diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 829a3fcf523..48023fe2269 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -1013,17 +1013,22 @@ func (s GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings) MarshalJSON() ([] // GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings: Define behaviors // on logging. type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct { + // EnableConsentBasedRedaction: Enables consent-based end-user input redaction, + // if true, a pre-defined session parameter + // `$session.params.conversation-redaction` will be used to determine if the + // utterance should be redacted. + EnableConsentBasedRedaction bool `json:"enableConsentBasedRedaction,omitempty"` // EnableInteractionLogging: Enables DF Interaction logging. EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"` // EnableStackdriverLogging: Enables StackDriver logging. EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnableInteractionLogging") - // 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. + // "EnableConsentBasedRedaction") 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. "EnableInteractionLogging") to + // NullFields is a list of field names (e.g. "EnableConsentBasedRedaction") 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. @@ -4451,17 +4456,22 @@ func (s GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings) MarshalJSON( // GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings: Define // behaviors on logging. type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct { + // EnableConsentBasedRedaction: Enables consent-based end-user input redaction, + // if true, a pre-defined session parameter + // `$session.params.conversation-redaction` will be used to determine if the + // utterance should be redacted. + EnableConsentBasedRedaction bool `json:"enableConsentBasedRedaction,omitempty"` // EnableInteractionLogging: Enables DF Interaction logging. EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"` // EnableStackdriverLogging: Enables StackDriver logging. EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnableInteractionLogging") - // 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. + // "EnableConsentBasedRedaction") 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. "EnableInteractionLogging") to + // NullFields is a list of field names (e.g. "EnableConsentBasedRedaction") 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. diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index 5e269c4b1ad..c73a5f14e63 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -8082,7 +8082,7 @@ } } }, - "revision": "20240716", + "revision": "20240721", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -8142,6 +8142,10 @@ "description": "Define behaviors on logging.", "id": "GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings", "properties": { + "enableConsentBasedRedaction": { + "description": "Enables consent-based end-user input redaction, if true, a pre-defined session parameter `$session.params.conversation-redaction` will be used to determine if the utterance should be redacted.", + "type": "boolean" + }, "enableInteractionLogging": { "description": "Enables DF Interaction logging.", "type": "boolean" @@ -10536,6 +10540,10 @@ "description": "Define behaviors on logging.", "id": "GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings", "properties": { + "enableConsentBasedRedaction": { + "description": "Enables consent-based end-user input redaction, if true, a pre-defined session parameter `$session.params.conversation-redaction` will be used to determine if the utterance should be redacted.", + "type": "boolean" + }, "enableInteractionLogging": { "description": "Enables DF Interaction logging.", "type": "boolean" diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index 9251f0b3ff0..089ec2652ab 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -941,17 +941,22 @@ func (s GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings) MarshalJSON() ([] // GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings: Define behaviors // on logging. type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct { + // EnableConsentBasedRedaction: Enables consent-based end-user input redaction, + // if true, a pre-defined session parameter + // `$session.params.conversation-redaction` will be used to determine if the + // utterance should be redacted. + EnableConsentBasedRedaction bool `json:"enableConsentBasedRedaction,omitempty"` // EnableInteractionLogging: Enables DF Interaction logging. EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"` // EnableStackdriverLogging: Enables StackDriver logging. EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnableInteractionLogging") - // 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. + // "EnableConsentBasedRedaction") 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. "EnableInteractionLogging") to + // NullFields is a list of field names (e.g. "EnableConsentBasedRedaction") 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. @@ -4379,17 +4384,22 @@ func (s GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings) MarshalJSON( // GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings: Define // behaviors on logging. type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct { + // EnableConsentBasedRedaction: Enables consent-based end-user input redaction, + // if true, a pre-defined session parameter + // `$session.params.conversation-redaction` will be used to determine if the + // utterance should be redacted. + EnableConsentBasedRedaction bool `json:"enableConsentBasedRedaction,omitempty"` // EnableInteractionLogging: Enables DF Interaction logging. EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"` // EnableStackdriverLogging: Enables StackDriver logging. EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnableInteractionLogging") - // 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. + // "EnableConsentBasedRedaction") 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. "EnableInteractionLogging") to + // NullFields is a list of field names (e.g. "EnableConsentBasedRedaction") 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. diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index ba8826f92b5..196159f3707 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -4453,7 +4453,7 @@ } } }, - "revision": "20240704", + "revision": "20240721", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -4513,6 +4513,10 @@ "description": "Define behaviors on logging.", "id": "GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings", "properties": { + "enableConsentBasedRedaction": { + "description": "Enables consent-based end-user input redaction, if true, a pre-defined session parameter `$session.params.conversation-redaction` will be used to determine if the utterance should be redacted.", + "type": "boolean" + }, "enableInteractionLogging": { "description": "Enables DF Interaction logging.", "type": "boolean" @@ -10274,6 +10278,10 @@ "description": "Define behaviors on logging.", "id": "GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings", "properties": { + "enableConsentBasedRedaction": { + "description": "Enables consent-based end-user input redaction, if true, a pre-defined session parameter `$session.params.conversation-redaction` will be used to determine if the utterance should be redacted.", + "type": "boolean" + }, "enableInteractionLogging": { "description": "Enables DF Interaction logging.", "type": "boolean" diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 7691ca960a5..806064998cd 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -557,17 +557,22 @@ func (s GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings) MarshalJSON() ([] // GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings: Define behaviors // on logging. type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct { + // EnableConsentBasedRedaction: Enables consent-based end-user input redaction, + // if true, a pre-defined session parameter + // `$session.params.conversation-redaction` will be used to determine if the + // utterance should be redacted. + EnableConsentBasedRedaction bool `json:"enableConsentBasedRedaction,omitempty"` // EnableInteractionLogging: Enables DF Interaction logging. EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"` // EnableStackdriverLogging: Enables StackDriver logging. EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnableInteractionLogging") - // 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. + // "EnableConsentBasedRedaction") 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. "EnableInteractionLogging") to + // NullFields is a list of field names (e.g. "EnableConsentBasedRedaction") 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. @@ -8817,17 +8822,22 @@ func (s GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings) MarshalJSON( // GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings: Define // behaviors on logging. type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct { + // EnableConsentBasedRedaction: Enables consent-based end-user input redaction, + // if true, a pre-defined session parameter + // `$session.params.conversation-redaction` will be used to determine if the + // utterance should be redacted. + EnableConsentBasedRedaction bool `json:"enableConsentBasedRedaction,omitempty"` // EnableInteractionLogging: Enables DF Interaction logging. EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"` // EnableStackdriverLogging: Enables StackDriver logging. EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnableInteractionLogging") - // 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. + // "EnableConsentBasedRedaction") 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. "EnableInteractionLogging") to + // NullFields is a list of field names (e.g. "EnableConsentBasedRedaction") 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. diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 5990ca52435..8cd49ff2119 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -5185,7 +5185,7 @@ } } }, - "revision": "20240704", + "revision": "20240721", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -5245,6 +5245,10 @@ "description": "Define behaviors on logging.", "id": "GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings", "properties": { + "enableConsentBasedRedaction": { + "description": "Enables consent-based end-user input redaction, if true, a pre-defined session parameter `$session.params.conversation-redaction` will be used to determine if the utterance should be redacted.", + "type": "boolean" + }, "enableInteractionLogging": { "description": "Enables DF Interaction logging.", "type": "boolean" @@ -7666,6 +7670,10 @@ "description": "Define behaviors on logging.", "id": "GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings", "properties": { + "enableConsentBasedRedaction": { + "description": "Enables consent-based end-user input redaction, if true, a pre-defined session parameter `$session.params.conversation-redaction` will be used to determine if the utterance should be redacted.", + "type": "boolean" + }, "enableInteractionLogging": { "description": "Enables DF Interaction logging.", "type": "boolean" @@ -13628,6 +13636,10 @@ "$ref": "GoogleCloudDialogflowCxV3beta1ToolAuthentication", "description": "Optional. Authentication information required by the API." }, + "serviceDirectoryConfig": { + "$ref": "GoogleCloudDialogflowCxV3beta1ToolServiceDirectoryConfig", + "description": "Optional. Service Directory configuration." + }, "textSchema": { "description": "Required. The OpenAPI schema specified as a text.", "type": "string" @@ -13639,6 +13651,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ToolServiceDirectoryConfig": { + "description": "Configuration for tools using Service Directory.", + "id": "GoogleCloudDialogflowCxV3beta1ToolServiceDirectoryConfig", + "properties": { + "service": { + "description": "Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. Format: `projects//locations//namespaces//services/`. `Location ID` of the service directory must be the same as the location of the agent.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ToolTLSConfig": { "description": "The TLS configuration.", "id": "GoogleCloudDialogflowCxV3beta1ToolTLSConfig", diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 0198499994a..c9f9d477b73 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -617,17 +617,22 @@ func (s GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings) MarshalJSON() ([] // GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings: Define behaviors // on logging. type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct { + // EnableConsentBasedRedaction: Enables consent-based end-user input redaction, + // if true, a pre-defined session parameter + // `$session.params.conversation-redaction` will be used to determine if the + // utterance should be redacted. + EnableConsentBasedRedaction bool `json:"enableConsentBasedRedaction,omitempty"` // EnableInteractionLogging: Enables DF Interaction logging. EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"` // EnableStackdriverLogging: Enables StackDriver logging. EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnableInteractionLogging") - // 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. + // "EnableConsentBasedRedaction") 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. "EnableInteractionLogging") to + // NullFields is a list of field names (e.g. "EnableConsentBasedRedaction") 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. @@ -4089,17 +4094,22 @@ func (s GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings) MarshalJSON( // GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings: Define // behaviors on logging. type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct { + // EnableConsentBasedRedaction: Enables consent-based end-user input redaction, + // if true, a pre-defined session parameter + // `$session.params.conversation-redaction` will be used to determine if the + // utterance should be redacted. + EnableConsentBasedRedaction bool `json:"enableConsentBasedRedaction,omitempty"` // EnableInteractionLogging: Enables DF Interaction logging. EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"` // EnableStackdriverLogging: Enables StackDriver logging. EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnableInteractionLogging") - // 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. + // "EnableConsentBasedRedaction") 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. "EnableInteractionLogging") to + // NullFields is a list of field names (e.g. "EnableConsentBasedRedaction") 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. @@ -12432,6 +12442,8 @@ func (s GoogleCloudDialogflowCxV3beta1ToolFunctionTool) MarshalJSON() ([]byte, e type GoogleCloudDialogflowCxV3beta1ToolOpenApiTool struct { // Authentication: Optional. Authentication information required by the API. Authentication *GoogleCloudDialogflowCxV3beta1ToolAuthentication `json:"authentication,omitempty"` + // ServiceDirectoryConfig: Optional. Service Directory configuration. + ServiceDirectoryConfig *GoogleCloudDialogflowCxV3beta1ToolServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"` // TextSchema: Required. The OpenAPI schema specified as a text. TextSchema string `json:"textSchema,omitempty"` // TlsConfig: Optional. TLS configuration for the HTTPS verification. @@ -12454,6 +12466,32 @@ func (s GoogleCloudDialogflowCxV3beta1ToolOpenApiTool) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ToolServiceDirectoryConfig: Configuration for +// tools using Service Directory. +type GoogleCloudDialogflowCxV3beta1ToolServiceDirectoryConfig struct { + // Service: Required. The name of Service Directory + // (https://cloud.google.com/service-directory) service. Format: + // `projects//locations//namespaces//services/`. `Location ID` of the service + // directory must be the same as the location of the agent. + Service string `json:"service,omitempty"` + // ForceSendFields is a list of field names (e.g. "Service") 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. "Service") 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 GoogleCloudDialogflowCxV3beta1ToolServiceDirectoryConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ToolServiceDirectoryConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ToolTLSConfig: The TLS configuration. type GoogleCloudDialogflowCxV3beta1ToolTLSConfig struct { // CaCerts: Required. Specifies a list of allowed custom CA certificates for diff --git a/discovery/v1/discovery-api.json b/discovery/v1/discovery-api.json index 8d8df5dbdee..7f089290534 100644 --- a/discovery/v1/discovery-api.json +++ b/discovery/v1/discovery-api.json @@ -234,6 +234,10 @@ "description": "The default value of this property (if one exists).", "type": "string" }, + "deprecated": { + "description": "Whether the parameter is deprecated.", + "type": "boolean" + }, "description": { "description": "A description of this object.", "type": "string" @@ -245,6 +249,13 @@ }, "type": "array" }, + "enumDeprecated": { + "description": "The deprecation status for the enums. Each position maps to the corresponding value in the \"enum\" array.", + "items": { + "type": "boolean" + }, + "type": "array" + }, "enumDescriptions": { "description": "The descriptions for the enums. Each position maps to the corresponding value in the \"enum\" array.", "items": { @@ -390,6 +401,32 @@ "description": "A link to human readable documentation for the API.", "type": "string" }, + "endpoints": { + "description": "A list of location-based endpoint objects for this API. Each object contains the endpoint URL, location, description and deprecation status.", + "items": { + "description": "A single endpoint object", + "properties": { + "deprecated": { + "description": "Whether this endpoint is deprecated", + "type": "boolean" + }, + "description": { + "description": "A string describing the host designated by the URL", + "type": "string" + }, + "endpointUrl": { + "description": "The URL of the endpoint target host", + "type": "string" + }, + "location": { + "description": "The location of the endpoint", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, "etag": { "description": "The ETag for this response.", "readOnly": true, @@ -518,6 +555,14 @@ "RestMethod": { "id": "RestMethod", "properties": { + "apiVersion": { + "description": "The API Version of this method, as passed in via the `X-Goog-Api-Version` header or `$apiVersion` query parameter.", + "type": "string" + }, + "deprecated": { + "description": "Whether this method is deprecated.", + "type": "boolean" + }, "description": { "description": "Description of this method.", "type": "string" @@ -663,6 +708,10 @@ "RestResource": { "id": "RestResource", "properties": { + "deprecated": { + "description": "Whether this resource is deprecated.", + "type": "boolean" + }, "methods": { "additionalProperties": { "$ref": "RestMethod", diff --git a/discovery/v1/discovery-gen.go b/discovery/v1/discovery-gen.go index 00ab760ca62..de1adc454c6 100644 --- a/discovery/v1/discovery-gen.go +++ b/discovery/v1/discovery-gen.go @@ -257,10 +257,15 @@ type JsonSchema struct { Annotations *JsonSchemaAnnotations `json:"annotations,omitempty"` // Default: The default value of this property (if one exists). Default string `json:"default,omitempty"` + // Deprecated -- Whether the parameter is deprecated. + Deprecated bool `json:"deprecated,omitempty"` // Description: A description of this object. Description string `json:"description,omitempty"` // Enum: Values this parameter may take (if it is an enum). Enum []string `json:"enum,omitempty"` + // EnumDeprecated: The deprecation status for the enums. Each position maps to + // the corresponding value in the "enum" array. + EnumDeprecated []bool `json:"enumDeprecated,omitempty"` // EnumDescriptions: The descriptions for the enums. Each position maps to the // corresponding value in the "enum" array. EnumDescriptions []string `json:"enumDescriptions,omitempty"` @@ -408,6 +413,10 @@ type RestDescription struct { DiscoveryVersion string `json:"discoveryVersion,omitempty"` // DocumentationLink: A link to human readable documentation for the API. DocumentationLink string `json:"documentationLink,omitempty"` + // Endpoints: A list of location-based endpoint objects for this API. Each + // object contains the endpoint URL, location, description and deprecation + // status. + Endpoints []*RestDescriptionEndpoints `json:"endpoints,omitempty"` // Etag: The ETag for this response. Etag string `json:"etag,omitempty"` // ExponentialBackoffDefault: Enable exponential backoff for suitable methods @@ -541,6 +550,34 @@ func (s RestDescriptionAuthOauth2Scopes) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// RestDescriptionEndpoints: A single endpoint object +type RestDescriptionEndpoints struct { + // Deprecated -- Whether this endpoint is deprecated + Deprecated bool `json:"deprecated,omitempty"` + // Description: A string describing the host designated by the URL + Description string `json:"description,omitempty"` + // EndpointUrl: The URL of the endpoint target host + EndpointUrl string `json:"endpointUrl,omitempty"` + // Location: The location of the endpoint + Location string `json:"location,omitempty"` + // ForceSendFields is a list of field names (e.g. "Deprecated") 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. "Deprecated") 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 RestDescriptionEndpoints) MarshalJSON() ([]byte, error) { + type NoMethod RestDescriptionEndpoints + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RestDescriptionIcons: Links to 16x16 and 32x32 icons representing the API. type RestDescriptionIcons struct { // X16: The URL of the 16x16 icon. @@ -566,6 +603,11 @@ func (s RestDescriptionIcons) MarshalJSON() ([]byte, error) { } type RestMethod struct { + // ApiVersion: The API Version of this method, as passed in via the + // `X-Goog-Api-Version` header or `$apiVersion` query parameter. + ApiVersion string `json:"apiVersion,omitempty"` + // Deprecated -- Whether this method is deprecated. + Deprecated bool `json:"deprecated,omitempty"` // Description: Description of this method. Description string `json:"description,omitempty"` // EtagRequired: Whether this method requires an ETag to be specified. The ETag @@ -606,13 +648,13 @@ type RestMethod struct { // use the download service URL (i.e. "/download"). Only applies if the method // supports media download. UseMediaDownloadService bool `json:"useMediaDownloadService,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // ForceSendFields is a list of field names (e.g. "ApiVersion") 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 + // NullFields is a list of field names (e.g. "ApiVersion") 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. @@ -777,17 +819,19 @@ func (s RestMethodResponse) MarshalJSON() ([]byte, error) { } type RestResource struct { + // Deprecated -- Whether this resource is deprecated. + Deprecated bool `json:"deprecated,omitempty"` // Methods: Methods on this resource. Methods map[string]RestMethod `json:"methods,omitempty"` // Resources: Sub-resources on this resource. Resources map[string]RestResource `json:"resources,omitempty"` - // ForceSendFields is a list of field names (e.g. "Methods") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "Deprecated") 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. "Methods") to include in API + // NullFields is a list of field names (e.g. "Deprecated") 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. diff --git a/dns/v1/dns-api.json b/dns/v1/dns-api.json index 780a1140f46..ba51c634b1d 100644 --- a/dns/v1/dns-api.json +++ b/dns/v1/dns-api.json @@ -1824,7 +1824,7 @@ } } }, - "revision": "20240531", + "revision": "20240719", "rootUrl": "https://dns.googleapis.com/", "schemas": { "Change": { @@ -2893,6 +2893,10 @@ "format": "int32", "type": "integer" }, + "internetHealthChecksPerManagedZone": { + "format": "int32", + "type": "integer" + }, "itemsPerRoutingPolicy": { "description": "Maximum allowed number of items per routing policy.", "format": "int32", @@ -3009,6 +3013,10 @@ "geo": { "$ref": "RRSetRoutingPolicyGeoPolicy" }, + "healthCheck": { + "description": "The selfLink attribute of the HealthCheck resource to use for this RRSetRoutingPolicy. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks", + "type": "string" + }, "kind": { "default": "dns#rRSetRoutingPolicy", "type": "string" @@ -3080,6 +3088,13 @@ "description": "HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response.", "id": "RRSetRoutingPolicyHealthCheckTargets", "properties": { + "externalEndpoints": { + "description": "The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1)", + "items": { + "type": "string" + }, + "type": "array" + }, "internalLoadBalancers": { "description": "Configuration for internal load balancers to be health checked.", "items": { diff --git a/dns/v1/dns-gen.go b/dns/v1/dns-gen.go index ef6c9f99fdc..6068a09d91d 100644 --- a/dns/v1/dns-gen.go +++ b/dns/v1/dns-gen.go @@ -1844,7 +1844,8 @@ type Quota struct { GkeClustersPerPolicy int64 `json:"gkeClustersPerPolicy,omitempty"` // GkeClustersPerResponsePolicy: Maximum allowed number of GKE clusters per // response policy. - GkeClustersPerResponsePolicy int64 `json:"gkeClustersPerResponsePolicy,omitempty"` + GkeClustersPerResponsePolicy int64 `json:"gkeClustersPerResponsePolicy,omitempty"` + InternetHealthChecksPerManagedZone int64 `json:"internetHealthChecksPerManagedZone,omitempty"` // ItemsPerRoutingPolicy: Maximum allowed number of items per routing policy. ItemsPerRoutingPolicy int64 `json:"itemsPerRoutingPolicy,omitempty"` Kind string `json:"kind,omitempty"` @@ -1923,7 +1924,11 @@ func (s Quota) MarshalJSON() ([]byte, error) { // that is returned dynamically with the response varying based on configured // properties such as geolocation or by weighted random selection. type RRSetRoutingPolicy struct { - Geo *RRSetRoutingPolicyGeoPolicy `json:"geo,omitempty"` + Geo *RRSetRoutingPolicyGeoPolicy `json:"geo,omitempty"` + // HealthCheck: The selfLink attribute of the HealthCheck resource to use for + // this RRSetRoutingPolicy. + // https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks + HealthCheck string `json:"healthCheck,omitempty"` Kind string `json:"kind,omitempty"` PrimaryBackup *RRSetRoutingPolicyPrimaryBackupPolicy `json:"primaryBackup,omitempty"` Wrr *RRSetRoutingPolicyWrrPolicy `json:"wrr,omitempty"` @@ -2017,18 +2022,22 @@ func (s RRSetRoutingPolicyGeoPolicyGeoPolicyItem) MarshalJSON() ([]byte, error) // to health-check when responding to Routing Policy queries. Only the healthy // endpoints will be included in the response. type RRSetRoutingPolicyHealthCheckTargets struct { + // ExternalEndpoints: The Internet IP addresses to be health checked. The + // format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 + // (section 5) and RFC 1034 (section 3.6.1) + ExternalEndpoints []string `json:"externalEndpoints,omitempty"` // InternalLoadBalancers: Configuration for internal load balancers to be // health checked. InternalLoadBalancers []*RRSetRoutingPolicyLoadBalancerTarget `json:"internalLoadBalancers,omitempty"` - // ForceSendFields is a list of field names (e.g. "InternalLoadBalancers") to + // ForceSendFields is a list of field names (e.g. "ExternalEndpoints") 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. "InternalLoadBalancers") 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. "ExternalEndpoints") 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:"-"` } diff --git a/dns/v1beta2/dns-api.json b/dns/v1beta2/dns-api.json index ee6e9732b2c..7544acd9cd8 100644 --- a/dns/v1beta2/dns-api.json +++ b/dns/v1beta2/dns-api.json @@ -1821,7 +1821,7 @@ } } }, - "revision": "20240531", + "revision": "20240719", "rootUrl": "https://dns.googleapis.com/", "schemas": { "Change": { @@ -2890,6 +2890,10 @@ "format": "int32", "type": "integer" }, + "internetHealthChecksPerManagedZone": { + "format": "int32", + "type": "integer" + }, "itemsPerRoutingPolicy": { "description": "Maximum allowed number of items per routing policy.", "format": "int32", @@ -3010,6 +3014,10 @@ "$ref": "RRSetRoutingPolicyGeoPolicy", "deprecated": true }, + "healthCheck": { + "description": "The selfLink attribute of the HealthCheck resource to use for this RRSetRoutingPolicy. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks", + "type": "string" + }, "kind": { "default": "dns#rRSetRoutingPolicy", "type": "string" @@ -3085,6 +3093,13 @@ "description": "HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response.", "id": "RRSetRoutingPolicyHealthCheckTargets", "properties": { + "externalEndpoints": { + "description": "The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1)", + "items": { + "type": "string" + }, + "type": "array" + }, "internalLoadBalancers": { "description": "Configuration for internal load balancers to be health checked.", "items": { diff --git a/dns/v1beta2/dns-gen.go b/dns/v1beta2/dns-gen.go index d29ec9267c7..082a6a15d9f 100644 --- a/dns/v1beta2/dns-gen.go +++ b/dns/v1beta2/dns-gen.go @@ -1844,7 +1844,8 @@ type Quota struct { GkeClustersPerPolicy int64 `json:"gkeClustersPerPolicy,omitempty"` // GkeClustersPerResponsePolicy: Maximum allowed number of GKE clusters per // response policy. - GkeClustersPerResponsePolicy int64 `json:"gkeClustersPerResponsePolicy,omitempty"` + GkeClustersPerResponsePolicy int64 `json:"gkeClustersPerResponsePolicy,omitempty"` + InternetHealthChecksPerManagedZone int64 `json:"internetHealthChecksPerManagedZone,omitempty"` // ItemsPerRoutingPolicy: Maximum allowed number of items per routing policy. ItemsPerRoutingPolicy int64 `json:"itemsPerRoutingPolicy,omitempty"` Kind string `json:"kind,omitempty"` @@ -1923,8 +1924,12 @@ func (s Quota) MarshalJSON() ([]byte, error) { // that is returned dynamically with the response varying based on configured // properties such as geolocation or by weighted random selection. type RRSetRoutingPolicy struct { - Geo *RRSetRoutingPolicyGeoPolicy `json:"geo,omitempty"` - GeoPolicy *RRSetRoutingPolicyGeoPolicy `json:"geoPolicy,omitempty"` + Geo *RRSetRoutingPolicyGeoPolicy `json:"geo,omitempty"` + GeoPolicy *RRSetRoutingPolicyGeoPolicy `json:"geoPolicy,omitempty"` + // HealthCheck: The selfLink attribute of the HealthCheck resource to use for + // this RRSetRoutingPolicy. + // https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks + HealthCheck string `json:"healthCheck,omitempty"` Kind string `json:"kind,omitempty"` PrimaryBackup *RRSetRoutingPolicyPrimaryBackupPolicy `json:"primaryBackup,omitempty"` Wrr *RRSetRoutingPolicyWrrPolicy `json:"wrr,omitempty"` @@ -2019,18 +2024,22 @@ func (s RRSetRoutingPolicyGeoPolicyGeoPolicyItem) MarshalJSON() ([]byte, error) // to health-check when responding to Routing Policy queries. Only the healthy // endpoints will be included in the response. type RRSetRoutingPolicyHealthCheckTargets struct { + // ExternalEndpoints: The Internet IP addresses to be health checked. The + // format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 + // (section 5) and RFC 1034 (section 3.6.1) + ExternalEndpoints []string `json:"externalEndpoints,omitempty"` // InternalLoadBalancers: Configuration for internal load balancers to be // health checked. InternalLoadBalancers []*RRSetRoutingPolicyLoadBalancerTarget `json:"internalLoadBalancers,omitempty"` - // ForceSendFields is a list of field names (e.g. "InternalLoadBalancers") to + // ForceSendFields is a list of field names (e.g. "ExternalEndpoints") 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. "InternalLoadBalancers") 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. "ExternalEndpoints") 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:"-"` } diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json index d50643ea384..1442f5c4961 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json @@ -585,7 +585,7 @@ } } }, - "revision": "20240717", + "revision": "20240724", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "schemas": { "GoogleFirebaseAppdistroV1Release": { @@ -1250,7 +1250,7 @@ "properties": { "aiInstructions": { "$ref": "GoogleFirebaseAppdistroV1alphaAiInstructions", - "description": "Optional. Input only. Instructions for AI driven test. Input only." + "description": "Optional. Instructions for AI driven test." }, "createTime": { "description": "Output only. Timestamp when the test was run.", diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go index 5c834383389..3586844306e 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go @@ -1014,8 +1014,7 @@ func (s GoogleFirebaseAppdistroV1alphaReleaseNotes) MarshalJSON() ([]byte, error // GoogleFirebaseAppdistroV1alphaReleaseTest: The results of running an // automated test on a release. type GoogleFirebaseAppdistroV1alphaReleaseTest struct { - // AiInstructions: Optional. Input only. Instructions for AI driven test. Input - // only. + // AiInstructions: Optional. Instructions for AI driven test. AiInstructions *GoogleFirebaseAppdistroV1alphaAiInstructions `json:"aiInstructions,omitempty"` // CreateTime: Output only. Timestamp when the test was run. CreateTime string `json:"createTime,omitempty"` diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 2392546cd11..0e19b009e57 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20240722", + "revision": "20240724", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -708,6 +708,10 @@ "$ref": "GoogleCloudAiplatformV1beta1Schema", "description": "Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response." }, + "routingConfig": { + "$ref": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig", + "description": "Optional. Routing configuration." + }, "stopSequences": { "description": "Optional. Stop sequences.", "items": { @@ -733,6 +737,55 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig": { + "description": "Routing config.", + "id": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig", + "properties": { + "autoMode": { + "$ref": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode", + "description": "Automated routing." + }, + "manualMode": { + "$ref": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode", + "description": "Manual routing." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode": { + "description": "When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference.", + "id": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode", + "properties": { + "modelRoutingPreference": { + "description": "The model routing preference.", + "enum": [ + "UNKNOWN", + "PRIORITIZE_QUALITY", + "BALANCED", + "PRIORITIZE_COST" + ], + "enumDescriptions": [ + "Unspecified model routing preference.", + "Prefer higher quality over low cost.", + "Balanced model routing preference.", + "Prefer lower cost over higher quality." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode": { + "description": "When manual routing is set, the specified model will be used directly.", + "id": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode", + "properties": { + "modelName": { + "description": "The model name to use. Only the public LLM models are accepted. e.g. gemini-1.5-pro-001.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval": { "description": "Tool to retrieve public web data for grounding, powered by Google.", "id": "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval", diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index a0bbcf1e0eb..d771014501a 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -809,6 +809,8 @@ type GoogleCloudAiplatformV1beta1GenerationConfig struct { // response_mime_type must also be set. Compatible mimetypes: // `application/json`: Schema for JSON response. ResponseSchema *GoogleCloudAiplatformV1beta1Schema `json:"responseSchema,omitempty"` + // RoutingConfig: Optional. Routing configuration. + RoutingConfig *GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig `json:"routingConfig,omitempty"` // StopSequences: Optional. Stop sequences. StopSequences []string `json:"stopSequences,omitempty"` // Temperature: Optional. Controls the randomness of predictions. @@ -857,6 +859,84 @@ func (s *GoogleCloudAiplatformV1beta1GenerationConfig) UnmarshalJSON(data []byte return nil } +// GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig: Routing config. +type GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig struct { + // AutoMode: Automated routing. + AutoMode *GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode `json:"autoMode,omitempty"` + // ManualMode: Manual routing. + ManualMode *GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode `json:"manualMode,omitempty"` + // ForceSendFields is a list of field names (e.g. "AutoMode") 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. "AutoMode") 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 GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode: +// When automated routing is specified, the routing will be determined by the +// pretrained routing model and customer provided model routing preference. +type GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode struct { + // ModelRoutingPreference: The model routing preference. + // + // Possible values: + // "UNKNOWN" - Unspecified model routing preference. + // "PRIORITIZE_QUALITY" - Prefer higher quality over low cost. + // "BALANCED" - Balanced model routing preference. + // "PRIORITIZE_COST" - Prefer lower cost over higher quality. + ModelRoutingPreference string `json:"modelRoutingPreference,omitempty"` + // ForceSendFields is a list of field names (e.g. "ModelRoutingPreference") 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. "ModelRoutingPreference") 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 GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode: +// When manual routing is set, the specified model will be used directly. +type GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode struct { + // ModelName: The model name to use. Only the public LLM models are accepted. + // e.g. gemini-1.5-pro-001. + ModelName string `json:"modelName,omitempty"` + // ForceSendFields is a list of field names (e.g. "ModelName") 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. "ModelName") 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 GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1GoogleSearchRetrieval: Tool to retrieve public // web data for grounding, powered by Google. type GoogleCloudAiplatformV1beta1GoogleSearchRetrieval struct { diff --git a/recaptchaenterprise/v1/recaptchaenterprise-api.json b/recaptchaenterprise/v1/recaptchaenterprise-api.json index 44adb374717..845300f0f40 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-api.json +++ b/recaptchaenterprise/v1/recaptchaenterprise-api.json @@ -349,6 +349,34 @@ }, "keys": { "methods": { + "addIpOverride": { + "description": "Adds an IP override to a key. The following restrictions hold: * The maximum number of IP overrides per key is 100. * For any conflict (such as IP already exists or IP part of an existing IP range), an error will be returned.", + "flatPath": "v1/projects/{projectsId}/keys/{keysId}:addIpOverride", + "httpMethod": "POST", + "id": "recaptchaenterprise.projects.keys.addIpOverride", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the key to which the IP override is added, in the format `projects/{project}/keys/{key}`.", + "location": "path", + "pattern": "^projects/[^/]+/keys/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:addIpOverride", + "request": { + "$ref": "GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest" + }, + "response": { + "$ref": "GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a new reCAPTCHA Enterprise key.", "flatPath": "v1/projects/{projectsId}/keys", @@ -694,7 +722,7 @@ } } }, - "revision": "20240713", + "revision": "20240721", "rootUrl": "https://recaptchaenterprise.googleapis.com/", "schemas": { "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": { @@ -778,6 +806,23 @@ }, "type": "object" }, + "GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest": { + "description": "The AddIpOverride request message.", + "id": "GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest", + "properties": { + "ipOverrideData": { + "$ref": "GoogleCloudRecaptchaenterpriseV1IpOverrideData", + "description": "Required. IP override added to the key." + } + }, + "type": "object" + }, + "GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse": { + "description": "Response for AddIpOverride.", + "id": "GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse", + "properties": {}, + "type": "object" + }, "GoogleCloudRecaptchaenterpriseV1AndroidKeySettings": { "description": "Settings specific to keys that can be used by Android apps.", "id": "GoogleCloudRecaptchaenterpriseV1AndroidKeySettings", @@ -1391,6 +1436,29 @@ }, "type": "object" }, + "GoogleCloudRecaptchaenterpriseV1IpOverrideData": { + "description": "Information about the IP or IP range override.", + "id": "GoogleCloudRecaptchaenterpriseV1IpOverrideData", + "properties": { + "ip": { + "description": "Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8:1234::/48", + "type": "string" + }, + "overrideType": { + "description": "Required. Describes the type of IP override.", + "enum": [ + "OVERRIDE_TYPE_UNSPECIFIED", + "ALLOW" + ], + "enumDescriptions": [ + "Default override type that indicates this enum hasn't been specified.", + "Allowlist the IP address; i.e. give a `risk_analysis.score` of 0.9 for all valid assessments." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRecaptchaenterpriseV1Key": { "description": "A key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.", "id": "GoogleCloudRecaptchaenterpriseV1Key", diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index 25ba2f52426..5cd4fb75733 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -326,6 +326,36 @@ func (s GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest: The AddIpOverride +// request message. +type GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest struct { + // IpOverrideData: Required. IP override added to the key. + IpOverrideData *GoogleCloudRecaptchaenterpriseV1IpOverrideData `json:"ipOverrideData,omitempty"` + // ForceSendFields is a list of field names (e.g. "IpOverrideData") 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. "IpOverrideData") 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 GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse: Response for +// AddIpOverride. +type GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse struct { + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` +} + // GoogleCloudRecaptchaenterpriseV1AndroidKeySettings: Settings specific to // keys that can be used by Android apps. type GoogleCloudRecaptchaenterpriseV1AndroidKeySettings struct { @@ -1190,6 +1220,41 @@ func (s GoogleCloudRecaptchaenterpriseV1IOSKeySettings) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRecaptchaenterpriseV1IpOverrideData: Information about the IP or +// IP range override. +type GoogleCloudRecaptchaenterpriseV1IpOverrideData struct { + // Ip: Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP + // override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP + // override must be a public IP address. Example of IPv4: 168.192.5.6 Example + // of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: + // 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8:1234::/48 + Ip string `json:"ip,omitempty"` + // OverrideType: Required. Describes the type of IP override. + // + // Possible values: + // "OVERRIDE_TYPE_UNSPECIFIED" - Default override type that indicates this + // enum hasn't been specified. + // "ALLOW" - Allowlist the IP address; i.e. give a `risk_analysis.score` of + // 0.9 for all valid assessments. + OverrideType string `json:"overrideType,omitempty"` + // ForceSendFields is a list of field names (e.g. "Ip") 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. "Ip") 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 GoogleCloudRecaptchaenterpriseV1IpOverrideData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecaptchaenterpriseV1IpOverrideData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRecaptchaenterpriseV1Key: A key used to identify and configure // applications (web and/or mobile) that use reCAPTCHA Enterprise. type GoogleCloudRecaptchaenterpriseV1Key struct { @@ -3354,6 +3419,112 @@ func (c *ProjectsFirewallpoliciesReorderCall) Do(opts ...googleapi.CallOption) ( return ret, nil } +type ProjectsKeysAddIpOverrideCall struct { + s *Service + name string + googlecloudrecaptchaenterprisev1addipoverriderequest *GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AddIpOverride: Adds an IP override to a key. The following restrictions +// hold: * The maximum number of IP overrides per key is 100. * For any +// conflict (such as IP already exists or IP part of an existing IP range), an +// error will be returned. +// +// - name: The name of the key to which the IP override is added, in the format +// `projects/{project}/keys/{key}`. +func (r *ProjectsKeysService) AddIpOverride(name string, googlecloudrecaptchaenterprisev1addipoverriderequest *GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest) *ProjectsKeysAddIpOverrideCall { + c := &ProjectsKeysAddIpOverrideCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudrecaptchaenterprisev1addipoverriderequest = googlecloudrecaptchaenterprisev1addipoverriderequest + 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 *ProjectsKeysAddIpOverrideCall) Fields(s ...googleapi.Field) *ProjectsKeysAddIpOverrideCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsKeysAddIpOverrideCall) Context(ctx context.Context) *ProjectsKeysAddIpOverrideCall { + 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 *ProjectsKeysAddIpOverrideCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsKeysAddIpOverrideCall) 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.googlecloudrecaptchaenterprisev1addipoverriderequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:addIpOverride") + 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) +} + +// Do executes the "recaptchaenterprise.projects.keys.addIpOverride" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse.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 *ProjectsKeysAddIpOverrideCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse, 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 := &GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse{ + 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 ProjectsKeysCreateCall struct { s *Service parent string