google-apis-drivelabels_v2beta 0.2.0 → 0.4.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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/drivelabels_v2beta/classes.rb +0 -6
- data/lib/google/apis/drivelabels_v2beta/gem_version.rb +3 -3
- data/lib/google/apis/drivelabels_v2beta/representations.rb +0 -1
- data/lib/google/apis/drivelabels_v2beta/service.rb +58 -54
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5c5991b2e1bbd9d0c93d1c9bbf2ac29319c39582bfd4369e5c397ab1d4dec4e
|
4
|
+
data.tar.gz: bfc3c25659a0e51ac3c3240733faeb323ddab7c6df3ffb1ab2175f74dc82df31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e8c1f9fd23c2dac427e221864f3d2a24f07b081918ab58a6273060535d15c80ec7c315a4689f317421bf7b2f4459e5b97946b2d77d27739ef6cd16392bdb5fd
|
7
|
+
data.tar.gz: d33e04a99d5c84284b3e8ef535e925a6d99a311f7c51219a4cd64d20f0ec7ca459eacca29f9b00a45ebace0283496c029054ca4bfe51d8e585054fed8e07da21
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-drivelabels_v2beta
|
2
2
|
|
3
|
+
### v0.4.0 (2022-11-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20221031
|
6
|
+
|
7
|
+
### v0.3.0 (2022-10-28)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20221024
|
10
|
+
* Regenerated using generator version 0.11.0
|
11
|
+
|
3
12
|
### v0.2.0 (2022-09-21)
|
4
13
|
|
5
14
|
* Regenerated using generator version 0.10.0
|
@@ -2531,11 +2531,6 @@ module Google
|
|
2531
2531
|
# @return [String]
|
2532
2532
|
attr_accessor :name
|
2533
2533
|
|
2534
|
-
# Output only. A URI referring to the policy that created this Lock.
|
2535
|
-
# Corresponds to the JSON property `policyUri`
|
2536
|
-
# @return [String]
|
2537
|
-
attr_accessor :policy_uri
|
2538
|
-
|
2539
2534
|
# Output only. This LabelLock's state.
|
2540
2535
|
# Corresponds to the JSON property `state`
|
2541
2536
|
# @return [String]
|
@@ -2554,7 +2549,6 @@ module Google
|
|
2554
2549
|
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
2555
2550
|
@field_id = args[:field_id] if args.key?(:field_id)
|
2556
2551
|
@name = args[:name] if args.key?(:name)
|
2557
|
-
@policy_uri = args[:policy_uri] if args.key?(:policy_uri)
|
2558
2552
|
@state = args[:state] if args.key?(:state)
|
2559
2553
|
end
|
2560
2554
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DrivelabelsV2beta
|
18
18
|
# Version of the google-apis-drivelabels_v2beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.4.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.11.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20221031"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -421,7 +421,47 @@ module Google
|
|
421
421
|
execute_or_queue_command(command, &block)
|
422
422
|
end
|
423
423
|
|
424
|
-
#
|
424
|
+
# Updates a Label's permissions. If a permission for the indicated principal
|
425
|
+
# doesn't exist, a new Label Permission is created, otherwise the existing
|
426
|
+
# permission is updated. Permissions affect the Label resource as a whole, are
|
427
|
+
# not revisioned, and do not require publishing.
|
428
|
+
# @param [String] parent
|
429
|
+
# Required. The parent Label resource name.
|
430
|
+
# @param [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission] google_apps_drive_labels_v2beta_label_permission_object
|
431
|
+
# @param [Boolean] use_admin_access
|
432
|
+
# Set to `true` in order to use the user's admin credentials. The server will
|
433
|
+
# verify the user is an admin for the Label before allowing access.
|
434
|
+
# @param [String] fields
|
435
|
+
# Selector specifying which fields to include in a partial response.
|
436
|
+
# @param [String] quota_user
|
437
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
438
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
439
|
+
# @param [Google::Apis::RequestOptions] options
|
440
|
+
# Request-specific options
|
441
|
+
#
|
442
|
+
# @yield [result, err] Result & error if block supplied
|
443
|
+
# @yieldparam result [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission] parsed result object
|
444
|
+
# @yieldparam err [StandardError] error object if request failed
|
445
|
+
#
|
446
|
+
# @return [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission]
|
447
|
+
#
|
448
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
449
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
450
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
451
|
+
def update_label_permissions(parent, google_apps_drive_labels_v2beta_label_permission_object = nil, use_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
452
|
+
command = make_simple_command(:patch, 'v2beta/{+parent}/permissions', options)
|
453
|
+
command.request_representation = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission::Representation
|
454
|
+
command.request_object = google_apps_drive_labels_v2beta_label_permission_object
|
455
|
+
command.response_representation = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission::Representation
|
456
|
+
command.response_class = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission
|
457
|
+
command.params['parent'] = parent unless parent.nil?
|
458
|
+
command.query['useAdminAccess'] = use_admin_access unless use_admin_access.nil?
|
459
|
+
command.query['fields'] = fields unless fields.nil?
|
460
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
461
|
+
execute_or_queue_command(command, &block)
|
462
|
+
end
|
463
|
+
|
464
|
+
# Lists the LabelLocks on a Label.
|
425
465
|
# @param [String] parent
|
426
466
|
# Required. Label on which Locks are applied. Format: labels/`label`
|
427
467
|
# @param [Fixnum] page_size
|
@@ -459,7 +499,10 @@ module Google
|
|
459
499
|
|
460
500
|
# Deletes Label permissions. Permissions affect the Label resource as a whole,
|
461
501
|
# are not revisioned, and do not require publishing.
|
462
|
-
# @param [String]
|
502
|
+
# @param [String] parent
|
503
|
+
# Required. The parent Label resource name shared by all permissions being
|
504
|
+
# deleted. Format: labels/`label` If this is set, the parent field in the
|
505
|
+
# UpdateLabelPermissionRequest messages must either be empty or match this field.
|
463
506
|
# @param [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest] google_apps_drive_labels_v2beta_batch_delete_label_permissions_request_object
|
464
507
|
# @param [String] fields
|
465
508
|
# Selector specifying which fields to include in a partial response.
|
@@ -478,13 +521,13 @@ module Google
|
|
478
521
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
479
522
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
480
523
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
481
|
-
def batch_label_permission_delete(
|
482
|
-
command = make_simple_command(:post, 'v2beta/
|
524
|
+
def batch_label_permission_delete(parent, google_apps_drive_labels_v2beta_batch_delete_label_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
525
|
+
command = make_simple_command(:post, 'v2beta/{+parent}/permissions:batchDelete', options)
|
483
526
|
command.request_representation = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest::Representation
|
484
527
|
command.request_object = google_apps_drive_labels_v2beta_batch_delete_label_permissions_request_object
|
485
528
|
command.response_representation = Google::Apis::DrivelabelsV2beta::GoogleProtobufEmpty::Representation
|
486
529
|
command.response_class = Google::Apis::DrivelabelsV2beta::GoogleProtobufEmpty
|
487
|
-
command.params['
|
530
|
+
command.params['parent'] = parent unless parent.nil?
|
488
531
|
command.query['fields'] = fields unless fields.nil?
|
489
532
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
490
533
|
execute_or_queue_command(command, &block)
|
@@ -672,8 +715,8 @@ module Google
|
|
672
715
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
673
716
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
674
717
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
675
|
-
def
|
676
|
-
command = make_simple_command(:patch, 'v2beta/{+parent}', options)
|
718
|
+
def update_label_revision_permissions(parent, google_apps_drive_labels_v2beta_label_permission_object = nil, use_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
719
|
+
command = make_simple_command(:patch, 'v2beta/{+parent}/permissions', options)
|
677
720
|
command.request_representation = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission::Representation
|
678
721
|
command.request_object = google_apps_drive_labels_v2beta_label_permission_object
|
679
722
|
command.response_representation = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission::Representation
|
@@ -685,7 +728,7 @@ module Google
|
|
685
728
|
execute_or_queue_command(command, &block)
|
686
729
|
end
|
687
730
|
|
688
|
-
# Lists the
|
731
|
+
# Lists the LabelLocks on a Label.
|
689
732
|
# @param [String] parent
|
690
733
|
# Required. Label on which Locks are applied. Format: labels/`label`
|
691
734
|
# @param [Fixnum] page_size
|
@@ -723,8 +766,10 @@ module Google
|
|
723
766
|
|
724
767
|
# Deletes Label permissions. Permissions affect the Label resource as a whole,
|
725
768
|
# are not revisioned, and do not require publishing.
|
726
|
-
# @param [String]
|
727
|
-
#
|
769
|
+
# @param [String] parent
|
770
|
+
# Required. The parent Label resource name shared by all permissions being
|
771
|
+
# deleted. Format: labels/`label` If this is set, the parent field in the
|
772
|
+
# UpdateLabelPermissionRequest messages must either be empty or match this field.
|
728
773
|
# @param [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest] google_apps_drive_labels_v2beta_batch_delete_label_permissions_request_object
|
729
774
|
# @param [String] fields
|
730
775
|
# Selector specifying which fields to include in a partial response.
|
@@ -743,14 +788,13 @@ module Google
|
|
743
788
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
744
789
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
745
790
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
746
|
-
def batch_label_revision_permission_delete(
|
747
|
-
command = make_simple_command(:post, 'v2beta/
|
791
|
+
def batch_label_revision_permission_delete(parent, google_apps_drive_labels_v2beta_batch_delete_label_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
792
|
+
command = make_simple_command(:post, 'v2beta/{+parent}/permissions:batchDelete', options)
|
748
793
|
command.request_representation = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest::Representation
|
749
794
|
command.request_object = google_apps_drive_labels_v2beta_batch_delete_label_permissions_request_object
|
750
795
|
command.response_representation = Google::Apis::DrivelabelsV2beta::GoogleProtobufEmpty::Representation
|
751
796
|
command.response_class = Google::Apis::DrivelabelsV2beta::GoogleProtobufEmpty
|
752
|
-
command.params['
|
753
|
-
command.params['revisionsId'] = revisions_id unless revisions_id.nil?
|
797
|
+
command.params['parent'] = parent unless parent.nil?
|
754
798
|
command.query['fields'] = fields unless fields.nil?
|
755
799
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
756
800
|
execute_or_queue_command(command, &block)
|
@@ -911,46 +955,6 @@ module Google
|
|
911
955
|
execute_or_queue_command(command, &block)
|
912
956
|
end
|
913
957
|
|
914
|
-
# Updates a Label's permissions. If a permission for the indicated principal
|
915
|
-
# doesn't exist, a new Label Permission is created, otherwise the existing
|
916
|
-
# permission is updated. Permissions affect the Label resource as a whole, are
|
917
|
-
# not revisioned, and do not require publishing.
|
918
|
-
# @param [String] parent
|
919
|
-
# Required. The parent Label resource name.
|
920
|
-
# @param [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission] google_apps_drive_labels_v2beta_label_permission_object
|
921
|
-
# @param [Boolean] use_admin_access
|
922
|
-
# Set to `true` in order to use the user's admin credentials. The server will
|
923
|
-
# verify the user is an admin for the Label before allowing access.
|
924
|
-
# @param [String] fields
|
925
|
-
# Selector specifying which fields to include in a partial response.
|
926
|
-
# @param [String] quota_user
|
927
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
928
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
929
|
-
# @param [Google::Apis::RequestOptions] options
|
930
|
-
# Request-specific options
|
931
|
-
#
|
932
|
-
# @yield [result, err] Result & error if block supplied
|
933
|
-
# @yieldparam result [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission] parsed result object
|
934
|
-
# @yieldparam err [StandardError] error object if request failed
|
935
|
-
#
|
936
|
-
# @return [Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission]
|
937
|
-
#
|
938
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
939
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
940
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
941
|
-
def patch_label_revision_permission(parent, google_apps_drive_labels_v2beta_label_permission_object = nil, use_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
942
|
-
command = make_simple_command(:patch, 'v2beta/{+parent}', options)
|
943
|
-
command.request_representation = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission::Representation
|
944
|
-
command.request_object = google_apps_drive_labels_v2beta_label_permission_object
|
945
|
-
command.response_representation = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission::Representation
|
946
|
-
command.response_class = Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission
|
947
|
-
command.params['parent'] = parent unless parent.nil?
|
948
|
-
command.query['useAdminAccess'] = use_admin_access unless use_admin_access.nil?
|
949
|
-
command.query['fields'] = fields unless fields.nil?
|
950
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
951
|
-
execute_or_queue_command(command, &block)
|
952
|
-
end
|
953
|
-
|
954
958
|
# Get the constraints on the structure of a Label; such as, the maximum number
|
955
959
|
# of Fields allowed and maximum length of the label title.
|
956
960
|
# @param [String] name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-drivelabels_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.
|
19
|
+
version: 0.9.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.9.
|
29
|
+
version: 0.9.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drivelabels_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drivelabels_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drivelabels_v2beta/v0.4.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drivelabels_v2beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|