google-apis-drivelabels_v2 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b03631cad52c06201cb6e588be236fe3ab0c8fa705d10163aeb00022f89cfb4
|
4
|
+
data.tar.gz: 1015482411ac6032691e3d863d9991fae241a2866973d1cd1dd54880f1ea3fd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dcdb2fb75091b9c79e5a5ca4c88cb80e2c4233cad7fdbb8625fb57f3bf155dd06839f56315a13bc14b1d958cb3c133232bbec64e5597e144b99c2cd6f2cab29
|
7
|
+
data.tar.gz: 67d2444938cdff3fe2ae5c3692a4d702e5f521706b1d01db2f29b153aed5a64abbbd8d57d90af31b0b1cdbcc9636f64c888d3bc852df1c61efc8aac593945f55
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-drivelabels_v2
|
2
2
|
|
3
|
+
### v0.19.0 (2025-06-08)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250602
|
6
|
+
* Regenerated using generator version 0.18.0
|
7
|
+
|
3
8
|
### v0.18.0 (2025-05-04)
|
4
9
|
|
5
10
|
* Regenerated using generator version 0.17.0
|
@@ -2192,6 +2192,11 @@ module Google
|
|
2192
2192
|
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelDisplayHints]
|
2193
2193
|
attr_accessor :display_hints
|
2194
2194
|
|
2195
|
+
# Describes the Workspace apps in which the Label can be used.
|
2196
|
+
# Corresponds to the JSON property `enabledAppSettings`
|
2197
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelEnabledAppSettings]
|
2198
|
+
attr_accessor :enabled_app_settings
|
2199
|
+
|
2195
2200
|
# List of fields in descending priority order.
|
2196
2201
|
# Corresponds to the JSON property `fields`
|
2197
2202
|
# @return [Array<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Field>]
|
@@ -2295,6 +2300,7 @@ module Google
|
|
2295
2300
|
@disable_time = args[:disable_time] if args.key?(:disable_time)
|
2296
2301
|
@disabler = args[:disabler] if args.key?(:disabler)
|
2297
2302
|
@display_hints = args[:display_hints] if args.key?(:display_hints)
|
2303
|
+
@enabled_app_settings = args[:enabled_app_settings] if args.key?(:enabled_app_settings)
|
2298
2304
|
@fields = args[:fields] if args.key?(:fields)
|
2299
2305
|
@id = args[:id] if args.key?(:id)
|
2300
2306
|
@label_type = args[:label_type] if args.key?(:label_type)
|
@@ -2407,6 +2413,44 @@ module Google
|
|
2407
2413
|
end
|
2408
2414
|
end
|
2409
2415
|
|
2416
|
+
# Describes the Workspace apps in which the Label can be used.
|
2417
|
+
class GoogleAppsDriveLabelsV2LabelEnabledAppSettings
|
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::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp>]
|
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 GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp
|
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
|
+
|
2410
2454
|
# Label constraints governing the structure of a Label; such as, the maximum
|
2411
2455
|
# number of Fields allowed and maximum length of the label title.
|
2412
2456
|
class GoogleAppsDriveLabelsV2LabelLimits
|
@@ -3036,6 +3080,49 @@ module Google
|
|
3036
3080
|
end
|
3037
3081
|
end
|
3038
3082
|
|
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 GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest
|
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::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelEnabledAppSettings]
|
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
|
+
|
3039
3126
|
# Updates a Label Permission. Permissions affect the Label resource as a whole,
|
3040
3127
|
# are not revisioned, and do not require publishing.
|
3041
3128
|
class GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DrivelabelsV2
|
18
18
|
# Version of the google-apis-drivelabels_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250602"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -376,6 +376,18 @@ module Google
|
|
376
376
|
include Google::Apis::Core::JsonObjectSupport
|
377
377
|
end
|
378
378
|
|
379
|
+
class GoogleAppsDriveLabelsV2LabelEnabledAppSettings
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
|
+
|
382
|
+
include Google::Apis::Core::JsonObjectSupport
|
383
|
+
end
|
384
|
+
|
385
|
+
class GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
379
391
|
class GoogleAppsDriveLabelsV2LabelLimits
|
380
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
393
|
|
@@ -484,6 +496,12 @@ module Google
|
|
484
496
|
include Google::Apis::Core::JsonObjectSupport
|
485
497
|
end
|
486
498
|
|
499
|
+
class GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest
|
500
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
|
+
|
502
|
+
include Google::Apis::Core::JsonObjectSupport
|
503
|
+
end
|
504
|
+
|
487
505
|
class GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest
|
488
506
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
489
507
|
|
@@ -1149,6 +1167,8 @@ module Google
|
|
1149
1167
|
|
1150
1168
|
property :display_hints, as: 'displayHints', class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelDisplayHints, decorator: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelDisplayHints::Representation
|
1151
1169
|
|
1170
|
+
property :enabled_app_settings, as: 'enabledAppSettings', class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelEnabledAppSettings, decorator: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelEnabledAppSettings::Representation
|
1171
|
+
|
1152
1172
|
collection :fields, as: 'fields', class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Field, decorator: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Field::Representation
|
1153
1173
|
|
1154
1174
|
property :id, as: 'id'
|
@@ -1199,6 +1219,21 @@ module Google
|
|
1199
1219
|
end
|
1200
1220
|
end
|
1201
1221
|
|
1222
|
+
class GoogleAppsDriveLabelsV2LabelEnabledAppSettings
|
1223
|
+
# @private
|
1224
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1225
|
+
collection :enabled_apps, as: 'enabledApps', class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp, decorator: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp::Representation
|
1226
|
+
|
1227
|
+
end
|
1228
|
+
end
|
1229
|
+
|
1230
|
+
class GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp
|
1231
|
+
# @private
|
1232
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1233
|
+
property :app, as: 'app'
|
1234
|
+
end
|
1235
|
+
end
|
1236
|
+
|
1202
1237
|
class GoogleAppsDriveLabelsV2LabelLimits
|
1203
1238
|
# @private
|
1204
1239
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1373,6 +1408,17 @@ module Google
|
|
1373
1408
|
end
|
1374
1409
|
end
|
1375
1410
|
|
1411
|
+
class GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest
|
1412
|
+
# @private
|
1413
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1414
|
+
property :enabled_app_settings, as: 'enabledAppSettings', class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelEnabledAppSettings, decorator: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelEnabledAppSettings::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
|
+
|
1376
1422
|
class GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest
|
1377
1423
|
# @private
|
1378
1424
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -427,6 +427,42 @@ module Google
|
|
427
427
|
execute_or_queue_command(command, &block)
|
428
428
|
end
|
429
429
|
|
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::DrivelabelsV2::GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest] google_apps_drive_labels_v2_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::DrivelabelsV2::GoogleAppsDriveLabelsV2Label] parsed result object
|
447
|
+
# @yieldparam err [StandardError] error object if request failed
|
448
|
+
#
|
449
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Label]
|
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_v2_update_label_enabled_app_settings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
455
|
+
command = make_simple_command(:post, 'v2/{+name}:updateLabelEnabledAppSettings', options)
|
456
|
+
command.request_representation = Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest::Representation
|
457
|
+
command.request_object = google_apps_drive_labels_v2_update_label_enabled_app_settings_request_object
|
458
|
+
command.response_representation = Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Label::Representation
|
459
|
+
command.response_class = Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Label
|
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
|
+
|
430
466
|
# Updates a Label's permissions. If a permission for the indicated principal
|
431
467
|
# doesn't exist, a new Label Permission is created, otherwise the existing
|
432
468
|
# permission is updated. Permissions affect the Label resource as a whole, are
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-drivelabels_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drivelabels_v2/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drivelabels_v2/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drivelabels_v2/v0.19.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drivelabels_v2
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.9
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Drive Labels API V2
|
79
79
|
test_files: []
|