google-api-client 0.23.3 → 0.23.4

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.
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
@@ -1337,6 +1337,7 @@ module Google
1337
1337
  # @private
1338
1338
  class Representation < Google::Apis::Core::JsonRepresentation
1339
1339
  property :carrier, as: 'carrier'
1340
+ property :delivery_date, as: 'deliveryDate'
1340
1341
  property :shipment_id, as: 'shipmentId'
1341
1342
  property :status, as: 'status'
1342
1343
  property :tracking_id, as: 'trackingId'
@@ -1585,6 +1586,7 @@ module Google
1585
1586
  # @private
1586
1587
  class Representation < Google::Apis::Core::JsonRepresentation
1587
1588
  property :carrier, as: 'carrier'
1589
+ property :delivery_date, as: 'deliveryDate'
1588
1590
  property :operation_id, as: 'operationId'
1589
1591
  property :shipment_id, as: 'shipmentId'
1590
1592
  property :status, as: 'status'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/custom-search/v1/using_rest
26
26
  module CustomsearchV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180220'
28
+ REVISION = ''
29
29
  end
30
30
  end
31
31
  end
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/deployment-manager/
27
27
  module DeploymentmanagerAlpha
28
28
  VERSION = 'Alpha'
29
- REVISION = '20180609'
29
+ REVISION = ''
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/deployment-manager/
26
26
  module DeploymentmanagerV2
27
27
  VERSION = 'V2'
28
- REVISION = '20180503'
28
+ REVISION = ''
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/deployment-manager/
27
27
  module DeploymentmanagerV2beta
28
28
  VERSION = 'V2beta'
29
- REVISION = '20180609'
29
+ REVISION = ''
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/doubleclick-advertisers/
26
26
  module DfareportingV2_8
27
27
  VERSION = 'V2_8'
28
- REVISION = '20180514'
28
+ REVISION = ''
29
29
 
30
30
  # Manage DoubleClick Digital Marketing conversions
31
31
  AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/doubleclick-advertisers/
26
26
  module DfareportingV3_0
27
27
  VERSION = 'V3_0'
28
- REVISION = '20180514'
28
+ REVISION = ''
29
29
 
30
30
  # Manage DoubleClick Digital Marketing conversions
31
31
  AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/doubleclick-advertisers/
26
26
  module DfareportingV3_1
27
27
  VERSION = 'V3_1'
28
- REVISION = '20180514'
28
+ REVISION = ''
29
29
 
30
30
  # Manage DoubleClick Digital Marketing conversions
31
31
  AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/dialogflow-enterprise/
27
27
  module DialogflowV2beta1
28
28
  VERSION = 'V2beta1'
29
- REVISION = '20180702'
29
+ REVISION = '20180710'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1181,6 +1181,17 @@ module Google
1181
1181
 
1182
1182
  # Optional. This field is set to the value of `QueryParameters.payload` field
1183
1183
  # passed in the request.
1184
+ # This field is used for the telephony gateway. It should have a
1185
+ # structure similar to this JSON message:
1186
+ # <pre>`
1187
+ # "telephony": `
1188
+ # "caller_id": "+18558363987"
1189
+ # `</pre>
1190
+ # Note: The caller ID field (`caller_id`) will be in
1191
+ # [E.164 format](https://en.wikipedia.org/wiki/E.164) and is not supported
1192
+ # for standard tier agents. When the telephony gateway is used with a
1193
+ # standard tier agent the `caller_id` field above will have a value of
1194
+ # `REDACTED_IN_STANDARD_TIER_AGENT`.
1184
1195
  # Corresponds to the JSON property `payload`
1185
1196
  # @return [Hash<String,Object>]
1186
1197
  attr_accessor :payload
@@ -3340,6 +3351,17 @@ module Google
3340
3351
 
3341
3352
  # Optional. This field is set to the value of `QueryParameters.payload` field
3342
3353
  # passed in the request.
3354
+ # This field is used for the telephony gateway. It should have a
3355
+ # structure similar to this JSON message:
3356
+ # <pre>`
3357
+ # "telephony": `
3358
+ # "caller_id": "+18558363987"
3359
+ # `</pre>
3360
+ # Note: The caller ID field (`caller_id`) will be in
3361
+ # [E.164 format](https://en.wikipedia.org/wiki/E.164) and is not supported
3362
+ # for standard tier agents. When the telephony gateway is used with a
3363
+ # standard tier agent the `caller_id` field above will have a value of
3364
+ # `REDACTED_IN_STANDARD_TIER_AGENT`.
3343
3365
  # Corresponds to the JSON property `payload`
3344
3366
  # @return [Hash<String,Object>]
3345
3367
  attr_accessor :payload
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/cloud-dns
26
26
  module DnsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180427'
28
+ REVISION = ''
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/cloud-dns
26
26
  module DnsV1beta2
27
27
  VERSION = 'V1beta2'
28
- REVISION = '20180427'
28
+ REVISION = ''
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/cloud-dns
26
26
  module DnsV2beta1
27
27
  VERSION = 'V2beta1'
28
- REVISION = '20180427'
28
+ REVISION = ''
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/bid-manager/
26
26
  module DoubleclickbidmanagerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180215'
28
+ REVISION = ''
29
29
 
30
30
  # View and manage your reports in DoubleClick Bid Manager
31
31
  AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/doubleclick-search/
27
27
  module DoubleclicksearchV2
28
28
  VERSION = 'V2'
29
- REVISION = '20180424'
29
+ REVISION = ''
30
30
 
31
31
  # View and manage your advertising data in DoubleClick Search
32
32
  AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV2
28
28
  VERSION = 'V2'
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'
@@ -1310,6 +1310,13 @@ module Google
1310
1310
  # @return [Google::Apis::DriveV2::File::Capabilities]
1311
1311
  attr_accessor :capabilities
1312
1312
 
1313
+ # Whether the options to copy, print, or download this file, should be disabled
1314
+ # for readers and commenters.
1315
+ # Corresponds to the JSON property `copyRequiresWriterPermission`
1316
+ # @return [Boolean]
1317
+ attr_accessor :copy_requires_writer_permission
1318
+ alias_method :copy_requires_writer_permission?, :copy_requires_writer_permission
1319
+
1313
1320
  # Deprecated: use capabilities/canCopy.
1314
1321
  # Corresponds to the JSON property `copyable`
1315
1322
  # @return [Boolean]
@@ -1685,6 +1692,7 @@ module Google
1685
1692
  @can_comment = args[:can_comment] if args.key?(:can_comment)
1686
1693
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
1687
1694
  @capabilities = args[:capabilities] if args.key?(:capabilities)
1695
+ @copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
1688
1696
  @copyable = args[:copyable] if args.key?(:copyable)
1689
1697
  @created_date = args[:created_date] if args.key?(:created_date)
1690
1698
  @default_open_with_link = args[:default_open_with_link] if args.key?(:default_open_with_link)
@@ -1760,7 +1768,14 @@ module Google
1760
1768
  attr_accessor :can_add_children
1761
1769
  alias_method :can_add_children?, :can_add_children
1762
1770
 
1763
- # Whether the current user can change the restricted download label of this file.
1771
+ # Whether the current user can change the copyRequiresWriterPermission
1772
+ # restriction of this file.
1773
+ # Corresponds to the JSON property `canChangeCopyRequiresWriterPermission`
1774
+ # @return [Boolean]
1775
+ attr_accessor :can_change_copy_requires_writer_permission
1776
+ alias_method :can_change_copy_requires_writer_permission?, :can_change_copy_requires_writer_permission
1777
+
1778
+ # Deprecated
1764
1779
  # Corresponds to the JSON property `canChangeRestrictedDownload`
1765
1780
  # @return [Boolean]
1766
1781
  attr_accessor :can_change_restricted_download
@@ -1874,6 +1889,7 @@ module Google
1874
1889
  # Update properties of this object
1875
1890
  def update!(**args)
1876
1891
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
1892
+ @can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
1877
1893
  @can_change_restricted_download = args[:can_change_restricted_download] if args.key?(:can_change_restricted_download)
1878
1894
  @can_comment = args[:can_comment] if args.key?(:can_comment)
1879
1895
  @can_copy = args[:can_copy] if args.key?(:can_copy)
@@ -2101,8 +2117,7 @@ module Google
2101
2117
  attr_accessor :modified
2102
2118
  alias_method :modified?, :modified
2103
2119
 
2104
- # Whether viewers and commenters are prevented from downloading, printing, and
2105
- # copying this file.
2120
+ # Deprecated - use copyRequiresWriterPermission instead.
2106
2121
  # Corresponds to the JSON property `restricted`
2107
2122
  # @return [Boolean]
2108
2123
  attr_accessor :restricted
@@ -2984,8 +2999,8 @@ module Google
2984
2999
  # @return [DateTime]
2985
3000
  attr_accessor :created_date
2986
3001
 
2987
- # The ID of this Team Drive which is also the ID of the top level folder for
2988
- # this Team Drive.
3002
+ # The ID of this Team Drive which is also the ID of the top level folder of this
3003
+ # Team Drive.
2989
3004
  # Corresponds to the JSON property `id`
2990
3005
  # @return [String]
2991
3006
  attr_accessor :id
@@ -3000,6 +3015,12 @@ module Google
3000
3015
  # @return [String]
3001
3016
  attr_accessor :name
3002
3017
 
3018
+ # A set of restrictions that apply to this Team Drive or items inside this Team
3019
+ # Drive.
3020
+ # Corresponds to the JSON property `restrictions`
3021
+ # @return [Google::Apis::DriveV2::TeamDrive::Restrictions]
3022
+ attr_accessor :restrictions
3023
+
3003
3024
  # The ID of the theme from which the background image and color will be set. The
3004
3025
  # set of possible teamDriveThemes can be retrieved from a drive.about.get
3005
3026
  # response. When not specified on a drive.teamdrives.insert request, a random
@@ -3024,6 +3045,7 @@ module Google
3024
3045
  @id = args[:id] if args.key?(:id)
3025
3046
  @kind = args[:kind] if args.key?(:kind)
3026
3047
  @name = args[:name] if args.key?(:name)
3048
+ @restrictions = args[:restrictions] if args.key?(:restrictions)
3027
3049
  @theme_id = args[:theme_id] if args.key?(:theme_id)
3028
3050
  end
3029
3051
 
@@ -3087,12 +3109,33 @@ module Google
3087
3109
  attr_accessor :can_add_children
3088
3110
  alias_method :can_add_children?, :can_add_children
3089
3111
 
3112
+ # Whether the current user can change the copyRequiresWriterPermission
3113
+ # restriction of this Team Drive.
3114
+ # Corresponds to the JSON property `canChangeCopyRequiresWriterPermissionRestriction`
3115
+ # @return [Boolean]
3116
+ attr_accessor :can_change_copy_requires_writer_permission_restriction
3117
+ alias_method :can_change_copy_requires_writer_permission_restriction?, :can_change_copy_requires_writer_permission_restriction
3118
+
3119
+ # Whether the current user can change the domainUsersOnly restriction of this
3120
+ # Team Drive.
3121
+ # Corresponds to the JSON property `canChangeDomainUsersOnlyRestriction`
3122
+ # @return [Boolean]
3123
+ attr_accessor :can_change_domain_users_only_restriction
3124
+ alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
3125
+
3090
3126
  # Whether the current user can change the background of this Team Drive.
3091
3127
  # Corresponds to the JSON property `canChangeTeamDriveBackground`
3092
3128
  # @return [Boolean]
3093
3129
  attr_accessor :can_change_team_drive_background
3094
3130
  alias_method :can_change_team_drive_background?, :can_change_team_drive_background
3095
3131
 
3132
+ # Whether the current user can change the teamMembersOnly restriction of this
3133
+ # Team Drive.
3134
+ # Corresponds to the JSON property `canChangeTeamMembersOnlyRestriction`
3135
+ # @return [Boolean]
3136
+ attr_accessor :can_change_team_members_only_restriction
3137
+ alias_method :can_change_team_members_only_restriction?, :can_change_team_members_only_restriction
3138
+
3096
3139
  # Whether the current user can comment on files in this Team Drive.
3097
3140
  # Corresponds to the JSON property `canComment`
3098
3141
  # @return [Boolean]
@@ -3175,7 +3218,10 @@ module Google
3175
3218
  # Update properties of this object
3176
3219
  def update!(**args)
3177
3220
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
3221
+ @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)
3222
+ @can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
3178
3223
  @can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
3224
+ @can_change_team_members_only_restriction = args[:can_change_team_members_only_restriction] if args.key?(:can_change_team_members_only_restriction)
3179
3225
  @can_comment = args[:can_comment] if args.key?(:can_comment)
3180
3226
  @can_copy = args[:can_copy] if args.key?(:can_copy)
3181
3227
  @can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)
@@ -3190,6 +3236,56 @@ module Google
3190
3236
  @can_share = args[:can_share] if args.key?(:can_share)
3191
3237
  end
3192
3238
  end
3239
+
3240
+ # A set of restrictions that apply to this Team Drive or items inside this Team
3241
+ # Drive.
3242
+ class Restrictions
3243
+ include Google::Apis::Core::Hashable
3244
+
3245
+ # Whether administrative privileges on this Team Drive are required to modify
3246
+ # restrictions.
3247
+ # Corresponds to the JSON property `adminManagedRestrictions`
3248
+ # @return [Boolean]
3249
+ attr_accessor :admin_managed_restrictions
3250
+ alias_method :admin_managed_restrictions?, :admin_managed_restrictions
3251
+
3252
+ # Whether the options to copy, print, or download files inside this Team Drive,
3253
+ # should be disabled for readers and commenters. When this restriction is set to
3254
+ # true, it will override the similarly named field to true for any file inside
3255
+ # this Team Drive.
3256
+ # Corresponds to the JSON property `copyRequiresWriterPermission`
3257
+ # @return [Boolean]
3258
+ attr_accessor :copy_requires_writer_permission
3259
+ alias_method :copy_requires_writer_permission?, :copy_requires_writer_permission
3260
+
3261
+ # Whether access to this Team Drive and items inside this Team Drive is
3262
+ # restricted to users of the domain to which this Team Drive belongs. This
3263
+ # restriction may be overridden by other sharing policies controlled outside of
3264
+ # this Team Drive.
3265
+ # Corresponds to the JSON property `domainUsersOnly`
3266
+ # @return [Boolean]
3267
+ attr_accessor :domain_users_only
3268
+ alias_method :domain_users_only?, :domain_users_only
3269
+
3270
+ # Whether access to items inside this Team Drive is restricted to members of
3271
+ # this Team Drive.
3272
+ # Corresponds to the JSON property `teamMembersOnly`
3273
+ # @return [Boolean]
3274
+ attr_accessor :team_members_only
3275
+ alias_method :team_members_only?, :team_members_only
3276
+
3277
+ def initialize(**args)
3278
+ update!(**args)
3279
+ end
3280
+
3281
+ # Update properties of this object
3282
+ def update!(**args)
3283
+ @admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions)
3284
+ @copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
3285
+ @domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
3286
+ @team_members_only = args[:team_members_only] if args.key?(:team_members_only)
3287
+ end
3288
+ end
3193
3289
  end
3194
3290
 
3195
3291
  # A list of Team Drives.
@@ -294,6 +294,12 @@ module Google
294
294
 
295
295
  include Google::Apis::Core::JsonObjectSupport
296
296
  end
297
+
298
+ class Restrictions
299
+ class Representation < Google::Apis::Core::JsonRepresentation; end
300
+
301
+ include Google::Apis::Core::JsonObjectSupport
302
+ end
297
303
 
298
304
  include Google::Apis::Core::JsonObjectSupport
299
305
  end
@@ -632,6 +638,7 @@ module Google
632
638
  property :can_read_revisions, as: 'canReadRevisions'
633
639
  property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::File::Capabilities, decorator: Google::Apis::DriveV2::File::Capabilities::Representation
634
640
 
641
+ property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
635
642
  property :copyable, as: 'copyable'
636
643
  property :created_date, as: 'createdDate', type: DateTime
637
644
 
@@ -719,6 +726,7 @@ module Google
719
726
  # @private
720
727
  class Representation < Google::Apis::Core::JsonRepresentation
721
728
  property :can_add_children, as: 'canAddChildren'
729
+ property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
722
730
  property :can_change_restricted_download, as: 'canChangeRestrictedDownload'
723
731
  property :can_comment, as: 'canComment'
724
732
  property :can_copy, as: 'canCopy'
@@ -996,6 +1004,8 @@ module Google
996
1004
  property :id, as: 'id'
997
1005
  property :kind, as: 'kind'
998
1006
  property :name, as: 'name'
1007
+ property :restrictions, as: 'restrictions', class: Google::Apis::DriveV2::TeamDrive::Restrictions, decorator: Google::Apis::DriveV2::TeamDrive::Restrictions::Representation
1008
+
999
1009
  property :theme_id, as: 'themeId'
1000
1010
  end
1001
1011
 
@@ -1013,7 +1023,10 @@ module Google
1013
1023
  # @private
1014
1024
  class Representation < Google::Apis::Core::JsonRepresentation
1015
1025
  property :can_add_children, as: 'canAddChildren'
1026
+ property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
1027
+ property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
1016
1028
  property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
1029
+ property :can_change_team_members_only_restriction, as: 'canChangeTeamMembersOnlyRestriction'
1017
1030
  property :can_comment, as: 'canComment'
1018
1031
  property :can_copy, as: 'canCopy'
1019
1032
  property :can_delete_team_drive, as: 'canDeleteTeamDrive'
@@ -1028,6 +1041,16 @@ module Google
1028
1041
  property :can_share, as: 'canShare'
1029
1042
  end
1030
1043
  end
1044
+
1045
+ class Restrictions
1046
+ # @private
1047
+ class Representation < Google::Apis::Core::JsonRepresentation
1048
+ property :admin_managed_restrictions, as: 'adminManagedRestrictions'
1049
+ property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
1050
+ property :domain_users_only, as: 'domainUsersOnly'
1051
+ property :team_members_only, as: 'teamMembersOnly'
1052
+ end
1053
+ end
1031
1054
  end
1032
1055
 
1033
1056
  class TeamDriveList
@@ -1742,9 +1742,9 @@ module Google
1742
1742
  # @param [Boolean] supports_team_drives
1743
1743
  # Whether the requesting application supports Team Drives.
1744
1744
  # @param [Boolean] use_domain_admin_access
1745
- # Whether the request should be treated as if it was issued by a domain
1746
- # administrator; if set to true, then the requester will be granted access if
1747
- # they are an administrator of the domain to which the item belongs.
1745
+ # Issue the request as a domain administrator; if set to true, then the
1746
+ # requester will be granted access if they are an administrator of the domain to
1747
+ # which the item belongs.
1748
1748
  # @param [String] fields
1749
1749
  # Selector specifying which fields to include in a partial response.
1750
1750
  # @param [String] quota_user
@@ -1784,9 +1784,9 @@ module Google
1784
1784
  # @param [Boolean] supports_team_drives
1785
1785
  # Whether the requesting application supports Team Drives.
1786
1786
  # @param [Boolean] use_domain_admin_access
1787
- # Whether the request should be treated as if it was issued by a domain
1788
- # administrator; if set to true, then the requester will be granted access if
1789
- # they are an administrator of the domain to which the item belongs.
1787
+ # Issue the request as a domain administrator; if set to true, then the
1788
+ # requester will be granted access if they are an administrator of the domain to
1789
+ # which the item belongs.
1790
1790
  # @param [String] fields
1791
1791
  # Selector specifying which fields to include in a partial response.
1792
1792
  # @param [String] quota_user
@@ -1865,9 +1865,9 @@ module Google
1865
1865
  # @param [Boolean] supports_team_drives
1866
1866
  # Whether the requesting application supports Team Drives.
1867
1867
  # @param [Boolean] use_domain_admin_access
1868
- # Whether the request should be treated as if it was issued by a domain
1869
- # administrator; if set to true, then the requester will be granted access if
1870
- # they are an administrator of the domain to which the item belongs.
1868
+ # Issue the request as a domain administrator; if set to true, then the
1869
+ # requester will be granted access if they are an administrator of the domain to
1870
+ # which the item belongs.
1871
1871
  # @param [String] fields
1872
1872
  # Selector specifying which fields to include in a partial response.
1873
1873
  # @param [String] quota_user
@@ -1917,9 +1917,9 @@ module Google
1917
1917
  # @param [Boolean] supports_team_drives
1918
1918
  # Whether the requesting application supports Team Drives.
1919
1919
  # @param [Boolean] use_domain_admin_access
1920
- # Whether the request should be treated as if it was issued by a domain
1921
- # administrator; if set to true, then the requester will be granted access if
1922
- # they are an administrator of the domain to which the item belongs.
1920
+ # Issue the request as a domain administrator; if set to true, then the
1921
+ # requester will be granted access if they are an administrator of the domain to
1922
+ # which the item belongs.
1923
1923
  # @param [String] fields
1924
1924
  # Selector specifying which fields to include in a partial response.
1925
1925
  # @param [String] quota_user
@@ -1968,9 +1968,9 @@ module Google
1968
1968
  # Whether changing a role to 'owner' downgrades the current owners to writers.
1969
1969
  # Does nothing if the specified role is not 'owner'.
1970
1970
  # @param [Boolean] use_domain_admin_access
1971
- # Whether the request should be treated as if it was issued by a domain
1972
- # administrator; if set to true, then the requester will be granted access if
1973
- # they are an administrator of the domain to which the item belongs.
1971
+ # Issue the request as a domain administrator; if set to true, then the
1972
+ # requester will be granted access if they are an administrator of the domain to
1973
+ # which the item belongs.
1974
1974
  # @param [String] fields
1975
1975
  # Selector specifying which fields to include in a partial response.
1976
1976
  # @param [String] quota_user
@@ -2022,9 +2022,9 @@ module Google
2022
2022
  # Whether changing a role to 'owner' downgrades the current owners to writers.
2023
2023
  # Does nothing if the specified role is not 'owner'.
2024
2024
  # @param [Boolean] use_domain_admin_access
2025
- # Whether the request should be treated as if it was issued by a domain
2026
- # administrator; if set to true, then the requester will be granted access if
2027
- # they are an administrator of the domain to which the item belongs.
2025
+ # Issue the request as a domain administrator; if set to true, then the
2026
+ # requester will be granted access if they are an administrator of the domain to
2027
+ # which the item belongs.
2028
2028
  # @param [String] fields
2029
2029
  # Selector specifying which fields to include in a partial response.
2030
2030
  # @param [String] quota_user
@@ -2859,9 +2859,9 @@ module Google
2859
2859
  # @param [String] team_drive_id
2860
2860
  # The ID of the Team Drive
2861
2861
  # @param [Boolean] use_domain_admin_access
2862
- # Whether the request should be treated as if it was issued by a domain
2863
- # administrator; if set to true, then the requester will be granted access if
2864
- # they are an administrator of the domain to which the Team Drive belongs.
2862
+ # Issue the request as a domain administrator; if set to true, then the
2863
+ # requester will be granted access if they are an administrator of the domain to
2864
+ # which the Team Drive belongs.
2865
2865
  # @param [String] fields
2866
2866
  # Selector specifying which fields to include in a partial response.
2867
2867
  # @param [String] quota_user
@@ -2941,9 +2941,8 @@ module Google
2941
2941
  # @param [String] q
2942
2942
  # Query string for searching Team Drives.
2943
2943
  # @param [Boolean] use_domain_admin_access
2944
- # Whether the request should be treated as if it was issued by a domain
2945
- # administrator; if set to true, then all Team Drives of the domain in which the
2946
- # requester is an administrator are returned.
2944
+ # Issue the request as a domain administrator; if set to true, then all Team
2945
+ # Drives of the domain in which the requester is an administrator are returned.
2947
2946
  # @param [String] fields
2948
2947
  # Selector specifying which fields to include in a partial response.
2949
2948
  # @param [String] quota_user
@@ -2981,6 +2980,9 @@ module Google
2981
2980
  # @param [String] team_drive_id
2982
2981
  # The ID of the Team Drive
2983
2982
  # @param [Google::Apis::DriveV2::TeamDrive] team_drive_object
2983
+ # @param [Boolean] use_domain_admin_access
2984
+ # Issue the request as a domain administrator; if set to true, then all Team
2985
+ # Drives of the domain in which the requester is an administrator are returned.
2984
2986
  # @param [String] fields
2985
2987
  # Selector specifying which fields to include in a partial response.
2986
2988
  # @param [String] quota_user
@@ -3000,13 +3002,14 @@ module Google
3000
3002
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3001
3003
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3002
3004
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3003
- def update_teamdrive(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3005
+ 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)
3004
3006
  command = make_simple_command(:put, 'teamdrives/{teamDriveId}', options)
3005
3007
  command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
3006
3008
  command.request_object = team_drive_object
3007
3009
  command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
3008
3010
  command.response_class = Google::Apis::DriveV2::TeamDrive
3009
3011
  command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
3012
+ command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
3010
3013
  command.query['fields'] = fields unless fields.nil?
3011
3014
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3012
3015
  command.query['userIp'] = user_ip unless user_ip.nil?