google-api-client 0.23.3 → 0.23.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +107 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +9 -0
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +2 -0
  6. data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  9. data/generated/google/apis/adexchangeseller_v1.rb +1 -1
  10. data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
  11. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  12. data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1.rb +1 -1
  14. data/generated/google/apis/admin_reports_v1.rb +1 -1
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analytics_v2_4.rb +1 -1
  18. data/generated/google/apis/analytics_v3.rb +1 -1
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  21. data/generated/google/apis/androidmanagement_v1/classes.rb +35 -0
  22. data/generated/google/apis/androidmanagement_v1/representations.rb +6 -0
  23. data/generated/google/apis/androidmanagement_v1/service.rb +4 -1
  24. data/generated/google/apis/androidpublisher_v1.rb +1 -1
  25. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  26. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  27. data/generated/google/apis/androidpublisher_v2/classes.rb +45 -0
  28. data/generated/google/apis/androidpublisher_v2/representations.rb +17 -0
  29. data/generated/google/apis/androidpublisher_v2/service.rb +5 -1
  30. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v3/classes.rb +45 -0
  32. data/generated/google/apis/androidpublisher_v3/representations.rb +17 -0
  33. data/generated/google/apis/androidpublisher_v3/service.rb +5 -1
  34. data/generated/google/apis/appengine_v1beta.rb +1 -1
  35. data/generated/google/apis/appengine_v1beta/classes.rb +7 -0
  36. data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
  37. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  38. data/generated/google/apis/appengine_v1beta4/classes.rb +7 -0
  39. data/generated/google/apis/appengine_v1beta4/representations.rb +1 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +7 -0
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +1 -0
  43. data/generated/google/apis/appsactivity_v1.rb +1 -1
  44. data/generated/google/apis/appstate_v1.rb +1 -1
  45. data/generated/google/apis/bigquery_v2.rb +1 -1
  46. data/generated/google/apis/bigquery_v2/classes.rb +269 -0
  47. data/generated/google/apis/bigquery_v2/representations.rb +93 -0
  48. data/generated/google/apis/blogger_v2.rb +1 -1
  49. data/generated/google/apis/blogger_v3.rb +1 -1
  50. data/generated/google/apis/books_v1.rb +1 -1
  51. data/generated/google/apis/calendar_v3.rb +1 -1
  52. data/generated/google/apis/civicinfo_v2.rb +1 -1
  53. data/generated/google/apis/civicinfo_v2/classes.rb +16 -69
  54. data/generated/google/apis/civicinfo_v2/representations.rb +1 -11
  55. data/generated/google/apis/civicinfo_v2/service.rb +4 -1
  56. data/generated/google/apis/cloudiot_v1.rb +1 -1
  57. data/generated/google/apis/cloudiot_v1/classes.rb +0 -1
  58. data/generated/google/apis/cloudprofiler_v2.rb +40 -0
  59. data/generated/google/apis/cloudprofiler_v2/classes.rb +167 -0
  60. data/generated/google/apis/cloudprofiler_v2/representations.rb +77 -0
  61. data/generated/google/apis/cloudprofiler_v2/service.rb +179 -0
  62. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  63. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +0 -1
  64. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +0 -1
  66. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  67. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +0 -1
  68. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  69. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +0 -1
  70. data/generated/google/apis/compute_alpha.rb +1 -1
  71. data/generated/google/apis/compute_alpha/classes.rb +769 -146
  72. data/generated/google/apis/compute_alpha/representations.rb +294 -22
  73. data/generated/google/apis/compute_alpha/service.rb +868 -18
  74. data/generated/google/apis/compute_beta.rb +1 -1
  75. data/generated/google/apis/compute_beta/classes.rb +52 -89
  76. data/generated/google/apis/compute_beta/representations.rb +1 -18
  77. data/generated/google/apis/compute_beta/service.rb +0 -250
  78. data/generated/google/apis/compute_v1.rb +1 -1
  79. data/generated/google/apis/compute_v1/classes.rb +165 -16
  80. data/generated/google/apis/compute_v1/representations.rb +61 -0
  81. data/generated/google/apis/compute_v1/service.rb +208 -0
  82. data/generated/google/apis/content_v2/classes.rb +10 -10
  83. data/generated/google/apis/content_v2sandbox.rb +1 -1
  84. data/generated/google/apis/content_v2sandbox/classes.rb +60 -43
  85. data/generated/google/apis/content_v2sandbox/representations.rb +2 -0
  86. data/generated/google/apis/customsearch_v1.rb +1 -1
  87. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  88. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  89. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  90. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  91. data/generated/google/apis/dfareporting_v3_0.rb +1 -1
  92. data/generated/google/apis/dfareporting_v3_1.rb +1 -1
  93. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  94. data/generated/google/apis/dialogflow_v2beta1/classes.rb +22 -0
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v1beta2.rb +1 -1
  97. data/generated/google/apis/dns_v2beta1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +101 -5
  102. data/generated/google/apis/drive_v2/representations.rb +23 -0
  103. data/generated/google/apis/drive_v2/service.rb +28 -25
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +101 -6
  106. data/generated/google/apis/drive_v3/representations.rb +23 -0
  107. data/generated/google/apis/drive_v3/service.rb +26 -22
  108. data/generated/google/apis/fitness_v1.rb +1 -1
  109. data/generated/google/apis/fusiontables_v1.rb +1 -1
  110. data/generated/google/apis/fusiontables_v2.rb +1 -1
  111. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  112. data/generated/google/apis/games_management_v1management.rb +1 -1
  113. data/generated/google/apis/games_v1.rb +1 -1
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  116. data/generated/google/apis/groupssettings_v1.rb +1 -1
  117. data/generated/google/apis/groupssettings_v1/classes.rb +84 -0
  118. data/generated/google/apis/groupssettings_v1/representations.rb +12 -0
  119. data/generated/google/apis/iam_v1.rb +1 -1
  120. data/generated/google/apis/iam_v1/classes.rb +0 -1
  121. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  122. data/generated/google/apis/licensing_v1.rb +1 -1
  123. data/generated/google/apis/mirror_v1.rb +1 -1
  124. data/generated/google/apis/ml_v1.rb +1 -1
  125. data/generated/google/apis/ml_v1/classes.rb +77 -6
  126. data/generated/google/apis/ml_v1/representations.rb +7 -0
  127. data/generated/google/apis/oauth2_v1.rb +1 -1
  128. data/generated/google/apis/oauth2_v2.rb +1 -1
  129. data/generated/google/apis/pagespeedonline_v1.rb +1 -1
  130. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  131. data/generated/google/apis/pagespeedonline_v4.rb +1 -1
  132. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  133. data/generated/google/apis/plus_domains_v1.rb +1 -1
  134. data/generated/google/apis/plus_v1.rb +1 -1
  135. data/generated/google/apis/pubsub_v1.rb +1 -1
  136. data/generated/google/apis/pubsub_v1/classes.rb +4 -5
  137. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  138. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -1
  139. data/generated/google/apis/replicapool_v1beta1.rb +1 -1
  140. data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
  141. data/generated/google/apis/reseller_v1.rb +1 -1
  142. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  143. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +0 -1
  144. data/generated/google/apis/script_v1.rb +2 -8
  145. data/generated/google/apis/script_v1/service.rb +1 -7
  146. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  147. data/generated/google/apis/servicecontrol_v1/classes.rb +8 -0
  148. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  149. data/generated/google/apis/site_verification_v1.rb +1 -1
  150. data/generated/google/apis/slides_v1.rb +1 -1
  151. data/generated/google/apis/spectrum_v1explorer.rb +1 -1
  152. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  153. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -9
  154. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  155. data/generated/google/apis/sqladmin_v1beta4/service.rb +13 -16
  156. data/generated/google/apis/storage_v1.rb +1 -1
  157. data/generated/google/apis/storage_v1beta1.rb +1 -1
  158. data/generated/google/apis/storage_v1beta2.rb +1 -1
  159. data/generated/google/apis/surveys_v2.rb +1 -1
  160. data/generated/google/apis/tagmanager_v1.rb +1 -1
  161. data/generated/google/apis/tagmanager_v2.rb +1 -1
  162. data/generated/google/apis/tasks_v1.rb +1 -1
  163. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  164. data/generated/google/apis/toolresults_v1beta3/classes.rb +6 -0
  165. data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
  166. data/generated/google/apis/urlshortener_v1.rb +1 -1
  167. data/generated/google/apis/webfonts_v1.rb +1 -1
  168. data/generated/google/apis/webmasters_v3.rb +1 -1
  169. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  170. data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
  171. data/generated/google/apis/youtube_v3.rb +1 -1
  172. data/lib/google/apis/version.rb +1 -1
  173. metadata +6 -2
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV3
28
28
  VERSION = 'V3'
29
- REVISION = '20180413'
29
+ REVISION = ''
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -538,6 +538,13 @@ module Google
538
538
  # @return [Google::Apis::DriveV3::File::ContentHints]
539
539
  attr_accessor :content_hints
540
540
 
541
+ # Whether the options to copy, print, or download this file, should be disabled
542
+ # for readers and commenters.
543
+ # Corresponds to the JSON property `copyRequiresWriterPermission`
544
+ # @return [Boolean]
545
+ attr_accessor :copy_requires_writer_permission
546
+ alias_method :copy_requires_writer_permission?, :copy_requires_writer_permission
547
+
541
548
  # The time at which the file was created (RFC 3339 date-time).
542
549
  # Corresponds to the JSON property `createdTime`
543
550
  # @return [DateTime]
@@ -817,8 +824,7 @@ module Google
817
824
  # @return [DateTime]
818
825
  attr_accessor :viewed_by_me_time
819
826
 
820
- # Whether users with only reader or commenter permission can copy the file's
821
- # content. This affects copy, download, and print operations.
827
+ # Deprecated - use copyRequiresWriterPermission instead.
822
828
  # Corresponds to the JSON property `viewersCanCopyContent`
823
829
  # @return [Boolean]
824
830
  attr_accessor :viewers_can_copy_content
@@ -851,6 +857,7 @@ module Google
851
857
  @app_properties = args[:app_properties] if args.key?(:app_properties)
852
858
  @capabilities = args[:capabilities] if args.key?(:capabilities)
853
859
  @content_hints = args[:content_hints] if args.key?(:content_hints)
860
+ @copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
854
861
  @created_time = args[:created_time] if args.key?(:created_time)
855
862
  @description = args[:description] if args.key?(:description)
856
863
  @explicitly_trashed = args[:explicitly_trashed] if args.key?(:explicitly_trashed)
@@ -914,8 +921,14 @@ module Google
914
921
  attr_accessor :can_add_children
915
922
  alias_method :can_add_children?, :can_add_children
916
923
 
917
- # Whether the current user can change whether viewers can copy the contents of
918
- # this file.
924
+ # Whether the current user can change the copyRequiresWriterPermission
925
+ # restriction of this file.
926
+ # Corresponds to the JSON property `canChangeCopyRequiresWriterPermission`
927
+ # @return [Boolean]
928
+ attr_accessor :can_change_copy_requires_writer_permission
929
+ alias_method :can_change_copy_requires_writer_permission?, :can_change_copy_requires_writer_permission
930
+
931
+ # Deprecated
919
932
  # Corresponds to the JSON property `canChangeViewersCanCopyContent`
920
933
  # @return [Boolean]
921
934
  attr_accessor :can_change_viewers_can_copy_content
@@ -1029,6 +1042,7 @@ module Google
1029
1042
  # Update properties of this object
1030
1043
  def update!(**args)
1031
1044
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
1045
+ @can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
1032
1046
  @can_change_viewers_can_copy_content = args[:can_change_viewers_can_copy_content] if args.key?(:can_change_viewers_can_copy_content)
1033
1047
  @can_comment = args[:can_comment] if args.key?(:can_comment)
1034
1048
  @can_copy = args[:can_copy] if args.key?(:can_copy)
@@ -1883,8 +1897,8 @@ module Google
1883
1897
  # @return [DateTime]
1884
1898
  attr_accessor :created_time
1885
1899
 
1886
- # The ID of this Team Drive which is also the ID of the top level folder for
1887
- # this Team Drive.
1900
+ # The ID of this Team Drive which is also the ID of the top level folder of this
1901
+ # Team Drive.
1888
1902
  # Corresponds to the JSON property `id`
1889
1903
  # @return [String]
1890
1904
  attr_accessor :id
@@ -1900,6 +1914,12 @@ module Google
1900
1914
  # @return [String]
1901
1915
  attr_accessor :name
1902
1916
 
1917
+ # A set of restrictions that apply to this Team Drive or items inside this Team
1918
+ # Drive.
1919
+ # Corresponds to the JSON property `restrictions`
1920
+ # @return [Google::Apis::DriveV3::TeamDrive::Restrictions]
1921
+ attr_accessor :restrictions
1922
+
1903
1923
  # The ID of the theme from which the background image and color will be set. The
1904
1924
  # set of possible teamDriveThemes can be retrieved from a drive.about.get
1905
1925
  # response. When not specified on a drive.teamdrives.create request, a random
@@ -1924,6 +1944,7 @@ module Google
1924
1944
  @id = args[:id] if args.key?(:id)
1925
1945
  @kind = args[:kind] if args.key?(:kind)
1926
1946
  @name = args[:name] if args.key?(:name)
1947
+ @restrictions = args[:restrictions] if args.key?(:restrictions)
1927
1948
  @theme_id = args[:theme_id] if args.key?(:theme_id)
1928
1949
  end
1929
1950
 
@@ -1987,12 +2008,33 @@ module Google
1987
2008
  attr_accessor :can_add_children
1988
2009
  alias_method :can_add_children?, :can_add_children
1989
2010
 
2011
+ # Whether the current user can change the copyRequiresWriterPermission
2012
+ # restriction of this Team Drive.
2013
+ # Corresponds to the JSON property `canChangeCopyRequiresWriterPermissionRestriction`
2014
+ # @return [Boolean]
2015
+ attr_accessor :can_change_copy_requires_writer_permission_restriction
2016
+ alias_method :can_change_copy_requires_writer_permission_restriction?, :can_change_copy_requires_writer_permission_restriction
2017
+
2018
+ # Whether the current user can change the domainUsersOnly restriction of this
2019
+ # Team Drive.
2020
+ # Corresponds to the JSON property `canChangeDomainUsersOnlyRestriction`
2021
+ # @return [Boolean]
2022
+ attr_accessor :can_change_domain_users_only_restriction
2023
+ alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
2024
+
1990
2025
  # Whether the current user can change the background of this Team Drive.
1991
2026
  # Corresponds to the JSON property `canChangeTeamDriveBackground`
1992
2027
  # @return [Boolean]
1993
2028
  attr_accessor :can_change_team_drive_background
1994
2029
  alias_method :can_change_team_drive_background?, :can_change_team_drive_background
1995
2030
 
2031
+ # Whether the current user can change the teamMembersOnly restriction of this
2032
+ # Team Drive.
2033
+ # Corresponds to the JSON property `canChangeTeamMembersOnlyRestriction`
2034
+ # @return [Boolean]
2035
+ attr_accessor :can_change_team_members_only_restriction
2036
+ alias_method :can_change_team_members_only_restriction?, :can_change_team_members_only_restriction
2037
+
1996
2038
  # Whether the current user can comment on files in this Team Drive.
1997
2039
  # Corresponds to the JSON property `canComment`
1998
2040
  # @return [Boolean]
@@ -2075,7 +2117,10 @@ module Google
2075
2117
  # Update properties of this object
2076
2118
  def update!(**args)
2077
2119
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
2120
+ @can_change_copy_requires_writer_permission_restriction = args[:can_change_copy_requires_writer_permission_restriction] if args.key?(:can_change_copy_requires_writer_permission_restriction)
2121
+ @can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
2078
2122
  @can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
2123
+ @can_change_team_members_only_restriction = args[:can_change_team_members_only_restriction] if args.key?(:can_change_team_members_only_restriction)
2079
2124
  @can_comment = args[:can_comment] if args.key?(:can_comment)
2080
2125
  @can_copy = args[:can_copy] if args.key?(:can_copy)
2081
2126
  @can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)
@@ -2090,6 +2135,56 @@ module Google
2090
2135
  @can_share = args[:can_share] if args.key?(:can_share)
2091
2136
  end
2092
2137
  end
2138
+
2139
+ # A set of restrictions that apply to this Team Drive or items inside this Team
2140
+ # Drive.
2141
+ class Restrictions
2142
+ include Google::Apis::Core::Hashable
2143
+
2144
+ # Whether administrative privileges on this Team Drive are required to modify
2145
+ # restrictions.
2146
+ # Corresponds to the JSON property `adminManagedRestrictions`
2147
+ # @return [Boolean]
2148
+ attr_accessor :admin_managed_restrictions
2149
+ alias_method :admin_managed_restrictions?, :admin_managed_restrictions
2150
+
2151
+ # Whether the options to copy, print, or download files inside this Team Drive,
2152
+ # should be disabled for readers and commenters. When this restriction is set to
2153
+ # true, it will override the similarly named field to true for any file inside
2154
+ # this Team Drive.
2155
+ # Corresponds to the JSON property `copyRequiresWriterPermission`
2156
+ # @return [Boolean]
2157
+ attr_accessor :copy_requires_writer_permission
2158
+ alias_method :copy_requires_writer_permission?, :copy_requires_writer_permission
2159
+
2160
+ # Whether access to this Team Drive and items inside this Team Drive is
2161
+ # restricted to users of the domain to which this Team Drive belongs. This
2162
+ # restriction may be overridden by other sharing policies controlled outside of
2163
+ # this Team Drive.
2164
+ # Corresponds to the JSON property `domainUsersOnly`
2165
+ # @return [Boolean]
2166
+ attr_accessor :domain_users_only
2167
+ alias_method :domain_users_only?, :domain_users_only
2168
+
2169
+ # Whether access to items inside this Team Drive is restricted to members of
2170
+ # this Team Drive.
2171
+ # Corresponds to the JSON property `teamMembersOnly`
2172
+ # @return [Boolean]
2173
+ attr_accessor :team_members_only
2174
+ alias_method :team_members_only?, :team_members_only
2175
+
2176
+ def initialize(**args)
2177
+ update!(**args)
2178
+ end
2179
+
2180
+ # Update properties of this object
2181
+ def update!(**args)
2182
+ @admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions)
2183
+ @copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
2184
+ @domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
2185
+ @team_members_only = args[:team_members_only] if args.key?(:team_members_only)
2186
+ end
2187
+ end
2093
2188
  end
2094
2189
 
2095
2190
  # A list of Team Drives.
@@ -192,6 +192,12 @@ module Google
192
192
 
193
193
  include Google::Apis::Core::JsonObjectSupport
194
194
  end
195
+
196
+ class Restrictions
197
+ class Representation < Google::Apis::Core::JsonRepresentation; end
198
+
199
+ include Google::Apis::Core::JsonObjectSupport
200
+ end
195
201
 
196
202
  include Google::Apis::Core::JsonObjectSupport
197
203
  end
@@ -348,6 +354,7 @@ module Google
348
354
 
349
355
  property :content_hints, as: 'contentHints', class: Google::Apis::DriveV3::File::ContentHints, decorator: Google::Apis::DriveV3::File::ContentHints::Representation
350
356
 
357
+ property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
351
358
  property :created_time, as: 'createdTime', type: DateTime
352
359
 
353
360
  property :description, as: 'description'
@@ -416,6 +423,7 @@ module Google
416
423
  # @private
417
424
  class Representation < Google::Apis::Core::JsonRepresentation
418
425
  property :can_add_children, as: 'canAddChildren'
426
+ property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
419
427
  property :can_change_viewers_can_copy_content, as: 'canChangeViewersCanCopyContent'
420
428
  property :can_comment, as: 'canComment'
421
429
  property :can_copy, as: 'canCopy'
@@ -639,6 +647,8 @@ module Google
639
647
  property :id, as: 'id'
640
648
  property :kind, as: 'kind'
641
649
  property :name, as: 'name'
650
+ property :restrictions, as: 'restrictions', class: Google::Apis::DriveV3::TeamDrive::Restrictions, decorator: Google::Apis::DriveV3::TeamDrive::Restrictions::Representation
651
+
642
652
  property :theme_id, as: 'themeId'
643
653
  end
644
654
 
@@ -656,7 +666,10 @@ module Google
656
666
  # @private
657
667
  class Representation < Google::Apis::Core::JsonRepresentation
658
668
  property :can_add_children, as: 'canAddChildren'
669
+ property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
670
+ property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
659
671
  property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
672
+ property :can_change_team_members_only_restriction, as: 'canChangeTeamMembersOnlyRestriction'
660
673
  property :can_comment, as: 'canComment'
661
674
  property :can_copy, as: 'canCopy'
662
675
  property :can_delete_team_drive, as: 'canDeleteTeamDrive'
@@ -671,6 +684,16 @@ module Google
671
684
  property :can_share, as: 'canShare'
672
685
  end
673
686
  end
687
+
688
+ class Restrictions
689
+ # @private
690
+ class Representation < Google::Apis::Core::JsonRepresentation
691
+ property :admin_managed_restrictions, as: 'adminManagedRestrictions'
692
+ property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
693
+ property :domain_users_only, as: 'domainUsersOnly'
694
+ property :team_members_only, as: 'teamMembersOnly'
695
+ end
696
+ end
674
697
  end
675
698
 
676
699
  class TeamDriveList
@@ -997,9 +997,9 @@ module Google
997
997
  # owner to a writer. This parameter is required as an acknowledgement of the
998
998
  # side effect.
999
999
  # @param [Boolean] use_domain_admin_access
1000
- # Whether the request should be treated as if it was issued by a domain
1001
- # administrator; if set to true, then the requester will be granted access if
1002
- # they are an administrator of the domain to which the item belongs.
1000
+ # Issue the request as a domain administrator; if set to true, then the
1001
+ # requester will be granted access if they are an administrator of the domain to
1002
+ # which the item belongs.
1003
1003
  # @param [String] fields
1004
1004
  # Selector specifying which fields to include in a partial response.
1005
1005
  # @param [String] quota_user
@@ -1045,9 +1045,9 @@ module Google
1045
1045
  # @param [Boolean] supports_team_drives
1046
1046
  # Whether the requesting application supports Team Drives.
1047
1047
  # @param [Boolean] use_domain_admin_access
1048
- # Whether the request should be treated as if it was issued by a domain
1049
- # administrator; if set to true, then the requester will be granted access if
1050
- # they are an administrator of the domain to which the item belongs.
1048
+ # Issue the request as a domain administrator; if set to true, then the
1049
+ # requester will be granted access if they are an administrator of the domain to
1050
+ # which the item belongs.
1051
1051
  # @param [String] fields
1052
1052
  # Selector specifying which fields to include in a partial response.
1053
1053
  # @param [String] quota_user
@@ -1087,9 +1087,9 @@ module Google
1087
1087
  # @param [Boolean] supports_team_drives
1088
1088
  # Whether the requesting application supports Team Drives.
1089
1089
  # @param [Boolean] use_domain_admin_access
1090
- # Whether the request should be treated as if it was issued by a domain
1091
- # administrator; if set to true, then the requester will be granted access if
1092
- # they are an administrator of the domain to which the item belongs.
1090
+ # Issue the request as a domain administrator; if set to true, then the
1091
+ # requester will be granted access if they are an administrator of the domain to
1092
+ # which the item belongs.
1093
1093
  # @param [String] fields
1094
1094
  # Selector specifying which fields to include in a partial response.
1095
1095
  # @param [String] quota_user
@@ -1136,9 +1136,9 @@ module Google
1136
1136
  # @param [Boolean] supports_team_drives
1137
1137
  # Whether the requesting application supports Team Drives.
1138
1138
  # @param [Boolean] use_domain_admin_access
1139
- # Whether the request should be treated as if it was issued by a domain
1140
- # administrator; if set to true, then the requester will be granted access if
1141
- # they are an administrator of the domain to which the item belongs.
1139
+ # Issue the request as a domain administrator; if set to true, then the
1140
+ # requester will be granted access if they are an administrator of the domain to
1141
+ # which the item belongs.
1142
1142
  # @param [String] fields
1143
1143
  # Selector specifying which fields to include in a partial response.
1144
1144
  # @param [String] quota_user
@@ -1188,9 +1188,9 @@ module Google
1188
1188
  # owner to a writer. This parameter is required as an acknowledgement of the
1189
1189
  # side effect.
1190
1190
  # @param [Boolean] use_domain_admin_access
1191
- # Whether the request should be treated as if it was issued by a domain
1192
- # administrator; if set to true, then the requester will be granted access if
1193
- # they are an administrator of the domain to which the item belongs.
1191
+ # Issue the request as a domain administrator; if set to true, then the
1192
+ # requester will be granted access if they are an administrator of the domain to
1193
+ # which the item belongs.
1194
1194
  # @param [String] fields
1195
1195
  # Selector specifying which fields to include in a partial response.
1196
1196
  # @param [String] quota_user
@@ -1673,9 +1673,9 @@ module Google
1673
1673
  # @param [String] team_drive_id
1674
1674
  # The ID of the Team Drive
1675
1675
  # @param [Boolean] use_domain_admin_access
1676
- # Whether the request should be treated as if it was issued by a domain
1677
- # administrator; if set to true, then the requester will be granted access if
1678
- # they are an administrator of the domain to which the Team Drive belongs.
1676
+ # Issue the request as a domain administrator; if set to true, then the
1677
+ # requester will be granted access if they are an administrator of the domain to
1678
+ # which the Team Drive belongs.
1679
1679
  # @param [String] fields
1680
1680
  # Selector specifying which fields to include in a partial response.
1681
1681
  # @param [String] quota_user
@@ -1715,9 +1715,8 @@ module Google
1715
1715
  # @param [String] q
1716
1716
  # Query string for searching Team Drives.
1717
1717
  # @param [Boolean] use_domain_admin_access
1718
- # Whether the request should be treated as if it was issued by a domain
1719
- # administrator; if set to true, then all Team Drives of the domain in which the
1720
- # requester is an administrator are returned.
1718
+ # Issue the request as a domain administrator; if set to true, then all Team
1719
+ # Drives of the domain in which the requester is an administrator are returned.
1721
1720
  # @param [String] fields
1722
1721
  # Selector specifying which fields to include in a partial response.
1723
1722
  # @param [String] quota_user
@@ -1755,6 +1754,10 @@ module Google
1755
1754
  # @param [String] team_drive_id
1756
1755
  # The ID of the Team Drive
1757
1756
  # @param [Google::Apis::DriveV3::TeamDrive] team_drive_object
1757
+ # @param [Boolean] use_domain_admin_access
1758
+ # Issue the request as a domain administrator; if set to true, then the
1759
+ # requester will be granted access if they are an administrator of the domain to
1760
+ # which the Team Drive belongs.
1758
1761
  # @param [String] fields
1759
1762
  # Selector specifying which fields to include in a partial response.
1760
1763
  # @param [String] quota_user
@@ -1774,13 +1777,14 @@ module Google
1774
1777
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1775
1778
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1776
1779
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1777
- def update_teamdrive(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1780
+ def update_teamdrive(team_drive_id, team_drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1778
1781
  command = make_simple_command(:patch, 'teamdrives/{teamDriveId}', options)
1779
1782
  command.request_representation = Google::Apis::DriveV3::TeamDrive::Representation
1780
1783
  command.request_object = team_drive_object
1781
1784
  command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation
1782
1785
  command.response_class = Google::Apis::DriveV3::TeamDrive
1783
1786
  command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
1787
+ command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
1784
1788
  command.query['fields'] = fields unless fields.nil?
1785
1789
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1786
1790
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/fit/rest/
26
26
  module FitnessV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170922'
28
+ REVISION = ''
29
29
 
30
30
  # View your activity information in Google Fit
31
31
  AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/fusiontables
26
26
  module FusiontablesV1
27
27
  VERSION = 'V1'
28
- REVISION = '20171117'
28
+ REVISION = ''
29
29
 
30
30
  # Manage your Fusion Tables
31
31
  AUTH_FUSIONTABLES = 'https://www.googleapis.com/auth/fusiontables'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/fusiontables
26
26
  module FusiontablesV2
27
27
  VERSION = 'V2'
28
- REVISION = '20171117'
28
+ REVISION = ''
29
29
 
30
30
  # Manage your Fusion Tables
31
31
  AUTH_FUSIONTABLES = 'https://www.googleapis.com/auth/fusiontables'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services
26
26
  module GamesConfigurationV1configuration
27
27
  VERSION = 'V1configuration'
28
- REVISION = '20180417'
28
+ REVISION = ''
29
29
 
30
30
  # View and manage your Google Play Developer account
31
31
  AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services
26
26
  module GamesManagementV1management
27
27
  VERSION = 'V1management'
28
- REVISION = '20180430'
28
+ REVISION = ''
29
29
 
30
30
  # Share your Google+ profile information and view and manage your game activity
31
31
  AUTH_GAMES = 'https://www.googleapis.com/auth/games'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services/
26
26
  module GamesV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180430'
28
+ REVISION = ''
29
29
 
30
30
  # View and manage its own configuration data in your Google Drive
31
31
  AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/gmail/api/
26
26
  module GmailV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180319'
28
+ REVISION = ''
29
29
 
30
30
  # Read, send, delete, and manage your email
31
31
  AUTH_SCOPE = 'https://mail.google.com/'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/groups-migration/
26
26
  module GroupsmigrationV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170607'
28
+ REVISION = ''
29
29
 
30
30
  # Manage messages in groups on your domain
31
31
  AUTH_APPS_GROUPS_MIGRATION = 'https://www.googleapis.com/auth/apps.groups.migration'