# Dataflow API . projects . locations . snapshots

## Instance Methods

Close httplib2 connections.

Deletes a snapshot.

Gets information about a snapshot.

Lists snapshots.

### Method Details

`close()`

    Close httplib2 connections.

`delete(projectId, location, snapshotId, x__xgafv=None)`

    Deletes a snapshot.

    Args:
      projectId: string, The ID of the Cloud Platform project that the snapshot belongs to. (required)
      location: string, The location that contains this snapshot. (required)
      snapshotId: string, The ID of the snapshot. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response from deleting a snapshot.
      }

`get(projectId, location, snapshotId, x__xgafv=None)`

    Gets information about a snapshot.

    Args:
      projectId: string, The ID of the Cloud Platform project that the snapshot belongs to. (required)
      location: string, The location that contains this snapshot. (required)
      snapshotId: string, The ID of the snapshot. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Represents a snapshot of a job.
        "pubsubMetadata": [ # PubSub snapshot metadata.
          { # Represents a Pubsub snapshot.
            "topicName": "A String", # The name of the Pubsub topic.
            "expireTime": "A String", # The expire time of the Pubsub snapshot.
            "snapshotName": "A String", # The name of the Pubsub snapshot.
          },
        ],
        "creationTime": "A String", # The time this snapshot was created.
        "projectId": "A String", # The project this snapshot belongs to.
        "description": "A String", # User specified description of the snapshot. Maybe empty.
        "sourceJobId": "A String", # The job this snapshot was created from.
        "ttl": "A String", # The time after which this snapshot will be automatically deleted.
        "id": "A String", # The unique ID of this snapshot.
        "diskSizeBytes": "A String", # The disk byte size of the snapshot. Only available for snapshots in READY state.
        "state": "A String", # State of the snapshot.
      }

`list(projectId, location, jobId=None, x__xgafv=None)`

    Lists snapshots.

    Args:
      projectId: string, The project ID to list snapshots for. (required)
      location: string, The location to list snapshots in. (required)
      jobId: string, If specified, list snapshots created from this job.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # List of snapshots.
        "snapshots": [ # Returned snapshots.
          { # Represents a snapshot of a job.
            "pubsubMetadata": [ # PubSub snapshot metadata.
              { # Represents a Pubsub snapshot.
                "topicName": "A String", # The name of the Pubsub topic.
                "expireTime": "A String", # The expire time of the Pubsub snapshot.
                "snapshotName": "A String", # The name of the Pubsub snapshot.
              },
            ],
            "creationTime": "A String", # The time this snapshot was created.
            "projectId": "A String", # The project this snapshot belongs to.
            "description": "A String", # User specified description of the snapshot. Maybe empty.
            "sourceJobId": "A String", # The job this snapshot was created from.
            "ttl": "A String", # The time after which this snapshot will be automatically deleted.
            "id": "A String", # The unique ID of this snapshot.
            "diskSizeBytes": "A String", # The disk byte size of the snapshot. Only available for snapshots in READY state.
            "state": "A String", # State of the snapshot.
          },
        ],
      }