Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186782,6 +186782,7 @@
"/developerknowledge:v1/BatchGetDocumentsResponse/documents/document": document
"/developerknowledge:v1/Document": document
"/developerknowledge:v1/Document/content": content
"/developerknowledge:v1/Document/contentLengthBytes": content_length_bytes
"/developerknowledge:v1/Document/dataSource": data_source
"/developerknowledge:v1/Document/description": description
"/developerknowledge:v1/Document/name": name
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-developerknowledge_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-developerknowledge_v1

### v0.5.0 (2026-07-12)

* Regenerated from discovery document revision 20260705

### v0.4.0 (2026-06-14)

* Regenerated using generator version 0.19.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ class Document
# @return [String]
attr_accessor :content

# Output only. The length of the `content` field in bytes.
# Corresponds to the JSON property `contentLengthBytes`
# @return [Fixnum]
attr_accessor :content_length_bytes

# Output only. Specifies the data source of the document. Example data source: `
# firebase.google.com`
# Corresponds to the JSON property `dataSource`
Expand Down Expand Up @@ -97,6 +102,7 @@ def initialize(**args)
# Update properties of this object
def update!(**args)
@content = args[:content] if args.key?(:content)
@content_length_bytes = args[:content_length_bytes] if args.key?(:content_length_bytes)
@data_source = args[:data_source] if args.key?(:data_source)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module DeveloperknowledgeV1
# Version of the google-apis-developerknowledge_v1 gem
GEM_VERSION = "0.4.0"
GEM_VERSION = "0.5.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.19.0"

# Revision of the discovery document this client was generated from
REVISION = "20260524"
REVISION = "20260705"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class Document
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content, as: 'content'
property :content_length_bytes, as: 'contentLengthBytes'
property :data_source, as: 'dataSource'
property :description, as: 'description'
property :name, as: 'name'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,31 +133,33 @@ def get_document(name, view: nil, fields: nil, quota_user: nil, options: nil, &b
# Optional. Applies a strict filter to the search results. The expression
# supports a subset of the syntax described at https://google.aip.dev/160. While
# `SearchDocumentChunks` returns DocumentChunks, the filter is applied to `
# DocumentChunk.document` fields. Supported fields for filtering: * `data_source`
# (STRING): The source of the document, e.g. `docs.cloud.google.com`. See https:
# //developers.google.com/knowledge/reference/corpus-reference for the complete
# list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp
# of when the document was last meaningfully updated. A meaningful update is one
# that changes document's markdown content or metadata. * `uri` (STRING): The
# document URI, e.g. `https://docs.cloud.google.com/bigquery/docs/tables`.
# STRING fields support `=` (equals) and `!=` (not equals) operators for **exact
# match** on the whole string. Partial match, prefix match, and regexp match are
# not supported. TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=`
# operators. Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"
# `. You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical
# operators. `OR` has higher precedence than `AND`. Use parentheses for explicit
# precedence grouping. Examples: * `data_source = "docs.cloud.google.com" OR
# data_source = "firebase.google.com"` * `data_source != "firebase.google.com"` *
# `update_time < "2024-01-01T00:00:00Z"` * `update_time >= "2025-01-22T00:00:
# 00Z" AND (data_source = "developer.chrome.com" OR data_source = "web.dev")` * `
# uri = "https://docs.cloud.google.com/release-notes"` The `filter` string must
# not exceed 500 characters; values longer than 500 characters will result in an
# `INVALID_ARGUMENT` error.
# DocumentChunk.document` fields. Supported fields for filtering: * `
# content_length_bytes` (INTEGER): The length of the `Document.content` field in
# bytes. * `data_source` (STRING): The source of the document, e.g. `docs.cloud.
# google.com`. See https://developers.google.com/knowledge/reference/corpus-
# reference for the complete list of data sources in the corpus. * `update_time`
# (TIMESTAMP): The timestamp of when the document was last meaningfully updated.
# A meaningful update is one that changes document's markdown content or
# metadata. * `uri` (STRING): The document URI, e.g. `https://docs.cloud.google.
# com/bigquery/docs/tables`. INTEGER fields support `=`, `<`, `<=`, `>`, and `>=`
# operators. STRING fields support `=` (equals) and `!=` (not equals) operators
# for **exact match** on the whole string. Partial match, prefix match, and
# regexp match are not supported. TIMESTAMP fields support `=`, `<`, `<=`, `>`,
# and `>=` operators. Timestamps must be in RFC-3339 format, e.g., `"2025-01-
# 01T00:00:00Z"`. You can combine expressions using `AND`, `OR`, and `NOT` (or `-
# `) logical operators. `OR` has higher precedence than `AND`. Use parentheses
# for explicit precedence grouping. Examples: * Filter by `Document.
# content_length_bytes`: `content_length_bytes < 50000` * `data_source = "docs.
# cloud.google.com" OR data_source = "firebase.google.com"` * `data_source != "
# firebase.google.com"` * `update_time < "2024-01-01T00:00:00Z"` * `update_time >
# = "2025-01-22T00:00:00Z" AND (data_source = "developer.chrome.com" OR
# data_source = "web.dev")` * `uri = "https://docs.cloud.google.com/release-
# notes"` The `filter` string must not exceed 500 characters; values longer than
# 500 characters will result in an `INVALID_ARGUMENT` error.
# @param [Fixnum] page_size
# Optional. Specifies the maximum number of results to return. The service may
# return fewer than this value. If unspecified, at most 5 results will be
# returned. The maximum value is 20; values above 20 will result in an
# INVALID_ARGUMENT error.
# returned. The maximum value is 100; values above 100 will be coerced to 100.
# @param [String] page_token
# Optional. Contains a page token, received from a previous `
# SearchDocumentChunks` call. Provide this to retrieve the subsequent page.
Expand Down
Loading