From c52f7d34f6cd862fb105e797a9b4961a3c084dbe Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 31 Oct 2017 00:34:58 +0000 Subject: [PATCH] Autogenerated update (2017-10-31) Update: - cloudiot_v1 - datastore_v1 - drive_v3 --- api_names_out.yaml | 10 ++++ generated/google/apis/cloudiot_v1.rb | 2 +- generated/google/apis/cloudiot_v1/service.rb | 10 +++- generated/google/apis/datastore_v1.rb | 2 +- generated/google/apis/datastore_v1/classes.rb | 60 ------------------- generated/google/apis/drive_v3.rb | 2 +- generated/google/apis/drive_v3/classes.rb | 6 ++ .../google/apis/drive_v3/representations.rb | 2 + generated/google/apis/drive_v3/service.rb | 52 +++++++++++++--- 9 files changed, 73 insertions(+), 73 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 490e855f5..4da9a585e 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -12885,6 +12885,7 @@ "/cloudiot:v1/cloudiot.projects.locations.registries.devices.delete": delete_project_location_registry_device "/cloudiot:v1/cloudiot.projects.locations.registries.devices.delete/name": name "/cloudiot:v1/cloudiot.projects.locations.registries.devices.get": get_project_location_registry_device +"/cloudiot:v1/cloudiot.projects.locations.registries.devices.get/fieldMask": field_mask "/cloudiot:v1/cloudiot.projects.locations.registries.devices.get/name": name "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list": list_project_location_registry_devices "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/deviceIds": device_ids @@ -41766,6 +41767,7 @@ "/drive:v3/TeamDrive/capabilities/canRenameTeamDrive": can_rename_team_drive "/drive:v3/TeamDrive/capabilities/canShare": can_share "/drive:v3/TeamDrive/colorRgb": color_rgb +"/drive:v3/TeamDrive/createdTime": created_time "/drive:v3/TeamDrive/id": id "/drive:v3/TeamDrive/kind": kind "/drive:v3/TeamDrive/name": name @@ -41880,25 +41882,30 @@ "/drive:v3/drive.permissions.create/sendNotificationEmail": send_notification_email "/drive:v3/drive.permissions.create/supportsTeamDrives": supports_team_drives "/drive:v3/drive.permissions.create/transferOwnership": transfer_ownership +"/drive:v3/drive.permissions.create/useDomainAdminAccess": use_domain_admin_access "/drive:v3/drive.permissions.delete": delete_permission "/drive:v3/drive.permissions.delete/fileId": file_id "/drive:v3/drive.permissions.delete/permissionId": permission_id "/drive:v3/drive.permissions.delete/supportsTeamDrives": supports_team_drives +"/drive:v3/drive.permissions.delete/useDomainAdminAccess": use_domain_admin_access "/drive:v3/drive.permissions.get": get_permission "/drive:v3/drive.permissions.get/fileId": file_id "/drive:v3/drive.permissions.get/permissionId": permission_id "/drive:v3/drive.permissions.get/supportsTeamDrives": supports_team_drives +"/drive:v3/drive.permissions.get/useDomainAdminAccess": use_domain_admin_access "/drive:v3/drive.permissions.list": list_permissions "/drive:v3/drive.permissions.list/fileId": file_id "/drive:v3/drive.permissions.list/pageSize": page_size "/drive:v3/drive.permissions.list/pageToken": page_token "/drive:v3/drive.permissions.list/supportsTeamDrives": supports_team_drives +"/drive:v3/drive.permissions.list/useDomainAdminAccess": use_domain_admin_access "/drive:v3/drive.permissions.update": update_permission "/drive:v3/drive.permissions.update/fileId": file_id "/drive:v3/drive.permissions.update/permissionId": permission_id "/drive:v3/drive.permissions.update/removeExpiration": remove_expiration "/drive:v3/drive.permissions.update/supportsTeamDrives": supports_team_drives "/drive:v3/drive.permissions.update/transferOwnership": transfer_ownership +"/drive:v3/drive.permissions.update/useDomainAdminAccess": use_domain_admin_access "/drive:v3/drive.replies.create": create_reply "/drive:v3/drive.replies.create/commentId": comment_id "/drive:v3/drive.replies.create/fileId": file_id @@ -41941,9 +41948,12 @@ "/drive:v3/drive.teamdrives.delete/teamDriveId": team_drive_id "/drive:v3/drive.teamdrives.get": get_teamdrive "/drive:v3/drive.teamdrives.get/teamDriveId": team_drive_id +"/drive:v3/drive.teamdrives.get/useDomainAdminAccess": use_domain_admin_access "/drive:v3/drive.teamdrives.list": list_teamdrives "/drive:v3/drive.teamdrives.list/pageSize": page_size "/drive:v3/drive.teamdrives.list/pageToken": page_token +"/drive:v3/drive.teamdrives.list/q": q +"/drive:v3/drive.teamdrives.list/useDomainAdminAccess": use_domain_admin_access "/drive:v3/drive.teamdrives.update": update_teamdrive "/drive:v3/drive.teamdrives.update/teamDriveId": team_drive_id "/drive:v3/fields": fields diff --git a/generated/google/apis/cloudiot_v1.rb b/generated/google/apis/cloudiot_v1.rb index 814050ef1..f9ad1b110 100644 --- a/generated/google/apis/cloudiot_v1.rb +++ b/generated/google/apis/cloudiot_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/iot module CloudiotV1 VERSION = 'V1' - REVISION = '20171011' + REVISION = '20171024' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudiot_v1/service.rb b/generated/google/apis/cloudiot_v1/service.rb index 896c2e2ba..0de4c5e14 100644 --- a/generated/google/apis/cloudiot_v1/service.rb +++ b/generated/google/apis/cloudiot_v1/service.rb @@ -231,8 +231,8 @@ module Google # Only updates the `device_registry` fields indicated by this mask. # The field mask must not be empty, and it must not contain fields that # are immutable or only set by the server. - # Mutable top-level fields: `event_notification_config`, `mqtt_config`, and - # `state_notification_config`. + # Mutable top-level fields: `event_notification_config`, `http_config`, + # `mqtt_config`, and `state_notification_config`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -406,6 +406,9 @@ module Google # The name of the device. For example, # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``. + # @param [String] field_mask + # The fields of the `Device` resource to be returned in the response. If the + # field mask is unset or empty, all fields are returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -423,11 +426,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_registry_device(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_registry_device(name, field_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::CloudiotV1::Device::Representation command.response_class = Google::Apis::CloudiotV1::Device command.params['name'] = name unless name.nil? + command.query['fieldMask'] = field_mask unless field_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/datastore_v1.rb b/generated/google/apis/datastore_v1.rb index 2083e3078..928c63079 100644 --- a/generated/google/apis/datastore_v1.rb +++ b/generated/google/apis/datastore_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/datastore/ module DatastoreV1 VERSION = 'V1' - REVISION = '20171010' + REVISION = '20171024' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/datastore_v1/classes.rb b/generated/google/apis/datastore_v1/classes.rb index ae7c8e5ce..486b9eac9 100644 --- a/generated/google/apis/datastore_v1/classes.rb +++ b/generated/google/apis/datastore_v1/classes.rb @@ -877,36 +877,6 @@ module Google # specified otherwise, this must conform to the # WGS84 # standard. Values must be within normalized ranges. - # Example of normalization code in Python: - # def NormalizeLongitude(longitude): - # """Wraps decimal degrees longitude to [-180.0, 180.0].""" - # q, r = divmod(longitude, 360.0) - # if r > 180.0 or (r == 180.0 and q <= -1.0): - # return r - 360.0 - # return r - # def NormalizeLatLng(latitude, longitude): - # """Wraps decimal degrees latitude and longitude to - # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" - # r = latitude % 360.0 - # if r <= 90.0: - # return r, NormalizeLongitude(longitude) - # elif r >= 270.0: - # return r - 360, NormalizeLongitude(longitude) - # else: - # return 180 - r, NormalizeLongitude(longitude + 180.0) - # assert 180.0 == NormalizeLongitude(180.0) - # assert -180.0 == NormalizeLongitude(-180.0) - # assert -179.0 == NormalizeLongitude(181.0) - # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) - # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) - # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) - # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) - # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) - # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) - # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) - # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) class LatLng include Google::Apis::Core::Hashable @@ -1776,36 +1746,6 @@ module Google # specified otherwise, this must conform to the # WGS84 # standard. Values must be within normalized ranges. - # Example of normalization code in Python: - # def NormalizeLongitude(longitude): - # """Wraps decimal degrees longitude to [-180.0, 180.0].""" - # q, r = divmod(longitude, 360.0) - # if r > 180.0 or (r == 180.0 and q <= -1.0): - # return r - 360.0 - # return r - # def NormalizeLatLng(latitude, longitude): - # """Wraps decimal degrees latitude and longitude to - # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" - # r = latitude % 360.0 - # if r <= 90.0: - # return r, NormalizeLongitude(longitude) - # elif r >= 270.0: - # return r - 360, NormalizeLongitude(longitude) - # else: - # return 180 - r, NormalizeLongitude(longitude + 180.0) - # assert 180.0 == NormalizeLongitude(180.0) - # assert -180.0 == NormalizeLongitude(-180.0) - # assert -179.0 == NormalizeLongitude(181.0) - # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) - # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) - # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) - # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) - # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) - # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) - # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) - # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) # Corresponds to the JSON property `geoPointValue` # @return [Google::Apis::DatastoreV1::LatLng] attr_accessor :geo_point_value diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index dab679289..dcdbe5f9d 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '20170825' + REVISION = '20171020' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v3/classes.rb b/generated/google/apis/drive_v3/classes.rb index d19de8ed9..905389cdb 100644 --- a/generated/google/apis/drive_v3/classes.rb +++ b/generated/google/apis/drive_v3/classes.rb @@ -1869,6 +1869,11 @@ module Google # @return [String] attr_accessor :color_rgb + # The time at which the Team Drive was created (RFC 3339 date-time). + # Corresponds to the JSON property `createdTime` + # @return [DateTime] + attr_accessor :created_time + # The ID of this Team Drive which is also the ID of the top level folder for # this Team Drive. # Corresponds to the JSON property `id` @@ -1906,6 +1911,7 @@ module Google @background_image_link = args[:background_image_link] if args.key?(:background_image_link) @capabilities = args[:capabilities] if args.key?(:capabilities) @color_rgb = args[:color_rgb] if args.key?(:color_rgb) + @created_time = args[:created_time] if args.key?(:created_time) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) diff --git a/generated/google/apis/drive_v3/representations.rb b/generated/google/apis/drive_v3/representations.rb index b7110b7a5..5b8d41764 100644 --- a/generated/google/apis/drive_v3/representations.rb +++ b/generated/google/apis/drive_v3/representations.rb @@ -633,6 +633,8 @@ module Google property :capabilities, as: 'capabilities', class: Google::Apis::DriveV3::TeamDrive::Capabilities, decorator: Google::Apis::DriveV3::TeamDrive::Capabilities::Representation property :color_rgb, as: 'colorRgb' + property :created_time, as: 'createdTime', type: DateTime + property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' diff --git a/generated/google/apis/drive_v3/service.rb b/generated/google/apis/drive_v3/service.rb index 62f51e98c..e4f734536 100644 --- a/generated/google/apis/drive_v3/service.rb +++ b/generated/google/apis/drive_v3/service.rb @@ -1038,6 +1038,10 @@ module Google # Whether to transfer ownership to the specified user and downgrade the current # owner to a writer. This parameter is required as an acknowledgement of the # side effect. + # @param [Boolean] use_domain_admin_access + # Whether the request should be treated as if it was issued by a domain + # administrator; if set to true, then the requester will be granted access if + # they are an administrator of the domain to which the item belongs. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1059,7 +1063,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - 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) + 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) command = make_simple_command(:post, 'files/{fileId}/permissions', options) command.request_representation = Google::Apis::DriveV3::Permission::Representation command.request_object = permission_object @@ -1070,6 +1074,7 @@ module Google command.query['sendNotificationEmail'] = send_notification_email unless send_notification_email.nil? command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil? command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil? + command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1083,6 +1088,10 @@ module Google # The ID of the permission. # @param [Boolean] supports_team_drives # Whether the requesting application supports Team Drives. + # @param [Boolean] use_domain_admin_access + # Whether the request should be treated as if it was issued by a domain + # administrator; if set to true, then the requester will be granted access if + # they are an administrator of the domain to which the item belongs. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1104,11 +1113,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + 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) command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options) command.params['fileId'] = file_id unless file_id.nil? command.params['permissionId'] = permission_id unless permission_id.nil? command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil? + command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1122,6 +1132,10 @@ module Google # The ID of the permission. # @param [Boolean] supports_team_drives # Whether the requesting application supports Team Drives. + # @param [Boolean] use_domain_admin_access + # Whether the request should be treated as if it was issued by a domain + # administrator; if set to true, then the requester will be granted access if + # they are an administrator of the domain to which the item belongs. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1143,13 +1157,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + 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) command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options) command.response_representation = Google::Apis::DriveV3::Permission::Representation command.response_class = Google::Apis::DriveV3::Permission command.params['fileId'] = file_id unless file_id.nil? command.params['permissionId'] = permission_id unless permission_id.nil? command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil? + command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1168,6 +1183,10 @@ module Google # be set to the value of 'nextPageToken' from the previous response. # @param [Boolean] supports_team_drives # Whether the requesting application supports Team Drives. + # @param [Boolean] use_domain_admin_access + # Whether the request should be treated as if it was issued by a domain + # administrator; if set to true, then the requester will be granted access if + # they are an administrator of the domain to which the item belongs. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1189,7 +1208,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - 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) + 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) command = make_simple_command(:get, 'files/{fileId}/permissions', options) command.response_representation = Google::Apis::DriveV3::PermissionList::Representation command.response_class = Google::Apis::DriveV3::PermissionList @@ -1197,6 +1216,7 @@ module Google command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil? + command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1217,6 +1237,10 @@ module Google # Whether to transfer ownership to the specified user and downgrade the current # owner to a writer. This parameter is required as an acknowledgement of the # side effect. + # @param [Boolean] use_domain_admin_access + # Whether the request should be treated as if it was issued by a domain + # administrator; if set to true, then the requester will be granted access if + # they are an administrator of the domain to which the item belongs. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1238,7 +1262,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - 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) + 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) command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options) command.request_representation = Google::Apis::DriveV3::Permission::Representation command.request_object = permission_object @@ -1249,6 +1273,7 @@ module Google command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil? command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil? command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil? + command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1721,6 +1746,10 @@ module Google # Gets a Team Drive's metadata by ID. # @param [String] team_drive_id # The ID of the Team Drive + # @param [Boolean] use_domain_admin_access + # Whether the request should be treated as if it was issued by a domain + # administrator; if set to true, then the requester will be granted access if + # they are an administrator of the domain to which the Team Drive belongs. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1742,11 +1771,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_teamdrive(team_drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options) command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation command.response_class = Google::Apis::DriveV3::TeamDrive command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil? + command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1758,6 +1788,12 @@ module Google # Maximum number of Team Drives to return. # @param [String] page_token # Page token for Team Drives. + # @param [String] q + # Query string for searching Team Drives. + # @param [Boolean] use_domain_admin_access + # Whether the request should be treated as if it was issued by a domain + # administrator; if set to true, then all Team Drives of the domain in which the + # requester is an administrator are returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1779,12 +1815,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_teamdrives(page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + 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) command = make_simple_command(:get, 'teamdrives', options) command.response_representation = Google::Apis::DriveV3::TeamDriveList::Representation command.response_class = Google::Apis::DriveV3::TeamDriveList command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['q'] = q unless q.nil? + command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil?