Movatterモバイル変換


[0]ホーム

URL:


cloudprivatecatalogproducer

package
v0.257.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:15Imported by:0

Details

Repository

github.com/googleapis/google-api-go-client

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

View Source
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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsAssociationsCreateCall)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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsAssociationsDeleteCall)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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsAssociationsGetCall)Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

func (*CatalogsAssociationsGetCall)IfNoneMatch

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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsAssociationsListCall)Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

func (*CatalogsAssociationsListCall)IfNoneMatch

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

PageSize sets the optional parameter "pageSize": The maximum numberof catalog associations to return.

func (*CatalogsAssociationsListCall)PageToken

PageToken sets the optional parameter "pageToken": A pagination tokenreturned from the previous call to`ListAssociations`.

func (*CatalogsAssociationsListCall)Pages

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

Delete: Deletes the given Association.

func (*CatalogsAssociationsService)Get

Get: Returns the requested Association resource.

func (*CatalogsAssociationsService)List

List: Lists all Association resources under a catalog.

typeCatalogsCreateCall

type CatalogsCreateCall struct {// contains filtered or unexported fields}

func (*CatalogsCreateCall)Context

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

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

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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsDeleteCall)Force

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

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

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

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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsGetIamPolicyCall)Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

func (*CatalogsGetIamPolicyCall)IfNoneMatch

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)OptionsRequestedPolicyVersionadded 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

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

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

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

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

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

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

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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsProductsCopyCall)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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsProductsCreateCall)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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsProductsDeleteCall)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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsProductsGetCall)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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsProductsIconsUploadCall)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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsProductsListCall)Filter

Filter sets the optional parameter "filter": A filter expression usedto restrict the returned results basedupon properties of the product.

func (*CatalogsProductsListCall)Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

func (*CatalogsProductsListCall)IfNoneMatch

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

PageSize sets the optional parameter "pageSize": The maximum numberof products to return.

func (*CatalogsProductsListCall)PageToken

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

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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsProductsPatchCall)Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

func (*CatalogsProductsPatchCall)UpdateMask

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

Delete: Hard deletes a Product.

func (*CatalogsProductsService)Get

Get: Returns the requested Product resource.

func (*CatalogsProductsService)List

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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsProductsVersionsCreateCall)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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsProductsVersionsDeleteCall)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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsProductsVersionsGetCall)Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

func (*CatalogsProductsVersionsGetCall)IfNoneMatch

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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsProductsVersionsListCall)Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

func (*CatalogsProductsVersionsListCall)IfNoneMatch

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

PageSize sets the optional parameter "pageSize": The maximum numberof versions to return.

func (*CatalogsProductsVersionsListCall)PageToken

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

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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsProductsVersionsPatchCall)Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

func (*CatalogsProductsVersionsPatchCall)UpdateMask

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

Create: Creates a Version instance under a given Product.

func (*CatalogsProductsVersionsService)Delete

Delete: Hard deletes a Version.

func (*CatalogsProductsVersionsService)Get

Get: Returns the requested Version resource.

func (*CatalogsProductsVersionsService)List

List: Lists Version resources that the producer has access to, withinthescope of the parent Product.

func (*CatalogsProductsVersionsService)Patch

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

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

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

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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsSetIamPolicyCall)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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*CatalogsTestIamPermissionsCall)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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OperationsListCall)Filter

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

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

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

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

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

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

func New(client *http.Client) (*Service,error)

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.

funcNewServiceadded inv0.3.0

func NewService(ctxcontext.Context, opts ...option.ClientOption) (*Service,error)

NewService creates a new Service.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp