[−][src]Struct google_cloudprivatecatalogproducer1_beta1::CatalogMethods
A builder providing access to all methods supported on catalog resources.
It is not used directly, but through the CloudPrivateCatalogProducer
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_cloudprivatecatalogproducer1_beta1 as cloudprivatecatalogproducer1_beta1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use cloudprivatecatalogproducer1_beta1::CloudPrivateCatalogProducer; 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 = CloudPrivateCatalogProducer::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 `associations_create(...)`, `associations_delete(...)`, `associations_get(...)`, `associations_list(...)`, `create(...)`, `delete(...)`, `get(...)`, `get_iam_policy(...)`, `list(...)`, `patch(...)`, `products_copy(...)`, `products_create(...)`, `products_delete(...)`, `products_get(...)`, `products_icons_upload(...)`, `products_list(...)`, `products_patch(...)`, `products_versions_create(...)`, `products_versions_delete(...)`, `products_versions_get(...)`, `products_versions_list(...)`, `products_versions_patch(...)`, `set_iam_policy(...)`, `test_iam_permissions(...)` and `undelete(...)` // to build up your call. let rb = hub.catalogs();
Methods
impl<'a, C, A> CatalogMethods<'a, C, A>
[src]
pub fn products_create(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Product,
parent: &str
) -> CatalogProductCreateCall<'a, C, A>
[src]
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Product,
parent: &str
) -> CatalogProductCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a Product instance under a given Catalog.
Arguments
request
- No description provided.parent
- The catalog name of the new product's parent.
pub fn products_versions_get(
&self,
name: &str
) -> CatalogProductVersionGetCall<'a, C, A>
[src]
&self,
name: &str
) -> CatalogProductVersionGetCall<'a, C, A>
Create a builder to help you perform the following task:
Returns the requested Version resource.
Arguments
name
- The resource name of the version.
pub fn associations_get(
&self,
name: &str
) -> CatalogAssociationGetCall<'a, C, A>
[src]
&self,
name: &str
) -> CatalogAssociationGetCall<'a, C, A>
Create a builder to help you perform the following task:
Returns the requested Association resource.
Arguments
name
- The resource name of theAssociation
to retrieve.
pub fn associations_delete(
&self,
name: &str
) -> CatalogAssociationDeleteCall<'a, C, A>
[src]
&self,
name: &str
) -> CatalogAssociationDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes the given Association.
Arguments
name
- The resource name of theAssociation
to delete.
pub fn products_versions_patch(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Version,
name: &str
) -> CatalogProductVersionPatchCall<'a, C, A>
[src]
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Version,
name: &str
) -> CatalogProductVersionPatchCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a specific Version resource.
Arguments
request
- No description provided.name
- Required. The resource name of the version, in the format `catalogs/{catalog_id}/products/{product_id}/versions/a-z*[a-z0-9]'. A unique identifier for the version under a product, which can't be changed after the version is created. The final segment of the name must between 1 and 63 characters in length.
pub fn products_versions_create(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Version,
parent: &str
) -> CatalogProductVersionCreateCall<'a, C, A>
[src]
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Version,
parent: &str
) -> CatalogProductVersionCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a Version instance under a given Product.
Arguments
request
- No description provided.parent
- The product name of the new version's parent.
pub fn patch(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Catalog,
name: &str
) -> CatalogPatchCall<'a, C, A>
[src]
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Catalog,
name: &str
) -> CatalogPatchCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a specific Catalog resource.
Arguments
request
- No description provided.name
- Output only. The resource name of the catalog, in the format `catalogs/{catalog_id}'. A unique identifier for the catalog, which is generated by catalog service.
pub fn associations_list(
&self,
parent: &str
) -> CatalogAssociationListCall<'a, C, A>
[src]
&self,
parent: &str
) -> CatalogAssociationListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists all Association resources under a catalog.
Arguments
parent
- The resource name of theCatalog
whoseAssociations
are being retrieved. In the formatcatalogs/<catalog>
.
pub fn products_get(&self, name: &str) -> CatalogProductGetCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Returns the requested Product resource.
Arguments
name
- The resource name of the product.
pub fn test_iam_permissions(
&self,
request: GoogleIamV1TestIamPermissionsRequest,
resource: &str
) -> CatalogTestIamPermissionCall<'a, C, A>
[src]
&self,
request: GoogleIamV1TestIamPermissionsRequest,
resource: &str
) -> CatalogTestIamPermissionCall<'a, C, A>
Create a builder to help you perform the following task:
Tests the IAM permissions for the specified Catalog.
Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
pub fn products_delete(&self, name: &str) -> CatalogProductDeleteCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Hard deletes a Product.
Arguments
name
- The resource name of the product.
pub fn products_list(&self, parent: &str) -> CatalogProductListCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Lists Product resources that the producer has access to, within the scope of the parent catalog.
Arguments
parent
- The resource name of the parent resource.
pub fn products_versions_list(
&self,
parent: &str
) -> CatalogProductVersionListCall<'a, C, A>
[src]
&self,
parent: &str
) -> CatalogProductVersionListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists Version resources that the producer has access to, within the scope of the parent Product.
Arguments
parent
- The resource name of the parent resource.
pub fn products_versions_delete(
&self,
name: &str
) -> CatalogProductVersionDeleteCall<'a, C, A>
[src]
&self,
name: &str
) -> CatalogProductVersionDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Hard deletes a Version.
Arguments
name
- The resource name of the version.
pub fn products_icons_upload(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest,
product: &str
) -> CatalogProductIconUploadCall<'a, C, A>
[src]
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest,
product: &str
) -> CatalogProductIconUploadCall<'a, C, A>
Create a builder to help you perform the following task:
Creates an Icon instance under a given Product. If Product only has a default icon, a new Icon instance is created and associated with the given Product. If Product already has a non-default icon, the action creates a new Icon instance, associates the newly created Icon with the given Product and deletes the old icon.
Arguments
request
- No description provided.product
- The resource name of the product.
pub fn create(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Catalog
) -> CatalogCreateCall<'a, C, A>
[src]
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Catalog
) -> CatalogCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a new Catalog resource.
Arguments
request
- No description provided.
pub fn get_iam_policy(
&self,
resource: &str
) -> CatalogGetIamPolicyCall<'a, C, A>
[src]
&self,
resource: &str
) -> CatalogGetIamPolicyCall<'a, C, A>
Create a builder to help you perform the following task:
Gets IAM policy for the specified Catalog.
Arguments
resource
- REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
pub fn products_copy(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest,
name: &str
) -> CatalogProductCopyCall<'a, C, A>
[src]
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest,
name: &str
) -> CatalogProductCopyCall<'a, C, A>
Create a builder to help you perform the following task:
Copies a Product under another Catalog.
Arguments
request
- No description provided.name
- The resource name of the current product that is copied from.
pub fn undelete(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest,
name: &str
) -> CatalogUndeleteCall<'a, C, A>
[src]
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest,
name: &str
) -> CatalogUndeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Undeletes a deleted Catalog and all resources under it.
Arguments
request
- No description provided.name
- The resource name of the catalog.
pub fn associations_create(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest,
parent: &str
) -> CatalogAssociationCreateCall<'a, C, A>
[src]
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest,
parent: &str
) -> CatalogAssociationCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates an Association instance under a given Catalog.
Arguments
request
- No description provided.parent
- TheCatalog
resource's name.
pub fn products_patch(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Product,
name: &str
) -> CatalogProductPatchCall<'a, C, A>
[src]
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Product,
name: &str
) -> CatalogProductPatchCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a specific Product resource.
Arguments
request
- No description provided.name
- Required. The resource name of the product in the format `catalogs/{catalog_id}/products/a-z*[a-z0-9]'. A unique identifier for the product under a catalog, which cannot be changed after the product is created. The final segment of the name must between 1 and 256 characters in length.
pub fn list(&self) -> CatalogListCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Lists Catalog resources that the producer has access to, within the scope of the parent resource.
pub fn delete(&self, name: &str) -> CatalogDeleteCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Soft deletes an existing Catalog and all resources under it. The catalog can only be deleted if there is no associations under it or DeleteCatalogRequest.force is true. The delete operation can be recovered by the PrivateCatalogProducer.UndeleteCatalog method.
Arguments
name
- The resource name of the catalog.
pub fn set_iam_policy(
&self,
request: GoogleIamV1SetIamPolicyRequest,
resource: &str
) -> CatalogSetIamPolicyCall<'a, C, A>
[src]
&self,
request: GoogleIamV1SetIamPolicyRequest,
resource: &str
) -> CatalogSetIamPolicyCall<'a, C, A>
Create a builder to help you perform the following task:
Sets the IAM policy for the specified Catalog.
Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
pub fn get(&self, name: &str) -> CatalogGetCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Returns the requested Catalog resource.
Arguments
name
- The resource name of the catalog.
Trait Implementations
impl<'a, C, A> MethodsBuilder for CatalogMethods<'a, C, A>
[src]
Auto Trait Implementations
impl<'a, C, A> !Send for CatalogMethods<'a, C, A>
impl<'a, C, A> Unpin for CatalogMethods<'a, C, A>
impl<'a, C, A> !Sync for CatalogMethods<'a, C, A>
impl<'a, C, A> !UnwindSafe for CatalogMethods<'a, C, A>
impl<'a, C, A> !RefUnwindSafe for CatalogMethods<'a, C, A>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,