google-apis-drivelabels_v2beta 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/drivelabels_v2beta/gem_version.rb +3 -3
- data/lib/google/apis/drivelabels_v2beta/service.rb +56 -52
- 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: 4f9ace1cce2483a8583c74ec2b8ec31c48f415769411a218e3a42efd2df6643e
|
4
|
+
data.tar.gz: 664c48c6d1d73cf0c1f126fa6daec7029839ad3e343593a0aa2bbb7f2e6a52f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 852f17ddbc8b12b7e25c7b06d04ab5da64c43d3a97eaa97a591749a9bbe961396bdde6e1a6da137baa7edc4d340953307a35056db716a73e539b5225ea4e4b59
|
7
|
+
data.tar.gz: c7114bd55ed95d2977de175c104835bae279a534ce0027af670be4e70638b20df4740261e42524460e0eab8146effa42d0e26fb0680970de270bf30f8f3f398b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-drivelabels_v2beta
|
2
2
|
|
3
|
+
### v0.3.0 (2022-10-28)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20221024
|
6
|
+
* Regenerated using generator version 0.11.0
|
7
|
+
|
8
|
+
### v0.2.0 (2022-09-21)
|
9
|
+
|
10
|
+
* Regenerated using generator version 0.10.0
|
11
|
+
|
3
12
|
### v0.1.0 (2022-08-06)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20220802
|
@@ -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.3.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 = "20221024"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -421,6 +421,46 @@ module Google
|
|
421
421
|
execute_or_queue_command(command, &block)
|
422
422
|
end
|
423
423
|
|
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
|
+
|
424
464
|
# Lists the Locks on a Label.
|
425
465
|
# @param [String] parent
|
426
466
|
# Required. Label on which Locks are applied. Format: labels/`label`
|
@@ -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
|
@@ -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.3.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-10-31 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:
|
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:
|
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.3.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: []
|