google-apis-drive_v2 0.39.0 → 0.40.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: 298545cf06daaf2dc1fa477396cd34aaf21a302a8a05f768a022e066c1d6949c
4
- data.tar.gz: 857f03312fe68587fd4beef5aee958000483450f39aa3c7918376c8fd7eb2d94
3
+ metadata.gz: d18b0415f22956e3361799001196bd0c4ff0b6ceffc2c373aa20a0683152ee98
4
+ data.tar.gz: 4ba7e52469dfe0d8b123a8c754f8ccde1c4563867b299e84b55b6f5d1823603a
5
5
  SHA512:
6
- metadata.gz: 1cf4c06ad366389637b9427ca4adf70a02f457060914b7e60d49655100d11ac5333ae4aac000ce63228b29694cee411338c2f1082b6c39913d0845d9cb5a3b90
7
- data.tar.gz: 3666f44ebae5e98cdc24111a551a4e75551dc7c7b57205e6c977cd14afa751fdf60186b52c353556348cfe84fb29bc9783149c9e2cf344cfa23537b31a71667c
6
+ metadata.gz: 9fb5ce30d129cb4e43c28a4fb405aa86135ecac0fd18fe1e0cd50e0d86a05594130413be10517a9a22ee724d7dbc5975b6f281942d2704c3c7581c5e9a86f311
7
+ data.tar.gz: b8beb7e20a3041dfc6f54eb822a287ff165e32ff06682aa5e8c55848f3769bd8084473197116f1f3de8d2c86f03aa7a985253b8edc09a05e31af6001e26acd92
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-drive_v2
2
2
 
3
+ ### v0.40.0 (2023-07-23)
4
+
5
+ * Regenerated from discovery document revision 20230714
6
+
3
7
  ### v0.39.0 (2023-06-11)
4
8
 
5
9
  * Regenerated from discovery document revision 20230603
@@ -1339,6 +1339,14 @@ module Google
1339
1339
  class ContentRestriction
1340
1340
  include Google::Apis::Core::Hashable
1341
1341
 
1342
+ # Whether the content restriction can only be modified or removed by a user who
1343
+ # owns the file. For files in shared drives, any user with `organizer`
1344
+ # capabilities can modify or remove this content restriction.
1345
+ # Corresponds to the JSON property `ownerRestricted`
1346
+ # @return [Boolean]
1347
+ attr_accessor :owner_restricted
1348
+ alias_method :owner_restricted?, :owner_restricted
1349
+
1342
1350
  # Whether the content of the file is read-only. If a file is read-only, a new
1343
1351
  # revision of the file may not be added, comments may not be added or modified,
1344
1352
  # and the title of the file may not be modified.
@@ -1376,6 +1384,7 @@ module Google
1376
1384
 
1377
1385
  # Update properties of this object
1378
1386
  def update!(**args)
1387
+ @owner_restricted = args[:owner_restricted] if args.key?(:owner_restricted)
1379
1388
  @read_only = args[:read_only] if args.key?(:read_only)
1380
1389
  @reason = args[:reason] if args.key?(:reason)
1381
1390
  @restricting_user = args[:restricting_user] if args.key?(:restricting_user)
@@ -2449,19 +2458,33 @@ module Google
2449
2458
  attr_accessor :can_modify_content
2450
2459
  alias_method :can_modify_content?, :can_modify_content
2451
2460
 
2452
- # Output only. Whether the current user can modify restrictions on content of
2453
- # this file.
2461
+ # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `
2462
+ # canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
2454
2463
  # Corresponds to the JSON property `canModifyContentRestriction`
2455
2464
  # @return [Boolean]
2456
2465
  attr_accessor :can_modify_content_restriction
2457
2466
  alias_method :can_modify_content_restriction?, :can_modify_content_restriction
2458
2467
 
2468
+ # Output only. Whether the current user can add or modify content restrictions
2469
+ # on the file which are editor restricted.
2470
+ # Corresponds to the JSON property `canModifyEditorContentRestriction`
2471
+ # @return [Boolean]
2472
+ attr_accessor :can_modify_editor_content_restriction
2473
+ alias_method :can_modify_editor_content_restriction?, :can_modify_editor_content_restriction
2474
+
2459
2475
  # Output only. Whether the current user can modify the labels on the file.
2460
2476
  # Corresponds to the JSON property `canModifyLabels`
2461
2477
  # @return [Boolean]
2462
2478
  attr_accessor :can_modify_labels
2463
2479
  alias_method :can_modify_labels?, :can_modify_labels
2464
2480
 
2481
+ # Output only. Whether the current user can add or modify content restrictions
2482
+ # which are owner restricted.
2483
+ # Corresponds to the JSON property `canModifyOwnerContentRestriction`
2484
+ # @return [Boolean]
2485
+ attr_accessor :can_modify_owner_content_restriction
2486
+ alias_method :can_modify_owner_content_restriction?, :can_modify_owner_content_restriction
2487
+
2465
2488
  # Output only. Whether the current user can move children of this folder outside
2466
2489
  # of the shared drive. This is false when the item is not a folder. Only
2467
2490
  # populated for items in shared drives.
@@ -2567,6 +2590,13 @@ module Google
2567
2590
  attr_accessor :can_remove_children
2568
2591
  alias_method :can_remove_children?, :can_remove_children
2569
2592
 
2593
+ # Output only. Whether there is a content restriction on the file that can be
2594
+ # removed by the current user.
2595
+ # Corresponds to the JSON property `canRemoveContentRestriction`
2596
+ # @return [Boolean]
2597
+ attr_accessor :can_remove_content_restriction
2598
+ alias_method :can_remove_content_restriction?, :can_remove_content_restriction
2599
+
2570
2600
  # Output only. Whether the current user can remove a parent from the item
2571
2601
  # without adding another parent in the same request. Not populated for shared
2572
2602
  # drive files.
@@ -2630,7 +2660,9 @@ module Google
2630
2660
  @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
2631
2661
  @can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content)
2632
2662
  @can_modify_content_restriction = args[:can_modify_content_restriction] if args.key?(:can_modify_content_restriction)
2663
+ @can_modify_editor_content_restriction = args[:can_modify_editor_content_restriction] if args.key?(:can_modify_editor_content_restriction)
2633
2664
  @can_modify_labels = args[:can_modify_labels] if args.key?(:can_modify_labels)
2665
+ @can_modify_owner_content_restriction = args[:can_modify_owner_content_restriction] if args.key?(:can_modify_owner_content_restriction)
2634
2666
  @can_move_children_out_of_drive = args[:can_move_children_out_of_drive] if args.key?(:can_move_children_out_of_drive)
2635
2667
  @can_move_children_out_of_team_drive = args[:can_move_children_out_of_team_drive] if args.key?(:can_move_children_out_of_team_drive)
2636
2668
  @can_move_children_within_drive = args[:can_move_children_within_drive] if args.key?(:can_move_children_within_drive)
@@ -2646,6 +2678,7 @@ module Google
2646
2678
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
2647
2679
  @can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
2648
2680
  @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
2681
+ @can_remove_content_restriction = args[:can_remove_content_restriction] if args.key?(:can_remove_content_restriction)
2649
2682
  @can_remove_my_drive_parent = args[:can_remove_my_drive_parent] if args.key?(:can_remove_my_drive_parent)
2650
2683
  @can_rename = args[:can_rename] if args.key?(:can_rename)
2651
2684
  @can_share = args[:can_share] if args.key?(:can_share)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DriveV2
18
18
  # Version of the google-apis-drive_v2 gem
19
- GEM_VERSION = "0.39.0"
19
+ GEM_VERSION = "0.40.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230603"
25
+ REVISION = "20230714"
26
26
  end
27
27
  end
28
28
  end
@@ -756,6 +756,7 @@ module Google
756
756
  class ContentRestriction
757
757
  # @private
758
758
  class Representation < Google::Apis::Core::JsonRepresentation
759
+ property :owner_restricted, as: 'ownerRestricted'
759
760
  property :read_only, as: 'readOnly'
760
761
  property :reason, as: 'reason'
761
762
  property :restricting_user, as: 'restrictingUser', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
@@ -969,7 +970,9 @@ module Google
969
970
  property :can_list_children, as: 'canListChildren'
970
971
  property :can_modify_content, as: 'canModifyContent'
971
972
  property :can_modify_content_restriction, as: 'canModifyContentRestriction'
973
+ property :can_modify_editor_content_restriction, as: 'canModifyEditorContentRestriction'
972
974
  property :can_modify_labels, as: 'canModifyLabels'
975
+ property :can_modify_owner_content_restriction, as: 'canModifyOwnerContentRestriction'
973
976
  property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive'
974
977
  property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive'
975
978
  property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive'
@@ -985,6 +988,7 @@ module Google
985
988
  property :can_read_revisions, as: 'canReadRevisions'
986
989
  property :can_read_team_drive, as: 'canReadTeamDrive'
987
990
  property :can_remove_children, as: 'canRemoveChildren'
991
+ property :can_remove_content_restriction, as: 'canRemoveContentRestriction'
988
992
  property :can_remove_my_drive_parent, as: 'canRemoveMyDriveParent'
989
993
  property :can_rename, as: 'canRename'
990
994
  property :can_share, as: 'canShare'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-drive_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.0
4
+ version: 0.40.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: 2023-06-11 00:00:00.000000000 Z
11
+ date: 2023-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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-drive_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.39.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.40.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v2
63
63
  post_install_message:
64
64
  rdoc_options: []