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>

source

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 - The Catalog resource’s name.
source

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 the Association to delete.
source

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 the Association to retrieve.
source

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 the Catalog whose Associations are being retrieved. In the format catalogs/<catalog>.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.

source

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.
source

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.
source

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.
source

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.

Trait Implementations§

source§

impl<'a, S> MethodsBuilder for CatalogMethods<'a, S>

Auto Trait Implementations§

§

impl<'a, S> !RefUnwindSafe for CatalogMethods<'a, S>

§

impl<'a, S> Send for CatalogMethods<'a, S>
where S: Sync,

§

impl<'a, S> Sync for CatalogMethods<'a, S>
where S: Sync,

§

impl<'a, S> Unpin for CatalogMethods<'a, S>

§

impl<'a, S> !UnwindSafe for CatalogMethods<'a, S>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more