google-apis-drive_v3 0.42.0 → 0.43.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: 31bc00160f7c7f2d0dc215e19e1be2c726df6bb222f9f43c2fd33c386d308a1a
4
- data.tar.gz: 8b61f403c7770606ecd80cd6d6203bf8e5d4f7e15954ed24cde9401cbadd6df6
3
+ metadata.gz: 61d287c235241f9c6f3ddd6067c5e8bf037046b84dd24f65caa94470769818e8
4
+ data.tar.gz: 7f814a90d1dea58a8955c765580658250be94c945a3c1c58c0757ac775b11a65
5
5
  SHA512:
6
- metadata.gz: 35eb6f9c9b404180eed3b924ee847cbb08326dbca43e5a17832e5759c0056babebb0017449c929ce63f657e809d2b7d81d6a7266d3424db36aed925d326eae02
7
- data.tar.gz: 9d73c3218a425552aa46d99fa1b66aae9d2dbd187f045bfd727c29f287f879c920888b6870814a0780f3cf0048ea0a3f7c751df0f04fb4b0c21f610f4399fdcb
6
+ metadata.gz: 66ef2c50a40ed2128d7da658a3601974ef431b5ecbc79caff68a8001356ae0acb9b764d03349857e929fbf2cb09920d0961732a0ed3a86a0f3da51c6a6c6a39a
7
+ data.tar.gz: 76c8cf9c10d1c539f1666a20180f94efb6e1044031e5706478848552705f363a5ee80bf507f5ccfb926b3edcc9bba17433d8997d0ba0e9e24b97c7b619d89559
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.43.0 (2023-07-23)
4
+
5
+ * Regenerated from discovery document revision 20230714
6
+
3
7
  ### v0.42.0 (2023-06-18)
4
8
 
5
9
  * Regenerated from discovery document revision 20230610
@@ -583,6 +583,14 @@ module Google
583
583
  class ContentRestriction
584
584
  include Google::Apis::Core::Hashable
585
585
 
586
+ # Whether the content restriction can only be modified or removed by a user who
587
+ # owns the file. For files in shared drives, any user with `organizer`
588
+ # capabilities can modify or remove this content restriction.
589
+ # Corresponds to the JSON property `ownerRestricted`
590
+ # @return [Boolean]
591
+ attr_accessor :owner_restricted
592
+ alias_method :owner_restricted?, :owner_restricted
593
+
586
594
  # Whether the content of the file is read-only. If a file is read-only, a new
587
595
  # revision of the file may not be added, comments may not be added or modified,
588
596
  # and the title of the file may not be modified.
@@ -620,6 +628,7 @@ module Google
620
628
 
621
629
  # Update properties of this object
622
630
  def update!(**args)
631
+ @owner_restricted = args[:owner_restricted] if args.key?(:owner_restricted)
623
632
  @read_only = args[:read_only] if args.key?(:read_only)
624
633
  @reason = args[:reason] if args.key?(:reason)
625
634
  @restricting_user = args[:restricting_user] if args.key?(:restricting_user)
@@ -1615,19 +1624,33 @@ module Google
1615
1624
  attr_accessor :can_modify_content
1616
1625
  alias_method :can_modify_content?, :can_modify_content
1617
1626
 
1618
- # Output only. Whether the current user can modify restrictions on content of
1619
- # this file.
1627
+ # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `
1628
+ # canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
1620
1629
  # Corresponds to the JSON property `canModifyContentRestriction`
1621
1630
  # @return [Boolean]
1622
1631
  attr_accessor :can_modify_content_restriction
1623
1632
  alias_method :can_modify_content_restriction?, :can_modify_content_restriction
1624
1633
 
1634
+ # Output only. Whether the current user can add or modify content restrictions
1635
+ # on the file which are editor restricted.
1636
+ # Corresponds to the JSON property `canModifyEditorContentRestriction`
1637
+ # @return [Boolean]
1638
+ attr_accessor :can_modify_editor_content_restriction
1639
+ alias_method :can_modify_editor_content_restriction?, :can_modify_editor_content_restriction
1640
+
1625
1641
  # Output only. Whether the current user can modify the labels on the file.
1626
1642
  # Corresponds to the JSON property `canModifyLabels`
1627
1643
  # @return [Boolean]
1628
1644
  attr_accessor :can_modify_labels
1629
1645
  alias_method :can_modify_labels?, :can_modify_labels
1630
1646
 
1647
+ # Output only. Whether the current user can add or modify content restrictions
1648
+ # which are owner restricted.
1649
+ # Corresponds to the JSON property `canModifyOwnerContentRestriction`
1650
+ # @return [Boolean]
1651
+ attr_accessor :can_modify_owner_content_restriction
1652
+ alias_method :can_modify_owner_content_restriction?, :can_modify_owner_content_restriction
1653
+
1631
1654
  # Output only. Whether the current user can move children of this folder outside
1632
1655
  # of the shared drive. This is false when the item is not a folder. Only
1633
1656
  # populated for items in shared drives.
@@ -1733,6 +1756,13 @@ module Google
1733
1756
  attr_accessor :can_remove_children
1734
1757
  alias_method :can_remove_children?, :can_remove_children
1735
1758
 
1759
+ # Output only. Whether there is a content restriction on the file that can be
1760
+ # removed by the current user.
1761
+ # Corresponds to the JSON property `canRemoveContentRestriction`
1762
+ # @return [Boolean]
1763
+ attr_accessor :can_remove_content_restriction
1764
+ alias_method :can_remove_content_restriction?, :can_remove_content_restriction
1765
+
1736
1766
  # Output only. Whether the current user can remove a parent from the item
1737
1767
  # without adding another parent in the same request. Not populated for shared
1738
1768
  # drive files.
@@ -1796,7 +1826,9 @@ module Google
1796
1826
  @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
1797
1827
  @can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content)
1798
1828
  @can_modify_content_restriction = args[:can_modify_content_restriction] if args.key?(:can_modify_content_restriction)
1829
+ @can_modify_editor_content_restriction = args[:can_modify_editor_content_restriction] if args.key?(:can_modify_editor_content_restriction)
1799
1830
  @can_modify_labels = args[:can_modify_labels] if args.key?(:can_modify_labels)
1831
+ @can_modify_owner_content_restriction = args[:can_modify_owner_content_restriction] if args.key?(:can_modify_owner_content_restriction)
1800
1832
  @can_move_children_out_of_drive = args[:can_move_children_out_of_drive] if args.key?(:can_move_children_out_of_drive)
1801
1833
  @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)
1802
1834
  @can_move_children_within_drive = args[:can_move_children_within_drive] if args.key?(:can_move_children_within_drive)
@@ -1812,6 +1844,7 @@ module Google
1812
1844
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
1813
1845
  @can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
1814
1846
  @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
1847
+ @can_remove_content_restriction = args[:can_remove_content_restriction] if args.key?(:can_remove_content_restriction)
1815
1848
  @can_remove_my_drive_parent = args[:can_remove_my_drive_parent] if args.key?(:can_remove_my_drive_parent)
1816
1849
  @can_rename = args[:can_rename] if args.key?(:can_rename)
1817
1850
  @can_share = args[:can_share] if args.key?(:can_share)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DriveV3
18
18
  # Version of the google-apis-drive_v3 gem
19
- GEM_VERSION = "0.42.0"
19
+ GEM_VERSION = "0.43.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 = "20230610"
25
+ REVISION = "20230714"
26
26
  end
27
27
  end
28
28
  end
@@ -473,6 +473,7 @@ module Google
473
473
  class ContentRestriction
474
474
  # @private
475
475
  class Representation < Google::Apis::Core::JsonRepresentation
476
+ property :owner_restricted, as: 'ownerRestricted'
476
477
  property :read_only, as: 'readOnly'
477
478
  property :reason, as: 'reason'
478
479
  property :restricting_user, as: 'restrictingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
@@ -667,7 +668,9 @@ module Google
667
668
  property :can_list_children, as: 'canListChildren'
668
669
  property :can_modify_content, as: 'canModifyContent'
669
670
  property :can_modify_content_restriction, as: 'canModifyContentRestriction'
671
+ property :can_modify_editor_content_restriction, as: 'canModifyEditorContentRestriction'
670
672
  property :can_modify_labels, as: 'canModifyLabels'
673
+ property :can_modify_owner_content_restriction, as: 'canModifyOwnerContentRestriction'
671
674
  property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive'
672
675
  property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive'
673
676
  property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive'
@@ -683,6 +686,7 @@ module Google
683
686
  property :can_read_revisions, as: 'canReadRevisions'
684
687
  property :can_read_team_drive, as: 'canReadTeamDrive'
685
688
  property :can_remove_children, as: 'canRemoveChildren'
689
+ property :can_remove_content_restriction, as: 'canRemoveContentRestriction'
686
690
  property :can_remove_my_drive_parent, as: 'canRemoveMyDriveParent'
687
691
  property :can_rename, as: 'canRename'
688
692
  property :can_share, as: 'canShare'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-drive_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.42.0
4
+ version: 0.43.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-18 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_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.42.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.43.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3
63
63
  post_install_message:
64
64
  rdoc_options: []