Movatterモバイル変換


[0]ホーム

URL:


apigeeregistry

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:18Imported by:0

Details

Repository

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

Links

Documentation

Overview

Package apigeeregistry provides access to the Apigee Registry API.

For product documentation, see:https://cloud.google.com/apigee/docs/api-hub/what-is-api-hub

Library status

These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.

When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/apigeeregistry/v1"...ctx := context.Background()apigeeregistryService, err := apigeeregistry.NewService(ctx)

In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault 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 APIkeys), usegoogle.golang.org/api/option.WithAPIKey:

apigeeregistryService, err := apigeeregistry.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)apigeeregistryService, err := apigeeregistry.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seegoogle.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeApi

type Api struct {// Annotations: Annotations attach non-identifying metadata to resources.// Annotation keys and values are less restricted than those of labels, but// should be generally used for small values of broad interest. Larger, topic-// specific metadata should be stored in Artifacts.Annotations map[string]string `json:"annotations,omitempty"`// Availability: A user-definable description of the availability of this// service. Format: free-form, but we expect single words that describe// availability, e.g., "NONE", "TESTING", "PREVIEW", "GENERAL", "DEPRECATED",// "SHUTDOWN".Availabilitystring `json:"availability,omitempty"`// CreateTime: Output only. Creation timestamp.CreateTimestring `json:"createTime,omitempty"`// Description: A detailed description.Descriptionstring `json:"description,omitempty"`// DisplayName: Human-meaningful name.DisplayNamestring `json:"displayName,omitempty"`// Labels: Labels attach identifying metadata to resources. Identifying// metadata can be used to filter list operations. Label keys and values can be// no longer than 64 characters (Unicode codepoints), can only contain// lowercase letters, numeric characters, underscores, and dashes.// International characters are allowed. No more than 64 user labels can be// associated with one resource (System labels are excluded). See//https://goo.gl/xmQnxf for more information and examples of labels. System// reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and// cannot be changed.Labels map[string]string `json:"labels,omitempty"`// Name: Resource name.Namestring `json:"name,omitempty"`// RecommendedDeployment: The recommended deployment of the API. Format:// `projects/{project}/locations/{location}/apis/{api}/deployments/{deployment}`RecommendedDeploymentstring `json:"recommendedDeployment,omitempty"`// RecommendedVersion: The recommended version of the API. Format:// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`RecommendedVersionstring `json:"recommendedVersion,omitempty"`// UpdateTime: Output only. Last update timestamp.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. "Annotations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Annotations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Api: A top-level description of an API. Produced by producers and arecommitments to provide services.

func (Api)MarshalJSON

func (sApi) MarshalJSON() ([]byte,error)

typeApiDeployment

type ApiDeployment struct {// AccessGuidance: Text briefly describing how to access the endpoint. Changes// to this value will not affect the revision.AccessGuidancestring `json:"accessGuidance,omitempty"`// Annotations: Annotations attach non-identifying metadata to resources.// Annotation keys and values are less restricted than those of labels, but// should be generally used for small values of broad interest. Larger, topic-// specific metadata should be stored in Artifacts.Annotations map[string]string `json:"annotations,omitempty"`// ApiSpecRevision: The full resource name (including revision ID) of the spec// of the API being served by the deployment. Changes to this value will update// the revision. Format:// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/// {spec@revision}`ApiSpecRevisionstring `json:"apiSpecRevision,omitempty"`// CreateTime: Output only. Creation timestamp; when the deployment resource// was created.CreateTimestring `json:"createTime,omitempty"`// Description: A detailed description.Descriptionstring `json:"description,omitempty"`// DisplayName: Human-meaningful name.DisplayNamestring `json:"displayName,omitempty"`// EndpointUri: The address where the deployment is serving. Changes to this// value will update the revision.EndpointUristring `json:"endpointUri,omitempty"`// ExternalChannelUri: The address of the external channel of the API (e.g.,// the Developer Portal). Changes to this value will not affect the revision.ExternalChannelUristring `json:"externalChannelUri,omitempty"`// IntendedAudience: Text briefly identifying the intended audience of the API.// Changes to this value will not affect the revision.IntendedAudiencestring `json:"intendedAudience,omitempty"`// Labels: Labels attach identifying metadata to resources. Identifying// metadata can be used to filter list operations. Label keys and values can be// no longer than 64 characters (Unicode codepoints), can only contain// lowercase letters, numeric characters, underscores and dashes. International// characters are allowed. No more than 64 user labels can be associated with// one resource (System labels are excluded). Seehttps://goo.gl/xmQnxf for// more information and examples of labels. System reserved label keys are// prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.Labels map[string]string `json:"labels,omitempty"`// Name: Resource name.Namestring `json:"name,omitempty"`// RevisionCreateTime: Output only. Revision creation timestamp; when the// represented revision was created.RevisionCreateTimestring `json:"revisionCreateTime,omitempty"`// RevisionId: Output only. Immutable. The revision ID of the deployment. A new// revision is committed whenever the deployment contents are changed. The// format is an 8-character hexadecimal string.RevisionIdstring `json:"revisionId,omitempty"`// RevisionUpdateTime: Output only. Last update timestamp: when the represented// revision was last modified.RevisionUpdateTimestring `json:"revisionUpdateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccessGuidance") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccessGuidance") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ApiDeployment: Describes a service running at particular address thatprovides a particular version of an API. ApiDeployments have revisions whichcorrespond to different configurations of a single deployment in time.Revision identifiers should be updated whenever the served API spec orendpoint address changes.

func (ApiDeployment)MarshalJSON

func (sApiDeployment) MarshalJSON() ([]byte,error)

typeApiSpec

type ApiSpec struct {// Annotations: Annotations attach non-identifying metadata to resources.// Annotation keys and values are less restricted than those of labels, but// should be generally used for small values of broad interest. Larger, topic-// specific metadata should be stored in Artifacts.Annotations map[string]string `json:"annotations,omitempty"`// Contents: Input only. The contents of the spec. Provided by API callers when// specs are created or updated. To access the contents of a spec, use// GetApiSpecContents.Contentsstring `json:"contents,omitempty"`// CreateTime: Output only. Creation timestamp; when the spec resource was// created.CreateTimestring `json:"createTime,omitempty"`// Description: A detailed description.Descriptionstring `json:"description,omitempty"`// Filename: A possibly-hierarchical name used to refer to the spec from other// specs.Filenamestring `json:"filename,omitempty"`// Hash: Output only. A SHA-256 hash of the spec's contents. If the spec is// gzipped, this is the hash of the uncompressed spec.Hashstring `json:"hash,omitempty"`// Labels: Labels attach identifying metadata to resources. Identifying// metadata can be used to filter list operations. Label keys and values can be// no longer than 64 characters (Unicode codepoints), can only contain// lowercase letters, numeric characters, underscores and dashes. International// characters are allowed. No more than 64 user labels can be associated with// one resource (System labels are excluded). Seehttps://goo.gl/xmQnxf for// more information and examples of labels. System reserved label keys are// prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.Labels map[string]string `json:"labels,omitempty"`// MimeType: A style (format) descriptor for this spec that is specified as a// Media Type (https://en.wikipedia.org/wiki/Media_type). Possible values// include `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`,// and `application/vnd.apigee.graphql`, with possible suffixes representing// compression types. These hypothetical names are defined in the vendor tree// defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final.// Content types can specify compression. Currently only GZip compression is// supported (indicated with "+gzip").MimeTypestring `json:"mimeType,omitempty"`// Name: Resource name.Namestring `json:"name,omitempty"`// RevisionCreateTime: Output only. Revision creation timestamp; when the// represented revision was created.RevisionCreateTimestring `json:"revisionCreateTime,omitempty"`// RevisionId: Output only. Immutable. The revision ID of the spec. A new// revision is committed whenever the spec contents are changed. The format is// an 8-character hexadecimal string.RevisionIdstring `json:"revisionId,omitempty"`// RevisionUpdateTime: Output only. Last update timestamp: when the represented// revision was last modified.RevisionUpdateTimestring `json:"revisionUpdateTime,omitempty"`// SizeBytes: Output only. The size of the spec file in bytes. If the spec is// gzipped, this is the size of the uncompressed spec.SizeBytesint64 `json:"sizeBytes,omitempty"`// SourceUri: The original source URI of the spec (if one exists). This is an// external location that can be used for reference purposes but which may not// be authoritative since this external resource may change after the spec is// retrieved.SourceUristring `json:"sourceUri,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Annotations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Annotations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ApiSpec: Describes a version of an API in a structured way. ApiSpecs provideformal descriptions that consumers can use to use a version. ApiSpecresources are intended to be fully-resolved descriptions of an ApiVersion.When specs consist of multiple files, these should be bundled together(e.g., in a zip archive) and stored as a unit. Multiple specs can exist toprovide representations in different API description formats.Synchronization of these representations would be provided by tooling andbackground services.

func (ApiSpec)MarshalJSON

func (sApiSpec) MarshalJSON() ([]byte,error)

typeApiVersion

type ApiVersion struct {// Annotations: Annotations attach non-identifying metadata to resources.// Annotation keys and values are less restricted than those of labels, but// should be generally used for small values of broad interest. Larger, topic-// specific metadata should be stored in Artifacts.Annotations map[string]string `json:"annotations,omitempty"`// CreateTime: Output only. Creation timestamp.CreateTimestring `json:"createTime,omitempty"`// Description: A detailed description.Descriptionstring `json:"description,omitempty"`// DisplayName: Human-meaningful name.DisplayNamestring `json:"displayName,omitempty"`// Labels: Labels attach identifying metadata to resources. Identifying// metadata can be used to filter list operations. Label keys and values can be// no longer than 64 characters (Unicode codepoints), can only contain// lowercase letters, numeric characters, underscores and dashes. International// characters are allowed. No more than 64 user labels can be associated with// one resource (System labels are excluded). Seehttps://goo.gl/xmQnxf for// more information and examples of labels. System reserved label keys are// prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.Labels map[string]string `json:"labels,omitempty"`// Name: Resource name.Namestring `json:"name,omitempty"`// PrimarySpec: The primary spec for this version. Format:// projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{// spec}PrimarySpecstring `json:"primarySpec,omitempty"`// State: A user-definable description of the lifecycle phase of this API// version. Format: free-form, but we expect single words that describe API// maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION",// "DEPRECATED", "RETIRED".Statestring `json:"state,omitempty"`// UpdateTime: Output only. Last update timestamp.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. "Annotations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Annotations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ApiVersion: Describes a particular version of an API. ApiVersions are whatconsumers actually use.

func (ApiVersion)MarshalJSON

func (sApiVersion) MarshalJSON() ([]byte,error)

typeArtifact

type Artifact struct {// Annotations: Annotations attach non-identifying metadata to resources.// Annotation keys and values are less restricted than those of labels, but// should be generally used for small values of broad interest. Larger, topic-// specific metadata should be stored in Artifacts.Annotations map[string]string `json:"annotations,omitempty"`// Contents: Input only. The contents of the artifact. Provided by API callers// when artifacts are created or replaced. To access the contents of an// artifact, use GetArtifactContents.Contentsstring `json:"contents,omitempty"`// CreateTime: Output only. Creation timestamp.CreateTimestring `json:"createTime,omitempty"`// Hash: Output only. A SHA-256 hash of the artifact's contents. If the// artifact is gzipped, this is the hash of the uncompressed artifact.Hashstring `json:"hash,omitempty"`// Labels: Labels attach identifying metadata to resources. Identifying// metadata can be used to filter list operations. Label keys and values can be// no longer than 64 characters (Unicode codepoints), can only contain// lowercase letters, numeric characters, underscores and dashes. International// characters are allowed. No more than 64 user labels can be associated with// one resource (System labels are excluded). Seehttps://goo.gl/xmQnxf for// more information and examples of labels. System reserved label keys are// prefixed with "registry.googleapis.com/" and cannot be changed.Labels map[string]string `json:"labels,omitempty"`// MimeType: A content type specifier for the artifact. Content type specifiers// are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible// "schema" parameter that specifies a schema for the stored information.// Content types can specify compression. Currently only GZip compression is// supported (indicated with "+gzip").MimeTypestring `json:"mimeType,omitempty"`// Name: Resource name.Namestring `json:"name,omitempty"`// SizeBytes: Output only. The size of the artifact in bytes. If the artifact// is gzipped, this is the size of the uncompressed artifact.SizeBytesint64 `json:"sizeBytes,omitempty"`// UpdateTime: Output only. Last update timestamp.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. "Annotations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Annotations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Artifact: Artifacts of resources. Artifacts are unique (single-value) perresource and are used to store metadata that is too large or numerous to bestored directly on the resource. Since artifacts are stored separately fromparent resources, they should generally be used for metadata that is neededinfrequently, i.e., not for display in primary views of the resource butperhaps displayed or downloaded upon request. The `ListArtifacts` methodallows artifacts to be quickly enumerated and checked for presence withoutdownloading their (potentially-large) contents.

func (Artifact)MarshalJSON

func (sArtifact) MarshalJSON() ([]byte,error)

typeBinding

type Binding struct {// Condition: The condition that is associated with this binding. If the// condition evaluates to `true`, then this binding applies to the current// request. If the condition evaluates to `false`, then this binding does not// apply to the current request. However, a different role binding might grant// the same role to one or more of the principals in this binding. To learn// which resources support conditions in their IAM policies, see the IAM// documentation// (https://cloud.google.com/iam/help/conditions/resource-policies).Condition *Expr `json:"condition,omitempty"`// Members: Specifies the principals requesting access for a Google Cloud// 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. Does not include identities that come from external identity// providers (IdPs) through identity federation. * `user:{emailid}`: An email// address that represents a specific Google account. For example,// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that// represents a Google service account. For example,// `my-other-app@appspot.gserviceaccount.com`. *// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An// identifier for a Kubernetes service account// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *// `group:{emailid}`: An email address that represents a Google group. For// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain// (primary) that represents all the users of that domain. For example,// `google.com` or `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.Members []string `json:"members,omitempty"`// Role: Role that is assigned to the list of `members`, or principals. 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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Binding: Associates `members`, or principals, with a `role`.

func (Binding)MarshalJSON

func (sBinding) MarshalJSON() ([]byte,error)

typeBuildadded inv0.110.0

type Build struct {// CommitId: Output only. Commit ID of the latest commit in the build.CommitIdstring `json:"commitId,omitempty"`// CommitTime: Output only. Commit time of the latest commit in the build.CommitTimestring `json:"commitTime,omitempty"`// Repo: Output only. Path of the open source repository:// github.com/apigee/registry.Repostring `json:"repo,omitempty"`// ForceSendFields is a list of field names (e.g. "CommitId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CommitId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Build: Build information of the Instance if it's in `ACTIVE` state.

func (Build)MarshalJSONadded inv0.110.0

func (sBuild) MarshalJSON() ([]byte,error)

typeCancelOperationRequest

type CancelOperationRequest struct {}

CancelOperationRequest: The request message for Operations.CancelOperation.

typeConfig

type Config struct {// CmekKeyName: Required. The Customer Managed Encryption Key (CMEK) used for// data encryption. The CMEK name should follow the format of// `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,// where the `location` must match InstanceConfig.location.CmekKeyNamestring `json:"cmekKeyName,omitempty"`// Location: Output only. The GCP location where the Instance resides.Locationstring `json:"location,omitempty"`// ForceSendFields is a list of field names (e.g. "CmekKeyName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CmekKeyName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Config: Available configurations to provision an Instance.

func (Config)MarshalJSON

func (sConfig) MarshalJSON() ([]byte,error)

typeEmpty

type Empty struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}

Empty: A generic empty message that you can re-use to avoid definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

typeExpr

type Expr 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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Expr: Represents a textual expression in the Common Expression Language(CEL) syntax. CEL is a C-like expression language. The syntax and semanticsof CEL are documented athttps://github.com/google/cel-spec. Example(Comparison): title: "Summary size limit" description: "Determines if asummary is less than 100 chars" expression: "document.summary.size() < 100"Example (Equality): title: "Requestor is owner" description: "Determines ifrequestor 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 messagereceived at ' + string(document.create_time)" The exact variables andfunctions that may be referenced within an expression are determined by theservice that evaluates it. See the service documentation for additionalinformation.

func (Expr)MarshalJSON

func (sExpr) MarshalJSON() ([]byte,error)

typeHttpBody

type HttpBody struct {// ContentType: The HTTP Content-Type header value specifying the content type// of the body.ContentTypestring `json:"contentType,omitempty"`// Data: The HTTP request/response body as raw binary.Datastring `json:"data,omitempty"`// Extensions: Application specific response metadata. Must be set in the first// response for streaming APIs.Extensions []googleapi.RawMessage `json:"extensions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContentType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

HttpBody: Message that represents an arbitrary HTTP body. It should only beused for payload formats that can't be represented as JSON, such as rawbinary or an HTML page. This message can be used both in streaming andnon-streaming API methods in the request as well as the response. It can beused as a top-level request field, which is convenient if one wants toextract parameters from either the URL or HTTP template into the requestfields and also want access to the raw HTTP body. Example: messageGetResourceRequest { // A unique request id. string request_id = 1; // Theraw HTTP body is bound to this field. google.api.HttpBody http_body = 2; }service ResourceService { rpc GetResource(GetResourceRequest) returns(google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns(google.protobuf.Empty); } Example with streaming methods: serviceCaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (streamgoogle.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns(stream google.api.HttpBody); } Use of this type only changes how therequest and response bodies are handled, all other features will continue towork unchanged.

func (HttpBody)MarshalJSON

func (sHttpBody) MarshalJSON() ([]byte,error)

typeInstance

type Instance struct {// Build: Output only. Build info of the Instance if it's in `ACTIVE` state.Build *Build `json:"build,omitempty"`// Config: Required. Config of the Instance.Config *Config `json:"config,omitempty"`// CreateTime: Output only. Creation timestamp.CreateTimestring `json:"createTime,omitempty"`// Name: Format: `projects/*/locations/*/instance`. Currently only// `locations/global` is supported.Namestring `json:"name,omitempty"`// State: Output only. The current state of the Instance.//// Possible values://   "STATE_UNSPECIFIED" - The default value. This value is used if the state// is omitted.//   "INACTIVE" - The Instance has not been initialized or has been deleted.//   "CREATING" - The Instance is being created.//   "ACTIVE" - The Instance has been created and is ready for use.//   "UPDATING" - The Instance is being updated.//   "DELETING" - The Instance is being deleted.//   "FAILED" - The Instance encountered an error during a state change.Statestring `json:"state,omitempty"`// StateMessage: Output only. Extra information of Instance.State if the state// is `FAILED`.StateMessagestring `json:"stateMessage,omitempty"`// UpdateTime: Output only. Last update timestamp.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. "Build") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Build") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Instance: An Instance represents the instance resources of the Registry.Currently, only one instance is allowed for each project.

func (Instance)MarshalJSON

func (sInstance) MarshalJSON() ([]byte,error)

typeListApiDeploymentRevisionsResponse

type ListApiDeploymentRevisionsResponse struct {// ApiDeployments: The revisions of the deployment.ApiDeployments []*ApiDeployment `json:"apiDeployments,omitempty"`// NextPageToken: A token that can be sent as `page_token` to retrieve the next// page. If this field is omitted, there are no subsequent pages.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. "ApiDeployments") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApiDeployments") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListApiDeploymentRevisionsResponse: Response message forListApiDeploymentRevisionsResponse.

func (ListApiDeploymentRevisionsResponse)MarshalJSON

typeListApiDeploymentsResponse

type ListApiDeploymentsResponse struct {// ApiDeployments: The deployments from the specified publisher.ApiDeployments []*ApiDeployment `json:"apiDeployments,omitempty"`// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.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. "ApiDeployments") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApiDeployments") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListApiDeploymentsResponse: Response message for ListApiDeployments.

func (ListApiDeploymentsResponse)MarshalJSON

func (sListApiDeploymentsResponse) MarshalJSON() ([]byte,error)

typeListApiSpecRevisionsResponse

type ListApiSpecRevisionsResponse struct {// ApiSpecs: The revisions of the spec.ApiSpecs []*ApiSpec `json:"apiSpecs,omitempty"`// NextPageToken: A token that can be sent as `page_token` to retrieve the next// page. If this field is omitted, there are no subsequent pages.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. "ApiSpecs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApiSpecs") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListApiSpecRevisionsResponse: Response message forListApiSpecRevisionsResponse.

func (ListApiSpecRevisionsResponse)MarshalJSON

func (sListApiSpecRevisionsResponse) MarshalJSON() ([]byte,error)

typeListApiSpecsResponse

type ListApiSpecsResponse struct {// ApiSpecs: The specs from the specified publisher.ApiSpecs []*ApiSpec `json:"apiSpecs,omitempty"`// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.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. "ApiSpecs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApiSpecs") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListApiSpecsResponse: Response message for ListApiSpecs.

func (ListApiSpecsResponse)MarshalJSON

func (sListApiSpecsResponse) MarshalJSON() ([]byte,error)

typeListApiVersionsResponse

type ListApiVersionsResponse struct {// ApiVersions: The versions from the specified publisher.ApiVersions []*ApiVersion `json:"apiVersions,omitempty"`// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.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. "ApiVersions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApiVersions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListApiVersionsResponse: Response message for ListApiVersions.

func (ListApiVersionsResponse)MarshalJSON

func (sListApiVersionsResponse) MarshalJSON() ([]byte,error)

typeListApisResponse

type ListApisResponse struct {// Apis: The APIs from the specified publisher.Apis []*Api `json:"apis,omitempty"`// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.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. "Apis") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Apis") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListApisResponse: Response message for ListApis.

func (ListApisResponse)MarshalJSON

func (sListApisResponse) MarshalJSON() ([]byte,error)

typeListArtifactsResponse

type ListArtifactsResponse struct {// Artifacts: The artifacts from the specified publisher.Artifacts []*Artifact `json:"artifacts,omitempty"`// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.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. "Artifacts") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Artifacts") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListArtifactsResponse: Response message for ListArtifacts.

func (ListArtifactsResponse)MarshalJSON

func (sListArtifactsResponse) MarshalJSON() ([]byte,error)

typeListLocationsResponse

type ListLocationsResponse struct {// Locations: A list of locations that matches the specified filter in the// request.Locations []*Location `json:"locations,omitempty"`// NextPageToken: The standard List next-page token.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. "Locations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Locations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListLocationsResponse: The response message for Locations.ListLocations.

func (ListLocationsResponse)MarshalJSON

func (sListLocationsResponse) MarshalJSON() ([]byte,error)

typeListOperationsResponse

type ListOperationsResponse 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 []*Operation `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListOperationsResponse: The response message for Operations.ListOperations.

func (ListOperationsResponse)MarshalJSON

func (sListOperationsResponse) MarshalJSON() ([]byte,error)

typeLocation

type Location struct {// DisplayName: The friendly name for this location, typically a nearby city// name. For example, "Tokyo".DisplayNamestring `json:"displayName,omitempty"`// Labels: Cross-service attributes for the location. For example// {"cloud.googleapis.com/region": "us-east1"}Labels map[string]string `json:"labels,omitempty"`// LocationId: The canonical id for this location. For example: "us-east1".LocationIdstring `json:"locationId,omitempty"`// Metadata: Service-specific metadata. For example the available capacity at// the given location.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: Resource name for the location, which may vary between// implementations. For example:// "projects/example-project/locations/us-east1"Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DisplayName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisplayName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Location: A resource that represents a Google Cloud location.

func (Location)MarshalJSON

func (sLocation) MarshalJSON() ([]byte,error)

typeOperation

type Operation 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 *Status `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, successful response of the operation. 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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Operation: This resource represents a long-running operation that is theresult of a network API call.

func (Operation)MarshalJSON

func (sOperation) MarshalJSON() ([]byte,error)

typeOperationMetadata

type OperationMetadata struct {// ApiVersion: API version used to start the operation.ApiVersionstring `json:"apiVersion,omitempty"`// CancellationRequested: Identifies whether the user has requested// cancellation of the operation. Operations that have successfully been// cancelled have Operation.error value with a google.rpc.Status.code of 1,// corresponding to `Code.CANCELLED`.CancellationRequestedbool `json:"cancellationRequested,omitempty"`// CreateTime: The time the operation was created.CreateTimestring `json:"createTime,omitempty"`// EndTime: The time the operation finished running.EndTimestring `json:"endTime,omitempty"`// StatusMessage: Human-readable status of the operation, if any.StatusMessagestring `json:"statusMessage,omitempty"`// Target: Server-defined resource path for the target of the operation.Targetstring `json:"target,omitempty"`// Verb: Name of the verb executed by the operation.Verbstring `json:"verb,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApiVersion") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

OperationMetadata: Represents the metadata of the long-running operation.

func (OperationMetadata)MarshalJSON

func (sOperationMetadata) MarshalJSON() ([]byte,error)

typePolicy

type Policy struct {// Bindings: Associates a list of `members`, or principals, with 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// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;// up to 250 of these principals can be Google groups. Each occurrence of a// principal counts towards these limits. For example, if the `bindings` grant// 50 different roles to `user:alice@example.com`, and not to any other// principal, then you can add another 1,450 principals to the `bindings` in// the `Policy`.Bindings []*Binding `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. To learn which resources support// conditions in their IAM policies, see the IAM documentation// (https://cloud.google.com/iam/help/conditions/resource-policies).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. "Bindings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Bindings") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Policy: An Identity and Access Management (IAM) policy, which specifiesaccess controls for Google Cloud resources. A `Policy` is a collection of`bindings`. A `binding` binds one or more `members`, or principals, to asingle `role`. Principals can be user accounts, service accounts, Googlegroups, and domains (such as G Suite). A `role` is a named list ofpermissions; each `role` can be an IAM predefined role or a user-createdcustom role. For some types of Google Cloud resources, a `binding` can alsospecify a `condition`, which is a logical expression that allows access to aresource only if the expression evaluates to `true`. A condition can addconstraints based on attributes of the request, the resource, or both. Tolearn which resources support conditions in their IAM policies, see the IAMdocumentation(https://cloud.google.com/iam/help/conditions/resource-policies). **JSONexample:** ``` { "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.comrole: roles/resourcemanager.organizationAdmin - members: -user:eve@example.com role: roles/resourcemanager.organizationViewercondition: title: expirable access description: Does not grant access afterSep 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 (Policy)MarshalJSON

func (sPolicy) MarshalJSON() ([]byte,error)

typeProjectsLocationsApisArtifactsCreateCall

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

func (*ProjectsLocationsApisArtifactsCreateCall)ArtifactId

ArtifactId sets the optional parameter "artifactId": Required. The ID to usefor the artifact, which will become the final component of the artifact'sresource name. This value should be 4-63 characters, and valid charactersare /a-z-/. Following AIP-162, IDs must not have the form of a UUID.

func (*ProjectsLocationsApisArtifactsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisArtifactsCreateCall)Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.create" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsApisArtifactsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisArtifactsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisArtifactsDeleteCall

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

func (*ProjectsLocationsApisArtifactsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisArtifactsDeleteCall)Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.

func (*ProjectsLocationsApisArtifactsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisArtifactsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisArtifactsGetCall

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

func (*ProjectsLocationsApisArtifactsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisArtifactsGetCall)Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.get" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsApisArtifactsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisArtifactsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisArtifactsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisArtifactsGetContentsCall

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

func (*ProjectsLocationsApisArtifactsGetContentsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisArtifactsGetContentsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.getContents" call.Any non-2xx status code is an error. Response headers are in either*HttpBody.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 was returned.

func (*ProjectsLocationsApisArtifactsGetContentsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisArtifactsGetContentsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisArtifactsGetContentsCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisArtifactsGetIamPolicyCall

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

func (*ProjectsLocationsApisArtifactsGetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisArtifactsGetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisArtifactsGetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisArtifactsGetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisArtifactsGetIamPolicyCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisArtifactsGetIamPolicyCall)OptionsRequestedPolicyVersion

func (c *ProjectsLocationsApisArtifactsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *ProjectsLocationsApisArtifactsGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).

typeProjectsLocationsApisArtifactsListCall

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

func (*ProjectsLocationsApisArtifactsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisArtifactsListCall)Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.list" call.Any non-2xx status code is an error. Response headers are in either*ListArtifactsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsApisArtifactsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisArtifactsListCall)Filter

Filter sets the optional parameter "filter": An expression that can be usedto filter the list. Filters use the Common Expression Language and can referto all message fields except contents.

func (*ProjectsLocationsApisArtifactsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisArtifactsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisArtifactsListCall)OrderByadded inv0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list offields, e.g. "foo,bar" Fields can be sorted in descending order using the"desc" identifier, e.g. "foo desc,bar"

func (*ProjectsLocationsApisArtifactsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofartifacts to return. The service may return fewer than this value. Ifunspecified, at most 50 values will be returned. The maximum is 1000; valuesabove 1000 will be coerced to 1000.

func (*ProjectsLocationsApisArtifactsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListArtifacts` call. Provide this to retrieve thesubsequent page. When paginating, all other parameters provided to`ListArtifacts` must match the call that provided the page token.

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

typeProjectsLocationsApisArtifactsReplaceArtifactCall

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

func (*ProjectsLocationsApisArtifactsReplaceArtifactCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisArtifactsReplaceArtifactCall)Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.replaceArtifact" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsApisArtifactsReplaceArtifactCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisArtifactsReplaceArtifactCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisArtifactsService

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

func (*ProjectsLocationsApisArtifactsService)Create

Create: Creates a specified artifact.

  • parent: The parent, which owns this collection of artifacts. Format:`{parent}`.

func (*ProjectsLocationsApisArtifactsService)Delete

Delete: Removes a specified artifact.

- name: The name of the artifact to delete. Format: `{parent}/artifacts/*`.

func (*ProjectsLocationsApisArtifactsService)Get

Get: Returns a specified artifact.

- name: The name of the artifact to retrieve. Format: `{parent}/artifacts/*`.

func (*ProjectsLocationsApisArtifactsService)GetContents

GetContents: Returns the contents of a specified artifact. If artifacts arestored with GZip compression, the default behavior is to return the artifactuncompressed (the mime_type response field indicates the exact formatreturned).

  • name: The name of the artifact whose contents should be retrieved. Format:`{parent}/artifacts/*`.

func (*ProjectsLocationsApisArtifactsService)GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsApisArtifactsService)List

List: Returns matching artifacts.

  • parent: The parent, which owns this collection of artifacts. Format:`{parent}`.

func (*ProjectsLocationsApisArtifactsService)ReplaceArtifact

ReplaceArtifact: Used to replace a specified artifact.

- name: Resource name.

func (*ProjectsLocationsApisArtifactsService)SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsApisArtifactsService)TestIamPermissions

TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.

typeProjectsLocationsApisArtifactsSetIamPolicyCall

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

func (*ProjectsLocationsApisArtifactsSetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisArtifactsSetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisArtifactsSetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisArtifactsSetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisArtifactsTestIamPermissionsCall

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

func (*ProjectsLocationsApisArtifactsTestIamPermissionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisArtifactsTestIamPermissionsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsApisArtifactsTestIamPermissionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisArtifactsTestIamPermissionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisCreateCall

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

func (*ProjectsLocationsApisCreateCall)ApiId

ApiId sets the optional parameter "apiId": Required. The ID to use for theAPI, which will become the final component of the API's resource name. Thisvalue should be 4-63 characters, and valid characters are /a-z-/. FollowingAIP-162, IDs must not have the form of a UUID.

func (*ProjectsLocationsApisCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisCreateCall)Do

Do executes the "apigeeregistry.projects.locations.apis.create" call.Any non-2xx status code is an error. Response headers are in either*Api.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 was returned.

func (*ProjectsLocationsApisCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisDeleteCall

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

func (*ProjectsLocationsApisDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeleteCall)Do

Do executes the "apigeeregistry.projects.locations.apis.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.

func (*ProjectsLocationsApisDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeleteCall)Forceadded inv0.88.0

Force sets the optional parameter "force": If set to true, any childresources will also be deleted. (Otherwise, the request will only work ifthere are no child resources.)

func (*ProjectsLocationsApisDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisDeploymentsArtifactsCreateCall

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

func (*ProjectsLocationsApisDeploymentsArtifactsCreateCall)ArtifactId

ArtifactId sets the optional parameter "artifactId": Required. The ID to usefor the artifact, which will become the final component of the artifact'sresource name. This value should be 4-63 characters, and valid charactersare /a-z-/. Following AIP-162, IDs must not have the form of a UUID.

func (*ProjectsLocationsApisDeploymentsArtifactsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsArtifactsCreateCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.create" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsApisDeploymentsArtifactsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsArtifactsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisDeploymentsArtifactsDeleteCall

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

func (*ProjectsLocationsApisDeploymentsArtifactsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsArtifactsDeleteCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.

func (*ProjectsLocationsApisDeploymentsArtifactsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsArtifactsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisDeploymentsArtifactsGetCall

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

func (*ProjectsLocationsApisDeploymentsArtifactsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsArtifactsGetCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.get" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsApisDeploymentsArtifactsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsArtifactsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisDeploymentsArtifactsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisDeploymentsArtifactsGetContentsCall

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

func (*ProjectsLocationsApisDeploymentsArtifactsGetContentsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsArtifactsGetContentsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.getContents" call.Any non-2xx status code is an error. Response headers are in either*HttpBody.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 was returned.

func (*ProjectsLocationsApisDeploymentsArtifactsGetContentsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsArtifactsGetContentsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisDeploymentsArtifactsGetContentsCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisDeploymentsArtifactsListCall

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

func (*ProjectsLocationsApisDeploymentsArtifactsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsArtifactsListCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.list" call.Any non-2xx status code is an error. Response headers are in either*ListArtifactsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsApisDeploymentsArtifactsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsArtifactsListCall)Filter

Filter sets the optional parameter "filter": An expression that can be usedto filter the list. Filters use the Common Expression Language and can referto all message fields except contents.

func (*ProjectsLocationsApisDeploymentsArtifactsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisDeploymentsArtifactsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisDeploymentsArtifactsListCall)OrderByadded inv0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list offields, e.g. "foo,bar" Fields can be sorted in descending order using the"desc" identifier, e.g. "foo desc,bar"

func (*ProjectsLocationsApisDeploymentsArtifactsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofartifacts to return. The service may return fewer than this value. Ifunspecified, at most 50 values will be returned. The maximum is 1000; valuesabove 1000 will be coerced to 1000.

func (*ProjectsLocationsApisDeploymentsArtifactsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListArtifacts` call. Provide this to retrieve thesubsequent page. When paginating, all other parameters provided to`ListArtifacts` must match the call that provided the page token.

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

typeProjectsLocationsApisDeploymentsArtifactsReplaceArtifactCall

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

func (*ProjectsLocationsApisDeploymentsArtifactsReplaceArtifactCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsArtifactsReplaceArtifactCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.replaceArtifact" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsApisDeploymentsArtifactsReplaceArtifactCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsArtifactsReplaceArtifactCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisDeploymentsArtifactsService

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

func (*ProjectsLocationsApisDeploymentsArtifactsService)Create

Create: Creates a specified artifact.

  • parent: The parent, which owns this collection of artifacts. Format:`{parent}`.

func (*ProjectsLocationsApisDeploymentsArtifactsService)Delete

Delete: Removes a specified artifact.

- name: The name of the artifact to delete. Format: `{parent}/artifacts/*`.

func (*ProjectsLocationsApisDeploymentsArtifactsService)Get

Get: Returns a specified artifact.

- name: The name of the artifact to retrieve. Format: `{parent}/artifacts/*`.

func (*ProjectsLocationsApisDeploymentsArtifactsService)GetContents

GetContents: Returns the contents of a specified artifact. If artifacts arestored with GZip compression, the default behavior is to return the artifactuncompressed (the mime_type response field indicates the exact formatreturned).

  • name: The name of the artifact whose contents should be retrieved. Format:`{parent}/artifacts/*`.

func (*ProjectsLocationsApisDeploymentsArtifactsService)List

List: Returns matching artifacts.

  • parent: The parent, which owns this collection of artifacts. Format:`{parent}`.

func (*ProjectsLocationsApisDeploymentsArtifactsService)ReplaceArtifact

ReplaceArtifact: Used to replace a specified artifact.

- name: Resource name.

typeProjectsLocationsApisDeploymentsCreateCall

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

func (*ProjectsLocationsApisDeploymentsCreateCall)ApiDeploymentId

ApiDeploymentId sets the optional parameter "apiDeploymentId": Required. TheID to use for the deployment, which will become the final component of thedeployment's resource name. This value should be 4-63 characters, and validcharacters are /a-z-/. Following AIP-162, IDs must not have the form of aUUID.

func (*ProjectsLocationsApisDeploymentsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsCreateCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.create" call.Any non-2xx status code is an error. Response headers are in either*ApiDeployment.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 was returned.

func (*ProjectsLocationsApisDeploymentsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisDeploymentsDeleteCall

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

func (*ProjectsLocationsApisDeploymentsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsDeleteCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.

func (*ProjectsLocationsApisDeploymentsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsDeleteCall)Force

Force sets the optional parameter "force": If set to true, any childresources will also be deleted. (Otherwise, the request will only work ifthere are no child resources.)

func (*ProjectsLocationsApisDeploymentsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisDeploymentsDeleteRevisionCall

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

func (*ProjectsLocationsApisDeploymentsDeleteRevisionCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsDeleteRevisionCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.deleteRevision" call.Any non-2xx status code is an error. Response headers are in either*ApiDeployment.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 was returned.

func (*ProjectsLocationsApisDeploymentsDeleteRevisionCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsDeleteRevisionCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisDeploymentsGetCall

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

func (*ProjectsLocationsApisDeploymentsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsGetCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.get" call.Any non-2xx status code is an error. Response headers are in either*ApiDeployment.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 was returned.

func (*ProjectsLocationsApisDeploymentsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisDeploymentsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisDeploymentsGetIamPolicyCall

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

func (*ProjectsLocationsApisDeploymentsGetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsGetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisDeploymentsGetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsGetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisDeploymentsGetIamPolicyCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisDeploymentsGetIamPolicyCall)OptionsRequestedPolicyVersion

func (c *ProjectsLocationsApisDeploymentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *ProjectsLocationsApisDeploymentsGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).

typeProjectsLocationsApisDeploymentsListCall

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

func (*ProjectsLocationsApisDeploymentsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsListCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.list" call.Any non-2xx status code is an error. Response headers are in either*ListApiDeploymentsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsListCall)Filter

Filter sets the optional parameter "filter": An expression that can be usedto filter the list. Filters use the Common Expression Language and can referto all message fields.

func (*ProjectsLocationsApisDeploymentsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisDeploymentsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisDeploymentsListCall)OrderByadded inv0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list offields, e.g. "foo,bar" Fields can be sorted in descending order using the"desc" identifier, e.g. "foo desc,bar"

func (*ProjectsLocationsApisDeploymentsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofdeployments to return. The service may return fewer than this value. Ifunspecified, at most 50 values will be returned. The maximum is 1000; valuesabove 1000 will be coerced to 1000.

func (*ProjectsLocationsApisDeploymentsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListApiDeployments` call. Provide this to retrieve thesubsequent page. When paginating, all other parameters provided to`ListApiDeployments` must match the call that provided the page token.

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

typeProjectsLocationsApisDeploymentsListRevisionsCall

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

func (*ProjectsLocationsApisDeploymentsListRevisionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsListRevisionsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.listRevisions" call.Any non-2xx status code is an error. Response headers are in either*ListApiDeploymentRevisionsResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsListRevisionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsListRevisionsCall)Filteradded inv0.109.0

Filter sets the optional parameter "filter": An expression that can be usedto filter the list. Filters use the Common Expression Language and can referto all message fields.

func (*ProjectsLocationsApisDeploymentsListRevisionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisDeploymentsListRevisionsCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisDeploymentsListRevisionsCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofrevisions to return per page.

func (*ProjectsLocationsApisDeploymentsListRevisionsCall)PageToken

PageToken sets the optional parameter "pageToken": The page token, receivedfrom a previous ListApiDeploymentRevisions call. Provide this to retrievethe subsequent page.

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

typeProjectsLocationsApisDeploymentsPatchCall

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

func (*ProjectsLocationsApisDeploymentsPatchCall)AllowMissing

AllowMissing sets the optional parameter "allowMissing": If set to true, andthe deployment is not found, a new deployment will be created. In thissituation, `update_mask` is ignored.

func (*ProjectsLocationsApisDeploymentsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsPatchCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.patch" call.Any non-2xx status code is an error. Response headers are in either*ApiDeployment.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 was returned.

func (*ProjectsLocationsApisDeploymentsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisDeploymentsPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated. If omitted, all fields are updated that are set in the requestmessage (fields set to default values are ignored). If an asterisk "*" isspecified, all fields are updated, including fields that areunspecified/default in the request.

typeProjectsLocationsApisDeploymentsRollbackCall

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

func (*ProjectsLocationsApisDeploymentsRollbackCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsRollbackCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.rollback" call.Any non-2xx status code is an error. Response headers are in either*ApiDeployment.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 was returned.

func (*ProjectsLocationsApisDeploymentsRollbackCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsRollbackCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisDeploymentsService

type ProjectsLocationsApisDeploymentsService struct {Artifacts *ProjectsLocationsApisDeploymentsArtifactsService// contains filtered or unexported fields}

func (*ProjectsLocationsApisDeploymentsService)Create

Create: Creates a specified deployment.

  • parent: The parent, which owns this collection of deployments. Format:`projects/*/locations/*/apis/*`.

func (*ProjectsLocationsApisDeploymentsService)Delete

Delete: Removes a specified deployment, all revisions, and all childresources (e.g., artifacts).

  • name: The name of the deployment to delete. Format:`projects/*/locations/*/apis/*/deployments/*`.

func (*ProjectsLocationsApisDeploymentsService)DeleteRevision

DeleteRevision: Deletes a revision of a deployment.

  • name: The name of the deployment revision to be deleted, with a revisionID explicitly included. Example:`projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8`.

func (*ProjectsLocationsApisDeploymentsService)Get

Get: Returns a specified deployment.

  • name: The name of the deployment to retrieve. Format:`projects/*/locations/*/apis/*/deployments/*`.

func (*ProjectsLocationsApisDeploymentsService)GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsApisDeploymentsService)List

List: Returns matching deployments.

  • parent: The parent, which owns this collection of deployments. Format:`projects/*/locations/*/apis/*`.

func (*ProjectsLocationsApisDeploymentsService)ListRevisions

ListRevisions: Lists all revisions of a deployment. Revisions are returnedin descending order of revision creation time.

- name: The name of the deployment to list revisions for.

func (*ProjectsLocationsApisDeploymentsService)Patch

Patch: Used to modify a specified deployment.

- name: Resource name.

func (*ProjectsLocationsApisDeploymentsService)Rollback

Rollback: Sets the current revision to a specified prior revision. Note thatthis creates a new revision with a new revision ID.

- name: The deployment being rolled back.

func (*ProjectsLocationsApisDeploymentsService)SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsApisDeploymentsService)TagRevision

TagRevision: Adds a tag to a specified revision of a deployment.

  • name: The name of the deployment to be tagged, including the revision IDis optional. If a revision is not specified, it will tag the latestrevision.

func (*ProjectsLocationsApisDeploymentsService)TestIamPermissions

TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.

typeProjectsLocationsApisDeploymentsSetIamPolicyCall

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

func (*ProjectsLocationsApisDeploymentsSetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsSetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisDeploymentsSetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsSetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisDeploymentsTagRevisionCall

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

func (*ProjectsLocationsApisDeploymentsTagRevisionCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsTagRevisionCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.tagRevision" call.Any non-2xx status code is an error. Response headers are in either*ApiDeployment.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 was returned.

func (*ProjectsLocationsApisDeploymentsTagRevisionCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsTagRevisionCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisDeploymentsTestIamPermissionsCall

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

func (*ProjectsLocationsApisDeploymentsTestIamPermissionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisDeploymentsTestIamPermissionsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsTestIamPermissionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisDeploymentsTestIamPermissionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisGetCall

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

func (*ProjectsLocationsApisGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisGetCall)Do

Do executes the "apigeeregistry.projects.locations.apis.get" call.Any non-2xx status code is an error. Response headers are in either*Api.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 was returned.

func (*ProjectsLocationsApisGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisGetIamPolicyCall

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

func (*ProjectsLocationsApisGetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisGetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisGetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisGetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisGetIamPolicyCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisGetIamPolicyCall)OptionsRequestedPolicyVersion

func (c *ProjectsLocationsApisGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *ProjectsLocationsApisGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).

typeProjectsLocationsApisListCall

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

func (*ProjectsLocationsApisListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisListCall)Do

Do executes the "apigeeregistry.projects.locations.apis.list" call.Any non-2xx status code is an error. Response headers are in either*ListApisResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsApisListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisListCall)Filter

Filter sets the optional parameter "filter": An expression that can be usedto filter the list. Filters use the Common Expression Language and can referto all message fields.

func (*ProjectsLocationsApisListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisListCall)OrderByadded inv0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list offields, e.g. "foo,bar" Fields can be sorted in descending order using the"desc" identifier, e.g. "foo desc,bar"

func (*ProjectsLocationsApisListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of APIsto return. The service may return fewer than this value. If unspecified, atmost 50 values will be returned. The maximum is 1000; values above 1000 willbe coerced to 1000.

func (*ProjectsLocationsApisListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListApis` call. Provide this to retrieve the subsequentpage. When paginating, all other parameters provided to `ListApis` mustmatch the call that provided the page token.

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

typeProjectsLocationsApisPatchCall

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

func (*ProjectsLocationsApisPatchCall)AllowMissing

AllowMissing sets the optional parameter "allowMissing": If set to true, andthe API is not found, a new API will be created. In this situation,`update_mask` is ignored.

func (*ProjectsLocationsApisPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisPatchCall)Do

Do executes the "apigeeregistry.projects.locations.apis.patch" call.Any non-2xx status code is an error. Response headers are in either*Api.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 was returned.

func (*ProjectsLocationsApisPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated. If omitted, all fields are updated that are set in the requestmessage (fields set to default values are ignored). If an asterisk "*" isspecified, all fields are updated, including fields that areunspecified/default in the request.

typeProjectsLocationsApisService

type ProjectsLocationsApisService struct {Artifacts *ProjectsLocationsApisArtifactsServiceDeployments *ProjectsLocationsApisDeploymentsServiceVersions *ProjectsLocationsApisVersionsService// contains filtered or unexported fields}

funcNewProjectsLocationsApisService

func NewProjectsLocationsApisService(s *Service) *ProjectsLocationsApisService

func (*ProjectsLocationsApisService)Create

Create: Creates a specified API.

  • parent: The parent, which owns this collection of APIs. Format:`projects/*/locations/*`.

func (*ProjectsLocationsApisService)Delete

Delete: Removes a specified API and all of the resources that it owns.

  • name: The name of the API to delete. Format:`projects/*/locations/*/apis/*`.

func (*ProjectsLocationsApisService)Get

Get: Returns a specified API.

  • name: The name of the API to retrieve. Format:`projects/*/locations/*/apis/*`.

func (*ProjectsLocationsApisService)GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsApisService)List

List: Returns matching APIs.

  • parent: The parent, which owns this collection of APIs. Format:`projects/*/locations/*`.

func (*ProjectsLocationsApisService)Patch

Patch: Used to modify a specified API.

- name: Resource name.

func (*ProjectsLocationsApisService)SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsApisService)TestIamPermissions

func (r *ProjectsLocationsApisService) TestIamPermissions(resourcestring, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsApisTestIamPermissionsCall

TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.

typeProjectsLocationsApisSetIamPolicyCall

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

func (*ProjectsLocationsApisSetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisSetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisSetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisSetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisTestIamPermissionsCall

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

func (*ProjectsLocationsApisTestIamPermissionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisTestIamPermissionsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsApisTestIamPermissionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisTestIamPermissionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsArtifactsCreateCall

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

func (*ProjectsLocationsApisVersionsArtifactsCreateCall)ArtifactId

ArtifactId sets the optional parameter "artifactId": Required. The ID to usefor the artifact, which will become the final component of the artifact'sresource name. This value should be 4-63 characters, and valid charactersare /a-z-/. Following AIP-162, IDs must not have the form of a UUID.

func (*ProjectsLocationsApisVersionsArtifactsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsArtifactsCreateCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.create" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsApisVersionsArtifactsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsArtifactsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsArtifactsDeleteCall

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

func (*ProjectsLocationsApisVersionsArtifactsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsArtifactsDeleteCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.

func (*ProjectsLocationsApisVersionsArtifactsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsArtifactsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsArtifactsGetCall

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

func (*ProjectsLocationsApisVersionsArtifactsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsArtifactsGetCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.get" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsApisVersionsArtifactsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsArtifactsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsArtifactsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisVersionsArtifactsGetContentsCall

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

func (*ProjectsLocationsApisVersionsArtifactsGetContentsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsArtifactsGetContentsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.getContents" call.Any non-2xx status code is an error. Response headers are in either*HttpBody.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 was returned.

func (*ProjectsLocationsApisVersionsArtifactsGetContentsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsArtifactsGetContentsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsArtifactsGetContentsCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisVersionsArtifactsGetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall)OptionsRequestedPolicyVersion

OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).

typeProjectsLocationsApisVersionsArtifactsListCall

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

func (*ProjectsLocationsApisVersionsArtifactsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsArtifactsListCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.list" call.Any non-2xx status code is an error. Response headers are in either*ListArtifactsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsApisVersionsArtifactsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsArtifactsListCall)Filter

Filter sets the optional parameter "filter": An expression that can be usedto filter the list. Filters use the Common Expression Language and can referto all message fields except contents.

func (*ProjectsLocationsApisVersionsArtifactsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsArtifactsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisVersionsArtifactsListCall)OrderByadded inv0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list offields, e.g. "foo,bar" Fields can be sorted in descending order using the"desc" identifier, e.g. "foo desc,bar"

func (*ProjectsLocationsApisVersionsArtifactsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofartifacts to return. The service may return fewer than this value. Ifunspecified, at most 50 values will be returned. The maximum is 1000; valuesabove 1000 will be coerced to 1000.

func (*ProjectsLocationsApisVersionsArtifactsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListArtifacts` call. Provide this to retrieve thesubsequent page. When paginating, all other parameters provided to`ListArtifacts` must match the call that provided the page token.

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

typeProjectsLocationsApisVersionsArtifactsReplaceArtifactCall

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

func (*ProjectsLocationsApisVersionsArtifactsReplaceArtifactCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsArtifactsReplaceArtifactCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.replaceArtifact" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsApisVersionsArtifactsReplaceArtifactCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsArtifactsReplaceArtifactCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsArtifactsService

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

func (*ProjectsLocationsApisVersionsArtifactsService)Create

Create: Creates a specified artifact.

  • parent: The parent, which owns this collection of artifacts. Format:`{parent}`.

func (*ProjectsLocationsApisVersionsArtifactsService)Delete

Delete: Removes a specified artifact.

- name: The name of the artifact to delete. Format: `{parent}/artifacts/*`.

func (*ProjectsLocationsApisVersionsArtifactsService)Get

Get: Returns a specified artifact.

- name: The name of the artifact to retrieve. Format: `{parent}/artifacts/*`.

func (*ProjectsLocationsApisVersionsArtifactsService)GetContents

GetContents: Returns the contents of a specified artifact. If artifacts arestored with GZip compression, the default behavior is to return the artifactuncompressed (the mime_type response field indicates the exact formatreturned).

  • name: The name of the artifact whose contents should be retrieved. Format:`{parent}/artifacts/*`.

func (*ProjectsLocationsApisVersionsArtifactsService)GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsApisVersionsArtifactsService)List

List: Returns matching artifacts.

  • parent: The parent, which owns this collection of artifacts. Format:`{parent}`.

func (*ProjectsLocationsApisVersionsArtifactsService)ReplaceArtifact

ReplaceArtifact: Used to replace a specified artifact.

- name: Resource name.

func (*ProjectsLocationsApisVersionsArtifactsService)SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsApisVersionsArtifactsService)TestIamPermissions

TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.

typeProjectsLocationsApisVersionsArtifactsSetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsArtifactsSetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsArtifactsSetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisVersionsArtifactsSetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsArtifactsSetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsArtifactsTestIamPermissionsCall

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

func (*ProjectsLocationsApisVersionsArtifactsTestIamPermissionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsArtifactsTestIamPermissionsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsArtifactsTestIamPermissionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsArtifactsTestIamPermissionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsCreateCall

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

func (*ProjectsLocationsApisVersionsCreateCall)ApiVersionId

ApiVersionId sets the optional parameter "apiVersionId": Required. The ID touse for the version, which will become the final component of the version'sresource name. This value should be 1-63 characters, and valid charactersare /a-z-/. Following AIP-162, IDs must not have the form of a UUID.

func (*ProjectsLocationsApisVersionsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsCreateCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.create" call.Any non-2xx status code is an error. Response headers are in either*ApiVersion.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 was returned.

func (*ProjectsLocationsApisVersionsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsDeleteCall

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

func (*ProjectsLocationsApisVersionsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsDeleteCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.

func (*ProjectsLocationsApisVersionsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsDeleteCall)Forceadded inv0.88.0

Force sets the optional parameter "force": If set to true, any childresources will also be deleted. (Otherwise, the request will only work ifthere are no child resources.)

func (*ProjectsLocationsApisVersionsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsGetCall

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

func (*ProjectsLocationsApisVersionsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsGetCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.get" call.Any non-2xx status code is an error. Response headers are in either*ApiVersion.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 was returned.

func (*ProjectsLocationsApisVersionsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisVersionsGetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsGetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsGetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisVersionsGetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsGetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsGetIamPolicyCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisVersionsGetIamPolicyCall)OptionsRequestedPolicyVersion

func (c *ProjectsLocationsApisVersionsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *ProjectsLocationsApisVersionsGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).

typeProjectsLocationsApisVersionsListCall

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

func (*ProjectsLocationsApisVersionsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsListCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.list" call.Any non-2xx status code is an error. Response headers are in either*ListApiVersionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsListCall)Filter

Filter sets the optional parameter "filter": An expression that can be usedto filter the list. Filters use the Common Expression Language and can referto all message fields.

func (*ProjectsLocationsApisVersionsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisVersionsListCall)OrderByadded inv0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list offields, e.g. "foo,bar" Fields can be sorted in descending order using the"desc" identifier, e.g. "foo desc,bar"

func (*ProjectsLocationsApisVersionsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofversions to return. The service may return fewer than this value. Ifunspecified, at most 50 values will be returned. The maximum is 1000; valuesabove 1000 will be coerced to 1000.

func (*ProjectsLocationsApisVersionsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListApiVersions` call. Provide this to retrieve thesubsequent page. When paginating, all other parameters provided to`ListApiVersions` must match the call that provided the page token.

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

typeProjectsLocationsApisVersionsPatchCall

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

func (*ProjectsLocationsApisVersionsPatchCall)AllowMissing

AllowMissing sets the optional parameter "allowMissing": If set to true, andthe version is not found, a new version will be created. In this situation,`update_mask` is ignored.

func (*ProjectsLocationsApisVersionsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsPatchCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.patch" call.Any non-2xx status code is an error. Response headers are in either*ApiVersion.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 was returned.

func (*ProjectsLocationsApisVersionsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated. If omitted, all fields are updated that are set in the requestmessage (fields set to default values are ignored). If an asterisk "*" isspecified, all fields are updated, including fields that areunspecified/default in the request.

typeProjectsLocationsApisVersionsService

type ProjectsLocationsApisVersionsService struct {Artifacts *ProjectsLocationsApisVersionsArtifactsServiceSpecs *ProjectsLocationsApisVersionsSpecsService// contains filtered or unexported fields}

func (*ProjectsLocationsApisVersionsService)Create

Create: Creates a specified version.

  • parent: The parent, which owns this collection of versions. Format:`projects/*/locations/*/apis/*`.

func (*ProjectsLocationsApisVersionsService)Delete

Delete: Removes a specified version and all of the resources that it owns.

  • name: The name of the version to delete. Format:`projects/*/locations/*/apis/*/versions/*`.

func (*ProjectsLocationsApisVersionsService)Get

Get: Returns a specified version.

  • name: The name of the version to retrieve. Format:`projects/*/locations/*/apis/*/versions/*`.

func (*ProjectsLocationsApisVersionsService)GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsApisVersionsService)List

List: Returns matching versions.

  • parent: The parent, which owns this collection of versions. Format:`projects/*/locations/*/apis/*`.

func (*ProjectsLocationsApisVersionsService)Patch

Patch: Used to modify a specified version.

- name: Resource name.

func (*ProjectsLocationsApisVersionsService)SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsApisVersionsService)TestIamPermissions

TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.

typeProjectsLocationsApisVersionsSetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsSetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisVersionsSetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsSpecsArtifactsCreateCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsCreateCall)ArtifactId

ArtifactId sets the optional parameter "artifactId": Required. The ID to usefor the artifact, which will become the final component of the artifact'sresource name. This value should be 4-63 characters, and valid charactersare /a-z-/. Following AIP-162, IDs must not have the form of a UUID.

func (*ProjectsLocationsApisVersionsSpecsArtifactsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsArtifactsCreateCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.create" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsArtifactsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsSpecsArtifactsDeleteCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsArtifactsDeleteCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsArtifactsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsSpecsArtifactsGetCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.get" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.getContents" call.Any non-2xx status code is an error. Response headers are in either*HttpBody.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall)OptionsRequestedPolicyVersion

OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).

typeProjectsLocationsApisVersionsSpecsArtifactsListCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.list" call.Any non-2xx status code is an error. Response headers are in either*ListArtifactsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall)Filter

Filter sets the optional parameter "filter": An expression that can be usedto filter the list. Filters use the Common Expression Language and can referto all message fields except contents.

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall)OrderByadded inv0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list offields, e.g. "foo,bar" Fields can be sorted in descending order using the"desc" identifier, e.g. "foo desc,bar"

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofartifacts to return. The service may return fewer than this value. Ifunspecified, at most 50 values will be returned. The maximum is 1000; valuesabove 1000 will be coerced to 1000.

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListArtifacts` call. Provide this to retrieve thesubsequent page. When paginating, all other parameters provided to`ListArtifacts` must match the call that provided the page token.

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

typeProjectsLocationsApisVersionsSpecsArtifactsReplaceArtifactCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsReplaceArtifactCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsArtifactsReplaceArtifactCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.replaceArtifact" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsReplaceArtifactCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsArtifactsReplaceArtifactCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsSpecsArtifactsService

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsService)Create

Create: Creates a specified artifact.

  • parent: The parent, which owns this collection of artifacts. Format:`{parent}`.

func (*ProjectsLocationsApisVersionsSpecsArtifactsService)Delete

Delete: Removes a specified artifact.

- name: The name of the artifact to delete. Format: `{parent}/artifacts/*`.

func (*ProjectsLocationsApisVersionsSpecsArtifactsService)Get

Get: Returns a specified artifact.

- name: The name of the artifact to retrieve. Format: `{parent}/artifacts/*`.

func (*ProjectsLocationsApisVersionsSpecsArtifactsService)GetContents

GetContents: Returns the contents of a specified artifact. If artifacts arestored with GZip compression, the default behavior is to return the artifactuncompressed (the mime_type response field indicates the exact formatreturned).

  • name: The name of the artifact whose contents should be retrieved. Format:`{parent}/artifacts/*`.

func (*ProjectsLocationsApisVersionsSpecsArtifactsService)GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsApisVersionsSpecsArtifactsService)List

List: Returns matching artifacts.

  • parent: The parent, which owns this collection of artifacts. Format:`{parent}`.

func (*ProjectsLocationsApisVersionsSpecsArtifactsService)ReplaceArtifact

ReplaceArtifact: Used to replace a specified artifact.

- name: Resource name.

func (*ProjectsLocationsApisVersionsSpecsArtifactsService)SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsApisVersionsSpecsArtifactsService)TestIamPermissions

TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.

typeProjectsLocationsApisVersionsSpecsArtifactsSetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsSetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsArtifactsSetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsSetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsArtifactsSetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsSpecsArtifactsTestIamPermissionsCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsTestIamPermissionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsArtifactsTestIamPermissionsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsTestIamPermissionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsArtifactsTestIamPermissionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsSpecsCreateCall

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

func (*ProjectsLocationsApisVersionsSpecsCreateCall)ApiSpecId

ApiSpecId sets the optional parameter "apiSpecId": Required. The ID to usefor the spec, which will become the final component of the spec's resourcename. This value should be 4-63 characters, and valid characters are /a-z-/.Following AIP-162, IDs must not have the form of a UUID.

func (*ProjectsLocationsApisVersionsSpecsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsCreateCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.create" call.Any non-2xx status code is an error. Response headers are in either*ApiSpec.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsSpecsDeleteCall

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

func (*ProjectsLocationsApisVersionsSpecsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsDeleteCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsDeleteCall)Force

Force sets the optional parameter "force": If set to true, any childresources will also be deleted. (Otherwise, the request will only work ifthere are no child resources.)

func (*ProjectsLocationsApisVersionsSpecsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsSpecsDeleteRevisionCall

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

func (*ProjectsLocationsApisVersionsSpecsDeleteRevisionCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsDeleteRevisionCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.deleteRevision" call.Any non-2xx status code is an error. Response headers are in either*ApiSpec.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsDeleteRevisionCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsDeleteRevisionCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsSpecsGetCall

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

func (*ProjectsLocationsApisVersionsSpecsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsGetCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.get" call.Any non-2xx status code is an error. Response headers are in either*ApiSpec.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsSpecsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisVersionsSpecsGetContentsCall

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

func (*ProjectsLocationsApisVersionsSpecsGetContentsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsGetContentsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.getContents" call.Any non-2xx status code is an error. Response headers are in either*HttpBody.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsGetContentsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsGetContentsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsSpecsGetContentsCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsApisVersionsSpecsGetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsSpecsGetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsGetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsGetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsGetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsSpecsGetIamPolicyCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisVersionsSpecsGetIamPolicyCall)OptionsRequestedPolicyVersion

func (c *ProjectsLocationsApisVersionsSpecsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *ProjectsLocationsApisVersionsSpecsGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).

typeProjectsLocationsApisVersionsSpecsListCall

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

func (*ProjectsLocationsApisVersionsSpecsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsListCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.list" call.Any non-2xx status code is an error. Response headers are in either*ListApiSpecsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsApisVersionsSpecsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsListCall)Filter

Filter sets the optional parameter "filter": An expression that can be usedto filter the list. Filters use the Common Expression Language and can referto all message fields except contents.

func (*ProjectsLocationsApisVersionsSpecsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsSpecsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisVersionsSpecsListCall)OrderByadded inv0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list offields, e.g. "foo,bar" Fields can be sorted in descending order using the"desc" identifier, e.g. "foo desc,bar"

func (*ProjectsLocationsApisVersionsSpecsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of specsto return. The service may return fewer than this value. If unspecified, atmost 50 values will be returned. The maximum is 1000; values above 1000 willbe coerced to 1000.

func (*ProjectsLocationsApisVersionsSpecsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListApiSpecs` call. Provide this to retrieve the subsequentpage. When paginating, all other parameters provided to `ListApiSpecs` mustmatch the call that provided the page token.

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

typeProjectsLocationsApisVersionsSpecsListRevisionsCall

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

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.listRevisions" call.Any non-2xx status code is an error. Response headers are in either*ListApiSpecRevisionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall)Filteradded inv0.109.0

Filter sets the optional parameter "filter": An expression that can be usedto filter the list. Filters use the Common Expression Language and can referto all message fields.

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofrevisions to return per page.

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall)PageToken

PageToken sets the optional parameter "pageToken": The page token, receivedfrom a previous ListApiSpecRevisions call. Provide this to retrieve thesubsequent page.

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

typeProjectsLocationsApisVersionsSpecsPatchCall

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

func (*ProjectsLocationsApisVersionsSpecsPatchCall)AllowMissing

AllowMissing sets the optional parameter "allowMissing": If set to true, andthe spec is not found, a new spec will be created. In this situation,`update_mask` is ignored.

func (*ProjectsLocationsApisVersionsSpecsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsPatchCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.patch" call.Any non-2xx status code is an error. Response headers are in either*ApiSpec.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsApisVersionsSpecsPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated. If omitted, all fields are updated that are set in the requestmessage (fields set to default values are ignored). If an asterisk "*" isspecified, all fields are updated, including fields that areunspecified/default in the request.

typeProjectsLocationsApisVersionsSpecsRollbackCall

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

func (*ProjectsLocationsApisVersionsSpecsRollbackCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsRollbackCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.rollback" call.Any non-2xx status code is an error. Response headers are in either*ApiSpec.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsRollbackCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsRollbackCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsSpecsService

type ProjectsLocationsApisVersionsSpecsService struct {Artifacts *ProjectsLocationsApisVersionsSpecsArtifactsService// contains filtered or unexported fields}

func (*ProjectsLocationsApisVersionsSpecsService)Create

Create: Creates a specified spec.

  • parent: The parent, which owns this collection of specs. Format:`projects/*/locations/*/apis/*/versions/*`.

func (*ProjectsLocationsApisVersionsSpecsService)Delete

Delete: Removes a specified spec, all revisions, and all child resources(e.g., artifacts).

  • name: The name of the spec to delete. Format:`projects/*/locations/*/apis/*/versions/*/specs/*`.

func (*ProjectsLocationsApisVersionsSpecsService)DeleteRevision

DeleteRevision: Deletes a revision of a spec.

  • name: The name of the spec revision to be deleted, with a revision IDexplicitly included. Example:`projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8`.

func (*ProjectsLocationsApisVersionsSpecsService)Get

Get: Returns a specified spec.

  • name: The name of the spec to retrieve. Format:`projects/*/locations/*/apis/*/versions/*/specs/*`.

func (*ProjectsLocationsApisVersionsSpecsService)GetContents

GetContents: Returns the contents of a specified spec. If specs are storedwith GZip compression, the default behavior is to return the specuncompressed (the mime_type response field indicates the exact formatreturned).

  • name: The name of the spec whose contents should be retrieved. Format:`projects/*/locations/*/apis/*/versions/*/specs/*`.

func (*ProjectsLocationsApisVersionsSpecsService)GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsApisVersionsSpecsService)List

List: Returns matching specs.

  • parent: The parent, which owns this collection of specs. Format:`projects/*/locations/*/apis/*/versions/*`.

func (*ProjectsLocationsApisVersionsSpecsService)ListRevisions

ListRevisions: Lists all revisions of a spec. Revisions are returned indescending order of revision creation time.

- name: The name of the spec to list revisions for.

func (*ProjectsLocationsApisVersionsSpecsService)Patch

Patch: Used to modify a specified spec.

- name: Resource name.

func (*ProjectsLocationsApisVersionsSpecsService)Rollback

Rollback: Sets the current revision to a specified prior revision. Note thatthis creates a new revision with a new revision ID.

- name: The spec being rolled back.

func (*ProjectsLocationsApisVersionsSpecsService)SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsApisVersionsSpecsService)TagRevision

TagRevision: Adds a tag to a specified revision of a spec.

  • name: The name of the spec to be tagged, including the revision ID isoptional. If a revision is not specified, it will tag the latest revision.

func (*ProjectsLocationsApisVersionsSpecsService)TestIamPermissions

TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.

typeProjectsLocationsApisVersionsSpecsSetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsSpecsSetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsSetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsSetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsSetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsSpecsTagRevisionCall

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

func (*ProjectsLocationsApisVersionsSpecsTagRevisionCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsTagRevisionCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.tagRevision" call.Any non-2xx status code is an error. Response headers are in either*ApiSpec.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 was returned.

func (*ProjectsLocationsApisVersionsSpecsTagRevisionCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsTagRevisionCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsSpecsTestIamPermissionsCall

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

func (*ProjectsLocationsApisVersionsSpecsTestIamPermissionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsSpecsTestIamPermissionsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsTestIamPermissionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsSpecsTestIamPermissionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsApisVersionsTestIamPermissionsCall

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

func (*ProjectsLocationsApisVersionsTestIamPermissionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsApisVersionsTestIamPermissionsCall)Do

Do executes the "apigeeregistry.projects.locations.apis.versions.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsTestIamPermissionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsApisVersionsTestIamPermissionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsArtifactsCreateCall

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

func (*ProjectsLocationsArtifactsCreateCall)ArtifactId

ArtifactId sets the optional parameter "artifactId": Required. The ID to usefor the artifact, which will become the final component of the artifact'sresource name. This value should be 4-63 characters, and valid charactersare /a-z-/. Following AIP-162, IDs must not have the form of a UUID.

func (*ProjectsLocationsArtifactsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsArtifactsCreateCall)Do

Do executes the "apigeeregistry.projects.locations.artifacts.create" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsArtifactsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsArtifactsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsArtifactsDeleteCall

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

func (*ProjectsLocationsArtifactsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsArtifactsDeleteCall)Do

Do executes the "apigeeregistry.projects.locations.artifacts.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.

func (*ProjectsLocationsArtifactsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsArtifactsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsArtifactsGetCall

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

func (*ProjectsLocationsArtifactsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsArtifactsGetCall)Do

Do executes the "apigeeregistry.projects.locations.artifacts.get" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsArtifactsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsArtifactsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsArtifactsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsArtifactsGetContentsCall

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

func (*ProjectsLocationsArtifactsGetContentsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsArtifactsGetContentsCall)Do

Do executes the "apigeeregistry.projects.locations.artifacts.getContents" call.Any non-2xx status code is an error. Response headers are in either*HttpBody.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 was returned.

func (*ProjectsLocationsArtifactsGetContentsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsArtifactsGetContentsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsArtifactsGetContentsCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsArtifactsGetIamPolicyCall

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

func (*ProjectsLocationsArtifactsGetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsArtifactsGetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.artifacts.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsArtifactsGetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsArtifactsGetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsArtifactsGetIamPolicyCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsArtifactsGetIamPolicyCall)OptionsRequestedPolicyVersion

func (c *ProjectsLocationsArtifactsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *ProjectsLocationsArtifactsGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).

typeProjectsLocationsArtifactsListCall

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

func (*ProjectsLocationsArtifactsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsArtifactsListCall)Do

Do executes the "apigeeregistry.projects.locations.artifacts.list" call.Any non-2xx status code is an error. Response headers are in either*ListArtifactsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsArtifactsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsArtifactsListCall)Filter

Filter sets the optional parameter "filter": An expression that can be usedto filter the list. Filters use the Common Expression Language and can referto all message fields except contents.

func (*ProjectsLocationsArtifactsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsArtifactsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsArtifactsListCall)OrderByadded inv0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list offields, e.g. "foo,bar" Fields can be sorted in descending order using the"desc" identifier, e.g. "foo desc,bar"

func (*ProjectsLocationsArtifactsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofartifacts to return. The service may return fewer than this value. Ifunspecified, at most 50 values will be returned. The maximum is 1000; valuesabove 1000 will be coerced to 1000.

func (*ProjectsLocationsArtifactsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListArtifacts` call. Provide this to retrieve thesubsequent page. When paginating, all other parameters provided to`ListArtifacts` must match the call that provided the page token.

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

typeProjectsLocationsArtifactsReplaceArtifactCall

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

func (*ProjectsLocationsArtifactsReplaceArtifactCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsArtifactsReplaceArtifactCall)Do

Do executes the "apigeeregistry.projects.locations.artifacts.replaceArtifact" call.Any non-2xx status code is an error. Response headers are in either*Artifact.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 was returned.

func (*ProjectsLocationsArtifactsReplaceArtifactCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsArtifactsReplaceArtifactCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsArtifactsService

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

funcNewProjectsLocationsArtifactsService

func NewProjectsLocationsArtifactsService(s *Service) *ProjectsLocationsArtifactsService

func (*ProjectsLocationsArtifactsService)Create

Create: Creates a specified artifact.

  • parent: The parent, which owns this collection of artifacts. Format:`{parent}`.

func (*ProjectsLocationsArtifactsService)Delete

Delete: Removes a specified artifact.

- name: The name of the artifact to delete. Format: `{parent}/artifacts/*`.

func (*ProjectsLocationsArtifactsService)Get

Get: Returns a specified artifact.

- name: The name of the artifact to retrieve. Format: `{parent}/artifacts/*`.

func (*ProjectsLocationsArtifactsService)GetContents

GetContents: Returns the contents of a specified artifact. If artifacts arestored with GZip compression, the default behavior is to return the artifactuncompressed (the mime_type response field indicates the exact formatreturned).

  • name: The name of the artifact whose contents should be retrieved. Format:`{parent}/artifacts/*`.

func (*ProjectsLocationsArtifactsService)GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsArtifactsService)List

List: Returns matching artifacts.

  • parent: The parent, which owns this collection of artifacts. Format:`{parent}`.

func (*ProjectsLocationsArtifactsService)ReplaceArtifact

ReplaceArtifact: Used to replace a specified artifact.

- name: Resource name.

func (*ProjectsLocationsArtifactsService)SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsArtifactsService)TestIamPermissions

TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.

typeProjectsLocationsArtifactsSetIamPolicyCall

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

func (*ProjectsLocationsArtifactsSetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsArtifactsSetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.artifacts.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsArtifactsSetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsArtifactsSetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsArtifactsTestIamPermissionsCall

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

func (*ProjectsLocationsArtifactsTestIamPermissionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsArtifactsTestIamPermissionsCall)Do

Do executes the "apigeeregistry.projects.locations.artifacts.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsArtifactsTestIamPermissionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsArtifactsTestIamPermissionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsDocumentsGetIamPolicyCalladded inv0.144.0

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

func (*ProjectsLocationsDocumentsGetIamPolicyCall)Contextadded inv0.144.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDocumentsGetIamPolicyCall)Doadded inv0.144.0

Do executes the "apigeeregistry.projects.locations.documents.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsDocumentsGetIamPolicyCall)Fieldsadded inv0.144.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsDocumentsGetIamPolicyCall)Headeradded inv0.144.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsDocumentsGetIamPolicyCall)IfNoneMatchadded inv0.144.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsDocumentsGetIamPolicyCall)OptionsRequestedPolicyVersionadded inv0.144.0

func (c *ProjectsLocationsDocumentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *ProjectsLocationsDocumentsGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).

typeProjectsLocationsDocumentsServiceadded inv0.144.0

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

funcNewProjectsLocationsDocumentsServiceadded inv0.144.0

func NewProjectsLocationsDocumentsService(s *Service) *ProjectsLocationsDocumentsService

func (*ProjectsLocationsDocumentsService)GetIamPolicyadded inv0.144.0

GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsDocumentsService)SetIamPolicyadded inv0.144.0

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsDocumentsService)TestIamPermissionsadded inv0.144.0

TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.

typeProjectsLocationsDocumentsSetIamPolicyCalladded inv0.144.0

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

func (*ProjectsLocationsDocumentsSetIamPolicyCall)Contextadded inv0.144.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDocumentsSetIamPolicyCall)Doadded inv0.144.0

Do executes the "apigeeregistry.projects.locations.documents.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsDocumentsSetIamPolicyCall)Fieldsadded inv0.144.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsDocumentsSetIamPolicyCall)Headeradded inv0.144.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsDocumentsTestIamPermissionsCalladded inv0.144.0

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

func (*ProjectsLocationsDocumentsTestIamPermissionsCall)Contextadded inv0.144.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDocumentsTestIamPermissionsCall)Doadded inv0.144.0

Do executes the "apigeeregistry.projects.locations.documents.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsDocumentsTestIamPermissionsCall)Fieldsadded inv0.144.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsDocumentsTestIamPermissionsCall)Headeradded inv0.144.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsGetCall

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

func (*ProjectsLocationsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGetCall)Do

Do executes the "apigeeregistry.projects.locations.get" call.Any non-2xx status code is an error. Response headers are in either*Location.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 was returned.

func (*ProjectsLocationsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsInstancesCreateCall

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

func (*ProjectsLocationsInstancesCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesCreateCall)Do

Do executes the "apigeeregistry.projects.locations.instances.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 was returned.

func (*ProjectsLocationsInstancesCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsInstancesCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsInstancesCreateCall)InstanceId

InstanceId sets the optional parameter "instanceId": Required. Identifier toassign to the Instance. Must be unique within scope of the parent resource.

typeProjectsLocationsInstancesDeleteCall

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

func (*ProjectsLocationsInstancesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesDeleteCall)Do

Do executes the "apigeeregistry.projects.locations.instances.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 was returned.

func (*ProjectsLocationsInstancesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsInstancesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsInstancesGetCall

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

func (*ProjectsLocationsInstancesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesGetCall)Do

Do executes the "apigeeregistry.projects.locations.instances.get" call.Any non-2xx status code is an error. Response headers are in either*Instance.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 was returned.

func (*ProjectsLocationsInstancesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsInstancesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsInstancesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsInstancesGetIamPolicyCall

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

func (*ProjectsLocationsInstancesGetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesGetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.instances.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsInstancesGetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsInstancesGetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsInstancesGetIamPolicyCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsInstancesGetIamPolicyCall)OptionsRequestedPolicyVersion

func (c *ProjectsLocationsInstancesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *ProjectsLocationsInstancesGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).

typeProjectsLocationsInstancesService

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

funcNewProjectsLocationsInstancesService

func NewProjectsLocationsInstancesService(s *Service) *ProjectsLocationsInstancesService

func (*ProjectsLocationsInstancesService)Create

Create: Provisions instance resources for the Registry.

  • parent: Parent resource of the Instance, of the form:`projects/*/locations/*`.

func (*ProjectsLocationsInstancesService)Delete

Delete: Deletes the Registry instance.

  • name: The name of the Instance to delete. Format:`projects/*/locations/*/instances/*`.

func (*ProjectsLocationsInstancesService)Get

Get: Gets details of a single Instance.

  • name: The name of the Instance to retrieve. Format:`projects/*/locations/*/instances/*`.

func (*ProjectsLocationsInstancesService)GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsInstancesService)SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsInstancesService)TestIamPermissions

TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.

typeProjectsLocationsInstancesSetIamPolicyCall

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

func (*ProjectsLocationsInstancesSetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesSetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.instances.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsInstancesSetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsInstancesSetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsInstancesTestIamPermissionsCall

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

func (*ProjectsLocationsInstancesTestIamPermissionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesTestIamPermissionsCall)Do

Do executes the "apigeeregistry.projects.locations.instances.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsInstancesTestIamPermissionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsInstancesTestIamPermissionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsListCall

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

func (*ProjectsLocationsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsListCall)Do

Do executes the "apigeeregistry.projects.locations.list" call.Any non-2xx status code is an error. Response headers are in either*ListLocationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsListCall)Filter

Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).

func (*ProjectsLocationsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.

func (*ProjectsLocationsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.

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

typeProjectsLocationsOperationsCancelCall

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

func (*ProjectsLocationsOperationsCancelCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsCancelCall)Do

Do executes the "apigeeregistry.projects.locations.operations.cancel" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.

func (*ProjectsLocationsOperationsCancelCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsCancelCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsOperationsDeleteCall

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

func (*ProjectsLocationsOperationsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsDeleteCall)Do

Do executes the "apigeeregistry.projects.locations.operations.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.

func (*ProjectsLocationsOperationsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsOperationsGetCall

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

func (*ProjectsLocationsOperationsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsGetCall)Do

Do executes the "apigeeregistry.projects.locations.operations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 was returned.

func (*ProjectsLocationsOperationsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsOperationsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsOperationsListCall

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

func (*ProjectsLocationsOperationsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsListCall)Do

Do executes the "apigeeregistry.projects.locations.operations.list" call.Any non-2xx status code is an error. Response headers are in either*ListOperationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsOperationsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsListCall)Filter

Filter sets the optional parameter "filter": The standard list filter.

func (*ProjectsLocationsOperationsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsOperationsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsOperationsListCall)PageSize

PageSize sets the optional parameter "pageSize": The standard list pagesize.

func (*ProjectsLocationsOperationsListCall)PageToken

PageToken sets the optional parameter "pageToken": The standard list pagetoken.

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

typeProjectsLocationsOperationsService

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

func (*ProjectsLocationsOperationsService)Cancel

Cancel: Starts asynchronous cancellation on a long-running operation. Theserver makes a best effort to cancel the operation, but success is notguaranteed. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation orother methods to check whether the cancellation succeeded or whether theoperation completed despite cancellation. On successful cancellation, theoperation is not deleted; instead, it becomes an operation with anOperation.error value with a google.rpc.Status.code of 1, corresponding to`Code.CANCELLED`.

- name: The name of the operation resource to be cancelled.

func (*ProjectsLocationsOperationsService)Delete

Delete: Deletes a long-running operation. This method indicates that theclient is no longer interested in the operation result. It does not cancelthe operation. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`.

- name: The name of the operation resource to be deleted.

func (*ProjectsLocationsOperationsService)Get

Get: Gets the latest state of a long-running operation. Clients can use thismethod to poll the operation result at intervals as recommended by the APIservice.

- name: The name of the operation resource.

func (*ProjectsLocationsOperationsService)List

List: Lists operations that match the specified filter in the request. Ifthe server doesn't support this method, it returns `UNIMPLEMENTED`.

- name: The name of the operation's parent resource.

typeProjectsLocationsRuntimeGetIamPolicyCall

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

func (*ProjectsLocationsRuntimeGetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRuntimeGetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.runtime.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsRuntimeGetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsRuntimeGetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsRuntimeGetIamPolicyCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsRuntimeGetIamPolicyCall)OptionsRequestedPolicyVersion

func (c *ProjectsLocationsRuntimeGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *ProjectsLocationsRuntimeGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).

typeProjectsLocationsRuntimeService

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

funcNewProjectsLocationsRuntimeService

func NewProjectsLocationsRuntimeService(s *Service) *ProjectsLocationsRuntimeService

func (*ProjectsLocationsRuntimeService)GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsRuntimeService)SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsRuntimeService)TestIamPermissions

TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.

typeProjectsLocationsRuntimeSetIamPolicyCall

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

func (*ProjectsLocationsRuntimeSetIamPolicyCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRuntimeSetIamPolicyCall)Do

Do executes the "apigeeregistry.projects.locations.runtime.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 was returned.

func (*ProjectsLocationsRuntimeSetIamPolicyCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsRuntimeSetIamPolicyCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsRuntimeTestIamPermissionsCall

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

func (*ProjectsLocationsRuntimeTestIamPermissionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRuntimeTestIamPermissionsCall)Do

Do executes the "apigeeregistry.projects.locations.runtime.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsRuntimeTestIamPermissionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsRuntimeTestIamPermissionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsService

type ProjectsLocationsService struct {Apis *ProjectsLocationsApisServiceArtifacts *ProjectsLocationsArtifactsServiceDocuments *ProjectsLocationsDocumentsServiceInstances *ProjectsLocationsInstancesServiceOperations *ProjectsLocationsOperationsServiceRuntime *ProjectsLocationsRuntimeService// contains filtered or unexported fields}

funcNewProjectsLocationsService

func NewProjectsLocationsService(s *Service) *ProjectsLocationsService

func (*ProjectsLocationsService)Get

Get: Gets information about a location.

- name: Resource name for the location.

func (*ProjectsLocationsService)List

List: Lists information about the supported locations for this service.

- name: The resource that owns the locations collection, if applicable.

typeProjectsService

type ProjectsService struct {Locations *ProjectsLocationsService// contains filtered or unexported fields}

funcNewProjectsService

func NewProjectsService(s *Service) *ProjectsService

typeRollbackApiDeploymentRequest

type RollbackApiDeploymentRequest struct {// RevisionId: Required. The revision ID to roll back to. It must be a revision// of the same deployment. Example: `c7cfa2a8`RevisionIdstring `json:"revisionId,omitempty"`// ForceSendFields is a list of field names (e.g. "RevisionId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RevisionId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RollbackApiDeploymentRequest: Request message for RollbackApiDeployment.

func (RollbackApiDeploymentRequest)MarshalJSON

func (sRollbackApiDeploymentRequest) MarshalJSON() ([]byte,error)

typeRollbackApiSpecRequest

type RollbackApiSpecRequest struct {// RevisionId: Required. The revision ID to roll back to. It must be a revision// of the same spec. Example: `c7cfa2a8`RevisionIdstring `json:"revisionId,omitempty"`// ForceSendFields is a list of field names (e.g. "RevisionId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RevisionId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RollbackApiSpecRequest: Request message for RollbackApiSpec.

func (RollbackApiSpecRequest)MarshalJSON

func (sRollbackApiSpecRequest) MarshalJSON() ([]byte,error)

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsService// 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.

funcNewService

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

NewService creates a new Service.

typeSetIamPolicyRequest

type SetIamPolicyRequest 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 Google Cloud services (such as Projects) might reject// them.Policy *Policy `json:"policy,omitempty"`// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SetIamPolicyRequest: Request message for `SetIamPolicy` method.

func (SetIamPolicyRequest)MarshalJSON

func (sSetIamPolicyRequest) MarshalJSON() ([]byte,error)

typeStatus

type Status 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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Status: The `Status` type defines a logical error model that is suitable fordifferent programming environments, including REST APIs and RPC APIs. It isused by gRPC (https://github.com/grpc). Each `Status` message contains threepieces of data: error code, error message, and error details. You can findout more about this error model and how to work with it in the API DesignGuide (https://cloud.google.com/apis/design/errors).

func (Status)MarshalJSON

func (sStatus) MarshalJSON() ([]byte,error)

typeTagApiDeploymentRevisionRequest

type TagApiDeploymentRevisionRequest struct {// Tag: Required. The tag to apply. The tag should be at most 40 characters,// and match `a-z{3,39}`.Tagstring `json:"tag,omitempty"`// ForceSendFields is a list of field names (e.g. "Tag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Tag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TagApiDeploymentRevisionRequest: Request message forTagApiDeploymentRevision.

func (TagApiDeploymentRevisionRequest)MarshalJSON

func (sTagApiDeploymentRevisionRequest) MarshalJSON() ([]byte,error)

typeTagApiSpecRevisionRequest

type TagApiSpecRevisionRequest struct {// Tag: Required. The tag to apply. The tag should be at most 40 characters,// and match `a-z{3,39}`.Tagstring `json:"tag,omitempty"`// ForceSendFields is a list of field names (e.g. "Tag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Tag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TagApiSpecRevisionRequest: Request message for TagApiSpecRevision.

func (TagApiSpecRevisionRequest)MarshalJSON

func (sTagApiSpecRevisionRequest) MarshalJSON() ([]byte,error)

typeTestIamPermissionsRequest

type TestIamPermissionsRequest 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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TestIamPermissionsRequest: Request message for `TestIamPermissions` method.

func (TestIamPermissionsRequest)MarshalJSON

func (sTestIamPermissionsRequest) MarshalJSON() ([]byte,error)

typeTestIamPermissionsResponse

type TestIamPermissionsResponse 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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TestIamPermissionsResponse: Response message for `TestIamPermissions`method.

func (TestIamPermissionsResponse)MarshalJSON

func (sTestIamPermissionsResponse) MarshalJSON() ([]byte,error)

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