Skip to content

Commit e7709cd

Browse files
feat: Automated regeneration of drivelabels v2beta client (googleapis#23346)
Auto-created at 2025-06-08 09:56:45 +0000 using the toys pull request generator.
1 parent 1761ad9 commit e7709cd

File tree

6 files changed

+190
-3
lines changed

6 files changed

+190
-3
lines changed

api_names_out.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234909,6 +234909,7 @@
234909234909
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabel/disableTime": disable_time
234910234910
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabel/disabler": disabler
234911234911
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabel/displayHints": display_hints
234912+
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabel/enabledAppSettings": enabled_app_settings
234912234913
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabel/fields": fields
234913234914
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabel/fields/field": field
234914234915
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabel/id": id
@@ -234935,6 +234936,11 @@
234935234936
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabelDisplayHints/hiddenInSearch": hidden_in_search
234936234937
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabelDisplayHints/priority": priority
234937234938
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabelDisplayHints/shownInApply": shown_in_apply
234939+
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabelEnabledAppSettings": google_apps_drive_labels_v2beta_label_enabled_app_settings
234940+
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabelEnabledAppSettings/enabledApps": enabled_apps
234941+
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabelEnabledAppSettings/enabledApps/enabled_app": enabled_app
234942+
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabelEnabledAppSettingsEnabledApp": google_apps_drive_labels_v2beta_label_enabled_app_settings_enabled_app
234943+
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabelEnabledAppSettingsEnabledApp/app": app
234938234944
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabelLimits": google_apps_drive_labels_v2beta_label_limits
234939234945
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabelLimits/fieldLimits": field_limits
234940234946
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaLabelLimits/maxDeletedFields": max_deleted_fields
@@ -235014,6 +235020,11 @@
235014235020
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest/languageCode": language_code
235015235021
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest/useAdminAccess": use_admin_access
235016235022
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest/view": view
235023+
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaUpdateLabelEnabledAppSettingsRequest": google_apps_drive_labels_v2beta_update_label_enabled_app_settings_request
235024+
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaUpdateLabelEnabledAppSettingsRequest/enabledAppSettings": enabled_app_settings
235025+
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaUpdateLabelEnabledAppSettingsRequest/languageCode": language_code
235026+
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaUpdateLabelEnabledAppSettingsRequest/useAdminAccess": use_admin_access
235027+
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaUpdateLabelEnabledAppSettingsRequest/view": view
235017235028
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest": google_apps_drive_labels_v2beta_update_label_permission_request
235018235029
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest/labelPermission": label_permission
235019235030
"/drivelabels:v2beta/GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest/parent": parent
@@ -235121,6 +235132,8 @@
235121235132
"/drivelabels:v2beta/drivelabels.labels.revisions.updatePermissions/useAdminAccess": use_admin_access
235122235133
"/drivelabels:v2beta/drivelabels.labels.updateLabelCopyMode": update_label_label_copy_mode
235123235134
"/drivelabels:v2beta/drivelabels.labels.updateLabelCopyMode/name": name
235135+
"/drivelabels:v2beta/drivelabels.labels.updateLabelEnabledAppSettings": update_label_label_enabled_app_settings
235136+
"/drivelabels:v2beta/drivelabels.labels.updateLabelEnabledAppSettings/name": name
235124235137
"/drivelabels:v2beta/drivelabels.labels.updatePermissions": update_label_permissions
235125235138
"/drivelabels:v2beta/drivelabels.labels.updatePermissions/parent": parent
235126235139
"/drivelabels:v2beta/drivelabels.labels.updatePermissions/useAdminAccess": use_admin_access

generated/google-apis-drivelabels_v2beta/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-drivelabels_v2beta
22

3+
### v0.17.0 (2025-06-08)
4+
5+
* Regenerated from discovery document revision 20250602
6+
* Regenerated using generator version 0.18.0
7+
38
### v0.16.0 (2025-05-04)
49

510
* Regenerated using generator version 0.17.0

generated/google-apis-drivelabels_v2beta/lib/google/apis/drivelabels_v2beta/classes.rb

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,6 +2192,11 @@ class GoogleAppsDriveLabelsV2betaLabel
21922192
# @return [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelDisplayHints]
21932193
attr_accessor :display_hints
21942194

2195+
# Describes the Workspace apps in which the Label can be used.
2196+
# Corresponds to the JSON property `enabledAppSettings`
2197+
# @return [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelEnabledAppSettings]
2198+
attr_accessor :enabled_app_settings
2199+
21952200
# List of fields in descending priority order.
21962201
# Corresponds to the JSON property `fields`
21972202
# @return [Array<Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaField>]
@@ -2295,6 +2300,7 @@ def update!(**args)
22952300
@disable_time = args[:disable_time] if args.key?(:disable_time)
22962301
@disabler = args[:disabler] if args.key?(:disabler)
22972302
@display_hints = args[:display_hints] if args.key?(:display_hints)
2303+
@enabled_app_settings = args[:enabled_app_settings] if args.key?(:enabled_app_settings)
22982304
@fields = args[:fields] if args.key?(:fields)
22992305
@id = args[:id] if args.key?(:id)
23002306
@label_type = args[:label_type] if args.key?(:label_type)
@@ -2407,6 +2413,44 @@ def update!(**args)
24072413
end
24082414
end
24092415

2416+
# Describes the Workspace apps in which the Label can be used.
2417+
class GoogleAppsDriveLabelsV2betaLabelEnabledAppSettings
2418+
include Google::Apis::Core::Hashable
2419+
2420+
# Optional. The list of Apps where the Label can be used.
2421+
# Corresponds to the JSON property `enabledApps`
2422+
# @return [Array<Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelEnabledAppSettingsEnabledApp>]
2423+
attr_accessor :enabled_apps
2424+
2425+
def initialize(**args)
2426+
update!(**args)
2427+
end
2428+
2429+
# Update properties of this object
2430+
def update!(**args)
2431+
@enabled_apps = args[:enabled_apps] if args.key?(:enabled_apps)
2432+
end
2433+
end
2434+
2435+
# An App where the Label can be used.
2436+
class GoogleAppsDriveLabelsV2betaLabelEnabledAppSettingsEnabledApp
2437+
include Google::Apis::Core::Hashable
2438+
2439+
# Optional. The name of the App.
2440+
# Corresponds to the JSON property `app`
2441+
# @return [String]
2442+
attr_accessor :app
2443+
2444+
def initialize(**args)
2445+
update!(**args)
2446+
end
2447+
2448+
# Update properties of this object
2449+
def update!(**args)
2450+
@app = args[:app] if args.key?(:app)
2451+
end
2452+
end
2453+
24102454
# Label constraints governing the structure of a Label; such as, the maximum
24112455
# number of Fields allowed and maximum length of the label title.
24122456
class GoogleAppsDriveLabelsV2betaLabelLimits
@@ -3036,6 +3080,49 @@ def update!(**args)
30363080
end
30373081
end
30383082

3083+
# Request to update the `EnabledAppSettings` of the given Label. This change is
3084+
# not revisioned, does not require publishing, and takes effect immediately. \
3085+
class GoogleAppsDriveLabelsV2betaUpdateLabelEnabledAppSettingsRequest
3086+
include Google::Apis::Core::Hashable
3087+
3088+
# Describes the Workspace apps in which the Label can be used.
3089+
# Corresponds to the JSON property `enabledAppSettings`
3090+
# @return [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelEnabledAppSettings]
3091+
attr_accessor :enabled_app_settings
3092+
3093+
# Optional. The BCP-47 language code to use for evaluating localized field
3094+
# labels. When not specified, values in the default configured language will be
3095+
# used.
3096+
# Corresponds to the JSON property `languageCode`
3097+
# @return [String]
3098+
attr_accessor :language_code
3099+
3100+
# Optional. Set to `true` in order to use the user's admin credentials. The
3101+
# server will verify the user is an admin for the Label before allowing access.
3102+
# Corresponds to the JSON property `useAdminAccess`
3103+
# @return [Boolean]
3104+
attr_accessor :use_admin_access
3105+
alias_method :use_admin_access?, :use_admin_access
3106+
3107+
# Optional. When specified, only certain fields belonging to the indicated view
3108+
# will be returned.
3109+
# Corresponds to the JSON property `view`
3110+
# @return [String]
3111+
attr_accessor :view
3112+
3113+
def initialize(**args)
3114+
update!(**args)
3115+
end
3116+
3117+
# Update properties of this object
3118+
def update!(**args)
3119+
@enabled_app_settings = args[:enabled_app_settings] if args.key?(:enabled_app_settings)
3120+
@language_code = args[:language_code] if args.key?(:language_code)
3121+
@use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
3122+
@view = args[:view] if args.key?(:view)
3123+
end
3124+
end
3125+
30393126
# Updates a Label Permission. Permissions affect the Label resource as a whole,
30403127
# are not revisioned, and do not require publishing.
30413128
class GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest

generated/google-apis-drivelabels_v2beta/lib/google/apis/drivelabels_v2beta/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DrivelabelsV2beta
1818
# Version of the google-apis-drivelabels_v2beta gem
19-
GEM_VERSION = "0.16.0"
19+
GEM_VERSION = "0.17.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.17.0"
22+
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250331"
25+
REVISION = "20250602"
2626
end
2727
end
2828
end

generated/google-apis-drivelabels_v2beta/lib/google/apis/drivelabels_v2beta/representations.rb

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
376376
include Google::Apis::Core::JsonObjectSupport
377377
end
378378

379+
class GoogleAppsDriveLabelsV2betaLabelEnabledAppSettings
380+
class Representation < Google::Apis::Core::JsonRepresentation; end
381+
382+
include Google::Apis::Core::JsonObjectSupport
383+
end
384+
385+
class GoogleAppsDriveLabelsV2betaLabelEnabledAppSettingsEnabledApp
386+
class Representation < Google::Apis::Core::JsonRepresentation; end
387+
388+
include Google::Apis::Core::JsonObjectSupport
389+
end
390+
379391
class GoogleAppsDriveLabelsV2betaLabelLimits
380392
class Representation < Google::Apis::Core::JsonRepresentation; end
381393

@@ -484,6 +496,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
484496
include Google::Apis::Core::JsonObjectSupport
485497
end
486498

499+
class GoogleAppsDriveLabelsV2betaUpdateLabelEnabledAppSettingsRequest
500+
class Representation < Google::Apis::Core::JsonRepresentation; end
501+
502+
include Google::Apis::Core::JsonObjectSupport
503+
end
504+
487505
class GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest
488506
class Representation < Google::Apis::Core::JsonRepresentation; end
489507

@@ -1149,6 +1167,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
11491167

11501168
property :display_hints, as: 'displayHints', class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelDisplayHints, decorator: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelDisplayHints::Representation
11511169

1170+
property :enabled_app_settings, as: 'enabledAppSettings', class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelEnabledAppSettings, decorator: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelEnabledAppSettings::Representation
1171+
11521172
collection :fields, as: 'fields', class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaField, decorator: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaField::Representation
11531173

11541174
property :id, as: 'id'
@@ -1199,6 +1219,21 @@ class Representation < Google::Apis::Core::JsonRepresentation
11991219
end
12001220
end
12011221

1222+
class GoogleAppsDriveLabelsV2betaLabelEnabledAppSettings
1223+
# @private
1224+
class Representation < Google::Apis::Core::JsonRepresentation
1225+
collection :enabled_apps, as: 'enabledApps', class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelEnabledAppSettingsEnabledApp, decorator: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelEnabledAppSettingsEnabledApp::Representation
1226+
1227+
end
1228+
end
1229+
1230+
class GoogleAppsDriveLabelsV2betaLabelEnabledAppSettingsEnabledApp
1231+
# @private
1232+
class Representation < Google::Apis::Core::JsonRepresentation
1233+
property :app, as: 'app'
1234+
end
1235+
end
1236+
12021237
class GoogleAppsDriveLabelsV2betaLabelLimits
12031238
# @private
12041239
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1373,6 +1408,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
13731408
end
13741409
end
13751410

1411+
class GoogleAppsDriveLabelsV2betaUpdateLabelEnabledAppSettingsRequest
1412+
# @private
1413+
class Representation < Google::Apis::Core::JsonRepresentation
1414+
property :enabled_app_settings, as: 'enabledAppSettings', class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelEnabledAppSettings, decorator: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelEnabledAppSettings::Representation
1415+
1416+
property :language_code, as: 'languageCode'
1417+
property :use_admin_access, as: 'useAdminAccess'
1418+
property :view, as: 'view'
1419+
end
1420+
end
1421+
13761422
class GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest
13771423
# @private
13781424
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-drivelabels_v2beta/lib/google/apis/drivelabels_v2beta/service.rb

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,42 @@ def update_label_label_copy_mode(name, google_apps_drive_labels_v2beta_update_la
427427
execute_or_queue_command(command, &block)
428428
end
429429

430+
# Updates a Label's EabledAppSettings. Enabling a Label in a Workspace
431+
# Application allows it to be used in that application. This change is not
432+
# revisioned, does not require publishing, and takes effect immediately.
433+
# @param [String] name
434+
# Required. The resource name of the Label to update. The resource name of the
435+
# Label to update.
436+
# @param [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUpdateLabelEnabledAppSettingsRequest] google_apps_drive_labels_v2beta_update_label_enabled_app_settings_request_object
437+
# @param [String] fields
438+
# Selector specifying which fields to include in a partial response.
439+
# @param [String] quota_user
440+
# Available to use for quota purposes for server-side applications. Can be any
441+
# arbitrary string assigned to a user, but should not exceed 40 characters.
442+
# @param [Google::Apis::RequestOptions] options
443+
# Request-specific options
444+
#
445+
# @yield [result, err] Result & error if block supplied
446+
# @yieldparam result [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabel] parsed result object
447+
# @yieldparam err [StandardError] error object if request failed
448+
#
449+
# @return [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabel]
450+
#
451+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453+
# @raise [Google::Apis::AuthorizationError] Authorization is required
454+
def update_label_label_enabled_app_settings(name, google_apps_drive_labels_v2beta_update_label_enabled_app_settings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
455+
command = make_simple_command(:post, 'v2beta/{+name}:updateLabelEnabledAppSettings', options)
456+
command.request_representation = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUpdateLabelEnabledAppSettingsRequest::Representation
457+
command.request_object = google_apps_drive_labels_v2beta_update_label_enabled_app_settings_request_object
458+
command.response_representation = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabel::Representation
459+
command.response_class = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabel
460+
command.params['name'] = name unless name.nil?
461+
command.query['fields'] = fields unless fields.nil?
462+
command.query['quotaUser'] = quota_user unless quota_user.nil?
463+
execute_or_queue_command(command, &block)
464+
end
465+
430466
# Updates a Label's permissions. If a permission for the indicated principal
431467
# doesn't exist, a new Label Permission is created, otherwise the existing
432468
# permission is updated. Permissions affect the Label resource as a whole, are

0 commit comments

Comments
 (0)