Class CatalogsResource
The "catalogs" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudPrivateCatalogProducer.v1beta1
Assembly: Google.Apis.CloudPrivateCatalogProducer.v1beta1.dll
Syntax
public class CatalogsResource
Constructors
CatalogsResource(IClientService)
Constructs a new resource.
Declaration
public CatalogsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Associations
Gets the Associations resource.
Declaration
public virtual CatalogsResource.AssociationsResource Associations { get; }
Property Value
Type | Description |
---|---|
CatalogsResource.AssociationsResource |
Products
Gets the Products resource.
Declaration
public virtual CatalogsResource.ProductsResource Products { get; }
Property Value
Type | Description |
---|---|
CatalogsResource.ProductsResource |
Methods
Create(GoogleCloudPrivatecatalogproducerV1beta1Catalog)
Creates a new Catalog resource.
Declaration
public virtual CatalogsResource.CreateRequest Create(GoogleCloudPrivatecatalogproducerV1beta1Catalog body)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudPrivatecatalogproducerV1beta1Catalog | body | The body of the request. |
Returns
Type | Description |
---|---|
CatalogsResource.CreateRequest |
Delete(String)
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.
Declaration
public virtual CatalogsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The resource name of the catalog. |
Returns
Type | Description |
---|---|
CatalogsResource.DeleteRequest |
Get(String)
Returns the requested Catalog resource.
Declaration
public virtual CatalogsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The resource name of the catalog. |
Returns
Type | Description |
---|---|
CatalogsResource.GetRequest |
GetIamPolicy(String)
Gets IAM policy for the specified Catalog.
Declaration
public virtual CatalogsResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
Type | Name | Description |
---|---|---|
System.String | resource | REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
Returns
Type | Description |
---|---|
CatalogsResource.GetIamPolicyRequest |
List()
Lists Catalog resources that the producer has access to, within the scope of the parent resource.
Declaration
public virtual CatalogsResource.ListRequest List()
Returns
Type | Description |
---|---|
CatalogsResource.ListRequest |
Patch(GoogleCloudPrivatecatalogproducerV1beta1Catalog, String)
Updates a specific Catalog resource.
Declaration
public virtual CatalogsResource.PatchRequest Patch(GoogleCloudPrivatecatalogproducerV1beta1Catalog body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudPrivatecatalogproducerV1beta1Catalog | body | The body of the request. |
System.String | 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. |
Returns
Type | Description |
---|---|
CatalogsResource.PatchRequest |
SetIamPolicy(GoogleIamV1SetIamPolicyRequest, String)
Sets the IAM policy for the specified Catalog.
Declaration
public virtual CatalogsResource.SetIamPolicyRequest SetIamPolicy(GoogleIamV1SetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
GoogleIamV1SetIamPolicyRequest | body | The body of the request. |
System.String | resource | REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
Returns
Type | Description |
---|---|
CatalogsResource.SetIamPolicyRequest |
TestIamPermissions(GoogleIamV1TestIamPermissionsRequest, String)
Tests the IAM permissions for the specified Catalog.
Declaration
public virtual CatalogsResource.TestIamPermissionsRequest TestIamPermissions(GoogleIamV1TestIamPermissionsRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
GoogleIamV1TestIamPermissionsRequest | body | The body of the request. |
System.String | resource | REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
Returns
Type | Description |
---|---|
CatalogsResource.TestIamPermissionsRequest |
Undelete(GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest, String)
Undeletes a deleted Catalog and all resources under it.
Declaration
public virtual CatalogsResource.UndeleteRequest Undelete(GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest | body | The body of the request. |
System.String | name | The resource name of the catalog. |
Returns
Type | Description |
---|---|
CatalogsResource.UndeleteRequest |