pub struct CatalogMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
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 google_cloudprivatecatalogproducer1_beta1 as cloudprivatecatalogproducer1_beta1;
use std::default::Default;
use cloudprivatecatalogproducer1_beta1::{CloudPrivateCatalogProducer, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = CloudPrivateCatalogProducer::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), 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();
Implementations§
source§impl<'a, S> CatalogMethods<'a, S>
impl<'a, S> CatalogMethods<'a, S>
sourcepub fn associations_create(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest,
parent: &str
) -> CatalogAssociationCreateCall<'a, S>
pub fn associations_create( &self, request: GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest, parent: &str ) -> CatalogAssociationCreateCall<'a, S>
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.
sourcepub fn associations_delete(
&self,
name: &str
) -> CatalogAssociationDeleteCall<'a, S>
pub fn associations_delete( &self, name: &str ) -> CatalogAssociationDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes the given Association.
§Arguments
name
- The resource name of theAssociation
to delete.
sourcepub fn associations_get(&self, name: &str) -> CatalogAssociationGetCall<'a, S>
pub fn associations_get(&self, name: &str) -> CatalogAssociationGetCall<'a, S>
Create a builder to help you perform the following task:
Returns the requested Association resource.
§Arguments
name
- The resource name of theAssociation
to retrieve.
sourcepub fn associations_list(
&self,
parent: &str
) -> CatalogAssociationListCall<'a, S>
pub fn associations_list( &self, parent: &str ) -> CatalogAssociationListCall<'a, S>
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>
.
sourcepub fn products_icons_upload(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest,
product: &str
) -> CatalogProductIconUploadCall<'a, S>
pub fn products_icons_upload( &self, request: GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest, product: &str ) -> CatalogProductIconUploadCall<'a, S>
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.
sourcepub fn products_versions_create(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Version,
parent: &str
) -> CatalogProductVersionCreateCall<'a, S>
pub fn products_versions_create( &self, request: GoogleCloudPrivatecatalogproducerV1beta1Version, parent: &str ) -> CatalogProductVersionCreateCall<'a, S>
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.
sourcepub fn products_versions_delete(
&self,
name: &str
) -> CatalogProductVersionDeleteCall<'a, S>
pub fn products_versions_delete( &self, name: &str ) -> CatalogProductVersionDeleteCall<'a, S>
Create a builder to help you perform the following task:
Hard deletes a Version.
§Arguments
name
- The resource name of the version.
sourcepub fn products_versions_get(
&self,
name: &str
) -> CatalogProductVersionGetCall<'a, S>
pub fn products_versions_get( &self, name: &str ) -> CatalogProductVersionGetCall<'a, S>
Create a builder to help you perform the following task:
Returns the requested Version resource.
§Arguments
name
- The resource name of the version.
sourcepub fn products_versions_list(
&self,
parent: &str
) -> CatalogProductVersionListCall<'a, S>
pub fn products_versions_list( &self, parent: &str ) -> CatalogProductVersionListCall<'a, S>
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.
sourcepub fn products_versions_patch(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Version,
name: &str
) -> CatalogProductVersionPatchCall<'a, S>
pub fn products_versions_patch( &self, request: GoogleCloudPrivatecatalogproducerV1beta1Version, name: &str ) -> CatalogProductVersionPatchCall<'a, S>
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.
sourcepub fn products_copy(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest,
name: &str
) -> CatalogProductCopyCall<'a, S>
pub fn products_copy( &self, request: GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest, name: &str ) -> CatalogProductCopyCall<'a, S>
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.
sourcepub fn products_create(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Product,
parent: &str
) -> CatalogProductCreateCall<'a, S>
pub fn products_create( &self, request: GoogleCloudPrivatecatalogproducerV1beta1Product, parent: &str ) -> CatalogProductCreateCall<'a, S>
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.
sourcepub fn products_delete(&self, name: &str) -> CatalogProductDeleteCall<'a, S>
pub fn products_delete(&self, name: &str) -> CatalogProductDeleteCall<'a, S>
Create a builder to help you perform the following task:
Hard deletes a Product.
§Arguments
name
- The resource name of the product.
sourcepub fn products_get(&self, name: &str) -> CatalogProductGetCall<'a, S>
pub fn products_get(&self, name: &str) -> CatalogProductGetCall<'a, S>
Create a builder to help you perform the following task:
Returns the requested Product resource.
§Arguments
name
- The resource name of the product.
sourcepub fn products_list(&self, parent: &str) -> CatalogProductListCall<'a, S>
pub fn products_list(&self, parent: &str) -> CatalogProductListCall<'a, S>
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.
sourcepub fn products_patch(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Product,
name: &str
) -> CatalogProductPatchCall<'a, S>
pub fn products_patch( &self, request: GoogleCloudPrivatecatalogproducerV1beta1Product, name: &str ) -> CatalogProductPatchCall<'a, S>
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.
sourcepub fn create(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Catalog
) -> CatalogCreateCall<'a, S>
pub fn create( &self, request: GoogleCloudPrivatecatalogproducerV1beta1Catalog ) -> CatalogCreateCall<'a, S>
Create a builder to help you perform the following task:
Creates a new Catalog resource.
§Arguments
request
- No description provided.
sourcepub fn delete(&self, name: &str) -> CatalogDeleteCall<'a, S>
pub fn delete(&self, name: &str) -> CatalogDeleteCall<'a, S>
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.
sourcepub fn get(&self, name: &str) -> CatalogGetCall<'a, S>
pub fn get(&self, name: &str) -> CatalogGetCall<'a, S>
Create a builder to help you perform the following task:
Returns the requested Catalog resource.
§Arguments
name
- The resource name of the catalog.
sourcepub fn get_iam_policy(&self, resource: &str) -> CatalogGetIamPolicyCall<'a, S>
pub fn get_iam_policy(&self, resource: &str) -> CatalogGetIamPolicyCall<'a, S>
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.
sourcepub fn list(&self) -> CatalogListCall<'a, S>
pub fn list(&self) -> CatalogListCall<'a, S>
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.
sourcepub fn patch(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1Catalog,
name: &str
) -> CatalogPatchCall<'a, S>
pub fn patch( &self, request: GoogleCloudPrivatecatalogproducerV1beta1Catalog, name: &str ) -> CatalogPatchCall<'a, S>
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.
sourcepub fn set_iam_policy(
&self,
request: GoogleIamV1SetIamPolicyRequest,
resource: &str
) -> CatalogSetIamPolicyCall<'a, S>
pub fn set_iam_policy( &self, request: GoogleIamV1SetIamPolicyRequest, resource: &str ) -> CatalogSetIamPolicyCall<'a, S>
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.
sourcepub fn test_iam_permissions(
&self,
request: GoogleIamV1TestIamPermissionsRequest,
resource: &str
) -> CatalogTestIamPermissionCall<'a, S>
pub fn test_iam_permissions( &self, request: GoogleIamV1TestIamPermissionsRequest, resource: &str ) -> CatalogTestIamPermissionCall<'a, S>
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.
sourcepub fn undelete(
&self,
request: GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest,
name: &str
) -> CatalogUndeleteCall<'a, S>
pub fn undelete( &self, request: GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest, name: &str ) -> CatalogUndeleteCall<'a, S>
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.