google-api-client 0.15.0 → 0.16.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 +4 -4
- data/CHANGELOG.md +75 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -35
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +958 -82
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +147 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +54 -0
- data/generated/google/apis/admin_directory_v1/service.rb +71 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -19
- data/generated/google/apis/androidenterprise_v1/service.rb +39 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +12 -11
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +0 -189
- data/generated/google/apis/androidpublisher_v2/representations.rb +0 -120
- data/generated/google/apis/androidpublisher_v2/service.rb +0 -35
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1 -46
- data/generated/google/apis/appengine_v1/representations.rb +0 -17
- data/generated/google/apis/appengine_v1/service.rb +5 -1
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +0 -45
- data/generated/google/apis/appengine_v1alpha/representations.rb +0 -17
- data/generated/google/apis/appengine_v1alpha/service.rb +5 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +5 -47
- data/generated/google/apis/appengine_v1beta/representations.rb +0 -17
- data/generated/google/apis/appengine_v1beta/service.rb +5 -1
- data/generated/google/apis/appengine_v1beta4.rb +1 -1
- data/generated/google/apis/appengine_v1beta4/classes.rb +44 -45
- data/generated/google/apis/appengine_v1beta4/representations.rb +16 -17
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +4 -46
- data/generated/google/apis/appengine_v1beta5/representations.rb +0 -17
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +41 -24
- data/generated/google/apis/bigquery_v2/representations.rb +3 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +3 -7
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +0 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +15 -3
- data/generated/google/apis/classroom_v1.rb +4 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +26 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +14 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +91 -0
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +482 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +210 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +288 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +119 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +68 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +77 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/service.rb +7 -3
- data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +2 -4
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -14
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +10 -7
- data/generated/google/apis/cloudtrace_v2/representations.rb +2 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +143 -83
- data/generated/google/apis/compute_alpha/representations.rb +50 -30
- data/generated/google/apis/compute_alpha/service.rb +171 -5
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +47 -43
- data/generated/google/apis/compute_beta/representations.rb +1 -2
- data/generated/google/apis/compute_beta/service.rb +60 -5
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1326 -168
- data/generated/google/apis/compute_v1/representations.rb +402 -0
- data/generated/google/apis/compute_v1/service.rb +751 -5
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +23 -16
- data/generated/google/apis/content_v2/service.rb +142 -162
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/service.rb +43 -43
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +44 -35
- data/generated/google/apis/dataflow_v1b3/representations.rb +6 -17
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +39 -37
- data/generated/google/apis/dataproc_v1beta2/service.rb +30 -30
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +39 -60
- data/generated/google/apis/datastore_v1/representations.rb +27 -0
- data/generated/google/apis/datastore_v1/service.rb +34 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +39 -60
- data/generated/google/apis/datastore_v1beta3/representations.rb +27 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +34 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +108 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +50 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +116 -10
- data/generated/google/apis/dlp_v2beta1/representations.rb +45 -0
- data/generated/google/apis/dns_v1beta2.rb +43 -0
- data/generated/google/apis/dns_v1beta2/classes.rb +915 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +368 -0
- data/generated/google/apis/dns_v1beta2/service.rb +769 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +6 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +51 -8
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +6 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +45 -7
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +25 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +15 -0
- data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
- data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +21 -1
- data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +2 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
- data/generated/google/apis/firebaserules_v1/service.rb +37 -0
- data/generated/google/apis/firestore_v1beta1/classes.rb +29 -146
- data/generated/google/apis/firestore_v1beta1/representations.rb +8 -27
- data/generated/google/apis/firestore_v1beta1/service.rb +4 -8
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +18 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +5 -7
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +78 -0
- data/generated/google/apis/language_v1/representations.rb +45 -0
- data/generated/google/apis/language_v1/service.rb +30 -0
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +3 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +9 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2/service.rb +517 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +6 -6
- data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +22 -6
- data/generated/google/apis/ml_v1/service.rb +8 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +358 -0
- data/generated/google/apis/monitoring_v3/representations.rb +145 -0
- data/generated/google/apis/monitoring_v3/service.rb +229 -0
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +13 -8
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +36 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +9 -4
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1beta/service.rb +36 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +7 -60
- data/generated/google/apis/partners_v2/representations.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -4
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/classes.rb +57 -51
- data/generated/google/apis/script_v1/representations.rb +0 -1
- data/generated/google/apis/script_v1/service.rb +2 -2
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +5 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +13 -31
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +13 -31
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +1 -2
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +505 -11
- data/generated/google/apis/slides_v1/representations.rb +220 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +10 -1
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +127 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +63 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +51 -72
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -61
- data/generated/google/apis/streetviewpublish_v1/service.rb +2 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +8 -3
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +17 -16
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +108 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +49 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +42 -0
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/generator/model.rb +9 -3
- data/lib/google/apis/generator/templates/_class.tmpl +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -12
- data/generated/google/apis/playmoviespartner_v1.rb +0 -34
- data/generated/google/apis/playmoviespartner_v1/classes.rb +0 -782
- data/generated/google/apis/playmoviespartner_v1/representations.rb +0 -191
- data/generated/google/apis/playmoviespartner_v1/service.rb +0 -354
- data/generated/google/apis/qpx_express_v1.rb +0 -31
- data/generated/google/apis/qpx_express_v1/classes.rb +0 -1274
- data/generated/google/apis/qpx_express_v1/representations.rb +0 -473
- data/generated/google/apis/qpx_express_v1/service.rb +0 -101
|
@@ -2968,6 +2968,11 @@ module Google
|
|
|
2968
2968
|
# @return [String]
|
|
2969
2969
|
attr_accessor :color_rgb
|
|
2970
2970
|
|
|
2971
|
+
# The time at which the Team Drive was created (RFC 3339 date-time).
|
|
2972
|
+
# Corresponds to the JSON property `createdDate`
|
|
2973
|
+
# @return [DateTime]
|
|
2974
|
+
attr_accessor :created_date
|
|
2975
|
+
|
|
2971
2976
|
# The ID of this Team Drive which is also the ID of the top level folder for
|
|
2972
2977
|
# this Team Drive.
|
|
2973
2978
|
# Corresponds to the JSON property `id`
|
|
@@ -3004,6 +3009,7 @@ module Google
|
|
|
3004
3009
|
@background_image_link = args[:background_image_link] if args.key?(:background_image_link)
|
|
3005
3010
|
@capabilities = args[:capabilities] if args.key?(:capabilities)
|
|
3006
3011
|
@color_rgb = args[:color_rgb] if args.key?(:color_rgb)
|
|
3012
|
+
@created_date = args[:created_date] if args.key?(:created_date)
|
|
3007
3013
|
@id = args[:id] if args.key?(:id)
|
|
3008
3014
|
@kind = args[:kind] if args.key?(:kind)
|
|
3009
3015
|
@name = args[:name] if args.key?(:name)
|
|
@@ -990,6 +990,8 @@ module Google
|
|
|
990
990
|
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::TeamDrive::Capabilities, decorator: Google::Apis::DriveV2::TeamDrive::Capabilities::Representation
|
|
991
991
|
|
|
992
992
|
property :color_rgb, as: 'colorRgb'
|
|
993
|
+
property :created_date, as: 'createdDate', type: DateTime
|
|
994
|
+
|
|
993
995
|
property :id, as: 'id'
|
|
994
996
|
property :kind, as: 'kind'
|
|
995
997
|
property :name, as: 'name'
|
|
@@ -1806,6 +1806,10 @@ module Google
|
|
|
1806
1806
|
# The ID for the permission.
|
|
1807
1807
|
# @param [Boolean] supports_team_drives
|
|
1808
1808
|
# Whether the requesting application supports Team Drives.
|
|
1809
|
+
# @param [Boolean] use_domain_admin_access
|
|
1810
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
1811
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
1812
|
+
# they are an administrator of the domain to which the item belongs.
|
|
1809
1813
|
# @param [String] fields
|
|
1810
1814
|
# Selector specifying which fields to include in a partial response.
|
|
1811
1815
|
# @param [String] quota_user
|
|
@@ -1827,11 +1831,12 @@ module Google
|
|
|
1827
1831
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1828
1832
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1829
1833
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1830
|
-
def delete_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1834
|
+
def delete_permission(file_id, permission_id, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1831
1835
|
command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1832
1836
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1833
1837
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
1834
1838
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1839
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1835
1840
|
command.query['fields'] = fields unless fields.nil?
|
|
1836
1841
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1837
1842
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1845,6 +1850,10 @@ module Google
|
|
|
1845
1850
|
# The ID for the permission.
|
|
1846
1851
|
# @param [Boolean] supports_team_drives
|
|
1847
1852
|
# Whether the requesting application supports Team Drives.
|
|
1853
|
+
# @param [Boolean] use_domain_admin_access
|
|
1854
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
1855
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
1856
|
+
# they are an administrator of the domain to which the item belongs.
|
|
1848
1857
|
# @param [String] fields
|
|
1849
1858
|
# Selector specifying which fields to include in a partial response.
|
|
1850
1859
|
# @param [String] quota_user
|
|
@@ -1866,13 +1875,14 @@ module Google
|
|
|
1866
1875
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1867
1876
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1868
1877
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1869
|
-
def get_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1878
|
+
def get_permission(file_id, permission_id, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1870
1879
|
command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1871
1880
|
command.response_representation = Google::Apis::DriveV2::Permission::Representation
|
|
1872
1881
|
command.response_class = Google::Apis::DriveV2::Permission
|
|
1873
1882
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1874
1883
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
1875
1884
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1885
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1876
1886
|
command.query['fields'] = fields unless fields.nil?
|
|
1877
1887
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1878
1888
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1925,6 +1935,10 @@ module Google
|
|
|
1925
1935
|
# parameter is ignored and an email is sent if the role is owner.
|
|
1926
1936
|
# @param [Boolean] supports_team_drives
|
|
1927
1937
|
# Whether the requesting application supports Team Drives.
|
|
1938
|
+
# @param [Boolean] use_domain_admin_access
|
|
1939
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
1940
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
1941
|
+
# they are an administrator of the domain to which the item belongs.
|
|
1928
1942
|
# @param [String] fields
|
|
1929
1943
|
# Selector specifying which fields to include in a partial response.
|
|
1930
1944
|
# @param [String] quota_user
|
|
@@ -1946,7 +1960,7 @@ module Google
|
|
|
1946
1960
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1947
1961
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1948
1962
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1949
|
-
def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1963
|
+
def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1950
1964
|
command = make_simple_command(:post, 'files/{fileId}/permissions', options)
|
|
1951
1965
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
1952
1966
|
command.request_object = permission_object
|
|
@@ -1956,6 +1970,7 @@ module Google
|
|
|
1956
1970
|
command.query['emailMessage'] = email_message unless email_message.nil?
|
|
1957
1971
|
command.query['sendNotificationEmails'] = send_notification_emails unless send_notification_emails.nil?
|
|
1958
1972
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1973
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1959
1974
|
command.query['fields'] = fields unless fields.nil?
|
|
1960
1975
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1961
1976
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1974,6 +1989,10 @@ module Google
|
|
|
1974
1989
|
# be set to the value of 'nextPageToken' from the previous response.
|
|
1975
1990
|
# @param [Boolean] supports_team_drives
|
|
1976
1991
|
# Whether the requesting application supports Team Drives.
|
|
1992
|
+
# @param [Boolean] use_domain_admin_access
|
|
1993
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
1994
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
1995
|
+
# they are an administrator of the domain to which the item belongs.
|
|
1977
1996
|
# @param [String] fields
|
|
1978
1997
|
# Selector specifying which fields to include in a partial response.
|
|
1979
1998
|
# @param [String] quota_user
|
|
@@ -1995,7 +2014,7 @@ module Google
|
|
|
1995
2014
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1996
2015
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1997
2016
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1998
|
-
def list_permissions(file_id, max_results: nil, page_token: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2017
|
+
def list_permissions(file_id, max_results: nil, page_token: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1999
2018
|
command = make_simple_command(:get, 'files/{fileId}/permissions', options)
|
|
2000
2019
|
command.response_representation = Google::Apis::DriveV2::PermissionList::Representation
|
|
2001
2020
|
command.response_class = Google::Apis::DriveV2::PermissionList
|
|
@@ -2003,6 +2022,7 @@ module Google
|
|
|
2003
2022
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
2004
2023
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2005
2024
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
2025
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
2006
2026
|
command.query['fields'] = fields unless fields.nil?
|
|
2007
2027
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2008
2028
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -2022,6 +2042,10 @@ module Google
|
|
|
2022
2042
|
# @param [Boolean] transfer_ownership
|
|
2023
2043
|
# Whether changing a role to 'owner' downgrades the current owners to writers.
|
|
2024
2044
|
# Does nothing if the specified role is not 'owner'.
|
|
2045
|
+
# @param [Boolean] use_domain_admin_access
|
|
2046
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
2047
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
2048
|
+
# they are an administrator of the domain to which the item belongs.
|
|
2025
2049
|
# @param [String] fields
|
|
2026
2050
|
# Selector specifying which fields to include in a partial response.
|
|
2027
2051
|
# @param [String] quota_user
|
|
@@ -2043,7 +2067,7 @@ module Google
|
|
|
2043
2067
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2044
2068
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2045
2069
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2046
|
-
def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2070
|
+
def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2047
2071
|
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
|
2048
2072
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
2049
2073
|
command.request_object = permission_object
|
|
@@ -2054,6 +2078,7 @@ module Google
|
|
|
2054
2078
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
|
2055
2079
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
2056
2080
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
|
2081
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
2057
2082
|
command.query['fields'] = fields unless fields.nil?
|
|
2058
2083
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2059
2084
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -2073,6 +2098,10 @@ module Google
|
|
|
2073
2098
|
# @param [Boolean] transfer_ownership
|
|
2074
2099
|
# Whether changing a role to 'owner' downgrades the current owners to writers.
|
|
2075
2100
|
# Does nothing if the specified role is not 'owner'.
|
|
2101
|
+
# @param [Boolean] use_domain_admin_access
|
|
2102
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
2103
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
2104
|
+
# they are an administrator of the domain to which the item belongs.
|
|
2076
2105
|
# @param [String] fields
|
|
2077
2106
|
# Selector specifying which fields to include in a partial response.
|
|
2078
2107
|
# @param [String] quota_user
|
|
@@ -2094,7 +2123,7 @@ module Google
|
|
|
2094
2123
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2095
2124
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2096
2125
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2097
|
-
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2126
|
+
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2098
2127
|
command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
|
|
2099
2128
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
2100
2129
|
command.request_object = permission_object
|
|
@@ -2105,6 +2134,7 @@ module Google
|
|
|
2105
2134
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
|
2106
2135
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
2107
2136
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
|
2137
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
2108
2138
|
command.query['fields'] = fields unless fields.nil?
|
|
2109
2139
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2110
2140
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -2946,6 +2976,10 @@ module Google
|
|
|
2946
2976
|
# Gets a Team Drive's metadata by ID.
|
|
2947
2977
|
# @param [String] team_drive_id
|
|
2948
2978
|
# The ID of the Team Drive
|
|
2979
|
+
# @param [Boolean] use_domain_admin_access
|
|
2980
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
2981
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
2982
|
+
# they are an administrator of the domain to which the Team Drive belongs.
|
|
2949
2983
|
# @param [String] fields
|
|
2950
2984
|
# Selector specifying which fields to include in a partial response.
|
|
2951
2985
|
# @param [String] quota_user
|
|
@@ -2967,11 +3001,12 @@ module Google
|
|
|
2967
3001
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2968
3002
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2969
3003
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2970
|
-
def get_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3004
|
+
def get_teamdrive(team_drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2971
3005
|
command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
|
|
2972
3006
|
command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
|
2973
3007
|
command.response_class = Google::Apis::DriveV2::TeamDrive
|
|
2974
3008
|
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
3009
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
2975
3010
|
command.query['fields'] = fields unless fields.nil?
|
|
2976
3011
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2977
3012
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -3025,6 +3060,12 @@ module Google
|
|
|
3025
3060
|
# Maximum number of Team Drives to return.
|
|
3026
3061
|
# @param [String] page_token
|
|
3027
3062
|
# Page token for Team Drives.
|
|
3063
|
+
# @param [String] q
|
|
3064
|
+
# Query string for searching Team Drives.
|
|
3065
|
+
# @param [Boolean] use_domain_admin_access
|
|
3066
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
3067
|
+
# administrator; if set to true, then all Team Drives of the domain in which the
|
|
3068
|
+
# requester is an administrator are returned.
|
|
3028
3069
|
# @param [String] fields
|
|
3029
3070
|
# Selector specifying which fields to include in a partial response.
|
|
3030
3071
|
# @param [String] quota_user
|
|
@@ -3046,12 +3087,14 @@ module Google
|
|
|
3046
3087
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3047
3088
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3048
3089
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3049
|
-
def list_teamdrives(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3090
|
+
def list_teamdrives(max_results: nil, page_token: nil, q: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3050
3091
|
command = make_simple_command(:get, 'teamdrives', options)
|
|
3051
3092
|
command.response_representation = Google::Apis::DriveV2::TeamDriveList::Representation
|
|
3052
3093
|
command.response_class = Google::Apis::DriveV2::TeamDriveList
|
|
3053
3094
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
3054
3095
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
3096
|
+
command.query['q'] = q unless q.nil?
|
|
3097
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
3055
3098
|
command.query['fields'] = fields unless fields.nil?
|
|
3056
3099
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3057
3100
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1869,6 +1869,11 @@ module Google
|
|
|
1869
1869
|
# @return [String]
|
|
1870
1870
|
attr_accessor :color_rgb
|
|
1871
1871
|
|
|
1872
|
+
# The time at which the Team Drive was created (RFC 3339 date-time).
|
|
1873
|
+
# Corresponds to the JSON property `createdTime`
|
|
1874
|
+
# @return [DateTime]
|
|
1875
|
+
attr_accessor :created_time
|
|
1876
|
+
|
|
1872
1877
|
# The ID of this Team Drive which is also the ID of the top level folder for
|
|
1873
1878
|
# this Team Drive.
|
|
1874
1879
|
# Corresponds to the JSON property `id`
|
|
@@ -1906,6 +1911,7 @@ module Google
|
|
|
1906
1911
|
@background_image_link = args[:background_image_link] if args.key?(:background_image_link)
|
|
1907
1912
|
@capabilities = args[:capabilities] if args.key?(:capabilities)
|
|
1908
1913
|
@color_rgb = args[:color_rgb] if args.key?(:color_rgb)
|
|
1914
|
+
@created_time = args[:created_time] if args.key?(:created_time)
|
|
1909
1915
|
@id = args[:id] if args.key?(:id)
|
|
1910
1916
|
@kind = args[:kind] if args.key?(:kind)
|
|
1911
1917
|
@name = args[:name] if args.key?(:name)
|
|
@@ -633,6 +633,8 @@ module Google
|
|
|
633
633
|
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV3::TeamDrive::Capabilities, decorator: Google::Apis::DriveV3::TeamDrive::Capabilities::Representation
|
|
634
634
|
|
|
635
635
|
property :color_rgb, as: 'colorRgb'
|
|
636
|
+
property :created_time, as: 'createdTime', type: DateTime
|
|
637
|
+
|
|
636
638
|
property :id, as: 'id'
|
|
637
639
|
property :kind, as: 'kind'
|
|
638
640
|
property :name, as: 'name'
|
|
@@ -1038,6 +1038,10 @@ module Google
|
|
|
1038
1038
|
# Whether to transfer ownership to the specified user and downgrade the current
|
|
1039
1039
|
# owner to a writer. This parameter is required as an acknowledgement of the
|
|
1040
1040
|
# side effect.
|
|
1041
|
+
# @param [Boolean] use_domain_admin_access
|
|
1042
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
1043
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
1044
|
+
# they are an administrator of the domain to which the item belongs.
|
|
1041
1045
|
# @param [String] fields
|
|
1042
1046
|
# Selector specifying which fields to include in a partial response.
|
|
1043
1047
|
# @param [String] quota_user
|
|
@@ -1059,7 +1063,7 @@ module Google
|
|
|
1059
1063
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1060
1064
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1061
1065
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1062
|
-
def create_permission(file_id, permission_object = nil, email_message: nil, send_notification_email: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1066
|
+
def create_permission(file_id, permission_object = nil, email_message: nil, send_notification_email: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1063
1067
|
command = make_simple_command(:post, 'files/{fileId}/permissions', options)
|
|
1064
1068
|
command.request_representation = Google::Apis::DriveV3::Permission::Representation
|
|
1065
1069
|
command.request_object = permission_object
|
|
@@ -1070,6 +1074,7 @@ module Google
|
|
|
1070
1074
|
command.query['sendNotificationEmail'] = send_notification_email unless send_notification_email.nil?
|
|
1071
1075
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1072
1076
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
|
1077
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1073
1078
|
command.query['fields'] = fields unless fields.nil?
|
|
1074
1079
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1075
1080
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1083,6 +1088,10 @@ module Google
|
|
|
1083
1088
|
# The ID of the permission.
|
|
1084
1089
|
# @param [Boolean] supports_team_drives
|
|
1085
1090
|
# Whether the requesting application supports Team Drives.
|
|
1091
|
+
# @param [Boolean] use_domain_admin_access
|
|
1092
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
1093
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
1094
|
+
# they are an administrator of the domain to which the item belongs.
|
|
1086
1095
|
# @param [String] fields
|
|
1087
1096
|
# Selector specifying which fields to include in a partial response.
|
|
1088
1097
|
# @param [String] quota_user
|
|
@@ -1104,11 +1113,12 @@ module Google
|
|
|
1104
1113
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1105
1114
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1106
1115
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1107
|
-
def delete_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1116
|
+
def delete_permission(file_id, permission_id, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1108
1117
|
command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1109
1118
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1110
1119
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
1111
1120
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1121
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1112
1122
|
command.query['fields'] = fields unless fields.nil?
|
|
1113
1123
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1114
1124
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1122,6 +1132,10 @@ module Google
|
|
|
1122
1132
|
# The ID of the permission.
|
|
1123
1133
|
# @param [Boolean] supports_team_drives
|
|
1124
1134
|
# Whether the requesting application supports Team Drives.
|
|
1135
|
+
# @param [Boolean] use_domain_admin_access
|
|
1136
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
1137
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
1138
|
+
# they are an administrator of the domain to which the item belongs.
|
|
1125
1139
|
# @param [String] fields
|
|
1126
1140
|
# Selector specifying which fields to include in a partial response.
|
|
1127
1141
|
# @param [String] quota_user
|
|
@@ -1143,13 +1157,14 @@ module Google
|
|
|
1143
1157
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1144
1158
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1145
1159
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1146
|
-
def get_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1160
|
+
def get_permission(file_id, permission_id, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1147
1161
|
command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1148
1162
|
command.response_representation = Google::Apis::DriveV3::Permission::Representation
|
|
1149
1163
|
command.response_class = Google::Apis::DriveV3::Permission
|
|
1150
1164
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1151
1165
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
1152
1166
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1167
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1153
1168
|
command.query['fields'] = fields unless fields.nil?
|
|
1154
1169
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1155
1170
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1168,6 +1183,10 @@ module Google
|
|
|
1168
1183
|
# be set to the value of 'nextPageToken' from the previous response.
|
|
1169
1184
|
# @param [Boolean] supports_team_drives
|
|
1170
1185
|
# Whether the requesting application supports Team Drives.
|
|
1186
|
+
# @param [Boolean] use_domain_admin_access
|
|
1187
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
1188
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
1189
|
+
# they are an administrator of the domain to which the item belongs.
|
|
1171
1190
|
# @param [String] fields
|
|
1172
1191
|
# Selector specifying which fields to include in a partial response.
|
|
1173
1192
|
# @param [String] quota_user
|
|
@@ -1189,7 +1208,7 @@ module Google
|
|
|
1189
1208
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1190
1209
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1191
1210
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1192
|
-
def list_permissions(file_id, page_size: nil, page_token: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1211
|
+
def list_permissions(file_id, page_size: nil, page_token: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1193
1212
|
command = make_simple_command(:get, 'files/{fileId}/permissions', options)
|
|
1194
1213
|
command.response_representation = Google::Apis::DriveV3::PermissionList::Representation
|
|
1195
1214
|
command.response_class = Google::Apis::DriveV3::PermissionList
|
|
@@ -1197,6 +1216,7 @@ module Google
|
|
|
1197
1216
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1198
1217
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1199
1218
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1219
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1200
1220
|
command.query['fields'] = fields unless fields.nil?
|
|
1201
1221
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1202
1222
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1217,6 +1237,10 @@ module Google
|
|
|
1217
1237
|
# Whether to transfer ownership to the specified user and downgrade the current
|
|
1218
1238
|
# owner to a writer. This parameter is required as an acknowledgement of the
|
|
1219
1239
|
# side effect.
|
|
1240
|
+
# @param [Boolean] use_domain_admin_access
|
|
1241
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
1242
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
1243
|
+
# they are an administrator of the domain to which the item belongs.
|
|
1220
1244
|
# @param [String] fields
|
|
1221
1245
|
# Selector specifying which fields to include in a partial response.
|
|
1222
1246
|
# @param [String] quota_user
|
|
@@ -1238,7 +1262,7 @@ module Google
|
|
|
1238
1262
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1239
1263
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1240
1264
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1241
|
-
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1265
|
+
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1242
1266
|
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1243
1267
|
command.request_representation = Google::Apis::DriveV3::Permission::Representation
|
|
1244
1268
|
command.request_object = permission_object
|
|
@@ -1249,6 +1273,7 @@ module Google
|
|
|
1249
1273
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
|
1250
1274
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1251
1275
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
|
1276
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1252
1277
|
command.query['fields'] = fields unless fields.nil?
|
|
1253
1278
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1254
1279
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1721,6 +1746,10 @@ module Google
|
|
|
1721
1746
|
# Gets a Team Drive's metadata by ID.
|
|
1722
1747
|
# @param [String] team_drive_id
|
|
1723
1748
|
# The ID of the Team Drive
|
|
1749
|
+
# @param [Boolean] use_domain_admin_access
|
|
1750
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
1751
|
+
# administrator; if set to true, then the requester will be granted access if
|
|
1752
|
+
# they are an administrator of the domain to which the Team Drive belongs.
|
|
1724
1753
|
# @param [String] fields
|
|
1725
1754
|
# Selector specifying which fields to include in a partial response.
|
|
1726
1755
|
# @param [String] quota_user
|
|
@@ -1742,11 +1771,12 @@ module Google
|
|
|
1742
1771
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1743
1772
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1744
1773
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1745
|
-
def get_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1774
|
+
def get_teamdrive(team_drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1746
1775
|
command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
|
|
1747
1776
|
command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation
|
|
1748
1777
|
command.response_class = Google::Apis::DriveV3::TeamDrive
|
|
1749
1778
|
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
1779
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1750
1780
|
command.query['fields'] = fields unless fields.nil?
|
|
1751
1781
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1752
1782
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1758,6 +1788,12 @@ module Google
|
|
|
1758
1788
|
# Maximum number of Team Drives to return.
|
|
1759
1789
|
# @param [String] page_token
|
|
1760
1790
|
# Page token for Team Drives.
|
|
1791
|
+
# @param [String] q
|
|
1792
|
+
# Query string for searching Team Drives.
|
|
1793
|
+
# @param [Boolean] use_domain_admin_access
|
|
1794
|
+
# Whether the request should be treated as if it was issued by a domain
|
|
1795
|
+
# administrator; if set to true, then all Team Drives of the domain in which the
|
|
1796
|
+
# requester is an administrator are returned.
|
|
1761
1797
|
# @param [String] fields
|
|
1762
1798
|
# Selector specifying which fields to include in a partial response.
|
|
1763
1799
|
# @param [String] quota_user
|
|
@@ -1779,12 +1815,14 @@ module Google
|
|
|
1779
1815
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1780
1816
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1781
1817
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1782
|
-
def list_teamdrives(page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1818
|
+
def list_teamdrives(page_size: nil, page_token: nil, q: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1783
1819
|
command = make_simple_command(:get, 'teamdrives', options)
|
|
1784
1820
|
command.response_representation = Google::Apis::DriveV3::TeamDriveList::Representation
|
|
1785
1821
|
command.response_class = Google::Apis::DriveV3::TeamDriveList
|
|
1786
1822
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1787
1823
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1824
|
+
command.query['q'] = q unless q.nil?
|
|
1825
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1788
1826
|
command.query['fields'] = fields unless fields.nil?
|
|
1789
1827
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1790
1828
|
command.query['userIp'] = user_ip unless user_ip.nil?
|