cloudprivatecatalogproducer
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package cloudprivatecatalogproducer provides access to the Cloud Private Catalog Producer API.
For product documentation, see:https://cloud.google.com/private-catalog/
Creating a client¶
Usage example:
import "google.golang.org/api/cloudprivatecatalogproducer/v1beta1"...ctx := context.Background()cloudprivatecatalogproducerService, err := cloudprivatecatalogproducer.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
cloudprivatecatalogproducerService, err := cloudprivatecatalogproducer.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)cloudprivatecatalogproducerService, err := cloudprivatecatalogproducer.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seehttps://godoc.org/google.golang.org/api/option/ for details on options.
Index¶
- Constants
- type CatalogsAssociationsCreateCall
- func (c *CatalogsAssociationsCreateCall) Context(ctx context.Context) *CatalogsAssociationsCreateCall
- func (c *CatalogsAssociationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Association, error)
- func (c *CatalogsAssociationsCreateCall) Fields(s ...googleapi.Field) *CatalogsAssociationsCreateCall
- func (c *CatalogsAssociationsCreateCall) Header() http.Header
- type CatalogsAssociationsDeleteCall
- func (c *CatalogsAssociationsDeleteCall) Context(ctx context.Context) *CatalogsAssociationsDeleteCall
- func (c *CatalogsAssociationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *CatalogsAssociationsDeleteCall) Fields(s ...googleapi.Field) *CatalogsAssociationsDeleteCall
- func (c *CatalogsAssociationsDeleteCall) Header() http.Header
- type CatalogsAssociationsGetCall
- func (c *CatalogsAssociationsGetCall) Context(ctx context.Context) *CatalogsAssociationsGetCall
- func (c *CatalogsAssociationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Association, error)
- func (c *CatalogsAssociationsGetCall) Fields(s ...googleapi.Field) *CatalogsAssociationsGetCall
- func (c *CatalogsAssociationsGetCall) Header() http.Header
- func (c *CatalogsAssociationsGetCall) IfNoneMatch(entityTag string) *CatalogsAssociationsGetCall
- type CatalogsAssociationsListCall
- func (c *CatalogsAssociationsListCall) Context(ctx context.Context) *CatalogsAssociationsListCall
- func (c *CatalogsAssociationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse, error)
- func (c *CatalogsAssociationsListCall) Fields(s ...googleapi.Field) *CatalogsAssociationsListCall
- func (c *CatalogsAssociationsListCall) Header() http.Header
- func (c *CatalogsAssociationsListCall) IfNoneMatch(entityTag string) *CatalogsAssociationsListCall
- func (c *CatalogsAssociationsListCall) PageSize(pageSize int64) *CatalogsAssociationsListCall
- func (c *CatalogsAssociationsListCall) PageToken(pageToken string) *CatalogsAssociationsListCall
- func (c *CatalogsAssociationsListCall) Pages(ctx context.Context, ...) error
- type CatalogsAssociationsService
- func (r *CatalogsAssociationsService) Create(parent string, ...) *CatalogsAssociationsCreateCall
- func (r *CatalogsAssociationsService) Delete(name string) *CatalogsAssociationsDeleteCall
- func (r *CatalogsAssociationsService) Get(name string) *CatalogsAssociationsGetCall
- func (r *CatalogsAssociationsService) List(parent string) *CatalogsAssociationsListCall
- type CatalogsCreateCall
- func (c *CatalogsCreateCall) Context(ctx context.Context) *CatalogsCreateCall
- func (c *CatalogsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *CatalogsCreateCall) Fields(s ...googleapi.Field) *CatalogsCreateCall
- func (c *CatalogsCreateCall) Header() http.Header
- type CatalogsDeleteCall
- func (c *CatalogsDeleteCall) Context(ctx context.Context) *CatalogsDeleteCall
- func (c *CatalogsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Catalog, error)
- func (c *CatalogsDeleteCall) Fields(s ...googleapi.Field) *CatalogsDeleteCall
- func (c *CatalogsDeleteCall) Force(force bool) *CatalogsDeleteCall
- func (c *CatalogsDeleteCall) Header() http.Header
- type CatalogsGetCall
- func (c *CatalogsGetCall) Context(ctx context.Context) *CatalogsGetCall
- func (c *CatalogsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Catalog, error)
- func (c *CatalogsGetCall) Fields(s ...googleapi.Field) *CatalogsGetCall
- func (c *CatalogsGetCall) Header() http.Header
- func (c *CatalogsGetCall) IfNoneMatch(entityTag string) *CatalogsGetCall
- type CatalogsGetIamPolicyCall
- func (c *CatalogsGetIamPolicyCall) Context(ctx context.Context) *CatalogsGetIamPolicyCall
- func (c *CatalogsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error)
- func (c *CatalogsGetIamPolicyCall) Fields(s ...googleapi.Field) *CatalogsGetIamPolicyCall
- func (c *CatalogsGetIamPolicyCall) Header() http.Header
- func (c *CatalogsGetIamPolicyCall) IfNoneMatch(entityTag string) *CatalogsGetIamPolicyCall
- func (c *CatalogsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *CatalogsGetIamPolicyCall
- type CatalogsListCall
- func (c *CatalogsListCall) Context(ctx context.Context) *CatalogsListCall
- func (c *CatalogsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse, error)
- func (c *CatalogsListCall) Fields(s ...googleapi.Field) *CatalogsListCall
- func (c *CatalogsListCall) Header() http.Header
- func (c *CatalogsListCall) IfNoneMatch(entityTag string) *CatalogsListCall
- func (c *CatalogsListCall) PageSize(pageSize int64) *CatalogsListCall
- func (c *CatalogsListCall) PageToken(pageToken string) *CatalogsListCall
- func (c *CatalogsListCall) Pages(ctx context.Context, ...) error
- func (c *CatalogsListCall) Parent(parent string) *CatalogsListCall
- type CatalogsPatchCall
- func (c *CatalogsPatchCall) Context(ctx context.Context) *CatalogsPatchCall
- func (c *CatalogsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Catalog, error)
- func (c *CatalogsPatchCall) Fields(s ...googleapi.Field) *CatalogsPatchCall
- func (c *CatalogsPatchCall) Header() http.Header
- func (c *CatalogsPatchCall) UpdateMask(updateMask string) *CatalogsPatchCall
- type CatalogsProductsCopyCall
- func (c *CatalogsProductsCopyCall) Context(ctx context.Context) *CatalogsProductsCopyCall
- func (c *CatalogsProductsCopyCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *CatalogsProductsCopyCall) Fields(s ...googleapi.Field) *CatalogsProductsCopyCall
- func (c *CatalogsProductsCopyCall) Header() http.Header
- type CatalogsProductsCreateCall
- func (c *CatalogsProductsCreateCall) Context(ctx context.Context) *CatalogsProductsCreateCall
- func (c *CatalogsProductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Product, error)
- func (c *CatalogsProductsCreateCall) Fields(s ...googleapi.Field) *CatalogsProductsCreateCall
- func (c *CatalogsProductsCreateCall) Header() http.Header
- type CatalogsProductsDeleteCall
- func (c *CatalogsProductsDeleteCall) Context(ctx context.Context) *CatalogsProductsDeleteCall
- func (c *CatalogsProductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *CatalogsProductsDeleteCall) Fields(s ...googleapi.Field) *CatalogsProductsDeleteCall
- func (c *CatalogsProductsDeleteCall) Header() http.Header
- type CatalogsProductsGetCall
- func (c *CatalogsProductsGetCall) Context(ctx context.Context) *CatalogsProductsGetCall
- func (c *CatalogsProductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Product, error)
- func (c *CatalogsProductsGetCall) Fields(s ...googleapi.Field) *CatalogsProductsGetCall
- func (c *CatalogsProductsGetCall) Header() http.Header
- func (c *CatalogsProductsGetCall) IfNoneMatch(entityTag string) *CatalogsProductsGetCall
- type CatalogsProductsIconsService
- type CatalogsProductsIconsUploadCall
- func (c *CatalogsProductsIconsUploadCall) Context(ctx context.Context) *CatalogsProductsIconsUploadCall
- func (c *CatalogsProductsIconsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *CatalogsProductsIconsUploadCall) Fields(s ...googleapi.Field) *CatalogsProductsIconsUploadCall
- func (c *CatalogsProductsIconsUploadCall) Header() http.Header
- type CatalogsProductsListCall
- func (c *CatalogsProductsListCall) Context(ctx context.Context) *CatalogsProductsListCall
- func (c *CatalogsProductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse, error)
- func (c *CatalogsProductsListCall) Fields(s ...googleapi.Field) *CatalogsProductsListCall
- func (c *CatalogsProductsListCall) Filter(filter string) *CatalogsProductsListCall
- func (c *CatalogsProductsListCall) Header() http.Header
- func (c *CatalogsProductsListCall) IfNoneMatch(entityTag string) *CatalogsProductsListCall
- func (c *CatalogsProductsListCall) PageSize(pageSize int64) *CatalogsProductsListCall
- func (c *CatalogsProductsListCall) PageToken(pageToken string) *CatalogsProductsListCall
- func (c *CatalogsProductsListCall) Pages(ctx context.Context, ...) error
- type CatalogsProductsPatchCall
- func (c *CatalogsProductsPatchCall) Context(ctx context.Context) *CatalogsProductsPatchCall
- func (c *CatalogsProductsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Product, error)
- func (c *CatalogsProductsPatchCall) Fields(s ...googleapi.Field) *CatalogsProductsPatchCall
- func (c *CatalogsProductsPatchCall) Header() http.Header
- func (c *CatalogsProductsPatchCall) UpdateMask(updateMask string) *CatalogsProductsPatchCall
- type CatalogsProductsService
- func (r *CatalogsProductsService) Copy(name string, ...) *CatalogsProductsCopyCall
- func (r *CatalogsProductsService) Create(parent string, ...) *CatalogsProductsCreateCall
- func (r *CatalogsProductsService) Delete(name string) *CatalogsProductsDeleteCall
- func (r *CatalogsProductsService) Get(name string) *CatalogsProductsGetCall
- func (r *CatalogsProductsService) List(parent string) *CatalogsProductsListCall
- func (r *CatalogsProductsService) Patch(nameid string, ...) *CatalogsProductsPatchCall
- type CatalogsProductsVersionsCreateCall
- func (c *CatalogsProductsVersionsCreateCall) Context(ctx context.Context) *CatalogsProductsVersionsCreateCall
- func (c *CatalogsProductsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *CatalogsProductsVersionsCreateCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsCreateCall
- func (c *CatalogsProductsVersionsCreateCall) Header() http.Header
- type CatalogsProductsVersionsDeleteCall
- func (c *CatalogsProductsVersionsDeleteCall) Context(ctx context.Context) *CatalogsProductsVersionsDeleteCall
- func (c *CatalogsProductsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *CatalogsProductsVersionsDeleteCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsDeleteCall
- func (c *CatalogsProductsVersionsDeleteCall) Header() http.Header
- type CatalogsProductsVersionsGetCall
- func (c *CatalogsProductsVersionsGetCall) Context(ctx context.Context) *CatalogsProductsVersionsGetCall
- func (c *CatalogsProductsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Version, error)
- func (c *CatalogsProductsVersionsGetCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsGetCall
- func (c *CatalogsProductsVersionsGetCall) Header() http.Header
- func (c *CatalogsProductsVersionsGetCall) IfNoneMatch(entityTag string) *CatalogsProductsVersionsGetCall
- type CatalogsProductsVersionsListCall
- func (c *CatalogsProductsVersionsListCall) Context(ctx context.Context) *CatalogsProductsVersionsListCall
- func (c *CatalogsProductsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse, error)
- func (c *CatalogsProductsVersionsListCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsListCall
- func (c *CatalogsProductsVersionsListCall) Header() http.Header
- func (c *CatalogsProductsVersionsListCall) IfNoneMatch(entityTag string) *CatalogsProductsVersionsListCall
- func (c *CatalogsProductsVersionsListCall) PageSize(pageSize int64) *CatalogsProductsVersionsListCall
- func (c *CatalogsProductsVersionsListCall) PageToken(pageToken string) *CatalogsProductsVersionsListCall
- func (c *CatalogsProductsVersionsListCall) Pages(ctx context.Context, ...) error
- type CatalogsProductsVersionsPatchCall
- func (c *CatalogsProductsVersionsPatchCall) Context(ctx context.Context) *CatalogsProductsVersionsPatchCall
- func (c *CatalogsProductsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Version, error)
- func (c *CatalogsProductsVersionsPatchCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsPatchCall
- func (c *CatalogsProductsVersionsPatchCall) Header() http.Header
- func (c *CatalogsProductsVersionsPatchCall) UpdateMask(updateMask string) *CatalogsProductsVersionsPatchCall
- type CatalogsProductsVersionsService
- func (r *CatalogsProductsVersionsService) Create(parent string, ...) *CatalogsProductsVersionsCreateCall
- func (r *CatalogsProductsVersionsService) Delete(name string) *CatalogsProductsVersionsDeleteCall
- func (r *CatalogsProductsVersionsService) Get(name string) *CatalogsProductsVersionsGetCall
- func (r *CatalogsProductsVersionsService) List(parent string) *CatalogsProductsVersionsListCall
- func (r *CatalogsProductsVersionsService) Patch(nameid string, ...) *CatalogsProductsVersionsPatchCall
- type CatalogsService
- func (r *CatalogsService) Create(...) *CatalogsCreateCall
- func (r *CatalogsService) Delete(name string) *CatalogsDeleteCall
- func (r *CatalogsService) Get(name string) *CatalogsGetCall
- func (r *CatalogsService) GetIamPolicy(resource string) *CatalogsGetIamPolicyCall
- func (r *CatalogsService) List() *CatalogsListCall
- func (r *CatalogsService) Patch(nameid string, ...) *CatalogsPatchCall
- func (r *CatalogsService) SetIamPolicy(resource string, ...) *CatalogsSetIamPolicyCall
- func (r *CatalogsService) TestIamPermissions(resource string, ...) *CatalogsTestIamPermissionsCall
- func (r *CatalogsService) Undelete(name string, ...) *CatalogsUndeleteCall
- type CatalogsSetIamPolicyCall
- func (c *CatalogsSetIamPolicyCall) Context(ctx context.Context) *CatalogsSetIamPolicyCall
- func (c *CatalogsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error)
- func (c *CatalogsSetIamPolicyCall) Fields(s ...googleapi.Field) *CatalogsSetIamPolicyCall
- func (c *CatalogsSetIamPolicyCall) Header() http.Header
- type CatalogsTestIamPermissionsCall
- func (c *CatalogsTestIamPermissionsCall) Context(ctx context.Context) *CatalogsTestIamPermissionsCall
- func (c *CatalogsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error)
- func (c *CatalogsTestIamPermissionsCall) Fields(s ...googleapi.Field) *CatalogsTestIamPermissionsCall
- func (c *CatalogsTestIamPermissionsCall) Header() http.Header
- type CatalogsUndeleteCall
- func (c *CatalogsUndeleteCall) Context(ctx context.Context) *CatalogsUndeleteCall
- func (c *CatalogsUndeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Catalog, error)
- func (c *CatalogsUndeleteCall) Fields(s ...googleapi.Field) *CatalogsUndeleteCall
- func (c *CatalogsUndeleteCall) Header() http.Header
- type GoogleCloudPrivatecatalogproducerV1beta1Association
- type GoogleCloudPrivatecatalogproducerV1beta1Catalog
- type GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest
- type GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest
- type GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse
- type GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse
- type GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse
- type GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse
- type GoogleCloudPrivatecatalogproducerV1beta1Product
- type GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest
- type GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest
- type GoogleCloudPrivatecatalogproducerV1beta1Version
- type GoogleIamV1AuditConfig
- type GoogleIamV1AuditLogConfig
- type GoogleIamV1Binding
- type GoogleIamV1Policy
- type GoogleIamV1SetIamPolicyRequest
- type GoogleIamV1TestIamPermissionsRequest
- type GoogleIamV1TestIamPermissionsResponse
- type GoogleLongrunningCancelOperationRequest
- type GoogleLongrunningListOperationsResponse
- type GoogleLongrunningOperation
- type GoogleProtobufEmpty
- type GoogleRpcStatus
- type GoogleTypeExpr
- type OperationsCancelCall
- func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall
- func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall
- func (c *OperationsCancelCall) Header() http.Header
- type OperationsDeleteCall
- func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall
- func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall
- func (c *OperationsDeleteCall) Header() http.Header
- type OperationsGetCall
- func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall
- func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall
- func (c *OperationsGetCall) Header() http.Header
- func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall
- type OperationsListCall
- func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall
- func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error)
- func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall
- func (c *OperationsListCall) Filter(filter string) *OperationsListCall
- func (c *OperationsListCall) Header() http.Header
- func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall
- func (c *OperationsListCall) Name(name string) *OperationsListCall
- func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall
- func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall
- func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error
- type OperationsService
- type Service
Constants¶
const (// View and manage your data across Google Cloud Platform servicesCloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeCatalogsAssociationsCreateCall¶
type CatalogsAssociationsCreateCall struct {// contains filtered or unexported fields}func (*CatalogsAssociationsCreateCall)Context¶
func (c *CatalogsAssociationsCreateCall) Context(ctxcontext.Context) *CatalogsAssociationsCreateCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsAssociationsCreateCall)Do¶
func (c *CatalogsAssociationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Association,error)
Do executes the "cloudprivatecatalogproducer.catalogs.associations.create" call.Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Associationor error will be non-nil. Any non-2xx status code is an error.Response headers are in either*GoogleCloudPrivatecatalogproducerV1beta1Association.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsAssociationsCreateCall)Fields¶
func (c *CatalogsAssociationsCreateCall) Fields(s ...googleapi.Field) *CatalogsAssociationsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsAssociationsCreateCall)Header¶
func (c *CatalogsAssociationsCreateCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCatalogsAssociationsDeleteCall¶
type CatalogsAssociationsDeleteCall struct {// contains filtered or unexported fields}func (*CatalogsAssociationsDeleteCall)Context¶
func (c *CatalogsAssociationsDeleteCall) Context(ctxcontext.Context) *CatalogsAssociationsDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsAssociationsDeleteCall)Do¶
func (c *CatalogsAssociationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty,error)
Do executes the "cloudprivatecatalogproducer.catalogs.associations.delete" call.Exactly one of *GoogleProtobufEmpty or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CatalogsAssociationsDeleteCall)Fields¶
func (c *CatalogsAssociationsDeleteCall) Fields(s ...googleapi.Field) *CatalogsAssociationsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsAssociationsDeleteCall)Header¶
func (c *CatalogsAssociationsDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCatalogsAssociationsGetCall¶
type CatalogsAssociationsGetCall struct {// contains filtered or unexported fields}func (*CatalogsAssociationsGetCall)Context¶
func (c *CatalogsAssociationsGetCall) Context(ctxcontext.Context) *CatalogsAssociationsGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsAssociationsGetCall)Do¶
func (c *CatalogsAssociationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Association,error)
Do executes the "cloudprivatecatalogproducer.catalogs.associations.get" call.Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Associationor error will be non-nil. Any non-2xx status code is an error.Response headers are in either*GoogleCloudPrivatecatalogproducerV1beta1Association.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsAssociationsGetCall)Fields¶
func (c *CatalogsAssociationsGetCall) Fields(s ...googleapi.Field) *CatalogsAssociationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsAssociationsGetCall)Header¶
func (c *CatalogsAssociationsGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CatalogsAssociationsGetCall)IfNoneMatch¶
func (c *CatalogsAssociationsGetCall) IfNoneMatch(entityTagstring) *CatalogsAssociationsGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeCatalogsAssociationsListCall¶
type CatalogsAssociationsListCall struct {// contains filtered or unexported fields}func (*CatalogsAssociationsListCall)Context¶
func (c *CatalogsAssociationsListCall) Context(ctxcontext.Context) *CatalogsAssociationsListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsAssociationsListCall)Do¶
func (c *CatalogsAssociationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse,error)
Do executes the "cloudprivatecatalogproducer.catalogs.associations.list" call.Exactly one of*GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsAssociationsListCall)Fields¶
func (c *CatalogsAssociationsListCall) Fields(s ...googleapi.Field) *CatalogsAssociationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsAssociationsListCall)Header¶
func (c *CatalogsAssociationsListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CatalogsAssociationsListCall)IfNoneMatch¶
func (c *CatalogsAssociationsListCall) IfNoneMatch(entityTagstring) *CatalogsAssociationsListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*CatalogsAssociationsListCall)PageSize¶
func (c *CatalogsAssociationsListCall) PageSize(pageSizeint64) *CatalogsAssociationsListCall
PageSize sets the optional parameter "pageSize": The maximum numberof catalog associations to return.
func (*CatalogsAssociationsListCall)PageToken¶
func (c *CatalogsAssociationsListCall) PageToken(pageTokenstring) *CatalogsAssociationsListCall
PageToken sets the optional parameter "pageToken": A pagination tokenreturned from the previous call to`ListAssociations`.
func (*CatalogsAssociationsListCall)Pages¶
func (c *CatalogsAssociationsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeCatalogsAssociationsService¶
type CatalogsAssociationsService struct {// contains filtered or unexported fields}funcNewCatalogsAssociationsService¶
func NewCatalogsAssociationsService(s *Service) *CatalogsAssociationsService
func (*CatalogsAssociationsService)Create¶
func (r *CatalogsAssociationsService) Create(parentstring, googlecloudprivatecatalogproducerv1beta1createassociationrequest *GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest) *CatalogsAssociationsCreateCall
Create: Creates an Association instance under a given Catalog.
func (*CatalogsAssociationsService)Delete¶
func (r *CatalogsAssociationsService) Delete(namestring) *CatalogsAssociationsDeleteCall
Delete: Deletes the given Association.
func (*CatalogsAssociationsService)Get¶
func (r *CatalogsAssociationsService) Get(namestring) *CatalogsAssociationsGetCall
Get: Returns the requested Association resource.
func (*CatalogsAssociationsService)List¶
func (r *CatalogsAssociationsService) List(parentstring) *CatalogsAssociationsListCall
List: Lists all Association resources under a catalog.
typeCatalogsCreateCall¶
type CatalogsCreateCall struct {// contains filtered or unexported fields}func (*CatalogsCreateCall)Context¶
func (c *CatalogsCreateCall) Context(ctxcontext.Context) *CatalogsCreateCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsCreateCall)Do¶
func (c *CatalogsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation,error)
Do executes the "cloudprivatecatalogproducer.catalogs.create" call.Exactly one of *GoogleLongrunningOperation or error will be non-nil.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CatalogsCreateCall)Fields¶
func (c *CatalogsCreateCall) Fields(s ...googleapi.Field) *CatalogsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsCreateCall)Header¶
func (c *CatalogsCreateCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCatalogsDeleteCall¶
type CatalogsDeleteCall struct {// contains filtered or unexported fields}func (*CatalogsDeleteCall)Context¶
func (c *CatalogsDeleteCall) Context(ctxcontext.Context) *CatalogsDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsDeleteCall)Do¶
func (c *CatalogsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Catalog,error)
Do executes the "cloudprivatecatalogproducer.catalogs.delete" call.Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Catalog orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1Catalog.ServerResponse.Header
or (if a response was returned at all) in
error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsDeleteCall)Fields¶
func (c *CatalogsDeleteCall) Fields(s ...googleapi.Field) *CatalogsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsDeleteCall)Force¶
func (c *CatalogsDeleteCall) Force(forcebool) *CatalogsDeleteCall
Force sets the optional parameter "force": Forces deletion of the`Catalog` and its `Association` resources.If the `Catalog` is still associated with other resources andforce is not set to true, then the operation fails.
func (*CatalogsDeleteCall)Header¶
func (c *CatalogsDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCatalogsGetCall¶
type CatalogsGetCall struct {// contains filtered or unexported fields}func (*CatalogsGetCall)Context¶
func (c *CatalogsGetCall) Context(ctxcontext.Context) *CatalogsGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsGetCall)Do¶
func (c *CatalogsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Catalog,error)
Do executes the "cloudprivatecatalogproducer.catalogs.get" call.Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Catalog orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1Catalog.ServerResponse.Header
or (if a response was returned at all) in
error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsGetCall)Fields¶
func (c *CatalogsGetCall) Fields(s ...googleapi.Field) *CatalogsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsGetCall)Header¶
func (c *CatalogsGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CatalogsGetCall)IfNoneMatch¶
func (c *CatalogsGetCall) IfNoneMatch(entityTagstring) *CatalogsGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeCatalogsGetIamPolicyCall¶
type CatalogsGetIamPolicyCall struct {// contains filtered or unexported fields}func (*CatalogsGetIamPolicyCall)Context¶
func (c *CatalogsGetIamPolicyCall) Context(ctxcontext.Context) *CatalogsGetIamPolicyCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsGetIamPolicyCall)Do¶
func (c *CatalogsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy,error)
Do executes the "cloudprivatecatalogproducer.catalogs.getIamPolicy" call.Exactly one of *GoogleIamV1Policy or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*GoogleIamV1Policy.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CatalogsGetIamPolicyCall)Fields¶
func (c *CatalogsGetIamPolicyCall) Fields(s ...googleapi.Field) *CatalogsGetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsGetIamPolicyCall)Header¶
func (c *CatalogsGetIamPolicyCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CatalogsGetIamPolicyCall)IfNoneMatch¶
func (c *CatalogsGetIamPolicyCall) IfNoneMatch(entityTagstring) *CatalogsGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*CatalogsGetIamPolicyCall)OptionsRequestedPolicyVersion¶added inv0.8.0
func (c *CatalogsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *CatalogsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The policy format version to bereturned.
Valid values are 0, 1, and 3. Requests specifying an invalid valuewill berejected.
Requests for policies with any conditional bindings must specifyversion 3.Policies without any conditional bindings may specify any valid valueorleave the field unset.
typeCatalogsListCall¶
type CatalogsListCall struct {// contains filtered or unexported fields}func (*CatalogsListCall)Context¶
func (c *CatalogsListCall) Context(ctxcontext.Context) *CatalogsListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsListCall)Do¶
func (c *CatalogsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse,error)
Do executes the "cloudprivatecatalogproducer.catalogs.list" call.Exactly one of*GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsListCall)Fields¶
func (c *CatalogsListCall) Fields(s ...googleapi.Field) *CatalogsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsListCall)Header¶
func (c *CatalogsListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CatalogsListCall)IfNoneMatch¶
func (c *CatalogsListCall) IfNoneMatch(entityTagstring) *CatalogsListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*CatalogsListCall)PageSize¶
func (c *CatalogsListCall) PageSize(pageSizeint64) *CatalogsListCall
PageSize sets the optional parameter "pageSize": The maximum numberof catalogs to return.
func (*CatalogsListCall)PageToken¶
func (c *CatalogsListCall) PageToken(pageTokenstring) *CatalogsListCall
PageToken sets the optional parameter "pageToken": A pagination tokenreturned from a previous call to ListCatalogsthat indicates where this listing should continue from.This field is optional.
func (*CatalogsListCall)Pages¶
func (c *CatalogsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*CatalogsListCall)Parent¶
func (c *CatalogsListCall) Parent(parentstring) *CatalogsListCall
Parent sets the optional parameter "parent": The resource name of theparent resource.
typeCatalogsPatchCall¶
type CatalogsPatchCall struct {// contains filtered or unexported fields}func (*CatalogsPatchCall)Context¶
func (c *CatalogsPatchCall) Context(ctxcontext.Context) *CatalogsPatchCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsPatchCall)Do¶
func (c *CatalogsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Catalog,error)
Do executes the "cloudprivatecatalogproducer.catalogs.patch" call.Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Catalog orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1Catalog.ServerResponse.Header
or (if a response was returned at all) in
error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsPatchCall)Fields¶
func (c *CatalogsPatchCall) Fields(s ...googleapi.Field) *CatalogsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsPatchCall)Header¶
func (c *CatalogsPatchCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CatalogsPatchCall)UpdateMask¶
func (c *CatalogsPatchCall) UpdateMask(updateMaskstring) *CatalogsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask thatcontrols which fields of the catalog should be updated.
typeCatalogsProductsCopyCall¶
type CatalogsProductsCopyCall struct {// contains filtered or unexported fields}func (*CatalogsProductsCopyCall)Context¶
func (c *CatalogsProductsCopyCall) Context(ctxcontext.Context) *CatalogsProductsCopyCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsProductsCopyCall)Do¶
func (c *CatalogsProductsCopyCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation,error)
Do executes the "cloudprivatecatalogproducer.catalogs.products.copy" call.Exactly one of *GoogleLongrunningOperation or error will be non-nil.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CatalogsProductsCopyCall)Fields¶
func (c *CatalogsProductsCopyCall) Fields(s ...googleapi.Field) *CatalogsProductsCopyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsProductsCopyCall)Header¶
func (c *CatalogsProductsCopyCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCatalogsProductsCreateCall¶
type CatalogsProductsCreateCall struct {// contains filtered or unexported fields}func (*CatalogsProductsCreateCall)Context¶
func (c *CatalogsProductsCreateCall) Context(ctxcontext.Context) *CatalogsProductsCreateCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsProductsCreateCall)Do¶
func (c *CatalogsProductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Product,error)
Do executes the "cloudprivatecatalogproducer.catalogs.products.create" call.Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Product orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1Product.ServerResponse.Header
or (if a response was returned at all) in
error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsProductsCreateCall)Fields¶
func (c *CatalogsProductsCreateCall) Fields(s ...googleapi.Field) *CatalogsProductsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsProductsCreateCall)Header¶
func (c *CatalogsProductsCreateCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCatalogsProductsDeleteCall¶
type CatalogsProductsDeleteCall struct {// contains filtered or unexported fields}func (*CatalogsProductsDeleteCall)Context¶
func (c *CatalogsProductsDeleteCall) Context(ctxcontext.Context) *CatalogsProductsDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsProductsDeleteCall)Do¶
func (c *CatalogsProductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty,error)
Do executes the "cloudprivatecatalogproducer.catalogs.products.delete" call.Exactly one of *GoogleProtobufEmpty or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CatalogsProductsDeleteCall)Fields¶
func (c *CatalogsProductsDeleteCall) Fields(s ...googleapi.Field) *CatalogsProductsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsProductsDeleteCall)Header¶
func (c *CatalogsProductsDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCatalogsProductsGetCall¶
type CatalogsProductsGetCall struct {// contains filtered or unexported fields}func (*CatalogsProductsGetCall)Context¶
func (c *CatalogsProductsGetCall) Context(ctxcontext.Context) *CatalogsProductsGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsProductsGetCall)Do¶
func (c *CatalogsProductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Product,error)
Do executes the "cloudprivatecatalogproducer.catalogs.products.get" call.Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Product orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1Product.ServerResponse.Header
or (if a response was returned at all) in
error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsProductsGetCall)Fields¶
func (c *CatalogsProductsGetCall) Fields(s ...googleapi.Field) *CatalogsProductsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsProductsGetCall)Header¶
func (c *CatalogsProductsGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CatalogsProductsGetCall)IfNoneMatch¶
func (c *CatalogsProductsGetCall) IfNoneMatch(entityTagstring) *CatalogsProductsGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeCatalogsProductsIconsService¶
type CatalogsProductsIconsService struct {// contains filtered or unexported fields}funcNewCatalogsProductsIconsService¶
func NewCatalogsProductsIconsService(s *Service) *CatalogsProductsIconsService
func (*CatalogsProductsIconsService)Upload¶
func (r *CatalogsProductsIconsService) Upload(productstring, googlecloudprivatecatalogproducerv1beta1uploadiconrequest *GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest) *CatalogsProductsIconsUploadCall
Upload: Creates an Icon instance under a given Product.If Product only has a default icon, a new Iconinstance is created and associated with the given Product.If Product already has a non-default icon, the action createsa new Icon instance, associates the newly createdIcon with the given Product and deletes the old icon.
typeCatalogsProductsIconsUploadCall¶
type CatalogsProductsIconsUploadCall struct {// contains filtered or unexported fields}func (*CatalogsProductsIconsUploadCall)Context¶
func (c *CatalogsProductsIconsUploadCall) Context(ctxcontext.Context) *CatalogsProductsIconsUploadCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsProductsIconsUploadCall)Do¶
func (c *CatalogsProductsIconsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty,error)
Do executes the "cloudprivatecatalogproducer.catalogs.products.icons.upload" call.Exactly one of *GoogleProtobufEmpty or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CatalogsProductsIconsUploadCall)Fields¶
func (c *CatalogsProductsIconsUploadCall) Fields(s ...googleapi.Field) *CatalogsProductsIconsUploadCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsProductsIconsUploadCall)Header¶
func (c *CatalogsProductsIconsUploadCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCatalogsProductsListCall¶
type CatalogsProductsListCall struct {// contains filtered or unexported fields}func (*CatalogsProductsListCall)Context¶
func (c *CatalogsProductsListCall) Context(ctxcontext.Context) *CatalogsProductsListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsProductsListCall)Do¶
func (c *CatalogsProductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse,error)
Do executes the "cloudprivatecatalogproducer.catalogs.products.list" call.Exactly one of*GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsProductsListCall)Fields¶
func (c *CatalogsProductsListCall) Fields(s ...googleapi.Field) *CatalogsProductsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsProductsListCall)Filter¶
func (c *CatalogsProductsListCall) Filter(filterstring) *CatalogsProductsListCall
Filter sets the optional parameter "filter": A filter expression usedto restrict the returned results basedupon properties of the product.
func (*CatalogsProductsListCall)Header¶
func (c *CatalogsProductsListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CatalogsProductsListCall)IfNoneMatch¶
func (c *CatalogsProductsListCall) IfNoneMatch(entityTagstring) *CatalogsProductsListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*CatalogsProductsListCall)PageSize¶
func (c *CatalogsProductsListCall) PageSize(pageSizeint64) *CatalogsProductsListCall
PageSize sets the optional parameter "pageSize": The maximum numberof products to return.
func (*CatalogsProductsListCall)PageToken¶
func (c *CatalogsProductsListCall) PageToken(pageTokenstring) *CatalogsProductsListCall
PageToken sets the optional parameter "pageToken": A pagination tokenreturned from a previous call to ListProductsthat indicates where this listing should continue from.This field is optional.
func (*CatalogsProductsListCall)Pages¶
func (c *CatalogsProductsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeCatalogsProductsPatchCall¶
type CatalogsProductsPatchCall struct {// contains filtered or unexported fields}func (*CatalogsProductsPatchCall)Context¶
func (c *CatalogsProductsPatchCall) Context(ctxcontext.Context) *CatalogsProductsPatchCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsProductsPatchCall)Do¶
func (c *CatalogsProductsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Product,error)
Do executes the "cloudprivatecatalogproducer.catalogs.products.patch" call.Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Product orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1Product.ServerResponse.Header
or (if a response was returned at all) in
error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsProductsPatchCall)Fields¶
func (c *CatalogsProductsPatchCall) Fields(s ...googleapi.Field) *CatalogsProductsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsProductsPatchCall)Header¶
func (c *CatalogsProductsPatchCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CatalogsProductsPatchCall)UpdateMask¶
func (c *CatalogsProductsPatchCall) UpdateMask(updateMaskstring) *CatalogsProductsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask thatcontrols which fields of the product should be updated.
typeCatalogsProductsService¶
type CatalogsProductsService struct {Icons *CatalogsProductsIconsServiceVersions *CatalogsProductsVersionsService// contains filtered or unexported fields}funcNewCatalogsProductsService¶
func NewCatalogsProductsService(s *Service) *CatalogsProductsService
func (*CatalogsProductsService)Copy¶
func (r *CatalogsProductsService) Copy(namestring, googlecloudprivatecatalogproducerv1beta1copyproductrequest *GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest) *CatalogsProductsCopyCall
Copy: Copies a Product under another Catalog.
func (*CatalogsProductsService)Create¶
func (r *CatalogsProductsService) Create(parentstring, googlecloudprivatecatalogproducerv1beta1product *GoogleCloudPrivatecatalogproducerV1beta1Product) *CatalogsProductsCreateCall
Create: Creates a Product instance under a given Catalog.
func (*CatalogsProductsService)Delete¶
func (r *CatalogsProductsService) Delete(namestring) *CatalogsProductsDeleteCall
Delete: Hard deletes a Product.
func (*CatalogsProductsService)Get¶
func (r *CatalogsProductsService) Get(namestring) *CatalogsProductsGetCall
Get: Returns the requested Product resource.
func (*CatalogsProductsService)List¶
func (r *CatalogsProductsService) List(parentstring) *CatalogsProductsListCall
List: Lists Product resources that the producer has access to, withinthescope of the parent catalog.
func (*CatalogsProductsService)Patch¶
func (r *CatalogsProductsService) Patch(nameidstring, googlecloudprivatecatalogproducerv1beta1product *GoogleCloudPrivatecatalogproducerV1beta1Product) *CatalogsProductsPatchCall
Patch: Updates a specific Product resource.
typeCatalogsProductsVersionsCreateCall¶
type CatalogsProductsVersionsCreateCall struct {// contains filtered or unexported fields}func (*CatalogsProductsVersionsCreateCall)Context¶
func (c *CatalogsProductsVersionsCreateCall) Context(ctxcontext.Context) *CatalogsProductsVersionsCreateCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsProductsVersionsCreateCall)Do¶
func (c *CatalogsProductsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation,error)
Do executes the "cloudprivatecatalogproducer.catalogs.products.versions.create" call.Exactly one of *GoogleLongrunningOperation or error will be non-nil.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CatalogsProductsVersionsCreateCall)Fields¶
func (c *CatalogsProductsVersionsCreateCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsProductsVersionsCreateCall)Header¶
func (c *CatalogsProductsVersionsCreateCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCatalogsProductsVersionsDeleteCall¶
type CatalogsProductsVersionsDeleteCall struct {// contains filtered or unexported fields}func (*CatalogsProductsVersionsDeleteCall)Context¶
func (c *CatalogsProductsVersionsDeleteCall) Context(ctxcontext.Context) *CatalogsProductsVersionsDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsProductsVersionsDeleteCall)Do¶
func (c *CatalogsProductsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty,error)
Do executes the "cloudprivatecatalogproducer.catalogs.products.versions.delete" call.Exactly one of *GoogleProtobufEmpty or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CatalogsProductsVersionsDeleteCall)Fields¶
func (c *CatalogsProductsVersionsDeleteCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsProductsVersionsDeleteCall)Header¶
func (c *CatalogsProductsVersionsDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCatalogsProductsVersionsGetCall¶
type CatalogsProductsVersionsGetCall struct {// contains filtered or unexported fields}func (*CatalogsProductsVersionsGetCall)Context¶
func (c *CatalogsProductsVersionsGetCall) Context(ctxcontext.Context) *CatalogsProductsVersionsGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsProductsVersionsGetCall)Do¶
func (c *CatalogsProductsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Version,error)
Do executes the "cloudprivatecatalogproducer.catalogs.products.versions.get" call.Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Version orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1Version.ServerResponse.Header
or (if a response was returned at all) in
error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsProductsVersionsGetCall)Fields¶
func (c *CatalogsProductsVersionsGetCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsProductsVersionsGetCall)Header¶
func (c *CatalogsProductsVersionsGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CatalogsProductsVersionsGetCall)IfNoneMatch¶
func (c *CatalogsProductsVersionsGetCall) IfNoneMatch(entityTagstring) *CatalogsProductsVersionsGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeCatalogsProductsVersionsListCall¶
type CatalogsProductsVersionsListCall struct {// contains filtered or unexported fields}func (*CatalogsProductsVersionsListCall)Context¶
func (c *CatalogsProductsVersionsListCall) Context(ctxcontext.Context) *CatalogsProductsVersionsListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsProductsVersionsListCall)Do¶
func (c *CatalogsProductsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse,error)
Do executes the "cloudprivatecatalogproducer.catalogs.products.versions.list" call.Exactly one of*GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsProductsVersionsListCall)Fields¶
func (c *CatalogsProductsVersionsListCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsProductsVersionsListCall)Header¶
func (c *CatalogsProductsVersionsListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CatalogsProductsVersionsListCall)IfNoneMatch¶
func (c *CatalogsProductsVersionsListCall) IfNoneMatch(entityTagstring) *CatalogsProductsVersionsListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*CatalogsProductsVersionsListCall)PageSize¶
func (c *CatalogsProductsVersionsListCall) PageSize(pageSizeint64) *CatalogsProductsVersionsListCall
PageSize sets the optional parameter "pageSize": The maximum numberof versions to return.
func (*CatalogsProductsVersionsListCall)PageToken¶
func (c *CatalogsProductsVersionsListCall) PageToken(pageTokenstring) *CatalogsProductsVersionsListCall
PageToken sets the optional parameter "pageToken": A pagination tokenreturned from a previous call to ListVersionsthat indicates where this listing should continue from.This field is optional.
func (*CatalogsProductsVersionsListCall)Pages¶
func (c *CatalogsProductsVersionsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeCatalogsProductsVersionsPatchCall¶
type CatalogsProductsVersionsPatchCall struct {// contains filtered or unexported fields}func (*CatalogsProductsVersionsPatchCall)Context¶
func (c *CatalogsProductsVersionsPatchCall) Context(ctxcontext.Context) *CatalogsProductsVersionsPatchCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsProductsVersionsPatchCall)Do¶
func (c *CatalogsProductsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Version,error)
Do executes the "cloudprivatecatalogproducer.catalogs.products.versions.patch" call.Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Version orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1Version.ServerResponse.Header
or (if a response was returned at all) in
error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsProductsVersionsPatchCall)Fields¶
func (c *CatalogsProductsVersionsPatchCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsProductsVersionsPatchCall)Header¶
func (c *CatalogsProductsVersionsPatchCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CatalogsProductsVersionsPatchCall)UpdateMask¶
func (c *CatalogsProductsVersionsPatchCall) UpdateMask(updateMaskstring) *CatalogsProductsVersionsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask thatcontrols which fields of the version should be updated.
typeCatalogsProductsVersionsService¶
type CatalogsProductsVersionsService struct {// contains filtered or unexported fields}funcNewCatalogsProductsVersionsService¶
func NewCatalogsProductsVersionsService(s *Service) *CatalogsProductsVersionsService
func (*CatalogsProductsVersionsService)Create¶
func (r *CatalogsProductsVersionsService) Create(parentstring, googlecloudprivatecatalogproducerv1beta1version *GoogleCloudPrivatecatalogproducerV1beta1Version) *CatalogsProductsVersionsCreateCall
Create: Creates a Version instance under a given Product.
func (*CatalogsProductsVersionsService)Delete¶
func (r *CatalogsProductsVersionsService) Delete(namestring) *CatalogsProductsVersionsDeleteCall
Delete: Hard deletes a Version.
func (*CatalogsProductsVersionsService)Get¶
func (r *CatalogsProductsVersionsService) Get(namestring) *CatalogsProductsVersionsGetCall
Get: Returns the requested Version resource.
func (*CatalogsProductsVersionsService)List¶
func (r *CatalogsProductsVersionsService) List(parentstring) *CatalogsProductsVersionsListCall
List: Lists Version resources that the producer has access to, withinthescope of the parent Product.
func (*CatalogsProductsVersionsService)Patch¶
func (r *CatalogsProductsVersionsService) Patch(nameidstring, googlecloudprivatecatalogproducerv1beta1version *GoogleCloudPrivatecatalogproducerV1beta1Version) *CatalogsProductsVersionsPatchCall
Patch: Updates a specific Version resource.
typeCatalogsService¶
type CatalogsService struct {Associations *CatalogsAssociationsServiceProducts *CatalogsProductsService// contains filtered or unexported fields}funcNewCatalogsService¶
func NewCatalogsService(s *Service) *CatalogsService
func (*CatalogsService)Create¶
func (r *CatalogsService) Create(googlecloudprivatecatalogproducerv1beta1catalog *GoogleCloudPrivatecatalogproducerV1beta1Catalog) *CatalogsCreateCall
Create: Creates a new Catalog resource.
func (*CatalogsService)Delete¶
func (r *CatalogsService) Delete(namestring) *CatalogsDeleteCall
Delete: Soft deletes an existing Catalog and all resources underit.The catalog can only be deleted if there is no associations under itorDeleteCatalogRequest.force is true. The delete operationcan be recovered by thePrivateCatalogProducer.UndeleteCatalogmethod.
func (*CatalogsService)Get¶
func (r *CatalogsService) Get(namestring) *CatalogsGetCall
Get: Returns the requested Catalog resource.
func (*CatalogsService)GetIamPolicy¶
func (r *CatalogsService) GetIamPolicy(resourcestring) *CatalogsGetIamPolicyCall
GetIamPolicy: Gets IAM policy for the specified Catalog.
func (*CatalogsService)List¶
func (r *CatalogsService) List() *CatalogsListCall
List: Lists Catalog resources that the producer has access to, withinthescope of the parent resource.
func (*CatalogsService)Patch¶
func (r *CatalogsService) Patch(nameidstring, googlecloudprivatecatalogproducerv1beta1catalog *GoogleCloudPrivatecatalogproducerV1beta1Catalog) *CatalogsPatchCall
Patch: Updates a specific Catalog resource.
func (*CatalogsService)SetIamPolicy¶
func (r *CatalogsService) SetIamPolicy(resourcestring, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *CatalogsSetIamPolicyCall
SetIamPolicy: Sets the IAM policy for the specified Catalog.
func (*CatalogsService)TestIamPermissions¶
func (r *CatalogsService) TestIamPermissions(resourcestring, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *CatalogsTestIamPermissionsCall
TestIamPermissions: Tests the IAM permissions for the specifiedCatalog.
func (*CatalogsService)Undelete¶
func (r *CatalogsService) Undelete(namestring, googlecloudprivatecatalogproducerv1beta1undeletecatalogrequest *GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest) *CatalogsUndeleteCall
Undelete: Undeletes a deleted Catalog and all resources under it.
typeCatalogsSetIamPolicyCall¶
type CatalogsSetIamPolicyCall struct {// contains filtered or unexported fields}func (*CatalogsSetIamPolicyCall)Context¶
func (c *CatalogsSetIamPolicyCall) Context(ctxcontext.Context) *CatalogsSetIamPolicyCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsSetIamPolicyCall)Do¶
func (c *CatalogsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy,error)
Do executes the "cloudprivatecatalogproducer.catalogs.setIamPolicy" call.Exactly one of *GoogleIamV1Policy or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*GoogleIamV1Policy.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CatalogsSetIamPolicyCall)Fields¶
func (c *CatalogsSetIamPolicyCall) Fields(s ...googleapi.Field) *CatalogsSetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsSetIamPolicyCall)Header¶
func (c *CatalogsSetIamPolicyCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCatalogsTestIamPermissionsCall¶
type CatalogsTestIamPermissionsCall struct {// contains filtered or unexported fields}func (*CatalogsTestIamPermissionsCall)Context¶
func (c *CatalogsTestIamPermissionsCall) Context(ctxcontext.Context) *CatalogsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsTestIamPermissionsCall)Do¶
func (c *CatalogsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse,error)
Do executes the "cloudprivatecatalogproducer.catalogs.testIamPermissions" call.Exactly one of *GoogleIamV1TestIamPermissionsResponse or error willbe non-nil. Any non-2xx status code is an error. Response headers arein either*GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CatalogsTestIamPermissionsCall)Fields¶
func (c *CatalogsTestIamPermissionsCall) Fields(s ...googleapi.Field) *CatalogsTestIamPermissionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsTestIamPermissionsCall)Header¶
func (c *CatalogsTestIamPermissionsCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCatalogsUndeleteCall¶
type CatalogsUndeleteCall struct {// contains filtered or unexported fields}func (*CatalogsUndeleteCall)Context¶
func (c *CatalogsUndeleteCall) Context(ctxcontext.Context) *CatalogsUndeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CatalogsUndeleteCall)Do¶
func (c *CatalogsUndeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Catalog,error)
Do executes the "cloudprivatecatalogproducer.catalogs.undelete" call.Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Catalog orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*GoogleCloudPrivatecatalogproducerV1beta1Catalog.ServerResponse.Header
or (if a response was returned at all) in
error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*CatalogsUndeleteCall)Fields¶
func (c *CatalogsUndeleteCall) Fields(s ...googleapi.Field) *CatalogsUndeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CatalogsUndeleteCall)Header¶
func (c *CatalogsUndeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeGoogleCloudPrivatecatalogproducerV1beta1Association¶
type GoogleCloudPrivatecatalogproducerV1beta1Association struct {// CreateTime: The creation time of the association.CreateTimestring `json:"createTime,omitempty"`// Name: Output only. The resource name of the catalog association, in// the format// `catalogs/{catalog_id}/associations/{association_id}'.//// A unique identifier for the catalog association, which is// generated by catalog service.Namestring `json:"name,omitempty"`// Resource: Required. The user-supplied fully qualified name of the// `Resource`// associated to the `Catalog`. It supports `Organization`,// `Folder`,// and `Project`. Values are of the form//// * `//cloudresourcemanager.googleapis.com/projects/{product_number}`// * `//cloudresourcemanager.googleapis.com/folders/{folder_id}`// *// `//cloudresourcemanager.googleapis.com/organizations/{organization_id}// `Resourcestring `json:"resource,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleCloudPrivatecatalogproducerV1beta1Association: An associationtuple that pairs a `Catalog` to a resourcethat can use the `Catalog`. After association,agoogle.cloud.privatecatalog.v1beta1.Catalog becomes availabletoconsumers under specified Association.resource and all of itschildnodes.Users who have the `cloudprivatecatalog.targets.get` permission onany ofthe resource nodes can access the catalog and child products underthe node.
For example, suppose the cloud resource hierarchy is as follows:
* organizations/example.com
- folders/team
- projects/test
After creating an association with `organizations/example.com`, thecatalog`catalogs/1` is accessible from the following paths:
* organizations/example.com* folders/team* projects/test
Users can access thembygoogle.cloud.v1beta1.PrivateCatalog.SearchCatalogs action.
func (*GoogleCloudPrivatecatalogproducerV1beta1Association)MarshalJSON¶
func (s *GoogleCloudPrivatecatalogproducerV1beta1Association) MarshalJSON() ([]byte,error)
typeGoogleCloudPrivatecatalogproducerV1beta1Catalog¶
type GoogleCloudPrivatecatalogproducerV1beta1Catalog struct {// CreateTime: Output only. The time when the catalog was created.CreateTimestring `json:"createTime,omitempty"`// Description: Required. The user-supplied description of the catalog.// Maximum of 512// characters.Descriptionstring `json:"description,omitempty"`// DisplayName: Required. The user-supplied descriptive name of the// catalog as it appears// in UIs. Maximum 256 characters in length.DisplayNamestring `json:"displayName,omitempty"`// 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.Namestring `json:"name,omitempty"`// Parent: Required. The parent resource name of the catalog, which// can't be changed// after a catalog is created. It can only be an organization. Values// are of// the form// `//cloudresourcemanager.googleapis.com/organizations/<id>`.// Maximum 256 characters in length.Parentstring `json:"parent,omitempty"`// UpdateTime: Output only. The time when the catalog was last updated.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleCloudPrivatecatalogproducerV1beta1Catalog: The producerrepresentation of a catalog which is a curated collectionofsolutions that can be managed, controlled, and shared by cloudadmins.
func (*GoogleCloudPrivatecatalogproducerV1beta1Catalog)MarshalJSON¶
func (s *GoogleCloudPrivatecatalogproducerV1beta1Catalog) MarshalJSON() ([]byte,error)
typeGoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest¶
type GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest struct {// DestinationProductName: The resource name of the destination product// that is copied to.DestinationProductNamestring `json:"destinationProductName,omitempty"`// ForceSendFields is a list of field names (e.g.// "DestinationProductName") to unconditionally include in API requests.// By default, fields with empty values are omitted from API requests.// However, any non-pointer, non-interface field appearing in// ForceSendFields will be sent to the server regardless of whether the// field is empty or not. This may be used to include empty fields in// Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DestinationProductName")// to include in API requests with the JSON null value. By default,// fields with empty values are omitted from API requests. However, any// field with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}func (*GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest)MarshalJSON¶
func (s *GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest) MarshalJSON() ([]byte,error)
typeGoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest¶
type GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest struct {// Association: The user-supplied `Association` that is going to be// created.//// If the `resource` field is set,// the// `privatecatalogproducer.catalogTargets.associate` permission is// checked on// the target resource.Association *GoogleCloudPrivatecatalogproducerV1beta1Association `json:"association,omitempty"`// ForceSendFields is a list of field names (e.g. "Association") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Association") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}func (*GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest)MarshalJSON¶
func (s *GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest) MarshalJSON() ([]byte,error)
typeGoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse¶
type GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse struct {// Associations: The returned `Association` resources from the list// call.Associations []*GoogleCloudPrivatecatalogproducerV1beta1Association `json:"associations,omitempty"`// NextPageToken: A pagination token returned from a previous call// to// `ListAssociations` that indicates where the listing should continue// from.// This field is optional.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Associations") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Associations") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}func (*GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse)MarshalJSON¶
func (s *GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse¶
type GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse struct {// Catalogs: The `Catalogs` returned from the list call.Catalogs []*GoogleCloudPrivatecatalogproducerV1beta1Catalog `json:"catalogs,omitempty"`// NextPageToken: A pagination token returned from a previous call to// ListCatalogs// that indicates where the listing should continue from.// This field is optional.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Catalogs") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Catalogs") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}func (*GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse)MarshalJSON¶
func (s *GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse¶
type GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse struct {// NextPageToken: A pagination token returned from a previous call to// ListProducts// that indicates where the listing should continue from.// This field is optional.NextPageTokenstring `json:"nextPageToken,omitempty"`// Products: The `Product` returned from the list call.Products []*GoogleCloudPrivatecatalogproducerV1beta1Product `json:"products,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}func (*GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse)MarshalJSON¶
func (s *GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse¶
type GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse struct {// NextPageToken: A pagination token returned from a previous call to// ListProducts// that indicates where the listing should continue from.// This field is optional.NextPageTokenstring `json:"nextPageToken,omitempty"`// Versions: The `VersiVersionon` returned from the list call.Versions []*GoogleCloudPrivatecatalogproducerV1beta1Version `json:"versions,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}func (*GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse)MarshalJSON¶
func (s *GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudPrivatecatalogproducerV1beta1Product¶
type GoogleCloudPrivatecatalogproducerV1beta1Product struct {// AssetType: Required. The type of the product asset, which cannot be// changed after the// product is created. It supports the// values// `google.deploymentmanager.Template`// and// `google.cloudprivatecatalog.ListingOnly`. Other values will// be// rejected by the server. Read only after creation.//// The following fields or resource types have different validation// rules// under each `asset_type` values://// * Product.display_metadata has different validation schema for// each// asset type value. See its comment for details.// * Version resource isn't allowed to be added under// the// `google.cloudprivatecatalog.ListingOnly` type.AssetTypestring `json:"assetType,omitempty"`// CreateTime: Output only. The time when the product was created.CreateTimestring `json:"createTime,omitempty"`// DisplayMetadata: The user-supplied display metadata to describe the// product.// The JSON schema of the metadata differs by Product.asset_type.// When the type is `google.deploymentmanager.Template`, the schema is// as// follows://// “`// "$schema":http://json-schema.org/draft-04/schema#// type: object// properties:// name:// type: string// minLength: 1// maxLength: 64// description:// type: string// minLength: 1// maxLength: 2048// tagline:// type: string// minLength: 1// maxLength: 100// support_info:// type: string// minLength: 1// maxLength: 2048// creator:// type: string// minLength: 1// maxLength: 100// documentation:// type: array// items:// type: object// properties:// url:// type: string// pattern://// "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"// title:// type: string// minLength: 1// maxLength: 64// description:// type: string// minLength: 1// maxLength: 2048// required:// - name// - description// additionalProperties: false//// “`//// When the asset type is `google.cloudprivatecatalog.ListingOnly`, the// schema// is as follows://// “`// "$schema":http://json-schema.org/draft-04/schema#// type: object// properties:// name:// type: string// minLength: 1// maxLength: 64// description:// type: string// minLength: 1// maxLength: 2048// tagline:// type: string// minLength: 1// maxLength: 100// support_info:// type: string// minLength: 1// maxLength: 2048// creator:// type: string// minLength: 1// maxLength: 100// documentation:// type: array// items:// type: object// properties:// url:// type: string// pattern://// "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"// title:// type: string// minLength: 1// maxLength: 64// description:// type: string// minLength: 1// maxLength: 2048// signup_url:// type: string// pattern://// "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"// requ// ired:// - name// - description// - signup_url// additionalProperties: false// “`DisplayMetadatagoogleapi.RawMessage `json:"displayMetadata,omitempty"`// IconUri: Output only. The public accessible URI of the icon uploaded// by// PrivateCatalogProducer.UploadIcon.//// If no icon is uploaded, it will be the default icon's URI.IconUristring `json:"iconUri,omitempty"`// 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.Namestring `json:"name,omitempty"`// UpdateTime: Output only. The time when the product was last updated.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AssetType") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssetType") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleCloudPrivatecatalogproducerV1beta1Product: The producerrepresentation of a product which is a child resource of`Catalog` with display metadata and a list of `Version` resources.
func (*GoogleCloudPrivatecatalogproducerV1beta1Product)MarshalJSON¶
func (s *GoogleCloudPrivatecatalogproducerV1beta1Product) MarshalJSON() ([]byte,error)
typeGoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest¶
type GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest struct {}typeGoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest¶
type GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest struct {// Icon: The raw icon bytes user-supplied to be uploaded to the product.// The format// of the icon can only be PNG or JPEG. The minimum allowed dimensions// are// 130x130 pixels and the maximum dimensions are 10000x10000// pixels.// Required.Iconstring `json:"icon,omitempty"`// ForceSendFields is a list of field names (e.g. "Icon") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Icon") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}func (*GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest)MarshalJSON¶
func (s *GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest) MarshalJSON() ([]byte,error)
typeGoogleCloudPrivatecatalogproducerV1beta1Version¶
type GoogleCloudPrivatecatalogproducerV1beta1Version struct {// Asset: Output only. The asset which has been validated and is ready// to be// provisioned. See Version.original_asset for the schema.Assetgoogleapi.RawMessage `json:"asset,omitempty"`// CreateTime: Output only. The time when the version was created.CreateTimestring `json:"createTime,omitempty"`// Description: The user-supplied description of the version. Maximum of// 256 characters.Descriptionstring `json:"description,omitempty"`// 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.Namestring `json:"name,omitempty"`// OriginalAsset: The user-supplied asset payload. The maximum size of// the payload is 2MB.// The JSON schema of the payload is defined as://// “`// type: object// properties:// mainTemplate:// type: string// description: The file name of the main template and name prefix// of// schema file. The content of the main template should be set in// the// imports list. The schema file name is expected to be// <mainTemplate>.schema in the imports list. required: true// imports:// type: array// description: Import template and schema file contents. Required// to have// both <mainTemplate> and <mainTemplate>.schema files. required:// true// minItems: 2// items:// type: object// properties:// name:// type: string// content:// type: string// “`OriginalAssetgoogleapi.RawMessage `json:"originalAsset,omitempty"`// UpdateTime: Output only. The time when the version was last updated.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Asset") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Asset") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleCloudPrivatecatalogproducerV1beta1Version: The producerrepresentation of a version, which is a child resource undera`Product` with asset data.
func (*GoogleCloudPrivatecatalogproducerV1beta1Version)MarshalJSON¶
func (s *GoogleCloudPrivatecatalogproducerV1beta1Version) MarshalJSON() ([]byte,error)
typeGoogleIamV1AuditConfig¶
type GoogleIamV1AuditConfig struct {// AuditLogConfigs: The configuration for logging of each type of// permission.AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`// Service: Specifies a service that will be enabled for audit// logging.// For example, `storage.googleapis.com`,// `cloudsql.googleapis.com`.// `allServices` is a special value that covers all services.Servicestring `json:"service,omitempty"`// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuditLogConfigs") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}GoogleIamV1AuditConfig: Specifies the audit configuration for aservice.The configuration determines which permission types are logged, andwhatidentities, if any, are exempted from logging.An AuditConfig must have one or more AuditLogConfigs.
If there are AuditConfigs for both `allServices` and a specificservice,the union of the two AuditConfigs is used for that service: thelog_typesspecified in each AuditConfig are enabled, and the exempted_membersin eachAuditLogConfig are exempted.
Example Policy with multiple AuditConfigs:
{ "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "sampleservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ]}For sampleservice, this policy enables DATA_READ, DATA_WRITE andADMIN_READlogging. It also exempts jose@example.com from DATA_READ logging,andaliya@example.com from DATA_WRITE logging.
func (*GoogleIamV1AuditConfig)MarshalJSON¶
func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte,error)
typeGoogleIamV1AuditLogConfig¶
type GoogleIamV1AuditLogConfig struct {// ExemptedMembers: Specifies the identities that do not cause logging// for this type of// permission.// Follows the same format of Binding.members.ExemptedMembers []string `json:"exemptedMembers,omitempty"`// LogType: The log type that this config enables.//// Possible values:// "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.// "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy// "DATA_WRITE" - Data writes. Example: CloudSQL Users create// "DATA_READ" - Data reads. Example: CloudSQL Users listLogTypestring `json:"logType,omitempty"`// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExemptedMembers") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}GoogleIamV1AuditLogConfig: Provides the configuration for logging atype of permissions.Example:
{ "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE", } ]}This enables 'DATA_READ' and 'DATA_WRITE' logging, whileexemptingjose@example.com from DATA_READ logging.
func (*GoogleIamV1AuditLogConfig)MarshalJSON¶
func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte,error)
typeGoogleIamV1Binding¶
type GoogleIamV1Binding struct {// Condition: The condition that is associated with this binding.// NOTE: An unsatisfied condition will not allow user access via// current// binding. Different bindings, including their conditions, are// examined// independently.Condition *GoogleTypeExpr `json:"condition,omitempty"`// Members: Specifies the identities requesting access for a Cloud// Platform resource.// `members` can have the following values://// * `allUsers`: A special identifier that represents anyone who is// on the internet; with or without a Google account.//// * `allAuthenticatedUsers`: A special identifier that represents// anyone// who is authenticated with a Google account or a service// account.//// * `user:{emailid}`: An email address that represents a specific// Google// account. For example, `alice@example.com` .////// * `serviceAccount:{emailid}`: An email address that represents a// service// account. For example,// `my-other-app@appspot.gserviceaccount.com`.//// * `group:{emailid}`: An email address that represents a Google// group.// For example, `admins@example.com`.//// * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus// unique// identifier) representing a user that has been recently deleted.// For// example, `alice@example.com?uid=123456789012345678901`. If the// user is// recovered, this value reverts to `user:{emailid}` and the// recovered user// retains the role in the binding.//// * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address// (plus// unique identifier) representing a service account that has been// recently// deleted. For example,//// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.//// If the service account is undeleted, this value reverts to// `serviceAccount:{emailid}` and the undeleted service account// retains the// role in the binding.//// * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus// unique// identifier) representing a Google group that has been recently// deleted. For example,// `admins@example.com?uid=123456789012345678901`. If// the group is recovered, this value reverts to `group:{emailid}`// and the// recovered group retains the role in the binding.////// * `domain:{domain}`: The G Suite domain (primary) that represents all// the// users of that domain. For example, `google.com` or// `example.com`.////Members []string `json:"members,omitempty"`// Role: Role that is assigned to `members`.// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.Rolestring `json:"role,omitempty"`// ForceSendFields is a list of field names (e.g. "Condition") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Condition") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleIamV1Binding: Associates `members` with a `role`.
func (*GoogleIamV1Binding)MarshalJSON¶
func (s *GoogleIamV1Binding) MarshalJSON() ([]byte,error)
typeGoogleIamV1Policy¶
type GoogleIamV1Policy struct {// AuditConfigs: Specifies cloud audit logging configuration for this// policy.AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`// Bindings: Associates a list of `members` to a `role`. Optionally, may// specify a// `condition` that determines how and when the `bindings` are applied.// Each// of the `bindings` must contain at least one member.Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`// Etag: `etag` is used for optimistic concurrency control as a way to// help// prevent simultaneous updates of a policy from overwriting each// other.// It is strongly suggested that systems make use of the `etag` in// the// read-modify-write cycle to perform policy updates in order to avoid// race// conditions: An `etag` is returned in the response to `getIamPolicy`,// and// systems are expected to put that etag in the request to// `setIamPolicy` to// ensure that their change will be applied to the same version of the// policy.//// **Important:** If you use IAM Conditions, you must include the `etag`// field// whenever you call `setIamPolicy`. If you omit this field, then IAM// allows// you to overwrite a version `3` policy with a version `1` policy, and// all of// the conditions in the version `3` policy are lost.Etagstring `json:"etag,omitempty"`// Version: Specifies the format of the policy.//// Valid values are `0`, `1`, and `3`. Requests that specify an invalid// value// are rejected.//// Any operation that affects conditional role bindings must specify// version// `3`. This requirement applies to the following operations://// * Getting a policy that includes a conditional role binding// * Adding a conditional role binding to a policy// * Changing a conditional role binding in a policy// * Removing any role binding, with or without a condition, from a// policy// that includes conditions//// **Important:** If you use IAM Conditions, you must include the `etag`// field// whenever you call `setIamPolicy`. If you omit this field, then IAM// allows// you to overwrite a version `3` policy with a version `1` policy, and// all of// the conditions in the version `3` policy are lost.//// If a policy does not include any conditions, operations on that// policy may// specify any valid version or leave the field unset.Versionint64 `json:"version,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AuditConfigs") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuditConfigs") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleIamV1Policy: An Identity and Access Management (IAM) policy,which specifies accesscontrols for Google Cloud resources.
A `Policy` is a collection of `bindings`. A `binding` binds one ormore`members` to a single `role`. Members can be user accounts, serviceaccounts,Google groups, and domains (such as G Suite). A `role` is a namedlist ofpermissions; each `role` can be an IAM predefined role or auser-createdcustom role.
Optionally, a `binding` can specify a `condition`, which is alogicalexpression that allows access to a resource only if the expressionevaluatesto `true`. A condition can add constraints based on attributes oftherequest, the resource, or both.
**JSON example:**
{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com","serviceAccount:my-project-id@appspot.gserviceaccount.com"
]},{ "role": "roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time <timestamp('2020-10-01T00:00:00.000Z')",
} } ], "etag": "BwWWja0YfJA=", "version": 3}
**YAML example:**
bindings:- members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin- members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time <
timestamp('2020-10-01T00:00:00.000Z')
- etag: BwWWja0YfJA=
- version: 3
For a description of IAM and its features, see the[IAM documentation](https://cloud.google.com/iam/docs/).
func (*GoogleIamV1Policy)MarshalJSON¶
func (s *GoogleIamV1Policy) MarshalJSON() ([]byte,error)
typeGoogleIamV1SetIamPolicyRequest¶
type GoogleIamV1SetIamPolicyRequest struct {// Policy: REQUIRED: The complete policy to be applied to the// `resource`. The size of// the policy is limited to a few 10s of KB. An empty policy is a// valid policy but certain Cloud Platform services (such as// Projects)// might reject them.Policy *GoogleIamV1Policy `json:"policy,omitempty"`// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the// policy to modify. Only// the fields in the mask will be modified. If no mask is provided,// the// following default mask is used:// paths: "bindings, etag"// This field is only used by Cloud IAM.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "Policy") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Policy") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy`method.
func (*GoogleIamV1SetIamPolicyRequest)MarshalJSON¶
func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte,error)
typeGoogleIamV1TestIamPermissionsRequest¶
type GoogleIamV1TestIamPermissionsRequest struct {// Permissions: The set of permissions to check for the `resource`.// Permissions with// wildcards (such as '*' or 'storage.*') are not allowed. For// more// information see// [IAM// Overview](https://cloud.google.com/iam/docs/overview#permissions).Permissions []string `json:"permissions,omitempty"`// ForceSendFields is a list of field names (e.g. "Permissions") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Permissions") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleIamV1TestIamPermissionsRequest: Request message for`TestIamPermissions` method.
func (*GoogleIamV1TestIamPermissionsRequest)MarshalJSON¶
func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte,error)
typeGoogleIamV1TestIamPermissionsResponse¶
type GoogleIamV1TestIamPermissionsResponse struct {// Permissions: A subset of `TestPermissionsRequest.permissions` that// the caller is// allowed.Permissions []string `json:"permissions,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Permissions") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Permissions") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleIamV1TestIamPermissionsResponse: Response message for`TestIamPermissions` method.
func (*GoogleIamV1TestIamPermissionsResponse)MarshalJSON¶
func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte,error)
typeGoogleLongrunningCancelOperationRequest¶
type GoogleLongrunningCancelOperationRequest struct {}GoogleLongrunningCancelOperationRequest: The request message forOperations.CancelOperation.
typeGoogleLongrunningListOperationsResponse¶
type GoogleLongrunningListOperationsResponse struct {// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// Operations: A list of operations that matches the specified filter in// the request.Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleLongrunningListOperationsResponse: The response message forOperations.ListOperations.
func (*GoogleLongrunningListOperationsResponse)MarshalJSON¶
func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte,error)
typeGoogleLongrunningOperation¶
type GoogleLongrunningOperation struct {// Done: If the value is `false`, it means the operation is still in// progress.// If `true`, the operation is completed, and either `error` or// `response` is// available.Donebool `json:"done,omitempty"`// Error: The error result of the operation in case of failure or// cancellation.Error *GoogleRpcStatus `json:"error,omitempty"`// Metadata: Service-specific metadata associated with the operation.// It typically// contains progress information and common metadata such as create// time.// Some services might not provide such metadata. Any method that// returns a// long-running operation should document the metadata type, if any.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: The server-assigned name, which is only unique within the same// service that// originally returns it. If you use the default HTTP mapping,// the// `name` should be a resource name ending with// `operations/{unique_id}`.Namestring `json:"name,omitempty"`// Response: The normal response of the operation in case of success.// If the original// method returns no data on success, such as `Delete`, the response// is// `google.protobuf.Empty`. If the original method is// standard// `Get`/`Create`/`Update`, the response should be the resource. For// other// methods, the response should have the type `XxxResponse`, where// `Xxx`// is the original method name. For example, if the original method// name// is `TakeSnapshot()`, the inferred response type// is// `TakeSnapshotResponse`.Responsegoogleapi.RawMessage `json:"response,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Done") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Done") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleLongrunningOperation: This resource represents a long-runningoperation that is the result of anetwork API call.
func (*GoogleLongrunningOperation)MarshalJSON¶
func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte,error)
typeGoogleProtobufEmpty¶
type GoogleProtobufEmpty struct {// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`}GoogleProtobufEmpty: A generic empty message that you can re-use toavoid defining duplicatedempty messages in your APIs. A typical example is to use it as therequestor the response type of an API method. For instance:
service Foo { rpc Bar(google.protobuf.Empty) returns(google.protobuf.Empty);
}
The JSON representation for `Empty` is empty JSON object `{}`.
typeGoogleRpcStatus¶
type GoogleRpcStatus struct {// Code: The status code, which should be an enum value of// google.rpc.Code.Codeint64 `json:"code,omitempty"`// Details: A list of messages that carry the error details. There is a// common set of// message types for APIs to use.Details []googleapi.RawMessage `json:"details,omitempty"`// Message: A developer-facing error message, which should be in// English. Any// user-facing error message should be localized and sent in// the// google.rpc.Status.details field, or localized by the client.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleRpcStatus: The `Status` type defines a logical error model thatis suitable fordifferent programming environments, including REST APIs and RPC APIs.It isused by [gRPC](https://github.com/grpc). Each `Status` messagecontainsthree pieces of data: error code, error message, and errordetails.
You can find out more about this error model and how to work with itin the[API Design Guide](https://cloud.google.com/apis/design/errors).
func (*GoogleRpcStatus)MarshalJSON¶
func (s *GoogleRpcStatus) MarshalJSON() ([]byte,error)
typeGoogleTypeExpr¶
type GoogleTypeExpr struct {// Description: Optional. Description of the expression. This is a// longer text which// describes the expression, e.g. when hovered over it in a UI.Descriptionstring `json:"description,omitempty"`// Expression: Textual representation of an expression in Common// Expression Language// syntax.Expressionstring `json:"expression,omitempty"`// Location: Optional. String indicating the location of the expression// for error// reporting, e.g. a file name and a position in the file.Locationstring `json:"location,omitempty"`// Title: Optional. Title for the expression, i.e. a short string// describing// its purpose. This can be used e.g. in UIs which allow to enter// the// expression.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GoogleTypeExpr: Represents a textual expression in the CommonExpression Language (CEL)syntax. CEL is a C-like expression language. The syntax and semanticsof CELare documented athttps://github.com/google/cel-spec.
Example (Comparison):
title: "Summary size limit"description: "Determines if a summary is less than 100 chars"expression: "document.summary.size() < 100"
Example (Equality):
title: "Requestor is owner"description: "Determines if requestor is the document owner"expression: "document.owner ==
request.auth.claims.email"
Example (Logic):
title: "Public documents"description: "Determine whether the document should be publicly
visible"
expression: "document.type != 'private' && document.type !=
'internal'"
Example (Data Manipulation):
title: "Notification string"description: "Create a notification string with a timestamp."expression: "'New message received at ' +
string(document.create_time)"
The exact variables and functions that may be referenced within anexpressionare determined by the service that evaluates it. See theservicedocumentation for additional information.
func (*GoogleTypeExpr)MarshalJSON¶
func (s *GoogleTypeExpr) MarshalJSON() ([]byte,error)
typeOperationsCancelCall¶
type OperationsCancelCall struct {// contains filtered or unexported fields}func (*OperationsCancelCall)Context¶
func (c *OperationsCancelCall) Context(ctxcontext.Context) *OperationsCancelCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*OperationsCancelCall)Do¶
func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty,error)
Do executes the "cloudprivatecatalogproducer.operations.cancel" call.Exactly one of *GoogleProtobufEmpty or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*OperationsCancelCall)Fields¶
func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*OperationsCancelCall)Header¶
func (c *OperationsCancelCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeOperationsDeleteCall¶
type OperationsDeleteCall struct {// contains filtered or unexported fields}func (*OperationsDeleteCall)Context¶
func (c *OperationsDeleteCall) Context(ctxcontext.Context) *OperationsDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*OperationsDeleteCall)Do¶
func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty,error)
Do executes the "cloudprivatecatalogproducer.operations.delete" call.Exactly one of *GoogleProtobufEmpty or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*OperationsDeleteCall)Fields¶
func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*OperationsDeleteCall)Header¶
func (c *OperationsDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeOperationsGetCall¶
type OperationsGetCall struct {// contains filtered or unexported fields}func (*OperationsGetCall)Context¶
func (c *OperationsGetCall) Context(ctxcontext.Context) *OperationsGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*OperationsGetCall)Do¶
func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation,error)
Do executes the "cloudprivatecatalogproducer.operations.get" call.Exactly one of *GoogleLongrunningOperation or error will be non-nil.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*OperationsGetCall)Fields¶
func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*OperationsGetCall)Header¶
func (c *OperationsGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*OperationsGetCall)IfNoneMatch¶
func (c *OperationsGetCall) IfNoneMatch(entityTagstring) *OperationsGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeOperationsListCall¶
type OperationsListCall struct {// contains filtered or unexported fields}func (*OperationsListCall)Context¶
func (c *OperationsListCall) Context(ctxcontext.Context) *OperationsListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*OperationsListCall)Do¶
func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse,error)
Do executes the "cloudprivatecatalogproducer.operations.list" call.Exactly one of *GoogleLongrunningListOperationsResponse or error willbe non-nil. Any non-2xx status code is an error. Response headers arein either*GoogleLongrunningListOperationsResponse.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*OperationsListCall)Fields¶
func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*OperationsListCall)Filter¶
func (c *OperationsListCall) Filter(filterstring) *OperationsListCall
Filter sets the optional parameter "filter": The standard listfilter.
func (*OperationsListCall)Header¶
func (c *OperationsListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*OperationsListCall)IfNoneMatch¶
func (c *OperationsListCall) IfNoneMatch(entityTagstring) *OperationsListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*OperationsListCall)Name¶
func (c *OperationsListCall) Name(namestring) *OperationsListCall
Name sets the optional parameter "name": The name of the operation'sparent resource.
func (*OperationsListCall)PageSize¶
func (c *OperationsListCall) PageSize(pageSizeint64) *OperationsListCall
PageSize sets the optional parameter "pageSize": The standard listpage size.
func (*OperationsListCall)PageToken¶
func (c *OperationsListCall) PageToken(pageTokenstring) *OperationsListCall
PageToken sets the optional parameter "pageToken": The standard listpage token.
func (*OperationsListCall)Pages¶
func (c *OperationsListCall) Pages(ctxcontext.Context, f func(*GoogleLongrunningListOperationsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeOperationsService¶
type OperationsService struct {// contains filtered or unexported fields}funcNewOperationsService¶
func NewOperationsService(s *Service) *OperationsService
func (*OperationsService)Cancel¶
func (r *OperationsService) Cancel(namestring, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *OperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation.
The server
makes a best effort to cancel the operation, but success isnotguaranteed. If the server doesn't support this method, itreturns`google.rpc.Code.UNIMPLEMENTED`. Clients canuseOperations.GetOperation orother methods to check whether the cancellation succeeded or whethertheoperation completed despite cancellation. On successfulcancellation,the operation is not deleted; instead, it becomes an operationwithan Operation.error value with a google.rpc.Status.code of1,corresponding to `Code.CANCELLED`.
func (*OperationsService)Delete¶
func (r *OperationsService) Delete(namestring) *OperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates thatthe client isno longer interested in the operation result. It does not canceltheoperation. If the server doesn't support this method, itreturns`google.rpc.Code.UNIMPLEMENTED`.
func (*OperationsService)Get¶
func (r *OperationsService) Get(namestring) *OperationsGetCall
Get: Gets the latest state of a long-running operation. Clients canuse thismethod to poll the operation result at intervals as recommended bythe APIservice.
func (*OperationsService)List¶
func (r *OperationsService) List() *OperationsListCall
List: Lists operations that match the specified filter in therequest. If theserver doesn't support this method, it returns`UNIMPLEMENTED`.
NOTE: the `name` binding allows API services to override thebindingto use different resource name schemes, such as `users/*/operations`.Tooverride the binding, API services can add a binding suchas"/v1/{name=users/*}/operations" to their service configuration.For backwards compatibility, the default name includes theoperationscollection id, however overriding users must ensure the namebindingis the parent resource, without the operations collection id.
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentCatalogs *CatalogsServiceOperations *OperationsService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶added inv0.3.0
NewService creates a new Service.