google_dataplex1/
lib.rs

1// DO NOT EDIT !
2// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
3// DO NOT EDIT !
4
5//! This documentation was generated from *Cloud Dataplex* crate version *7.0.0+20251203*, where *20251203* is the exact revision of the *dataplex:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v7.0.0*.
6//!
7//! Everything else about the *Cloud Dataplex* *v1* API can be found at the
8//! [official documentation site](https://cloud.google.com/dataplex/docs).
9//! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/main/gen/dataplex1).
10//! # Features
11//!
12//! Handle the following *Resources* with ease from the central [hub](CloudDataplex) ...
13//!
14//! * organizations
15//!  * [*locations encryption configs create*](api::OrganizationLocationEncryptionConfigCreateCall), [*locations encryption configs delete*](api::OrganizationLocationEncryptionConfigDeleteCall), [*locations encryption configs get*](api::OrganizationLocationEncryptionConfigGetCall), [*locations encryption configs get iam policy*](api::OrganizationLocationEncryptionConfigGetIamPolicyCall), [*locations encryption configs list*](api::OrganizationLocationEncryptionConfigListCall), [*locations encryption configs patch*](api::OrganizationLocationEncryptionConfigPatchCall), [*locations encryption configs set iam policy*](api::OrganizationLocationEncryptionConfigSetIamPolicyCall), [*locations encryption configs test iam permissions*](api::OrganizationLocationEncryptionConfigTestIamPermissionCall), [*locations operations cancel*](api::OrganizationLocationOperationCancelCall), [*locations operations delete*](api::OrganizationLocationOperationDeleteCall), [*locations operations get*](api::OrganizationLocationOperationGetCall) and [*locations operations list*](api::OrganizationLocationOperationListCall)
16//! * projects
17//!  * [*locations aspect types create*](api::ProjectLocationAspectTypeCreateCall), [*locations aspect types delete*](api::ProjectLocationAspectTypeDeleteCall), [*locations aspect types get*](api::ProjectLocationAspectTypeGetCall), [*locations aspect types get iam policy*](api::ProjectLocationAspectTypeGetIamPolicyCall), [*locations aspect types list*](api::ProjectLocationAspectTypeListCall), [*locations aspect types patch*](api::ProjectLocationAspectTypePatchCall), [*locations aspect types set iam policy*](api::ProjectLocationAspectTypeSetIamPolicyCall), [*locations aspect types test iam permissions*](api::ProjectLocationAspectTypeTestIamPermissionCall), [*locations change requests get iam policy*](api::ProjectLocationChangeRequestGetIamPolicyCall), [*locations change requests set iam policy*](api::ProjectLocationChangeRequestSetIamPolicyCall), [*locations change requests test iam permissions*](api::ProjectLocationChangeRequestTestIamPermissionCall), [*locations data attribute bindings create*](api::ProjectLocationDataAttributeBindingCreateCall), [*locations data attribute bindings delete*](api::ProjectLocationDataAttributeBindingDeleteCall), [*locations data attribute bindings get*](api::ProjectLocationDataAttributeBindingGetCall), [*locations data attribute bindings get iam policy*](api::ProjectLocationDataAttributeBindingGetIamPolicyCall), [*locations data attribute bindings list*](api::ProjectLocationDataAttributeBindingListCall), [*locations data attribute bindings patch*](api::ProjectLocationDataAttributeBindingPatchCall), [*locations data attribute bindings set iam policy*](api::ProjectLocationDataAttributeBindingSetIamPolicyCall), [*locations data attribute bindings test iam permissions*](api::ProjectLocationDataAttributeBindingTestIamPermissionCall), [*locations data products create*](api::ProjectLocationDataProductCreateCall), [*locations data products data assets create*](api::ProjectLocationDataProductDataAssetCreateCall), [*locations data products data assets delete*](api::ProjectLocationDataProductDataAssetDeleteCall), [*locations data products data assets get*](api::ProjectLocationDataProductDataAssetGetCall), [*locations data products data assets list*](api::ProjectLocationDataProductDataAssetListCall), [*locations data products data assets patch*](api::ProjectLocationDataProductDataAssetPatchCall), [*locations data products delete*](api::ProjectLocationDataProductDeleteCall), [*locations data products get*](api::ProjectLocationDataProductGetCall), [*locations data products get iam policy*](api::ProjectLocationDataProductGetIamPolicyCall), [*locations data products list*](api::ProjectLocationDataProductListCall), [*locations data products patch*](api::ProjectLocationDataProductPatchCall), [*locations data products set iam policy*](api::ProjectLocationDataProductSetIamPolicyCall), [*locations data products test iam permissions*](api::ProjectLocationDataProductTestIamPermissionCall), [*locations data scans create*](api::ProjectLocationDataScanCreateCall), [*locations data scans delete*](api::ProjectLocationDataScanDeleteCall), [*locations data scans generate data quality rules*](api::ProjectLocationDataScanGenerateDataQualityRuleCall), [*locations data scans get*](api::ProjectLocationDataScanGetCall), [*locations data scans get iam policy*](api::ProjectLocationDataScanGetIamPolicyCall), [*locations data scans jobs generate data quality rules*](api::ProjectLocationDataScanJobGenerateDataQualityRuleCall), [*locations data scans jobs get*](api::ProjectLocationDataScanJobGetCall), [*locations data scans jobs list*](api::ProjectLocationDataScanJobListCall), [*locations data scans list*](api::ProjectLocationDataScanListCall), [*locations data scans patch*](api::ProjectLocationDataScanPatchCall), [*locations data scans run*](api::ProjectLocationDataScanRunCall), [*locations data scans set iam policy*](api::ProjectLocationDataScanSetIamPolicyCall), [*locations data scans test iam permissions*](api::ProjectLocationDataScanTestIamPermissionCall), [*locations data taxonomies attributes create*](api::ProjectLocationDataTaxonomyAttributeCreateCall), [*locations data taxonomies attributes delete*](api::ProjectLocationDataTaxonomyAttributeDeleteCall), [*locations data taxonomies attributes get*](api::ProjectLocationDataTaxonomyAttributeGetCall), [*locations data taxonomies attributes get iam policy*](api::ProjectLocationDataTaxonomyAttributeGetIamPolicyCall), [*locations data taxonomies attributes list*](api::ProjectLocationDataTaxonomyAttributeListCall), [*locations data taxonomies attributes patch*](api::ProjectLocationDataTaxonomyAttributePatchCall), [*locations data taxonomies attributes set iam policy*](api::ProjectLocationDataTaxonomyAttributeSetIamPolicyCall), [*locations data taxonomies attributes test iam permissions*](api::ProjectLocationDataTaxonomyAttributeTestIamPermissionCall), [*locations data taxonomies create*](api::ProjectLocationDataTaxonomyCreateCall), [*locations data taxonomies delete*](api::ProjectLocationDataTaxonomyDeleteCall), [*locations data taxonomies get*](api::ProjectLocationDataTaxonomyGetCall), [*locations data taxonomies get iam policy*](api::ProjectLocationDataTaxonomyGetIamPolicyCall), [*locations data taxonomies list*](api::ProjectLocationDataTaxonomyListCall), [*locations data taxonomies patch*](api::ProjectLocationDataTaxonomyPatchCall), [*locations data taxonomies set iam policy*](api::ProjectLocationDataTaxonomySetIamPolicyCall), [*locations data taxonomies test iam permissions*](api::ProjectLocationDataTaxonomyTestIamPermissionCall), [*locations entry groups create*](api::ProjectLocationEntryGroupCreateCall), [*locations entry groups delete*](api::ProjectLocationEntryGroupDeleteCall), [*locations entry groups entries create*](api::ProjectLocationEntryGroupEntryCreateCall), [*locations entry groups entries delete*](api::ProjectLocationEntryGroupEntryDeleteCall), [*locations entry groups entries get*](api::ProjectLocationEntryGroupEntryGetCall), [*locations entry groups entries list*](api::ProjectLocationEntryGroupEntryListCall), [*locations entry groups entries patch*](api::ProjectLocationEntryGroupEntryPatchCall), [*locations entry groups entry links create*](api::ProjectLocationEntryGroupEntryLinkCreateCall), [*locations entry groups entry links delete*](api::ProjectLocationEntryGroupEntryLinkDeleteCall), [*locations entry groups entry links get*](api::ProjectLocationEntryGroupEntryLinkGetCall), [*locations entry groups get*](api::ProjectLocationEntryGroupGetCall), [*locations entry groups get iam policy*](api::ProjectLocationEntryGroupGetIamPolicyCall), [*locations entry groups list*](api::ProjectLocationEntryGroupListCall), [*locations entry groups patch*](api::ProjectLocationEntryGroupPatchCall), [*locations entry groups set iam policy*](api::ProjectLocationEntryGroupSetIamPolicyCall), [*locations entry groups test iam permissions*](api::ProjectLocationEntryGroupTestIamPermissionCall), [*locations entry link types get iam policy*](api::ProjectLocationEntryLinkTypeGetIamPolicyCall), [*locations entry link types set iam policy*](api::ProjectLocationEntryLinkTypeSetIamPolicyCall), [*locations entry link types test iam permissions*](api::ProjectLocationEntryLinkTypeTestIamPermissionCall), [*locations entry types create*](api::ProjectLocationEntryTypeCreateCall), [*locations entry types delete*](api::ProjectLocationEntryTypeDeleteCall), [*locations entry types get*](api::ProjectLocationEntryTypeGetCall), [*locations entry types get iam policy*](api::ProjectLocationEntryTypeGetIamPolicyCall), [*locations entry types list*](api::ProjectLocationEntryTypeListCall), [*locations entry types patch*](api::ProjectLocationEntryTypePatchCall), [*locations entry types set iam policy*](api::ProjectLocationEntryTypeSetIamPolicyCall), [*locations entry types test iam permissions*](api::ProjectLocationEntryTypeTestIamPermissionCall), [*locations get*](api::ProjectLocationGetCall), [*locations glossaries categories create*](api::ProjectLocationGlossaryCategoryCreateCall), [*locations glossaries categories delete*](api::ProjectLocationGlossaryCategoryDeleteCall), [*locations glossaries categories get*](api::ProjectLocationGlossaryCategoryGetCall), [*locations glossaries categories get iam policy*](api::ProjectLocationGlossaryCategoryGetIamPolicyCall), [*locations glossaries categories list*](api::ProjectLocationGlossaryCategoryListCall), [*locations glossaries categories patch*](api::ProjectLocationGlossaryCategoryPatchCall), [*locations glossaries categories set iam policy*](api::ProjectLocationGlossaryCategorySetIamPolicyCall), [*locations glossaries categories test iam permissions*](api::ProjectLocationGlossaryCategoryTestIamPermissionCall), [*locations glossaries create*](api::ProjectLocationGlossaryCreateCall), [*locations glossaries delete*](api::ProjectLocationGlossaryDeleteCall), [*locations glossaries get*](api::ProjectLocationGlossaryGetCall), [*locations glossaries get iam policy*](api::ProjectLocationGlossaryGetIamPolicyCall), [*locations glossaries list*](api::ProjectLocationGlossaryListCall), [*locations glossaries patch*](api::ProjectLocationGlossaryPatchCall), [*locations glossaries set iam policy*](api::ProjectLocationGlossarySetIamPolicyCall), [*locations glossaries terms create*](api::ProjectLocationGlossaryTermCreateCall), [*locations glossaries terms delete*](api::ProjectLocationGlossaryTermDeleteCall), [*locations glossaries terms get*](api::ProjectLocationGlossaryTermGetCall), [*locations glossaries terms get iam policy*](api::ProjectLocationGlossaryTermGetIamPolicyCall), [*locations glossaries terms list*](api::ProjectLocationGlossaryTermListCall), [*locations glossaries terms patch*](api::ProjectLocationGlossaryTermPatchCall), [*locations glossaries terms set iam policy*](api::ProjectLocationGlossaryTermSetIamPolicyCall), [*locations glossaries terms test iam permissions*](api::ProjectLocationGlossaryTermTestIamPermissionCall), [*locations glossaries test iam permissions*](api::ProjectLocationGlossaryTestIamPermissionCall), [*locations governance rules get iam policy*](api::ProjectLocationGovernanceRuleGetIamPolicyCall), [*locations governance rules set iam policy*](api::ProjectLocationGovernanceRuleSetIamPolicyCall), [*locations governance rules test iam permissions*](api::ProjectLocationGovernanceRuleTestIamPermissionCall), [*locations lakes actions list*](api::ProjectLocationLakeActionListCall), [*locations lakes content create*](api::ProjectLocationLakeContentCreateCall), [*locations lakes content delete*](api::ProjectLocationLakeContentDeleteCall), [*locations lakes content get*](api::ProjectLocationLakeContentGetCall), [*locations lakes content get iam policy*](api::ProjectLocationLakeContentGetIamPolicyCall), [*locations lakes content list*](api::ProjectLocationLakeContentListCall), [*locations lakes content patch*](api::ProjectLocationLakeContentPatchCall), [*locations lakes content set iam policy*](api::ProjectLocationLakeContentSetIamPolicyCall), [*locations lakes content test iam permissions*](api::ProjectLocationLakeContentTestIamPermissionCall), [*locations lakes contentitems create*](api::ProjectLocationLakeContentitemCreateCall), [*locations lakes contentitems delete*](api::ProjectLocationLakeContentitemDeleteCall), [*locations lakes contentitems get*](api::ProjectLocationLakeContentitemGetCall), [*locations lakes contentitems get iam policy*](api::ProjectLocationLakeContentitemGetIamPolicyCall), [*locations lakes contentitems list*](api::ProjectLocationLakeContentitemListCall), [*locations lakes contentitems patch*](api::ProjectLocationLakeContentitemPatchCall), [*locations lakes contentitems set iam policy*](api::ProjectLocationLakeContentitemSetIamPolicyCall), [*locations lakes contentitems test iam permissions*](api::ProjectLocationLakeContentitemTestIamPermissionCall), [*locations lakes create*](api::ProjectLocationLakeCreateCall), [*locations lakes delete*](api::ProjectLocationLakeDeleteCall), [*locations lakes environments create*](api::ProjectLocationLakeEnvironmentCreateCall), [*locations lakes environments delete*](api::ProjectLocationLakeEnvironmentDeleteCall), [*locations lakes environments get*](api::ProjectLocationLakeEnvironmentGetCall), [*locations lakes environments get iam policy*](api::ProjectLocationLakeEnvironmentGetIamPolicyCall), [*locations lakes environments list*](api::ProjectLocationLakeEnvironmentListCall), [*locations lakes environments patch*](api::ProjectLocationLakeEnvironmentPatchCall), [*locations lakes environments sessions list*](api::ProjectLocationLakeEnvironmentSessionListCall), [*locations lakes environments set iam policy*](api::ProjectLocationLakeEnvironmentSetIamPolicyCall), [*locations lakes environments test iam permissions*](api::ProjectLocationLakeEnvironmentTestIamPermissionCall), [*locations lakes get*](api::ProjectLocationLakeGetCall), [*locations lakes get iam policy*](api::ProjectLocationLakeGetIamPolicyCall), [*locations lakes list*](api::ProjectLocationLakeListCall), [*locations lakes patch*](api::ProjectLocationLakePatchCall), [*locations lakes set iam policy*](api::ProjectLocationLakeSetIamPolicyCall), [*locations lakes tasks create*](api::ProjectLocationLakeTaskCreateCall), [*locations lakes tasks delete*](api::ProjectLocationLakeTaskDeleteCall), [*locations lakes tasks get*](api::ProjectLocationLakeTaskGetCall), [*locations lakes tasks get iam policy*](api::ProjectLocationLakeTaskGetIamPolicyCall), [*locations lakes tasks jobs cancel*](api::ProjectLocationLakeTaskJobCancelCall), [*locations lakes tasks jobs get*](api::ProjectLocationLakeTaskJobGetCall), [*locations lakes tasks jobs list*](api::ProjectLocationLakeTaskJobListCall), [*locations lakes tasks list*](api::ProjectLocationLakeTaskListCall), [*locations lakes tasks patch*](api::ProjectLocationLakeTaskPatchCall), [*locations lakes tasks run*](api::ProjectLocationLakeTaskRunCall), [*locations lakes tasks set iam policy*](api::ProjectLocationLakeTaskSetIamPolicyCall), [*locations lakes tasks test iam permissions*](api::ProjectLocationLakeTaskTestIamPermissionCall), [*locations lakes test iam permissions*](api::ProjectLocationLakeTestIamPermissionCall), [*locations lakes zones actions list*](api::ProjectLocationLakeZoneActionListCall), [*locations lakes zones assets actions list*](api::ProjectLocationLakeZoneAssetActionListCall), [*locations lakes zones assets create*](api::ProjectLocationLakeZoneAssetCreateCall), [*locations lakes zones assets delete*](api::ProjectLocationLakeZoneAssetDeleteCall), [*locations lakes zones assets get*](api::ProjectLocationLakeZoneAssetGetCall), [*locations lakes zones assets get iam policy*](api::ProjectLocationLakeZoneAssetGetIamPolicyCall), [*locations lakes zones assets list*](api::ProjectLocationLakeZoneAssetListCall), [*locations lakes zones assets patch*](api::ProjectLocationLakeZoneAssetPatchCall), [*locations lakes zones assets set iam policy*](api::ProjectLocationLakeZoneAssetSetIamPolicyCall), [*locations lakes zones assets test iam permissions*](api::ProjectLocationLakeZoneAssetTestIamPermissionCall), [*locations lakes zones create*](api::ProjectLocationLakeZoneCreateCall), [*locations lakes zones delete*](api::ProjectLocationLakeZoneDeleteCall), [*locations lakes zones entities create*](api::ProjectLocationLakeZoneEntityCreateCall), [*locations lakes zones entities delete*](api::ProjectLocationLakeZoneEntityDeleteCall), [*locations lakes zones entities get*](api::ProjectLocationLakeZoneEntityGetCall), [*locations lakes zones entities list*](api::ProjectLocationLakeZoneEntityListCall), [*locations lakes zones entities partitions create*](api::ProjectLocationLakeZoneEntityPartitionCreateCall), [*locations lakes zones entities partitions delete*](api::ProjectLocationLakeZoneEntityPartitionDeleteCall), [*locations lakes zones entities partitions get*](api::ProjectLocationLakeZoneEntityPartitionGetCall), [*locations lakes zones entities partitions list*](api::ProjectLocationLakeZoneEntityPartitionListCall), [*locations lakes zones entities update*](api::ProjectLocationLakeZoneEntityUpdateCall), [*locations lakes zones get*](api::ProjectLocationLakeZoneGetCall), [*locations lakes zones get iam policy*](api::ProjectLocationLakeZoneGetIamPolicyCall), [*locations lakes zones list*](api::ProjectLocationLakeZoneListCall), [*locations lakes zones patch*](api::ProjectLocationLakeZonePatchCall), [*locations lakes zones set iam policy*](api::ProjectLocationLakeZoneSetIamPolicyCall), [*locations lakes zones test iam permissions*](api::ProjectLocationLakeZoneTestIamPermissionCall), [*locations list*](api::ProjectLocationListCall), [*locations lookup entry*](api::ProjectLocationLookupEntryCall), [*locations metadata jobs cancel*](api::ProjectLocationMetadataJobCancelCall), [*locations metadata jobs create*](api::ProjectLocationMetadataJobCreateCall), [*locations metadata jobs get*](api::ProjectLocationMetadataJobGetCall), [*locations metadata jobs list*](api::ProjectLocationMetadataJobListCall), [*locations operations cancel*](api::ProjectLocationOperationCancelCall), [*locations operations delete*](api::ProjectLocationOperationDeleteCall), [*locations operations get*](api::ProjectLocationOperationGetCall), [*locations operations list*](api::ProjectLocationOperationListCall) and [*locations search entries*](api::ProjectLocationSearchEntryCall)
18//!
19//!
20//!
21//!
22//! Not what you are looking for ? Find all other Google APIs in their Rust [documentation index](http://byron.github.io/google-apis-rs).
23//!
24//! # Structure of this Library
25//!
26//! The API is structured into the following primary items:
27//!
28//! * **[Hub](CloudDataplex)**
29//!     * a central object to maintain state and allow accessing all *Activities*
30//!     * creates [*Method Builders*](common::MethodsBuilder) which in turn
31//!       allow access to individual [*Call Builders*](common::CallBuilder)
32//! * **[Resources](common::Resource)**
33//!     * primary types that you can apply *Activities* to
34//!     * a collection of properties and *Parts*
35//!     * **[Parts](common::Part)**
36//!         * a collection of properties
37//!         * never directly used in *Activities*
38//! * **[Activities](common::CallBuilder)**
39//!     * operations to apply to *Resources*
40//!
41//! All *structures* are marked with applicable traits to further categorize them and ease browsing.
42//!
43//! Generally speaking, you can invoke *Activities* like this:
44//!
45//! ```Rust,ignore
46//! let r = hub.resource().activity(...).doit().await
47//! ```
48//!
49//! Or specifically ...
50//!
51//! ```ignore
52//! let r = hub.organizations().locations_encryption_configs_create(...).doit().await
53//! let r = hub.organizations().locations_encryption_configs_delete(...).doit().await
54//! let r = hub.organizations().locations_encryption_configs_patch(...).doit().await
55//! let r = hub.organizations().locations_operations_get(...).doit().await
56//! let r = hub.projects().locations_aspect_types_create(...).doit().await
57//! let r = hub.projects().locations_aspect_types_delete(...).doit().await
58//! let r = hub.projects().locations_aspect_types_patch(...).doit().await
59//! let r = hub.projects().locations_data_attribute_bindings_create(...).doit().await
60//! let r = hub.projects().locations_data_attribute_bindings_delete(...).doit().await
61//! let r = hub.projects().locations_data_attribute_bindings_patch(...).doit().await
62//! let r = hub.projects().locations_data_products_data_assets_create(...).doit().await
63//! let r = hub.projects().locations_data_products_data_assets_delete(...).doit().await
64//! let r = hub.projects().locations_data_products_data_assets_patch(...).doit().await
65//! let r = hub.projects().locations_data_products_create(...).doit().await
66//! let r = hub.projects().locations_data_products_delete(...).doit().await
67//! let r = hub.projects().locations_data_products_patch(...).doit().await
68//! let r = hub.projects().locations_data_scans_create(...).doit().await
69//! let r = hub.projects().locations_data_scans_delete(...).doit().await
70//! let r = hub.projects().locations_data_scans_patch(...).doit().await
71//! let r = hub.projects().locations_data_taxonomies_attributes_create(...).doit().await
72//! let r = hub.projects().locations_data_taxonomies_attributes_delete(...).doit().await
73//! let r = hub.projects().locations_data_taxonomies_attributes_patch(...).doit().await
74//! let r = hub.projects().locations_data_taxonomies_create(...).doit().await
75//! let r = hub.projects().locations_data_taxonomies_delete(...).doit().await
76//! let r = hub.projects().locations_data_taxonomies_patch(...).doit().await
77//! let r = hub.projects().locations_entry_groups_create(...).doit().await
78//! let r = hub.projects().locations_entry_groups_delete(...).doit().await
79//! let r = hub.projects().locations_entry_groups_patch(...).doit().await
80//! let r = hub.projects().locations_entry_types_create(...).doit().await
81//! let r = hub.projects().locations_entry_types_delete(...).doit().await
82//! let r = hub.projects().locations_entry_types_patch(...).doit().await
83//! let r = hub.projects().locations_glossaries_create(...).doit().await
84//! let r = hub.projects().locations_glossaries_delete(...).doit().await
85//! let r = hub.projects().locations_glossaries_patch(...).doit().await
86//! let r = hub.projects().locations_lakes_environments_create(...).doit().await
87//! let r = hub.projects().locations_lakes_environments_delete(...).doit().await
88//! let r = hub.projects().locations_lakes_environments_patch(...).doit().await
89//! let r = hub.projects().locations_lakes_tasks_create(...).doit().await
90//! let r = hub.projects().locations_lakes_tasks_delete(...).doit().await
91//! let r = hub.projects().locations_lakes_tasks_patch(...).doit().await
92//! let r = hub.projects().locations_lakes_zones_assets_create(...).doit().await
93//! let r = hub.projects().locations_lakes_zones_assets_delete(...).doit().await
94//! let r = hub.projects().locations_lakes_zones_assets_patch(...).doit().await
95//! let r = hub.projects().locations_lakes_zones_create(...).doit().await
96//! let r = hub.projects().locations_lakes_zones_delete(...).doit().await
97//! let r = hub.projects().locations_lakes_zones_patch(...).doit().await
98//! let r = hub.projects().locations_lakes_create(...).doit().await
99//! let r = hub.projects().locations_lakes_delete(...).doit().await
100//! let r = hub.projects().locations_lakes_patch(...).doit().await
101//! let r = hub.projects().locations_metadata_jobs_create(...).doit().await
102//! let r = hub.projects().locations_operations_get(...).doit().await
103//! ```
104//!
105//! The `resource()` and `activity(...)` calls create [builders][builder-pattern]. The second one dealing with `Activities`
106//! supports various methods to configure the impending operation (not shown here). It is made such that all required arguments have to be
107//! specified right away (i.e. `(...)`), whereas all optional ones can be [build up][builder-pattern] as desired.
108//! The `doit()` method performs the actual communication with the server and returns the respective result.
109//!
110//! # Usage
111//!
112//! ## Setting up your Project
113//!
114//! To use this library, you would put the following lines into your `Cargo.toml` file:
115//!
116//! ```toml
117//! [dependencies]
118//! google-dataplex1 = "*"
119//! serde = "1"
120//! serde_json = "1"
121//! ```
122//!
123//! ## A complete example
124//!
125//! ```test_harness,no_run
126//! extern crate hyper;
127//! extern crate hyper_rustls;
128//! extern crate google_dataplex1 as dataplex1;
129//! use dataplex1::api::GoogleCloudDataplexV1AspectType;
130//! use dataplex1::{Result, Error};
131//! # async fn dox() {
132//! use dataplex1::{CloudDataplex, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
133//!
134//! // Get an ApplicationSecret instance by some means. It contains the `client_id` and
135//! // `client_secret`, among other things.
136//! let secret: yup_oauth2::ApplicationSecret = Default::default();
137//! // Instantiate the authenticator. It will choose a suitable authentication flow for you,
138//! // unless you replace  `None` with the desired Flow.
139//! // Provide your own `AuthenticatorDelegate` to adjust the way it operates and get feedback about
140//! // what's going on. You probably want to bring in your own `TokenStorage` to persist tokens and
141//! // retrieve them from storage.
142//! let connector = hyper_rustls::HttpsConnectorBuilder::new()
143//!     .with_native_roots()
144//!     .unwrap()
145//!     .https_only()
146//!     .enable_http2()
147//!     .build();
148//!
149//! let executor = hyper_util::rt::TokioExecutor::new();
150//! let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
151//!     secret,
152//!     yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
153//!     yup_oauth2::client::CustomHyperClientBuilder::from(
154//!         hyper_util::client::legacy::Client::builder(executor).build(connector),
155//!     ),
156//! ).build().await.unwrap();
157//!
158//! let client = hyper_util::client::legacy::Client::builder(
159//!     hyper_util::rt::TokioExecutor::new()
160//! )
161//! .build(
162//!     hyper_rustls::HttpsConnectorBuilder::new()
163//!         .with_native_roots()
164//!         .unwrap()
165//!         .https_or_http()
166//!         .enable_http2()
167//!         .build()
168//! );
169//! let mut hub = CloudDataplex::new(client, auth);
170//! // As the method needs a request, you would usually fill it with the desired information
171//! // into the respective structure. Some of the parts shown here might not be applicable !
172//! // Values shown here are possibly random and not representative !
173//! let mut req = GoogleCloudDataplexV1AspectType::default();
174//!
175//! // You can configure optional parameters by calling the respective setters at will, and
176//! // execute the final call using `doit()`.
177//! // Values shown here are possibly random and not representative !
178//! let result = hub.projects().locations_aspect_types_create(req, "parent")
179//!              .validate_only(false)
180//!              .aspect_type_id("amet.")
181//!              .doit().await;
182//!
183//! match result {
184//!     Err(e) => match e {
185//!         // The Error enum provides details about what exactly happened.
186//!         // You can also just use its `Debug`, `Display` or `Error` traits
187//!          Error::HttpError(_)
188//!         |Error::Io(_)
189//!         |Error::MissingAPIKey
190//!         |Error::MissingToken(_)
191//!         |Error::Cancelled
192//!         |Error::UploadSizeLimitExceeded(_, _)
193//!         |Error::Failure(_)
194//!         |Error::BadRequest(_)
195//!         |Error::FieldClash(_)
196//!         |Error::JsonDecodeError(_, _) => println!("{}", e),
197//!     },
198//!     Ok(res) => println!("Success: {:?}", res),
199//! }
200//! # }
201//! ```
202//! ## Handling Errors
203//!
204//! All errors produced by the system are provided either as [Result](common::Result) enumeration as return value of
205//! the doit() methods, or handed as possibly intermediate results to either the
206//! [Hub Delegate](common::Delegate), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
207//!
208//! When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This
209//! makes the system potentially resilient to all kinds of errors.
210//!
211//! ## Uploads and Downloads
212//! If a method supports downloads, the response body, which is part of the [Result](common::Result), should be
213//! read by you to obtain the media.
214//! If such a method also supports a [Response Result](common::ResponseResult), it will return that by default.
215//! You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making
216//! this call: `.param("alt", "media")`.
217//!
218//! Methods supporting uploads can do so using up to 2 different protocols:
219//! *simple* and *resumable*. The distinctiveness of each is represented by customized
220//! `doit(...)` methods, which are then named `upload(...)` and `upload_resumable(...)` respectively.
221//!
222//! ## Customization and Callbacks
223//!
224//! You may alter the way an `doit()` method is called by providing a [delegate](common::Delegate) to the
225//! [Method Builder](common::CallBuilder) before making the final `doit()` call.
226//! Respective methods will be called to provide progress information, as well as determine whether the system should
227//! retry on failure.
228//!
229//! The [delegate trait](common::Delegate) is default-implemented, allowing you to customize it with minimal effort.
230//!
231//! ## Optional Parts in Server-Requests
232//!
233//! All structures provided by this library are made to be [encodable](common::RequestValue) and
234//! [decodable](common::ResponseResult) via *json*. Optionals are used to indicate that partial requests are responses
235//! are valid.
236//! Most optionals are are considered [Parts](common::Part) which are identifiable by name, which will be sent to
237//! the server to indicate either the set parts of the request or the desired parts in the response.
238//!
239//! ## Builder Arguments
240//!
241//! Using [method builders](common::CallBuilder), you are able to prepare an action call by repeatedly calling it's methods.
242//! These will always take a single argument, for which the following statements are true.
243//!
244//! * [PODs][wiki-pod] are handed by copy
245//! * strings are passed as `&str`
246//! * [request values](common::RequestValue) are moved
247//!
248//! Arguments will always be copied or cloned into the builder, to make them independent of their original life times.
249//!
250//! [wiki-pod]: http://en.wikipedia.org/wiki/Plain_old_data_structure
251//! [builder-pattern]: http://en.wikipedia.org/wiki/Builder_pattern
252//! [google-go-api]: https://github.com/google/google-api-go-client
253//!
254//! ## Cargo Features
255//!
256//! * `utoipa` - Add support for [utoipa](https://crates.io/crates/utoipa) and derive `utoipa::ToSchema` on all
257//! the types. You'll have to import and register the required types in `#[openapi(schemas(...))]`, otherwise the
258//! generated `openapi` spec would be invalid.
259//!
260//!
261//!
262
263// Unused attributes happen thanks to defined, but unused structures We don't
264// warn about this, as depending on the API, some data structures or facilities
265// are never used. Instead of pre-determining this, we just disable the lint.
266// It's manually tuned to not have any unused imports in fully featured APIs.
267// Same with unused_mut.
268#![allow(unused_imports, unused_mut, dead_code)]
269
270// DO NOT EDIT !
271// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
272// DO NOT EDIT !
273
274pub extern crate hyper;
275pub extern crate hyper_rustls;
276pub extern crate hyper_util;
277#[cfg(feature = "yup-oauth2")]
278pub extern crate yup_oauth2;
279
280pub extern crate google_apis_common as common;
281pub use common::{Delegate, Error, FieldMask, Result};
282
283pub mod api;
284pub use api::CloudDataplex;