openapi: 3.0.0
info:
  title: Drive API
  description: Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.
  contact:
    name: Google
    url: https://google.com
  version: 'v3'
servers:
- url: https://www.googleapis.com/drive/v3
  variables: {}
- url: https://accounts.google.com/o/oauth2
  variables: {}
paths:
  /about:
    get:
      tags:
      - about
      summary: drive.about.get
      description: Gets information about the user, the user's Drive, and system capabilities.
      operationId: drive.about.get
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/About'
                - description: Information about the user, the user's Drive, and system capabilities.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
  /changes:
    get:
      tags:
      - changes
      summary: drive.changes.list
      description: Lists the changes for a user or shared drive.
      operationId: drive.changes.list
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: pageToken
        in: query
        description: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.
        required: true
        style: form
        explode: true
        schema:
          type: string
      - name: driveId
        in: query
        description: The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.
        style: form
        explode: true
        schema:
          type: string
      - name: includeCorpusRemovals
        in: query
        description: Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.
        style: form
        explode: true
        schema:
          type: boolean
      - name: includeItemsFromAllDrives
        in: query
        description: Whether both My Drive and shared drive items should be included in results.
        style: form
        explode: true
        schema:
          type: boolean
      - name: includePermissionsForView
        in: query
        description: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
        style: form
        explode: true
        schema:
          type: string
      - name: includeRemoved
        in: query
        description: Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.
        style: form
        explode: true
        schema:
          type: boolean
      - name: includeTeamDriveItems
        in: query
        description: Deprecated use includeItemsFromAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: pageSize
        in: query
        description: The maximum number of changes to return per page.
        style: form
        explode: true
        schema:
          maximum: 1000
          minimum: 1
          type: integer
          format: int32
      - name: restrictToMyDrive
        in: query
        description: Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.
        style: form
        explode: true
        schema:
          type: boolean
      - name: spaces
        in: query
        description: A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
        style: form
        explode: true
        schema:
          type: string
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: teamDriveId
        in: query
        description: Deprecated use driveId instead.
        style: form
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ChangeList'
                - description: A list of changes for a user.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
  /changes/startPageToken:
    get:
      tags:
      - changes
      summary: drive.changes.getStartPageToken
      description: Gets the starting pageToken for listing future changes.
      operationId: drive.changes.getStartPageToken
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: driveId
        in: query
        description: The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive is returned.
        style: form
        explode: true
        schema:
          type: string
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: teamDriveId
        in: query
        description: Deprecated use driveId instead.
        style: form
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartPageToken'
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
  /changes/watch:
    post:
      tags:
      - changes
      summary: drive.changes.watch
      description: Subscribes to changes for a user.
      operationId: drive.changes.watch
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: pageToken
        in: query
        description: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.
        required: true
        style: form
        explode: true
        schema:
          type: string
      - name: driveId
        in: query
        description: The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.
        style: form
        explode: true
        schema:
          type: string
      - name: includeCorpusRemovals
        in: query
        description: Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.
        style: form
        explode: true
        schema:
          type: boolean
      - name: includeItemsFromAllDrives
        in: query
        description: Whether both My Drive and shared drive items should be included in results.
        style: form
        explode: true
        schema:
          type: boolean
      - name: includePermissionsForView
        in: query
        description: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
        style: form
        explode: true
        schema:
          type: string
      - name: includeRemoved
        in: query
        description: Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.
        style: form
        explode: true
        schema:
          type: boolean
      - name: includeTeamDriveItems
        in: query
        description: Deprecated use includeItemsFromAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: pageSize
        in: query
        description: The maximum number of changes to return per page.
        style: form
        explode: true
        schema:
          maximum: 1000
          minimum: 1
          type: integer
          format: int32
      - name: restrictToMyDrive
        in: query
        description: Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.
        style: form
        explode: true
        schema:
          type: boolean
      - name: spaces
        in: query
        description: A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
        style: form
        explode: true
        schema:
          type: string
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: teamDriveId
        in: query
        description: Deprecated use driveId instead.
        style: form
        explode: true
        schema:
          type: string
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Channel'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Channel'
                - description: An notification channel used to watch for resource changes.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
  /channels/stop:
    post:
      tags:
      - channels
      summary: drive.channels.stop
      description: Stop watching resources through this channel
      operationId: drive.channels.stop
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Channel'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content: {}
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
  /files/{fileId}/comments:
    get:
      tags:
      - comments
      summary: drive.comments.list
      description: Lists a file's comments.
      operationId: drive.comments.list
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: includeDeleted
        in: query
        description: Whether to include deleted comments. Deleted comments will not include their original content.
        style: form
        explode: true
        schema:
          type: boolean
      - name: pageSize
        in: query
        description: The maximum number of comments to return per page.
        style: form
        explode: true
        schema:
          maximum: 100
          minimum: 1
          type: integer
          format: int32
      - name: pageToken
        in: query
        description: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
        style: form
        explode: true
        schema:
          type: string
      - name: startModifiedTime
        in: query
        description: The minimum value of 'modifiedTime' for the result comments (RFC 3339 date-time).
        style: form
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/CommentList'
                - description: A list of comments on a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    post:
      tags:
      - comments
      summary: drive.comments.create
      description: Creates a new comment on a file.
      operationId: drive.comments.create
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Comment'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Comment'
                - description: A comment on a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
  /files/{fileId}/comments/{commentId}:
    delete:
      tags:
      - comments
      summary: drive.comments.delete
      description: Deletes a comment.
      operationId: drive.comments.delete
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: commentId
        in: path
        description: The ID of the comment.
        required: true
        style: simple
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content: {}
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
    get:
      tags:
      - comments
      summary: drive.comments.get
      description: Gets a comment by ID.
      operationId: drive.comments.get
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: commentId
        in: path
        description: The ID of the comment.
        required: true
        style: simple
        schema:
          type: string
      - name: includeDeleted
        in: query
        description: Whether to return deleted comments. Deleted comments will not include their original content.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Comment'
                - description: A comment on a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    patch:
      tags:
      - comments
      summary: drive.comments.update
      description: Updates a comment with patch semantics.
      operationId: drive.comments.update
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: commentId
        in: path
        description: The ID of the comment.
        required: true
        style: simple
        schema:
          type: string
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Comment'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Comment'
                - description: A comment on a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
  /drives:
    get:
      tags:
      - drives
      summary: drive.drives.list
      description: Lists the user's shared drives.
      operationId: drive.drives.list
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: pageSize
        in: query
        description: Maximum number of shared drives to return per page.
        style: form
        explode: true
        schema:
          maximum: 100
          minimum: 1
          type: integer
          format: int32
      - name: pageToken
        in: query
        description: Page token for shared drives.
        style: form
        explode: true
        schema:
          type: string
      - name: q
        in: query
        description: Query string for searching shared drives.
        style: form
        explode: true
        schema:
          type: string
      - name: useDomainAdminAccess
        in: query
        description: Issue the request as a domain administrator; if set to true, then all shared drives of the domain in which the requester is an administrator are returned.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/DriveList'
                - description: A list of shared drives.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    post:
      tags:
      - drives
      summary: drive.drives.create
      description: Creates a new shared drive.
      operationId: drive.drives.create
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: requestId
        in: query
        description: An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned.
        required: true
        style: form
        explode: true
        schema:
          type: string
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Drive'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Drive'
                - description: Representation of a shared drive.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
  /drives/{driveId}:
    delete:
      tags:
      - drives
      summary: drive.drives.delete
      description: Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items.
      operationId: drive.drives.delete
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: driveId
        in: path
        description: The ID of the shared drive.
        required: true
        style: simple
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content: {}
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
    get:
      tags:
      - drives
      summary: drive.drives.get
      description: Gets a shared drive's metadata by ID.
      operationId: drive.drives.get
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: driveId
        in: path
        description: The ID of the shared drive.
        required: true
        style: simple
        schema:
          type: string
      - name: useDomainAdminAccess
        in: query
        description: Issue the request as 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 shared drive belongs.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Drive'
                - description: Representation of a shared drive.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    patch:
      tags:
      - drives
      summary: drive.drives.update
      description: Updates the metadate for a shared drive.
      operationId: drive.drives.update
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: driveId
        in: path
        description: The ID of the shared drive.
        required: true
        style: simple
        schema:
          type: string
      - name: useDomainAdminAccess
        in: query
        description: Issue the request as 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 shared drive belongs.
        style: form
        explode: true
        schema:
          type: boolean
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Drive'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Drive'
                - description: Representation of a shared drive.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
  /drives/{driveId}/hide:
    post:
      tags:
      - drives
      summary: drive.drives.hide
      description: Hides a shared drive from the default view.
      operationId: drive.drives.hide
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: driveId
        in: path
        description: The ID of the shared drive.
        required: true
        style: simple
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Drive'
                - description: Representation of a shared drive.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
  /drives/{driveId}/unhide:
    post:
      tags:
      - drives
      summary: drive.drives.unhide
      description: Restores a shared drive to the default view.
      operationId: drive.drives.unhide
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: driveId
        in: path
        description: The ID of the shared drive.
        required: true
        style: simple
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Drive'
                - description: Representation of a shared drive.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
  /files:
    get:
      tags:
      - files
      summary: drive.files.list
      description: Lists or searches files.
      operationId: drive.files.list
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: corpora
        in: query
        description: "Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency."
        style: form
        explode: true
        schema:
          type: string
      - name: corpus
        in: query
        description: "The source of files to list. Deprecated: use 'corpora' instead."
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/corpus'
          - description: "The source of files to list. Deprecated: use 'corpora' instead."
      - name: driveId
        in: query
        description: ID of the shared drive to search.
        style: form
        explode: true
        schema:
          type: string
      - name: includeItemsFromAllDrives
        in: query
        description: Whether both My Drive and shared drive items should be included in results.
        style: form
        explode: true
        schema:
          type: boolean
      - name: includePermissionsForView
        in: query
        description: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
        style: form
        explode: true
        schema:
          type: string
      - name: includeTeamDriveItems
        in: query
        description: Deprecated use includeItemsFromAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: orderBy
        in: query
        description: "A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored."
        style: form
        explode: true
        schema:
          type: string
      - name: pageSize
        in: query
        description: The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached.
        style: form
        explode: true
        schema:
          maximum: 1000
          minimum: 1
          type: integer
          format: int32
      - name: pageToken
        in: query
        description: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
        style: form
        explode: true
        schema:
          type: string
      - name: q
        in: query
        description: A query for filtering the file results. See the "Search for Files" guide for supported syntax.
        style: form
        explode: true
        schema:
          type: string
      - name: spaces
        in: query
        description: A comma-separated list of spaces to query within the corpus. Supported values are 'drive' and 'appDataFolder'.
        style: form
        explode: true
        schema:
          type: string
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: teamDriveId
        in: query
        description: Deprecated use driveId instead.
        style: form
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/FileList'
                - description: A list of files.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    post:
      tags:
      - files
      summary: drive.files.create
      description: Creates a new file.
      operationId: drive.files.create
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: enforceSingleParent
        in: query
        description: Deprecated. Creating files in multiple folders is no longer supported.
        style: form
        explode: true
        schema:
          type: boolean
      - name: ignoreDefaultVisibility
        in: query
        description: Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
        style: form
        explode: true
        schema:
          type: boolean
      - name: includePermissionsForView
        in: query
        description: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
        style: form
        explode: true
        schema:
          type: string
      - name: keepRevisionForever
        in: query
        description: Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
        style: form
        explode: true
        schema:
          type: boolean
      - name: ocrLanguage
        in: query
        description: A language hint for OCR processing during image import (ISO 639-1 code).
        style: form
        explode: true
        schema:
          type: string
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: useContentAsIndexableText
        in: query
        description: Whether to use the uploaded content as indexable text.
        style: form
        explode: true
        schema:
          type: boolean
      - name: Content-Type
        in: header
        description: ''
        required: true
        style: simple
        schema:
          enum:
          - application/octet-stream
          type: string
      requestBody:
        content:
          multipart/form-data:
            encoding: {}
            schema:
              type: object
              properties:
                body:
                  type: string
                  format: binary
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/File'
                - description: The metadata for a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
  /files/generateIds:
    get:
      tags:
      - files
      summary: drive.files.generateIds
      description: Generates a set of file IDs which can be provided in create or copy requests.
      operationId: drive.files.generateIds
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: count
        in: query
        description: The number of IDs to return.
        style: form
        explode: true
        schema:
          maximum: 1000
          minimum: 1
          type: integer
          format: int32
      - name: space
        in: query
        description: "The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive')"
        style: form
        explode: true
        schema:
          type: string
      - name: type
        in: query
        description: "The type of items which the IDs can be used for. Supported values are 'files' and 'shortcuts'. Note that 'shortcuts' are only supported in the drive 'space'. (Default: 'files')"
        style: form
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/GeneratedIds'
                - description: A list of generated file IDs which can be provided in create requests.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
  /files/trash:
    delete:
      tags:
      - files
      summary: drive.files.emptyTrash
      description: Permanently deletes all of the user's trashed files.
      operationId: drive.files.emptyTrash
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: enforceSingleParent
        in: query
        description: Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content: {}
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
  /files/{fileId}:
    delete:
      tags:
      - files
      summary: drive.files.delete
      description: Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted.
      operationId: drive.files.delete
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: enforceSingleParent
        in: query
        description: Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content: {}
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
    get:
      tags:
      - files
      summary: drive.files.get
      description: Gets a file's metadata or content by ID.
      operationId: drive.files.get
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: acknowledgeAbuse
        in: query
        description: Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
        style: form
        explode: true
        schema:
          type: boolean
      - name: includePermissionsForView
        in: query
        description: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
        style: form
        explode: true
        schema:
          type: string
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/File'
                - description: The metadata for a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    patch:
      tags:
      - files
      summary: drive.files.update
      description: Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics.
      operationId: drive.files.update
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: addParents
        in: query
        description: A comma-separated list of parent IDs to add.
        style: form
        explode: true
        schema:
          type: string
      - name: enforceSingleParent
        in: query
        description: Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: includePermissionsForView
        in: query
        description: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
        style: form
        explode: true
        schema:
          type: string
      - name: keepRevisionForever
        in: query
        description: Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
        style: form
        explode: true
        schema:
          type: boolean
      - name: ocrLanguage
        in: query
        description: A language hint for OCR processing during image import (ISO 639-1 code).
        style: form
        explode: true
        schema:
          type: string
      - name: removeParents
        in: query
        description: A comma-separated list of parent IDs to remove.
        style: form
        explode: true
        schema:
          type: string
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: useContentAsIndexableText
        in: query
        description: Whether to use the uploaded content as indexable text.
        style: form
        explode: true
        schema:
          type: boolean
      - name: Content-Type
        in: header
        description: ''
        required: true
        style: simple
        schema:
          enum:
          - application/octet-stream
          type: string
      requestBody:
        content:
          multipart/form-data:
            encoding: {}
            schema:
              type: object
              properties:
                body:
                  type: string
                  format: binary
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/File'
                - description: The metadata for a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.scripts
        Oauth2c:
        - https://www.googleapis.com/auth/drive.scripts
  /files/{fileId}/copy:
    post:
      tags:
      - files
      summary: drive.files.copy
      description: Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied.
      operationId: drive.files.copy
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: enforceSingleParent
        in: query
        description: Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: ignoreDefaultVisibility
        in: query
        description: Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
        style: form
        explode: true
        schema:
          type: boolean
      - name: includePermissionsForView
        in: query
        description: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
        style: form
        explode: true
        schema:
          type: string
      - name: keepRevisionForever
        in: query
        description: Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
        style: form
        explode: true
        schema:
          type: boolean
      - name: ocrLanguage
        in: query
        description: A language hint for OCR processing during image import (ISO 639-1 code).
        style: form
        explode: true
        schema:
          type: string
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/File'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/File'
                - description: The metadata for a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
  /files/{fileId}/export:
    get:
      tags:
      - files
      summary: drive.files.export
      description: Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.
      operationId: drive.files.export
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: mimeType
        in: query
        description: The MIME type of the format requested for this export.
        required: true
        style: form
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content: {}
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
  /files/{fileId}/watch:
    post:
      tags:
      - files
      summary: drive.files.watch
      description: Subscribes to changes to a file. While you can establish a channel forchanges to a file on a shared drive, a change to a shared drive file won't create a notification.
      operationId: drive.files.watch
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: acknowledgeAbuse
        in: query
        description: Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
        style: form
        explode: true
        schema:
          type: boolean
      - name: includePermissionsForView
        in: query
        description: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
        style: form
        explode: true
        schema:
          type: string
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Channel'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Channel'
                - description: An notification channel used to watch for resource changes.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
  /files/{fileId}/permissions:
    get:
      tags:
      - permissions
      summary: drive.permissions.list
      description: Lists a file's or shared drive's permissions.
      operationId: drive.permissions.list
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file or shared drive.
        required: true
        style: simple
        schema:
          type: string
      - name: includePermissionsForView
        in: query
        description: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
        style: form
        explode: true
        schema:
          type: string
      - name: pageSize
        in: query
        description: The maximum number of permissions to return per page. When not set for files in a shared drive, at most 100 results will be returned. When not set for files that are not in a shared drive, the entire list will be returned.
        style: form
        explode: true
        schema:
          maximum: 100
          minimum: 1
          type: integer
          format: int32
      - name: pageToken
        in: query
        description: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
        style: form
        explode: true
        schema:
          type: string
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: useDomainAdminAccess
        in: query
        description: Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/PermissionList'
                - description: A list of permissions for a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    post:
      tags:
      - permissions
      summary: drive.permissions.create
      description: Creates a permission for a file or shared drive.
      operationId: drive.permissions.create
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file or shared drive.
        required: true
        style: simple
        schema:
          type: string
      - name: emailMessage
        in: query
        description: A plain text custom message to include in the notification email.
        style: form
        explode: true
        schema:
          type: string
      - name: enforceSingleParent
        in: query
        description: Deprecated. See moveToNewOwnersRoot for details.
        style: form
        explode: true
        schema:
          type: boolean
      - name: moveToNewOwnersRoot
        in: query
        description: This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed.
        style: form
        explode: true
        schema:
          type: boolean
      - name: sendNotificationEmail
        in: query
        description: Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: transferOwnership
        in: query
        description: 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. File owners can only transfer ownership of files existing on My Drive. Files existing in a shared drive are owned by the organization that owns that shared drive. Ownership transfers are not supported for files and folders in shared drives. Organizers of a shared drive can move items from that shared drive into their My Drive which transfers the ownership to them.
        style: form
        explode: true
        schema:
          type: boolean
      - name: useDomainAdminAccess
        in: query
        description: Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
        style: form
        explode: true
        schema:
          type: boolean
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Permission'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Permission'
                - description: A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
  /files/{fileId}/permissions/{permissionId}:
    delete:
      tags:
      - permissions
      summary: drive.permissions.delete
      description: Deletes a permission.
      operationId: drive.permissions.delete
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file or shared drive.
        required: true
        style: simple
        schema:
          type: string
      - name: permissionId
        in: path
        description: The ID of the permission.
        required: true
        style: simple
        schema:
          type: string
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: useDomainAdminAccess
        in: query
        description: Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content: {}
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
    get:
      tags:
      - permissions
      summary: drive.permissions.get
      description: Gets a permission by ID.
      operationId: drive.permissions.get
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: permissionId
        in: path
        description: The ID of the permission.
        required: true
        style: simple
        schema:
          type: string
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: useDomainAdminAccess
        in: query
        description: Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Permission'
                - description: A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    patch:
      tags:
      - permissions
      summary: drive.permissions.update
      description: Updates a permission with patch semantics.
      operationId: drive.permissions.update
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file or shared drive.
        required: true
        style: simple
        schema:
          type: string
      - name: permissionId
        in: path
        description: The ID of the permission.
        required: true
        style: simple
        schema:
          type: string
      - name: removeExpiration
        in: query
        description: Whether to remove the expiration date.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsAllDrives
        in: query
        description: Whether the requesting application supports both My Drives and shared drives.
        style: form
        explode: true
        schema:
          type: boolean
      - name: supportsTeamDrives
        in: query
        description: Deprecated use supportsAllDrives instead.
        style: form
        explode: true
        schema:
          type: boolean
      - name: transferOwnership
        in: query
        description: 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. File owners can only transfer ownership of files existing on My Drive. Files existing in a shared drive are owned by the organization that owns that shared drive. Ownership transfers are not supported for files and folders in shared drives. Organizers of a shared drive can move items from that shared drive into their My Drive which transfers the ownership to them.
        style: form
        explode: true
        schema:
          type: boolean
      - name: useDomainAdminAccess
        in: query
        description: Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
        style: form
        explode: true
        schema:
          type: boolean
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Permission'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Permission'
                - description: A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
  /files/{fileId}/comments/{commentId}/replies:
    get:
      tags:
      - replies
      summary: drive.replies.list
      description: Lists a comment's replies.
      operationId: drive.replies.list
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: commentId
        in: path
        description: The ID of the comment.
        required: true
        style: simple
        schema:
          type: string
      - name: includeDeleted
        in: query
        description: Whether to include deleted replies. Deleted replies will not include their original content.
        style: form
        explode: true
        schema:
          type: boolean
      - name: pageSize
        in: query
        description: The maximum number of replies to return per page.
        style: form
        explode: true
        schema:
          maximum: 100
          minimum: 1
          type: integer
          format: int32
      - name: pageToken
        in: query
        description: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
        style: form
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ReplyList'
                - description: A list of replies to a comment on a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    post:
      tags:
      - replies
      summary: drive.replies.create
      description: Creates a new reply to a comment.
      operationId: drive.replies.create
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: commentId
        in: path
        description: The ID of the comment.
        required: true
        style: simple
        schema:
          type: string
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Reply'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Reply'
                - description: A reply to a comment on a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
  /files/{fileId}/comments/{commentId}/replies/{replyId}:
    delete:
      tags:
      - replies
      summary: drive.replies.delete
      description: Deletes a reply.
      operationId: drive.replies.delete
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: commentId
        in: path
        description: The ID of the comment.
        required: true
        style: simple
        schema:
          type: string
      - name: replyId
        in: path
        description: The ID of the reply.
        required: true
        style: simple
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content: {}
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
    get:
      tags:
      - replies
      summary: drive.replies.get
      description: Gets a reply by ID.
      operationId: drive.replies.get
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: commentId
        in: path
        description: The ID of the comment.
        required: true
        style: simple
        schema:
          type: string
      - name: replyId
        in: path
        description: The ID of the reply.
        required: true
        style: simple
        schema:
          type: string
      - name: includeDeleted
        in: query
        description: Whether to return deleted replies. Deleted replies will not include their original content.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Reply'
                - description: A reply to a comment on a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    patch:
      tags:
      - replies
      summary: drive.replies.update
      description: Updates a reply with patch semantics.
      operationId: drive.replies.update
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: commentId
        in: path
        description: The ID of the comment.
        required: true
        style: simple
        schema:
          type: string
      - name: replyId
        in: path
        description: The ID of the reply.
        required: true
        style: simple
        schema:
          type: string
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Reply'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Reply'
                - description: A reply to a comment on a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
  /files/{fileId}/revisions:
    get:
      tags:
      - revisions
      summary: drive.revisions.list
      description: Lists a file's revisions.
      operationId: drive.revisions.list
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: pageSize
        in: query
        description: The maximum number of revisions to return per page.
        style: form
        explode: true
        schema:
          maximum: 1000
          minimum: 1
          type: integer
          format: int32
      - name: pageToken
        in: query
        description: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
        style: form
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/RevisionList'
                - description: A list of revisions of a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
  /files/{fileId}/revisions/{revisionId}:
    delete:
      tags:
      - revisions
      summary: drive.revisions.delete
      description: Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.
      operationId: drive.revisions.delete
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: revisionId
        in: path
        description: The ID of the revision.
        required: true
        style: simple
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content: {}
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
    get:
      tags:
      - revisions
      summary: drive.revisions.get
      description: Gets a revision's metadata or content by ID.
      operationId: drive.revisions.get
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: revisionId
        in: path
        description: The ID of the revision.
        required: true
        style: simple
        schema:
          type: string
      - name: acknowledgeAbuse
        in: query
        description: Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Revision'
                - description: The metadata for a revision to a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.metadata.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.metadata.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.photos.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.photos.readonly
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    patch:
      tags:
      - revisions
      summary: drive.revisions.update
      description: Updates a revision with patch semantics.
      operationId: drive.revisions.update
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: fileId
        in: path
        description: The ID of the file.
        required: true
        style: simple
        schema:
          type: string
      - name: revisionId
        in: path
        description: The ID of the revision.
        required: true
        style: simple
        schema:
          type: string
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Revision'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Revision'
                - description: The metadata for a revision to a file.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.appdata
        Oauth2c:
        - https://www.googleapis.com/auth/drive.appdata
      - Oauth2:
        - https://www.googleapis.com/auth/drive.file
        Oauth2c:
        - https://www.googleapis.com/auth/drive.file
  /teamdrives:
    get:
      tags:
      - teamdrives
      summary: drive.teamdrives.list
      description: Deprecated use drives.list instead.
      operationId: drive.teamdrives.list
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: pageSize
        in: query
        description: Maximum number of Team Drives to return.
        style: form
        explode: true
        schema:
          maximum: 100
          minimum: 1
          type: integer
          format: int32
      - name: pageToken
        in: query
        description: Page token for Team Drives.
        style: form
        explode: true
        schema:
          type: string
      - name: q
        in: query
        description: Query string for searching Team Drives.
        style: form
        explode: true
        schema:
          type: string
      - name: useDomainAdminAccess
        in: query
        description: Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/TeamDriveList'
                - description: A list of Team Drives.
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    post:
      tags:
      - teamdrives
      summary: drive.teamdrives.create
      description: Deprecated use drives.create instead.
      operationId: drive.teamdrives.create
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: requestId
        in: query
        description: An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned.
        required: true
        style: form
        explode: true
        schema:
          type: string
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamDrive'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/TeamDrive'
                - description: 'Deprecated: use the drive collection instead.'
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
  /teamdrives/{teamDriveId}:
    delete:
      tags:
      - teamdrives
      summary: drive.teamdrives.delete
      description: Deprecated use drives.delete instead.
      operationId: drive.teamdrives.delete
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: teamDriveId
        in: path
        description: The ID of the Team Drive
        required: true
        style: simple
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          headers: {}
          content: {}
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
    get:
      tags:
      - teamdrives
      summary: drive.teamdrives.get
      description: Deprecated use drives.get instead.
      operationId: drive.teamdrives.get
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: teamDriveId
        in: path
        description: The ID of the Team Drive
        required: true
        style: simple
        schema:
          type: string
      - name: useDomainAdminAccess
        in: query
        description: Issue the request as 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.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/TeamDrive'
                - description: 'Deprecated: use the drive collection instead.'
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
      - Oauth2:
        - https://www.googleapis.com/auth/drive.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/drive.readonly
    patch:
      tags:
      - teamdrives
      summary: drive.teamdrives.update
      description: Deprecated use drives.update instead
      operationId: drive.teamdrives.update
      parameters:
      - name: alt
        in: query
        description: Data format for the response.
        style: form
        explode: true
        schema:
          allOf:
          - $ref: '#/components/schemas/alt'
          - description: Data format for the response.
      - name: fields
        in: query
        description: Selector specifying which fields to include in a partial response.
        style: form
        explode: true
        schema:
          type: string
      - name: key
        in: query
        description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        style: form
        explode: true
        schema:
          type: string
      - name: oauth_token
        in: query
        description: OAuth 2.0 token for the current user.
        style: form
        explode: true
        schema:
          type: string
      - name: prettyPrint
        in: query
        description: Returns response with indentations and line breaks.
        style: form
        explode: true
        schema:
          type: boolean
      - name: quotaUser
        in: query
        description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
        style: form
        explode: true
        schema:
          type: string
      - name: userIp
        in: query
        description: Deprecated. Please use quotaUser instead.
        style: form
        explode: true
        schema:
          type: string
      - name: teamDriveId
        in: path
        description: The ID of the Team Drive
        required: true
        style: simple
        schema:
          type: string
      - name: useDomainAdminAccess
        in: query
        description: Issue the request as 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.
        style: form
        explode: true
        schema:
          type: boolean
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamDrive'
        required: false
      responses:
        '200':
          description: Successful response
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/TeamDrive'
                - description: 'Deprecated: use the drive collection instead.'
      deprecated: false
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/drive
        Oauth2c:
        - https://www.googleapis.com/auth/drive
components:
  schemas:
    About:
      title: About
      type: object
      properties:
        appInstalled:
          type: boolean
          description: Whether the user has installed the requesting app.
        canCreateDrives:
          type: boolean
          description: Whether the user can create shared drives.
        canCreateTeamDrives:
          type: boolean
          description: Deprecated - use canCreateDrives instead.
        driveThemes:
          type: array
          items:
            $ref: '#/components/schemas/DriveTheme'
          description: A list of themes that are supported for shared drives.
        exportFormats:
          type: object
          additionalProperties: {}
          description: A map of source MIME type to possible targets for all supported exports.
        folderColorPalette:
          type: array
          items:
            type: string
          description: The currently supported folder colors as RGB hex strings.
        importFormats:
          type: object
          additionalProperties: {}
          description: A map of source MIME type to possible targets for all supported imports.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#about".'
          default: drive#about
        maxImportSizes:
          type: object
          additionalProperties:
            type: string
          description: A map of maximum import sizes by MIME type, in bytes.
        maxUploadSize:
          type: string
          description: The maximum upload size in bytes.
        storageQuota:
          allOf:
          - $ref: '#/components/schemas/StorageQuota'
          - description: The user's storage quota limits and usage. All fields are measured in bytes.
        teamDriveThemes:
          type: array
          items:
            $ref: '#/components/schemas/TeamDriveTheme'
          description: Deprecated - use driveThemes instead.
        user:
          allOf:
          - $ref: '#/components/schemas/User'
          - description: Information about a Drive user.
      description: Information about the user, the user's Drive, and system capabilities.
    Change:
      title: Change
      type: object
      properties:
        changeType:
          type: string
          description: The type of the change. Possible values are file and drive.
        drive:
          allOf:
          - $ref: '#/components/schemas/Drive'
          - description: Representation of a shared drive.
        driveId:
          type: string
          description: The ID of the shared drive associated with this change.
        file:
          allOf:
          - $ref: '#/components/schemas/File'
          - description: The metadata for a file.
        fileId:
          type: string
          description: The ID of the file which has changed.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#change".'
          default: drive#change
        removed:
          type: boolean
          description: Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access.
        teamDrive:
          allOf:
          - $ref: '#/components/schemas/TeamDrive'
          - description: 'Deprecated: use the drive collection instead.'
        teamDriveId:
          type: string
          description: Deprecated - use driveId instead.
        time:
          type: string
          description: The time of this change (RFC 3339 date-time).
          format: date-time
        type:
          type: string
          description: Deprecated - use changeType instead.
      description: A change to a file or shared drive.
    ChangeList:
      title: ChangeList
      type: object
      properties:
        changes:
          type: array
          items:
            $ref: '#/components/schemas/Change'
          description: The list of changes. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#changeList".'
          default: drive#changeList
        newStartPageToken:
          type: string
          description: The starting page token for future changes. This will be present only if the end of the current changes list has been reached.
        nextPageToken:
          type: string
          description: The page token for the next page of changes. This will be absent if the end of the changes list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
      description: A list of changes for a user.
    Channel:
      title: Channel
      type: object
      properties:
        address:
          type: string
          description: The address where notifications are delivered for this channel.
        expiration:
          type: string
          description: Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
        id:
          type: string
          description: A UUID or similar unique string that identifies this channel.
        kind:
          type: string
          description: Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel".
          default: api#channel
        params:
          type: object
          additionalProperties:
            type: string
          description: Additional parameters controlling delivery channel behavior. Optional.
        payload:
          type: boolean
          description: A Boolean value to indicate whether payload is wanted. Optional.
        resourceId:
          type: string
          description: An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
        resourceUri:
          type: string
          description: A version-specific identifier for the watched resource.
        token:
          type: string
          description: An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
        type:
          type: string
          description: The type of delivery mechanism used for this channel. Valid values are "web_hook" (or "webhook"). Both values refer to a channel where Http requests are used to deliver messages.
      description: An notification channel used to watch for resource changes.
    Comment:
      title: Comment
      type: object
      properties:
        anchor:
          type: string
          description: A region of the document represented as a JSON string. For details on defining anchor properties, refer to  Add comments and replies.
        author:
          allOf:
          - $ref: '#/components/schemas/User'
          - description: Information about a Drive user.
        content:
          type: string
          description: The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed.
        createdTime:
          type: string
          description: The time at which the comment was created (RFC 3339 date-time).
          format: date-time
        deleted:
          type: boolean
          description: Whether the comment has been deleted. A deleted comment has no content.
        htmlContent:
          type: string
          description: The content of the comment with HTML formatting.
        id:
          type: string
          description: The ID of the comment.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#comment".'
          default: drive#comment
        modifiedTime:
          type: string
          description: The last time the comment or any of its replies was modified (RFC 3339 date-time).
          format: date-time
        quotedFileContent:
          allOf:
          - $ref: '#/components/schemas/QuotedFileContent'
          - description: The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.
        replies:
          type: array
          items:
            $ref: '#/components/schemas/Reply'
          description: The full list of replies to the comment in chronological order.
        resolved:
          type: boolean
          description: Whether the comment has been resolved by one of its replies.
      description: A comment on a file.
    CommentList:
      title: CommentList
      type: object
      properties:
        comments:
          type: array
          items:
            $ref: '#/components/schemas/Comment'
          description: The list of comments. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#commentList".'
          default: drive#commentList
        nextPageToken:
          type: string
          description: The page token for the next page of comments. This will be absent if the end of the comments list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
      description: A list of comments on a file.
    ContentRestriction:
      title: ContentRestriction
      type: object
      properties:
        readOnly:
          type: boolean
          description: Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
        reason:
          type: string
          description: Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
        restrictingUser:
          allOf:
          - $ref: '#/components/schemas/User'
          - description: Information about a Drive user.
        restrictionTime:
          type: string
          description: The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
          format: date-time
        type:
          type: string
          description: The type of the content restriction. Currently the only possible value is globalContentRestriction.
      description: A restriction for accessing the content of the file.
    Drive:
      title: Drive
      type: object
      properties:
        backgroundImageFile:
          allOf:
          - $ref: '#/components/schemas/BackgroundImageFile'
          - description: An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set.
        backgroundImageLink:
          type: string
          description: A short-lived link to this shared drive's background image.
        capabilities:
          allOf:
          - $ref: '#/components/schemas/Capabilities'
          - description: Capabilities the current user has on this shared drive.
        colorRgb:
          type: string
          description: The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId.
        createdTime:
          type: string
          description: The time at which the shared drive was created (RFC 3339 date-time).
          format: date-time
        hidden:
          type: boolean
          description: Whether the shared drive is hidden from default view.
        id:
          type: string
          description: The ID of this shared drive which is also the ID of the top level folder of this shared drive.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#drive".'
          default: drive#drive
        name:
          type: string
          description: The name of this shared drive.
        orgUnitId:
          type: string
          description: The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true.
        restrictions:
          allOf:
          - $ref: '#/components/schemas/Restrictions'
          - description: A set of restrictions that apply to this shared drive or items inside this shared drive.
        themeId:
          type: string
          description: The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set colorRgb or backgroundImageFile.
      description: Representation of a shared drive.
    DriveList:
      title: DriveList
      type: object
      properties:
        drives:
          type: array
          items:
            $ref: '#/components/schemas/Drive'
          description: The list of shared drives. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#driveList".'
          default: drive#driveList
        nextPageToken:
          type: string
          description: The page token for the next page of shared drives. This will be absent if the end of the list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
      description: A list of shared drives.
    File:
      title: File
      type: object
      properties:
        appProperties:
          type: object
          additionalProperties:
            type: string
          description: >-
            A collection of arbitrary key-value pairs which are private to the requesting app.

            Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
        capabilities:
          allOf:
          - $ref: '#/components/schemas/Capabilities1'
          - description: Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
        contentHints:
          allOf:
          - $ref: '#/components/schemas/ContentHints'
          - description: Additional information about the content of the file. These fields are never populated in responses.
        contentRestrictions:
          type: array
          items:
            $ref: '#/components/schemas/ContentRestriction'
          description: Restrictions for accessing the content of the file. Only populated if such a restriction exists.
        copyRequiresWriterPermission:
          type: boolean
          description: Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
        createdTime:
          type: string
          description: The time at which the file was created (RFC 3339 date-time).
          format: date-time
        description:
          type: string
          description: A short description of the file.
        driveId:
          type: string
          description: ID of the shared drive the file resides in. Only populated for items in shared drives.
        explicitlyTrashed:
          type: boolean
          description: Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
        exportLinks:
          type: object
          additionalProperties:
            type: string
          description: Links for exporting Docs Editors files to specific formats.
          readOnly: true
        fileExtension:
          type: string
          description: The final component of fullFileExtension. This is only available for files with binary content in Google Drive.
        folderColorRgb:
          type: string
          description: >-
            The color for a folder or shortcut to a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.

            If an unsupported color is specified, the closest color in the palette will be used instead.
        fullFileExtension:
          type: string
          description: >-
            The full file extension extracted from the name field. May contain multiple concatenated extensions, such as "tar.gz". This is only available for files with binary content in Google Drive.

            This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.
        hasAugmentedPermissions:
          type: boolean
          description: Whether there are permissions directly on this file. This field is only populated for items in shared drives.
        hasThumbnail:
          type: boolean
          description: Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
        headRevisionId:
          type: string
          description: The ID of the file's head revision. This is currently only available for files with binary content in Google Drive.
        iconLink:
          type: string
          description: A static, unauthenticated link to the file's icon.
        id:
          type: string
          description: The ID of the file.
        imageMediaMetadata:
          allOf:
          - $ref: '#/components/schemas/ImageMediaMetadata'
          - description: Additional metadata about image media, if available.
        isAppAuthorized:
          type: boolean
          description: Whether the file was created or opened by the requesting app.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#file".'
          default: drive#file
        lastModifyingUser:
          allOf:
          - $ref: '#/components/schemas/User'
          - description: Information about a Drive user.
        linkShareMetadata:
          allOf:
          - $ref: '#/components/schemas/LinkShareMetadata'
          - description: Contains details about the link URLs that clients are using to refer to this item.
        md5Checksum:
          type: string
          description: The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
        mimeType:
          type: string
          description: >-
            The MIME type of the file.

            Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.

            If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.
        modifiedByMe:
          type: boolean
          description: Whether the file has been modified by this user.
        modifiedByMeTime:
          type: string
          description: The last time the file was modified by the user (RFC 3339 date-time).
          format: date-time
        modifiedTime:
          type: string
          description: >-
            The last time the file was modified by anyone (RFC 3339 date-time).

            Note that setting modifiedTime will also update modifiedByMeTime for the user.
          format: date-time
        name:
          type: string
          description: The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.
        originalFilename:
          type: string
          description: The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.
        ownedByMe:
          type: boolean
          description: Whether the user owns the file. Not populated for items in shared drives.
        owners:
          type: array
          items:
            $ref: '#/components/schemas/User'
          description: The owner of this file. Only certain legacy files may have more than one owner. This field isn't populated for items in shared drives.
        parents:
          type: array
          items:
            type: string
          description: >-
            The IDs of the parent folders which contain the file.

            If not specified as part of a create request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.
        permissionIds:
          type: array
          items:
            type: string
          description: List of permission IDs for users with access to this file.
        permissions:
          type: array
          items:
            $ref: '#/components/schemas/Permission'
          description: The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
        properties:
          type: object
          additionalProperties:
            type: string
          description: >-
            A collection of arbitrary key-value pairs which are visible to all apps.

            Entries with null values are cleared in update and copy requests.
        quotaBytesUsed:
          type: string
          description: The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
        resourceKey:
          type: string
          description: A key needed to access the item via a shared link.
        shared:
          type: boolean
          description: Whether the file has been shared. Not populated for items in shared drives.
        sharedWithMeTime:
          type: string
          description: The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
          format: date-time
        sharingUser:
          allOf:
          - $ref: '#/components/schemas/User'
          - description: Information about a Drive user.
        shortcutDetails:
          allOf:
          - $ref: '#/components/schemas/ShortcutDetails'
          - description: Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
        size:
          type: string
          description: The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
        spaces:
          type: array
          items:
            type: string
          description: The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
        starred:
          type: boolean
          description: Whether the user has starred the file.
        teamDriveId:
          type: string
          description: Deprecated - use driveId instead.
        thumbnailLink:
          type: string
          description: A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content. If the file isn't shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
        thumbnailVersion:
          type: string
          description: The thumbnail version for use in thumbnail cache invalidation.
        trashed:
          type: boolean
          description: Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.
        trashedTime:
          type: string
          description: The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
          format: date-time
        trashingUser:
          allOf:
          - $ref: '#/components/schemas/User'
          - description: Information about a Drive user.
        version:
          type: string
          description: A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
        videoMediaMetadata:
          allOf:
          - $ref: '#/components/schemas/VideoMediaMetadata'
          - description: Additional metadata about video media. This may not be available immediately upon upload.
        viewedByMe:
          type: boolean
          description: Whether the file has been viewed by this user.
        viewedByMeTime:
          type: string
          description: The last time the file was viewed by the user (RFC 3339 date-time).
          format: date-time
        viewersCanCopyContent:
          type: boolean
          description: Deprecated - use copyRequiresWriterPermission instead.
        webContentLink:
          type: string
          description: A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
        webViewLink:
          type: string
          description: A link for opening the file in a relevant Google editor or viewer in a browser.
        writersCanShare:
          type: boolean
          description: Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives.
      description: The metadata for a file.
    FileList:
      title: FileList
      type: object
      properties:
        files:
          type: array
          items:
            $ref: '#/components/schemas/File'
          description: The list of files. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
        incompleteSearch:
          type: boolean
          description: Whether the search process was incomplete. If true, then some search results may be missing, since all documents were not searched. This may occur when searching multiple drives with the "allDrives" corpora, but all corpora could not be searched. When this happens, it is suggested that clients narrow their query by choosing a different corpus such as "user" or "drive".
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#fileList".'
          default: drive#fileList
        nextPageToken:
          type: string
          description: The page token for the next page of files. This will be absent if the end of the files list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
      description: A list of files.
    GeneratedIds:
      title: GeneratedIds
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
          description: The IDs generated for the requesting user in the specified space.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#generatedIds".'
          default: drive#generatedIds
        space:
          type: string
          description: The type of file that can be created with these IDs.
      description: A list of generated file IDs which can be provided in create requests.
    Permission:
      title: Permission
      type: object
      properties:
        allowFileDiscovery:
          type: boolean
          description: Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
        deleted:
          type: boolean
          description: Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
        displayName:
          type: string
          description: "The \"pretty\" name of the value of the permission. The following is a list of examples for each type of permission:  \n- user - User's full name, as defined for their Google account, such as \"Joe Smith.\" \n- group - Name of the Google Group, such as \"The Company Administrators.\" \n- domain - String domain name, such as \"thecompany.com.\" \n- anyone - No displayName is present."
        domain:
          type: string
          description: The domain to which this permission refers.
        emailAddress:
          type: string
          description: The email address of the user or group to which this permission refers.
        expirationTime:
          type: string
          description: "The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:  \n- They can only be set on user and group permissions \n- The time must be in the future \n- The time cannot be more than a year in the future"
          format: date-time
        id:
          type: string
          description: The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#permission".'
          default: drive#permission
        pendingOwner:
          type: boolean
          description: Whether the account associated with this permission is a pending owner. Only populated for user type permissions for files that are not in a shared drive.
        permissionDetails:
          type: array
          items:
            $ref: '#/components/schemas/PermissionDetail'
          description: Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
          readOnly: true
        photoLink:
          type: string
          description: A link to the user's profile photo, if available.
        role:
          type: string
          description: "The role granted by this permission. While new values may be supported in the future, the following are currently allowed:  \n- owner \n- organizer \n- fileOrganizer \n- writer \n- commenter \n- reader"
        teamDrivePermissionDetails:
          type: array
          items:
            $ref: '#/components/schemas/TeamDrivePermissionDetail'
          description: Deprecated - use permissionDetails instead.
          readOnly: true
        type:
          type: string
          description: "The type of the grantee. Valid values are:  \n- user \n- group \n- domain \n- anyone  When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn't extra information required for a anyone type."
        view:
          type: string
          description: Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
      description: A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
    PermissionList:
      title: PermissionList
      type: object
      properties:
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#permissionList".'
          default: drive#permissionList
        nextPageToken:
          type: string
          description: The page token for the next page of permissions. This field will be absent if the end of the permissions list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
        permissions:
          type: array
          items:
            $ref: '#/components/schemas/Permission'
          description: The list of permissions. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
      description: A list of permissions for a file.
    Reply:
      title: Reply
      type: object
      properties:
        action:
          type: string
          description: "The action the reply performed to the parent comment. Valid values are:  \n- resolve \n- reopen"
        author:
          allOf:
          - $ref: '#/components/schemas/User'
          - description: Information about a Drive user.
        content:
          type: string
          description: The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified.
        createdTime:
          type: string
          description: The time at which the reply was created (RFC 3339 date-time).
          format: date-time
        deleted:
          type: boolean
          description: Whether the reply has been deleted. A deleted reply has no content.
        htmlContent:
          type: string
          description: The content of the reply with HTML formatting.
        id:
          type: string
          description: The ID of the reply.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#reply".'
          default: drive#reply
        modifiedTime:
          type: string
          description: The last time the reply was modified (RFC 3339 date-time).
          format: date-time
      description: A reply to a comment on a file.
    ReplyList:
      title: ReplyList
      type: object
      properties:
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#replyList".'
          default: drive#replyList
        nextPageToken:
          type: string
          description: The page token for the next page of replies. This will be absent if the end of the replies list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
        replies:
          type: array
          items:
            $ref: '#/components/schemas/Reply'
          description: The list of replies. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
      description: A list of replies to a comment on a file.
    Revision:
      title: Revision
      type: object
      properties:
        exportLinks:
          type: object
          additionalProperties:
            type: string
          description: Links for exporting Docs Editors files to specific formats.
        id:
          type: string
          description: The ID of the revision.
        keepForever:
          type: boolean
          description: >-
            Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file.

            This field is only applicable to files with binary content in Drive.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#revision".'
          default: drive#revision
        lastModifyingUser:
          allOf:
          - $ref: '#/components/schemas/User'
          - description: Information about a Drive user.
        md5Checksum:
          type: string
          description: The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive.
        mimeType:
          type: string
          description: The MIME type of the revision.
        modifiedTime:
          type: string
          description: The last time the revision was modified (RFC 3339 date-time).
          format: date-time
        originalFilename:
          type: string
          description: The original filename used to create this revision. This is only applicable to files with binary content in Drive.
        publishAuto:
          type: boolean
          description: Whether subsequent revisions will be automatically republished. This is only applicable to Docs Editors files.
        published:
          type: boolean
          description: Whether this revision is published. This is only applicable to Docs Editors files.
        publishedLink:
          type: string
          description: A link to the published revision. This is only populated for Google Sites files.
        publishedOutsideDomain:
          type: boolean
          description: Whether this revision is published outside the domain. This is only applicable to Docs Editors files.
        size:
          type: string
          description: The size of the revision's content in bytes. This is only applicable to files with binary content in Drive.
      description: The metadata for a revision to a file.
    RevisionList:
      title: RevisionList
      type: object
      properties:
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#revisionList".'
          default: drive#revisionList
        nextPageToken:
          type: string
          description: The page token for the next page of revisions. This will be absent if the end of the revisions list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
        revisions:
          type: array
          items:
            $ref: '#/components/schemas/Revision'
          description: The list of revisions. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
      description: A list of revisions of a file.
    StartPageToken:
      title: StartPageToken
      type: object
      properties:
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#startPageToken".'
          default: drive#startPageToken
        startPageToken:
          type: string
          description: The starting page token for listing changes.
    TeamDrive:
      title: TeamDrive
      type: object
      properties:
        backgroundImageFile:
          allOf:
          - $ref: '#/components/schemas/BackgroundImageFile1'
          - description: An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set.
        backgroundImageLink:
          type: string
          description: A short-lived link to this Team Drive's background image.
        capabilities:
          allOf:
          - $ref: '#/components/schemas/Capabilities2'
          - description: Capabilities the current user has on this Team Drive.
        colorRgb:
          type: string
          description: The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId.
        createdTime:
          type: string
          description: The time at which the Team Drive was created (RFC 3339 date-time).
          format: date-time
        id:
          type: string
          description: The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#teamDrive".'
          default: drive#teamDrive
        name:
          type: string
          description: The name of this Team Drive.
        orgUnitId:
          type: string
          description: The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true.
        restrictions:
          allOf:
          - $ref: '#/components/schemas/Restrictions1'
          - description: A set of restrictions that apply to this Team Drive or items inside this Team Drive.
        themeId:
          type: string
          description: The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set colorRgb or backgroundImageFile.
      description: 'Deprecated: use the drive collection instead.'
    TeamDriveList:
      title: TeamDriveList
      type: object
      properties:
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#teamDriveList".'
          default: drive#teamDriveList
        nextPageToken:
          type: string
          description: The page token for the next page of Team Drives. This will be absent if the end of the Team Drives list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
        teamDrives:
          type: array
          items:
            $ref: '#/components/schemas/TeamDrive'
          description: The list of Team Drives. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
      description: A list of Team Drives.
    User:
      title: User
      type: object
      properties:
        displayName:
          type: string
          description: A plain text displayable name for this user.
        emailAddress:
          type: string
          description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "drive#user".'
          default: drive#user
        me:
          type: boolean
          description: Whether this user is the requesting user.
        permissionId:
          type: string
          description: The user's ID as visible in Permission resources.
        photoLink:
          type: string
          description: A link to the user's profile photo, if available.
      description: Information about a Drive user.
    alt:
      title: alt
      enum:
      - json
      type: string
    BackgroundImageFile:
      title: BackgroundImageFile
      type: object
      properties:
        id:
          type: string
          description: The ID of an image file in Google Drive to use for the background image.
        width:
          type: number
          description: The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
        xCoordinate:
          type: number
          description: The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
        yCoordinate:
          type: number
          description: The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
      description: An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set.
    BackgroundImageFile1:
      title: BackgroundImageFile1
      type: object
      properties:
        id:
          type: string
          description: The ID of an image file in Drive to use for the background image.
        width:
          type: number
          description: The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
        xCoordinate:
          type: number
          description: The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
        yCoordinate:
          type: number
          description: The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
      description: An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set.
    Capabilities:
      title: Capabilities
      type: object
      properties:
        canAddChildren:
          type: boolean
          description: Whether the current user can add children to folders in this shared drive.
        canChangeCopyRequiresWriterPermissionRestriction:
          type: boolean
          description: Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive.
        canChangeDomainUsersOnlyRestriction:
          type: boolean
          description: Whether the current user can change the domainUsersOnly restriction of this shared drive.
        canChangeDriveBackground:
          type: boolean
          description: Whether the current user can change the background of this shared drive.
        canChangeDriveMembersOnlyRestriction:
          type: boolean
          description: Whether the current user can change the driveMembersOnly restriction of this shared drive.
        canComment:
          type: boolean
          description: Whether the current user can comment on files in this shared drive.
        canCopy:
          type: boolean
          description: Whether the current user can copy files in this shared drive.
        canDeleteChildren:
          type: boolean
          description: Whether the current user can delete children from folders in this shared drive.
        canDeleteDrive:
          type: boolean
          description: Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.
        canDownload:
          type: boolean
          description: Whether the current user can download files in this shared drive.
        canEdit:
          type: boolean
          description: Whether the current user can edit files in this shared drive
        canListChildren:
          type: boolean
          description: Whether the current user can list the children of folders in this shared drive.
        canManageMembers:
          type: boolean
          description: Whether the current user can add members to this shared drive or remove them or change their role.
        canReadRevisions:
          type: boolean
          description: Whether the current user can read the revisions resource of files in this shared drive.
        canRename:
          type: boolean
          description: Whether the current user can rename files or folders in this shared drive.
        canRenameDrive:
          type: boolean
          description: Whether the current user can rename this shared drive.
        canShare:
          type: boolean
          description: Whether the current user can share files or folders in this shared drive.
        canTrashChildren:
          type: boolean
          description: Whether the current user can trash children from folders in this shared drive.
      description: Capabilities the current user has on this shared drive.
    Capabilities1:
      title: Capabilities1
      type: object
      properties:
        canAcceptOwnership:
          type: boolean
          description: Whether the current user is the pending owner of the file. Not populated for shared drive files.
        canAddChildren:
          type: boolean
          description: Whether the current user can add children to this folder. This is always false when the item is not a folder.
        canAddFolderFromAnotherDrive:
          type: boolean
          description: Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
        canAddMyDriveParent:
          type: boolean
          description: Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
        canChangeCopyRequiresWriterPermission:
          type: boolean
          description: Whether the current user can change the copyRequiresWriterPermission restriction of this file.
        canChangeSecurityUpdateEnabled:
          type: boolean
          description: Whether the current user can change the securityUpdateEnabled field on link share metadata.
        canChangeViewersCanCopyContent:
          type: boolean
          description: Deprecated
        canComment:
          type: boolean
          description: Whether the current user can comment on this file.
        canCopy:
          type: boolean
          description: Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
        canDelete:
          type: boolean
          description: Whether the current user can delete this file.
        canDeleteChildren:
          type: boolean
          description: Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
        canDownload:
          type: boolean
          description: Whether the current user can download this file.
        canEdit:
          type: boolean
          description: Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.
        canListChildren:
          type: boolean
          description: Whether the current user can list the children of this folder. This is always false when the item is not a folder.
        canModifyContent:
          type: boolean
          description: Whether the current user can modify the content of this file.
        canModifyContentRestriction:
          type: boolean
          description: Whether the current user can modify restrictions on content of this file.
        canMoveChildrenOutOfDrive:
          type: boolean
          description: Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
        canMoveChildrenOutOfTeamDrive:
          type: boolean
          description: Deprecated - use canMoveChildrenOutOfDrive instead.
        canMoveChildrenWithinDrive:
          type: boolean
          description: Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user's access to the child and to the destination folder.
        canMoveChildrenWithinTeamDrive:
          type: boolean
          description: Deprecated - use canMoveChildrenWithinDrive instead.
        canMoveItemIntoTeamDrive:
          type: boolean
          description: Deprecated - use canMoveItemOutOfDrive instead.
        canMoveItemOutOfDrive:
          type: boolean
          description: Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
        canMoveItemOutOfTeamDrive:
          type: boolean
          description: Deprecated - use canMoveItemOutOfDrive instead.
        canMoveItemWithinDrive:
          type: boolean
          description: Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
        canMoveItemWithinTeamDrive:
          type: boolean
          description: Deprecated - use canMoveItemWithinDrive instead.
        canMoveTeamDriveItem:
          type: boolean
          description: Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
        canReadDrive:
          type: boolean
          description: Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
        canReadRevisions:
          type: boolean
          description: Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
        canReadTeamDrive:
          type: boolean
          description: Deprecated - use canReadDrive instead.
        canRemoveChildren:
          type: boolean
          description: Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
        canRemoveMyDriveParent:
          type: boolean
          description: Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
        canRename:
          type: boolean
          description: Whether the current user can rename this file.
        canShare:
          type: boolean
          description: Whether the current user can modify the sharing settings for this file.
        canTrash:
          type: boolean
          description: Whether the current user can move this file to trash.
        canTrashChildren:
          type: boolean
          description: Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
        canUntrash:
          type: boolean
          description: Whether the current user can restore this file from trash.
      description: Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
    Capabilities2:
      title: Capabilities2
      type: object
      properties:
        canAddChildren:
          type: boolean
          description: Whether the current user can add children to folders in this Team Drive.
        canChangeCopyRequiresWriterPermissionRestriction:
          type: boolean
          description: Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.
        canChangeDomainUsersOnlyRestriction:
          type: boolean
          description: Whether the current user can change the domainUsersOnly restriction of this Team Drive.
        canChangeTeamDriveBackground:
          type: boolean
          description: Whether the current user can change the background of this Team Drive.
        canChangeTeamMembersOnlyRestriction:
          type: boolean
          description: Whether the current user can change the teamMembersOnly restriction of this Team Drive.
        canComment:
          type: boolean
          description: Whether the current user can comment on files in this Team Drive.
        canCopy:
          type: boolean
          description: Whether the current user can copy files in this Team Drive.
        canDeleteChildren:
          type: boolean
          description: Whether the current user can delete children from folders in this Team Drive.
        canDeleteTeamDrive:
          type: boolean
          description: Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.
        canDownload:
          type: boolean
          description: Whether the current user can download files in this Team Drive.
        canEdit:
          type: boolean
          description: Whether the current user can edit files in this Team Drive
        canListChildren:
          type: boolean
          description: Whether the current user can list the children of folders in this Team Drive.
        canManageMembers:
          type: boolean
          description: Whether the current user can add members to this Team Drive or remove them or change their role.
        canReadRevisions:
          type: boolean
          description: Whether the current user can read the revisions resource of files in this Team Drive.
        canRemoveChildren:
          type: boolean
          description: Deprecated - use canDeleteChildren or canTrashChildren instead.
        canRename:
          type: boolean
          description: Whether the current user can rename files or folders in this Team Drive.
        canRenameTeamDrive:
          type: boolean
          description: Whether the current user can rename this Team Drive.
        canShare:
          type: boolean
          description: Whether the current user can share files or folders in this Team Drive.
        canTrashChildren:
          type: boolean
          description: Whether the current user can trash children from folders in this Team Drive.
      description: Capabilities the current user has on this Team Drive.
    ContentHints:
      title: ContentHints
      type: object
      properties:
        indexableText:
          type: string
          description: Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
        thumbnail:
          allOf:
          - $ref: '#/components/schemas/Thumbnail'
          - description: A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
      description: Additional information about the content of the file. These fields are never populated in responses.
    corpus:
      title: corpus
      enum:
      - domain
      - user
      type: string
    DriveTheme:
      title: DriveTheme
      type: object
      properties:
        backgroundImageLink:
          type: string
          description: A link to this theme's background image.
        colorRgb:
          type: string
          description: The color of this theme as an RGB hex string.
        id:
          type: string
          description: The ID of the theme.
    ImageMediaMetadata:
      title: ImageMediaMetadata
      type: object
      properties:
        aperture:
          type: number
          description: The aperture used to create the photo (f-number).
        cameraMake:
          type: string
          description: The make of the camera used to create the photo.
        cameraModel:
          type: string
          description: The model of the camera used to create the photo.
        colorSpace:
          type: string
          description: The color space of the photo.
        exposureBias:
          type: number
          description: The exposure bias of the photo (APEX value).
        exposureMode:
          type: string
          description: The exposure mode used to create the photo.
        exposureTime:
          type: number
          description: The length of the exposure, in seconds.
        flashUsed:
          type: boolean
          description: Whether a flash was used to create the photo.
        focalLength:
          type: number
          description: The focal length used to create the photo, in millimeters.
        height:
          type: integer
          description: The height of the image in pixels.
          format: int32
        isoSpeed:
          type: integer
          description: The ISO speed used to create the photo.
          format: int32
        lens:
          type: string
          description: The lens used to create the photo.
        location:
          allOf:
          - $ref: '#/components/schemas/Location'
          - description: Geographic location information stored in the image.
        maxApertureValue:
          type: number
          description: The smallest f-number of the lens at the focal length used to create the photo (APEX value).
        meteringMode:
          type: string
          description: The metering mode used to create the photo.
        rotation:
          type: integer
          description: The number of clockwise 90 degree rotations applied from the image's original orientation.
          format: int32
        sensor:
          type: string
          description: The type of sensor used to create the photo.
        subjectDistance:
          type: integer
          description: The distance to the subject of the photo, in meters.
          format: int32
        time:
          type: string
          description: The date and time the photo was taken (EXIF DateTime).
        whiteBalance:
          type: string
          description: The white balance mode used to create the photo.
        width:
          type: integer
          description: The width of the image in pixels.
          format: int32
      description: Additional metadata about image media, if available.
    LinkShareMetadata:
      title: LinkShareMetadata
      type: object
      properties:
        securityUpdateEligible:
          type: boolean
          description: Whether the file is eligible for security update.
        securityUpdateEnabled:
          type: boolean
          description: Whether the security update is enabled for this file.
      description: Contains details about the link URLs that clients are using to refer to this item.
    Location:
      title: Location
      type: object
      properties:
        altitude:
          type: number
          description: The altitude stored in the image.
        latitude:
          type: number
          description: The latitude stored in the image.
        longitude:
          type: number
          description: The longitude stored in the image.
      description: Geographic location information stored in the image.
    PermissionDetail:
      title: PermissionDetail
      type: object
      properties:
        inherited:
          type: boolean
          description: Whether this permission is inherited. This field is always populated. This is an output-only field.
        inheritedFrom:
          type: string
          description: The ID of the item from which this permission is inherited. This is an output-only field.
        permissionType:
          type: string
          description: "The permission type for this user. While new values may be added in future, the following are currently possible:  \n- file \n- member"
        role:
          type: string
          description: "The primary role for this user. While new values may be added in the future, the following are currently possible:  \n- organizer \n- fileOrganizer \n- writer \n- commenter \n- reader"
    QuotedFileContent:
      title: QuotedFileContent
      type: object
      properties:
        mimeType:
          type: string
          description: The MIME type of the quoted content.
        value:
          type: string
          description: The quoted content itself. This is interpreted as plain text if set through the API.
      description: The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.
    Restrictions:
      title: Restrictions
      type: object
      properties:
        adminManagedRestrictions:
          type: boolean
          description: Whether administrative privileges on this shared drive are required to modify restrictions.
        copyRequiresWriterPermission:
          type: boolean
          description: Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.
        domainUsersOnly:
          type: boolean
          description: Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
        driveMembersOnly:
          type: boolean
          description: Whether access to items inside this shared drive is restricted to its members.
      description: A set of restrictions that apply to this shared drive or items inside this shared drive.
    Restrictions1:
      title: Restrictions1
      type: object
      properties:
        adminManagedRestrictions:
          type: boolean
          description: Whether administrative privileges on this Team Drive are required to modify restrictions.
        copyRequiresWriterPermission:
          type: boolean
          description: Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.
        domainUsersOnly:
          type: boolean
          description: Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
        teamMembersOnly:
          type: boolean
          description: Whether access to items inside this Team Drive is restricted to members of this Team Drive.
      description: A set of restrictions that apply to this Team Drive or items inside this Team Drive.
    ShortcutDetails:
      title: ShortcutDetails
      type: object
      properties:
        targetId:
          type: string
          description: The ID of the file that this shortcut points to.
        targetMimeType:
          type: string
          description: The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
        targetResourceKey:
          type: string
          description: The ResourceKey for the target file.
      description: Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
    StorageQuota:
      title: StorageQuota
      type: object
      properties:
        limit:
          type: string
          description: The usage limit, if applicable. This will not be present if the user has unlimited storage.
        usage:
          type: string
          description: The total usage across all services.
        usageInDrive:
          type: string
          description: The usage by all files in Google Drive.
        usageInDriveTrash:
          type: string
          description: The usage by trashed files in Google Drive.
      description: The user's storage quota limits and usage. All fields are measured in bytes.
    TeamDrivePermissionDetail:
      title: TeamDrivePermissionDetail
      type: object
      properties:
        inherited:
          type: boolean
          description: Deprecated - use permissionDetails/inherited instead.
        inheritedFrom:
          type: string
          description: Deprecated - use permissionDetails/inheritedFrom instead.
        role:
          type: string
          description: Deprecated - use permissionDetails/role instead.
        teamDrivePermissionType:
          type: string
          description: Deprecated - use permissionDetails/permissionType instead.
    TeamDriveTheme:
      title: TeamDriveTheme
      type: object
      properties:
        backgroundImageLink:
          type: string
          description: Deprecated - use driveThemes/backgroundImageLink instead.
        colorRgb:
          type: string
          description: Deprecated - use driveThemes/colorRgb instead.
        id:
          type: string
          description: Deprecated - use driveThemes/id instead.
    Thumbnail:
      title: Thumbnail
      type: object
      properties:
        image:
          type: string
          description: The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
        mimeType:
          type: string
          description: The MIME type of the thumbnail.
      description: A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
    VideoMediaMetadata:
      title: VideoMediaMetadata
      type: object
      properties:
        durationMillis:
          type: string
          description: The duration of the video in milliseconds.
        height:
          type: integer
          description: The height of the video in pixels.
          format: int32
        width:
          type: integer
          description: The width of the video in pixels.
          format: int32
      description: Additional metadata about video media. This may not be available immediately upon upload.
  securitySchemes:
    Oauth2:
      type: oauth2
      description: Oauth 2.0 implicit authentication
      flows:
        implicit:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          scopes:
            https://www.googleapis.com/auth/drive: See, edit, create, and delete all of your Google Drive files
            https://www.googleapis.com/auth/drive.appdata: See, create, and delete its own configuration data in your Google Drive
            https://www.googleapis.com/auth/drive.file: See, edit, create, and delete only the specific Google Drive files you use with this app
            https://www.googleapis.com/auth/drive.metadata: View and manage metadata of files in your Google Drive
            https://www.googleapis.com/auth/drive.metadata.readonly: See information about your Google Drive files
            https://www.googleapis.com/auth/drive.photos.readonly: View the photos, videos and albums in your Google Photos
            https://www.googleapis.com/auth/drive.readonly: See and download all your Google Drive files
            https://www.googleapis.com/auth/drive.scripts: Modify your Google Apps Script scripts' behavior
    Oauth2c:
      type: oauth2
      description: Oauth 2.0 authorizationCode authentication
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://accounts.google.com/o/oauth2/token
          scopes:
            https://www.googleapis.com/auth/drive: See, edit, create, and delete all of your Google Drive files
            https://www.googleapis.com/auth/drive.appdata: See, create, and delete its own configuration data in your Google Drive
            https://www.googleapis.com/auth/drive.file: See, edit, create, and delete only the specific Google Drive files you use with this app
            https://www.googleapis.com/auth/drive.metadata: View and manage metadata of files in your Google Drive
            https://www.googleapis.com/auth/drive.metadata.readonly: See information about your Google Drive files
            https://www.googleapis.com/auth/drive.photos.readonly: View the photos, videos and albums in your Google Photos
            https://www.googleapis.com/auth/drive.readonly: See and download all your Google Drive files
            https://www.googleapis.com/auth/drive.scripts: Modify your Google Apps Script scripts' behavior
security: []
tags:
- name: about
- name: changes
- name: channels
- name: comments
- name: drives
- name: files
- name: permissions
- name: replies
- name: revisions
- name: teamdrives
externalDocs:
  url: https://developers.google.com/drive/
