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
3 changes: 3 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -427804,6 +427804,8 @@
"/workspaceevents:v1/DataPart": data_part
"/workspaceevents:v1/DataPart/data": data
"/workspaceevents:v1/DataPart/data/datum": datum
"/workspaceevents:v1/DriveOptions": drive_options
"/workspaceevents:v1/DriveOptions/includeDescendants": include_descendants
"/workspaceevents:v1/Empty": empty
"/workspaceevents:v1/FilePart": file_part
"/workspaceevents:v1/FilePart/fileWithBytes": file_with_bytes
Expand Down Expand Up @@ -427920,6 +427922,7 @@
"/workspaceevents:v1/Subscription": subscription
"/workspaceevents:v1/Subscription/authority": authority
"/workspaceevents:v1/Subscription/createTime": create_time
"/workspaceevents:v1/Subscription/driveOptions": drive_options
"/workspaceevents:v1/Subscription/etag": etag
"/workspaceevents:v1/Subscription/eventTypes": event_types
"/workspaceevents:v1/Subscription/eventTypes/event_type": event_type
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-workspaceevents_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-workspaceevents_v1

### v0.24.0 (2026-05-17)

* Regenerated from discovery document revision 20260510

### v0.23.0 (2026-04-26)

* Regenerated from discovery document revision 20260422
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,33 @@ def update!(**args)
end
end

# Additional supported options for serving Drive events.
class DriveOptions
include Google::Apis::Core::Hashable

# Optional. Immutable. For subscriptions to Google Drive events, whether to
# receive events about Drive files that are children of the target folder or
# shared drive. * If `false`, the subscription only receives events about
# changes to the folder or shared drive that's specified as the `targetResource`.
# * If `true`, the `mimeType` field of the `file` resource must be set to `
# application/vnd.google-apps.folder`. For details, see [Google Drive event
# types](https://developers.google.com/workspace/events/guides/events-drive#
# event-types).
# Corresponds to the JSON property `includeDescendants`
# @return [Boolean]
attr_accessor :include_descendants
alias_method :include_descendants?, :include_descendants

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@include_descendants = args[:include_descendants] if args.key?(:include_descendants)
end
end

# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
Expand Down Expand Up @@ -728,6 +755,11 @@ class Subscription
# @return [String]
attr_accessor :create_time

# Additional supported options for serving Drive events.
# Corresponds to the JSON property `driveOptions`
# @return [Google::Apis::WorkspaceeventsV1::DriveOptions]
attr_accessor :drive_options

# Optional. This checksum is computed by the server based on the value of other
# fields, and might be sent on update requests to ensure the client has an up-to-
# date value before proceeding.
Expand Down Expand Up @@ -843,6 +875,7 @@ def initialize(**args)
def update!(**args)
@authority = args[:authority] if args.key?(:authority)
@create_time = args[:create_time] if args.key?(:create_time)
@drive_options = args[:drive_options] if args.key?(:drive_options)
@etag = args[:etag] if args.key?(:etag)
@event_types = args[:event_types] if args.key?(:event_types)
@expire_time = args[:expire_time] if args.key?(:expire_time)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module WorkspaceeventsV1
# Version of the google-apis-workspaceevents_v1 gem
GEM_VERSION = "0.23.0"
GEM_VERSION = "0.24.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20260422"
REVISION = "20260510"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class DriveOptions
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -207,6 +213,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class DriveOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :include_descendants, as: 'includeDescendants'
end
end

class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -362,6 +375,8 @@ class Subscription
class Representation < Google::Apis::Core::JsonRepresentation
property :authority, as: 'authority'
property :create_time, as: 'createTime'
property :drive_options, as: 'driveOptions', class: Google::Apis::WorkspaceeventsV1::DriveOptions, decorator: Google::Apis::WorkspaceeventsV1::DriveOptions::Representation

property :etag, as: 'etag'
collection :event_types, as: 'eventTypes'
property :expire_time, as: 'expireTime'
Expand Down
Loading