Struct google_genomics1::DatasetMethods[][src]

pub struct DatasetMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

A builder providing access to all methods supported on dataset resources. It is not used directly, but through the Genomics hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_genomics1 as genomics1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use genomics1::Genomics;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = Genomics::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `create(...)`, `delete(...)`, `get(...)`, `get_iam_policy(...)`, `list(...)`, `patch(...)`, `set_iam_policy(...)`, `test_iam_permissions(...)` and `undelete(...)`
// to build up your call.
let rb = hub.datasets();

Methods

impl<'a, C, A> DatasetMethods<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates a new dataset.

Arguments

  • request - No description provided.

Create a builder to help you perform the following task:

Deletes a dataset and all of its contents (all read group sets, reference sets, variant sets, call sets, annotation sets, etc.) This is reversible (up to one week after the deletion) via the datasets.undelete operation.

Arguments

  • datasetId - The ID of the dataset to be deleted.

Create a builder to help you perform the following task:

Undeletes a dataset by restoring a dataset which was deleted via this API.

This operation is only possible for a week after the deletion occurred.

Arguments

  • request - No description provided.
  • datasetId - The ID of the dataset to be undeleted.

Create a builder to help you perform the following task:

Sets the access control policy on the specified dataset. Replaces any existing policy.

See Setting a Policy for more information.

Arguments

  • request - No description provided.
  • resource - REQUIRED: The resource for which policy is being specified. Format is datasets/<dataset ID>.

Create a builder to help you perform the following task:

Returns permissions that a caller has on the specified resource. See Testing Permissions for more information.

Arguments

  • request - No description provided.
  • resource - REQUIRED: The resource for which policy is being specified. Format is datasets/<dataset ID>.

Create a builder to help you perform the following task:

Gets a dataset by ID.

Arguments

  • datasetId - The ID of the dataset.

Create a builder to help you perform the following task:

Lists datasets within a project.

Create a builder to help you perform the following task:

Gets the access control policy for the dataset. This is empty if the policy or resource does not exist.

See Getting a Policy for more information.

Arguments

  • request - No description provided.
  • resource - REQUIRED: The resource for which policy is being specified. Format is datasets/<dataset ID>.

Create a builder to help you perform the following task:

Updates a dataset.

This method supports patch semantics.

Arguments

  • request - No description provided.
  • datasetId - The ID of the dataset to be updated.

Trait Implementations

impl<'a, C, A> MethodsBuilder for DatasetMethods<'a, C, A>
[src]

Auto Trait Implementations

impl<'a, C, A> !Send for DatasetMethods<'a, C, A>

impl<'a, C, A> !Sync for DatasetMethods<'a, C, A>