apigeeregistry

package
v0.125.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

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

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 for authentication.

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

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

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

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

See https://godoc.org/google.golang.org/api/option/ 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

type Api

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".
	Availability string `json:"availability,omitempty"`

	// CreateTime: Output only. Creation timestamp.
	CreateTime string `json:"createTime,omitempty"`

	// Description: A detailed description.
	Description string `json:"description,omitempty"`

	// DisplayName: Human-meaningful name.
	DisplayName string `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.
	Name string `json:"name,omitempty"`

	// RecommendedDeployment: The recommended deployment of the API. Format:
	// `projects/{project}/locations/{location}/apis/{api}/deployments/{deplo
	// yment}`
	RecommendedDeployment string `json:"recommendedDeployment,omitempty"`

	// RecommendedVersion: The recommended version of the API. Format:
	// `projects/{project}/locations/{location}/apis/{api}/versions/{version}
	// `
	RecommendedVersion string `json:"recommendedVersion,omitempty"`

	// UpdateTime: Output only. Last update timestamp.
	UpdateTime string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Annotations") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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

func (*Api) MarshalJSON

func (s *Api) MarshalJSON() ([]byte, error)

type ApiDeployment

type ApiDeployment struct {
	// AccessGuidance: Text briefly describing how to access the endpoint.
	// Changes to this value will not affect the revision.
	AccessGuidance string `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}`
	ApiSpecRevision string `json:"apiSpecRevision,omitempty"`

	// CreateTime: Output only. Creation timestamp; when the deployment
	// resource was created.
	CreateTime string `json:"createTime,omitempty"`

	// Description: A detailed description.
	Description string `json:"description,omitempty"`

	// DisplayName: Human-meaningful name.
	DisplayName string `json:"displayName,omitempty"`

	// EndpointUri: The address where the deployment is serving. Changes to
	// this value will update the revision.
	EndpointUri string `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.
	ExternalChannelUri string `json:"externalChannelUri,omitempty"`

	// IntendedAudience: Text briefly identifying the intended audience of
	// the API. Changes to this value will not affect the revision.
	IntendedAudience string `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). 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.
	Name string `json:"name,omitempty"`

	// RevisionCreateTime: Output only. Revision creation timestamp; when
	// the represented revision was created.
	RevisionCreateTime string `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.
	RevisionId string `json:"revisionId,omitempty"`

	// RevisionUpdateTime: Output only. Last update timestamp: when the
	// represented revision was last modified.
	RevisionUpdateTime string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccessGuidance") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

ApiDeployment: Describes a service running at particular address that provides a particular version of an API. ApiDeployments have revisions which correspond to different configurations of a single deployment in time. Revision identifiers should be updated whenever the served API spec or endpoint address changes.

func (*ApiDeployment) MarshalJSON

func (s *ApiDeployment) MarshalJSON() ([]byte, error)

type ApiSpec

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.
	Contents string `json:"contents,omitempty"`

	// CreateTime: Output only. Creation timestamp; when the spec resource
	// was created.
	CreateTime string `json:"createTime,omitempty"`

	// Description: A detailed description.
	Description string `json:"description,omitempty"`

	// Filename: A possibly-hierarchical name used to refer to the spec from
	// other specs.
	Filename string `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.
	Hash string `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). 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"`

	// 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").
	MimeType string `json:"mimeType,omitempty"`

	// Name: Resource name.
	Name string `json:"name,omitempty"`

	// RevisionCreateTime: Output only. Revision creation timestamp; when
	// the represented revision was created.
	RevisionCreateTime string `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.
	RevisionId string `json:"revisionId,omitempty"`

	// RevisionUpdateTime: Output only. Last update timestamp: when the
	// represented revision was last modified.
	RevisionUpdateTime string `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.
	SizeBytes int64 `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.
	SourceUri string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Annotations") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ApiSpec: Describes a version of an API in a structured way. ApiSpecs provide formal descriptions that consumers can use to use a version. ApiSpec resources 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 to provide representations in different API description formats. Synchronization of these representations would be provided by tooling and background services.

func (*ApiSpec) MarshalJSON

func (s *ApiSpec) MarshalJSON() ([]byte, error)

type ApiVersion

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.
	CreateTime string `json:"createTime,omitempty"`

	// Description: A detailed description.
	Description string `json:"description,omitempty"`

	// DisplayName: Human-meaningful name.
	DisplayName string `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.
	Name string `json:"name,omitempty"`

	// PrimarySpec: The primary spec for this version. Format:
	// projects/{project}/locations/{location}/apis/{api}/versions/{version}/
	// specs/{spec}
	PrimarySpec string `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".
	State string `json:"state,omitempty"`

	// UpdateTime: Output only. Last update timestamp.
	UpdateTime string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Annotations") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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

func (*ApiVersion) MarshalJSON

func (s *ApiVersion) MarshalJSON() ([]byte, error)

type Artifact

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.
	Contents string `json:"contents,omitempty"`

	// CreateTime: Output only. Creation timestamp.
	CreateTime string `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.
	Hash string `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). See https://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").
	MimeType string `json:"mimeType,omitempty"`

	// Name: Resource name.
	Name string `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.
	SizeBytes int64 `json:"sizeBytes,omitempty"`

	// UpdateTime: Output only. Last update timestamp.
	UpdateTime string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Annotations") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Artifact: Artifacts of resources. Artifacts are unique (single-value) per resource and are used to store metadata that is too large or numerous to be stored directly on the resource. Since artifacts are stored separately from parent resources, they should generally be used for metadata that is needed infrequently, i.e., not for display in primary views of the resource but perhaps displayed or downloaded upon request. The `ListArtifacts` method allows artifacts to be quickly enumerated and checked for presence without downloading their (potentially-large) contents.

func (*Artifact) MarshalJSON

func (s *Artifact) MarshalJSON() ([]byte, error)

type Binding

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`.
	Role string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Condition") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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

func (*Binding) MarshalJSON

func (s *Binding) MarshalJSON() ([]byte, error)

type Build added in v0.110.0

type Build struct {
	// CommitId: Output only. Commit ID of the latest commit in the build.
	CommitId string `json:"commitId,omitempty"`

	// CommitTime: Output only. Commit time of the latest commit in the
	// build.
	CommitTime string `json:"commitTime,omitempty"`

	// Repo: Output only. Path of the open source repository:
	// github.com/apigee/registry.
	Repo string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "CommitId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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

func (*Build) MarshalJSON added in v0.110.0

func (s *Build) MarshalJSON() ([]byte, error)

type CancelOperationRequest

type CancelOperationRequest struct {
}

CancelOperationRequest: The request message for Operations.CancelOperation.

type Config

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.
	CmekKeyName string `json:"cmekKeyName,omitempty"`

	// Location: Output only. The GCP location where the Instance resides.
	Location string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "CmekKeyName") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Config: Available configurations to provision an Instance.

func (*Config) MarshalJSON

func (s *Config) MarshalJSON() ([]byte, error)

type Empty

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 defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

type Expr

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.
	Description string `json:"description,omitempty"`

	// Expression: Textual representation of an expression in Common
	// Expression Language syntax.
	Expression string `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.
	Location string `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.
	Title string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Description") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Expr: Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.

func (*Expr) MarshalJSON

func (s *Expr) MarshalJSON() ([]byte, error)

type HttpBody

type HttpBody struct {
	// ContentType: The HTTP Content-Type header value specifying the
	// content type of the body.
	ContentType string `json:"contentType,omitempty"`

	// Data: The HTTP request/response body as raw binary.
	Data string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ContentType") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

HttpBody: Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw 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: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.

func (*HttpBody) MarshalJSON

func (s *HttpBody) MarshalJSON() ([]byte, error)

type Instance

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.
	CreateTime string `json:"createTime,omitempty"`

	// Name: Format: `projects/*/locations/*/instance`. Currently only
	// `locations/global` is supported.
	Name string `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.
	State string `json:"state,omitempty"`

	// StateMessage: Output only. Extra information of Instance.State if the
	// state is `FAILED`.
	StateMessage string `json:"stateMessage,omitempty"`

	// UpdateTime: Output only. Last update timestamp.
	UpdateTime string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Build") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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

func (*Instance) MarshalJSON

func (s *Instance) MarshalJSON() ([]byte, error)

type ListApiDeploymentRevisionsResponse

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.
	NextPageToken string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ApiDeployments") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

ListApiDeploymentRevisionsResponse: Response message for ListApiDeploymentRevisionsResponse.

func (*ListApiDeploymentRevisionsResponse) MarshalJSON

func (s *ListApiDeploymentRevisionsResponse) MarshalJSON() ([]byte, error)

type ListApiDeploymentsResponse

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.
	NextPageToken string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ApiDeployments") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

ListApiDeploymentsResponse: Response message for ListApiDeployments.

func (*ListApiDeploymentsResponse) MarshalJSON

func (s *ListApiDeploymentsResponse) MarshalJSON() ([]byte, error)

type ListApiSpecRevisionsResponse

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.
	NextPageToken string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ApiSpecs") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListApiSpecRevisionsResponse: Response message for ListApiSpecRevisionsResponse.

func (*ListApiSpecRevisionsResponse) MarshalJSON

func (s *ListApiSpecRevisionsResponse) MarshalJSON() ([]byte, error)

type ListApiSpecsResponse

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.
	NextPageToken string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ApiSpecs") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListApiSpecsResponse: Response message for ListApiSpecs.

func (*ListApiSpecsResponse) MarshalJSON

func (s *ListApiSpecsResponse) MarshalJSON() ([]byte, error)

type ListApiVersionsResponse

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.
	NextPageToken string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ApiVersions") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListApiVersionsResponse: Response message for ListApiVersions.

func (*ListApiVersionsResponse) MarshalJSON

func (s *ListApiVersionsResponse) MarshalJSON() ([]byte, error)

type ListApisResponse

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.
	NextPageToken string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Apis") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListApisResponse: Response message for ListApis.

func (*ListApisResponse) MarshalJSON

func (s *ListApisResponse) MarshalJSON() ([]byte, error)

type ListArtifactsResponse

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.
	NextPageToken string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Artifacts") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListArtifactsResponse: Response message for ListArtifacts.

func (*ListArtifactsResponse) MarshalJSON

func (s *ListArtifactsResponse) MarshalJSON() ([]byte, error)

type ListLocationsResponse

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.
	NextPageToken string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Locations") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListLocationsResponse: The response message for Locations.ListLocations.

func (*ListLocationsResponse) MarshalJSON

func (s *ListLocationsResponse) MarshalJSON() ([]byte, error)

type ListOperationsResponse

type ListOperationsResponse struct {
	// NextPageToken: The standard List next-page token.
	NextPageToken string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "NextPageToken") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListOperationsResponse: The response message for Operations.ListOperations.

func (*ListOperationsResponse) MarshalJSON

func (s *ListOperationsResponse) MarshalJSON() ([]byte, error)

type Location

type Location struct {
	// DisplayName: The friendly name for this location, typically a nearby
	// city name. For example, "Tokyo".
	DisplayName string `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".
	LocationId string `json:"locationId,omitempty"`

	// Metadata: Service-specific metadata. For example the available
	// capacity at the given location.
	Metadata googleapi.RawMessage `json:"metadata,omitempty"`

	// Name: Resource name for the location, which may vary between
	// implementations. For example:
	// "projects/example-project/locations/us-east1"
	Name string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "DisplayName") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Location: A resource that represents Google Cloud Platform location.

func (*Location) MarshalJSON

func (s *Location) MarshalJSON() ([]byte, error)

type Operation

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.
	Done bool `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.
	Metadata googleapi.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}`.
	Name string `json:"name,omitempty"`

	// Response: The normal response of the operation in case of success. If
	// the original method returns no data on success, such as `Delete`, the
	// response is `google.protobuf.Empty`. If the original method is
	// standard `Get`/`Create`/`Update`, the response should be the
	// resource. For other methods, the response should have the type
	// `XxxResponse`, where `Xxx` is the original method name. For example,
	// if the original method name is `TakeSnapshot()`, the inferred
	// response type is `TakeSnapshotResponse`.
	Response googleapi.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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Done") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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

func (*Operation) MarshalJSON

func (s *Operation) MarshalJSON() ([]byte, error)

type OperationMetadata

type OperationMetadata struct {
	// ApiVersion: API version used to start the operation.
	ApiVersion string `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`.
	CancellationRequested bool `json:"cancellationRequested,omitempty"`

	// CreateTime: The time the operation was created.
	CreateTime string `json:"createTime,omitempty"`

	// EndTime: The time the operation finished running.
	EndTime string `json:"endTime,omitempty"`

	// StatusMessage: Human-readable status of the operation, if any.
	StatusMessage string `json:"statusMessage,omitempty"`

	// Target: Server-defined resource path for the target of the operation.
	Target string `json:"target,omitempty"`

	// Verb: Name of the verb executed by the operation.
	Verb string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ApiVersion") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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

func (*OperationMetadata) MarshalJSON

func (s *OperationMetadata) MarshalJSON() ([]byte, error)

type Policy

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.
	Etag string `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).
	Version int64 `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Bindings") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Policy: An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).

func (*Policy) MarshalJSON

func (s *Policy) MarshalJSON() ([]byte, error)

type ProjectsLocationsApisArtifactsCreateCall

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

func (*ProjectsLocationsApisArtifactsCreateCall) ArtifactId

ArtifactId sets the optional parameter "artifactId": Required. The ID to use for the artifact, which will become the final component of the artifact's resource name. 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 (*ProjectsLocationsApisArtifactsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisArtifactsCreateCall) Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.create" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisArtifactsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisArtifactsCreateCall) Header

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

type ProjectsLocationsApisArtifactsDeleteCall

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

func (*ProjectsLocationsApisArtifactsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisArtifactsDeleteCall) Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisArtifactsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisArtifactsDeleteCall) Header

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

type ProjectsLocationsApisArtifactsGetCall

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

func (*ProjectsLocationsApisArtifactsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisArtifactsGetCall) Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.get" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisArtifactsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisArtifactsGetCall) Header

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

func (*ProjectsLocationsApisArtifactsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisArtifactsGetContentsCall

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

func (*ProjectsLocationsApisArtifactsGetContentsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisArtifactsGetContentsCall) Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.getContents" call. Exactly one of *HttpBody or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HttpBody.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisArtifactsGetContentsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisArtifactsGetContentsCall) Header

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

func (*ProjectsLocationsApisArtifactsGetContentsCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisArtifactsGetIamPolicyCall

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

func (*ProjectsLocationsApisArtifactsGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisArtifactsGetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisArtifactsGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisArtifactsGetIamPolicyCall) Header

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

func (*ProjectsLocationsApisArtifactsGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisArtifactsGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsApisArtifactsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsApisArtifactsGetIamPolicyCall

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

type ProjectsLocationsApisArtifactsListCall

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

func (*ProjectsLocationsApisArtifactsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisArtifactsListCall) Do

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

func (*ProjectsLocationsApisArtifactsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisArtifactsListCall) Filter

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

func (*ProjectsLocationsApisArtifactsListCall) Header

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

func (*ProjectsLocationsApisArtifactsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisArtifactsListCall) OrderBy added in v0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list of fields, 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 of artifacts to return. The service may return fewer than this value. If unspecified, at most 50 values will be returned. The maximum is 1000; values above 1000 will be coerced to 1000.

func (*ProjectsLocationsApisArtifactsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListArtifacts` call. Provide this to retrieve the subsequent 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.

type ProjectsLocationsApisArtifactsReplaceArtifactCall

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

func (*ProjectsLocationsApisArtifactsReplaceArtifactCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisArtifactsReplaceArtifactCall) Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.replaceArtifact" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisArtifactsReplaceArtifactCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisArtifactsReplaceArtifactCall) Header

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

type ProjectsLocationsApisArtifactsService

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

func NewProjectsLocationsApisArtifactsService

func NewProjectsLocationsApisArtifactsService(s *Service) *ProjectsLocationsApisArtifactsService

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 are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

  • 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 an empty 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 specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

type ProjectsLocationsApisArtifactsSetIamPolicyCall

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

func (*ProjectsLocationsApisArtifactsSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisArtifactsSetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.artifacts.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisArtifactsSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisArtifactsSetIamPolicyCall) Header

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

type ProjectsLocationsApisArtifactsTestIamPermissionsCall

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

func (*ProjectsLocationsApisArtifactsTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisArtifactsTestIamPermissionsCall) Do

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

func (*ProjectsLocationsApisArtifactsTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisArtifactsTestIamPermissionsCall) Header

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

type ProjectsLocationsApisCreateCall

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

func (*ProjectsLocationsApisCreateCall) ApiId

ApiId sets the optional parameter "apiId": Required. The ID to use for the API, which will become the final component of the API's resource name. 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 (*ProjectsLocationsApisCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisCreateCall) Do

Do executes the "apigeeregistry.projects.locations.apis.create" call. Exactly one of *Api or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Api.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisCreateCall) Header

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

type ProjectsLocationsApisDeleteCall

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

func (*ProjectsLocationsApisDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeleteCall) Do

Do executes the "apigeeregistry.projects.locations.apis.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeleteCall) Force added in v0.88.0

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

func (*ProjectsLocationsApisDeleteCall) Header

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

type ProjectsLocationsApisDeploymentsArtifactsCreateCall

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

func (*ProjectsLocationsApisDeploymentsArtifactsCreateCall) ArtifactId

ArtifactId sets the optional parameter "artifactId": Required. The ID to use for the artifact, which will become the final component of the artifact's resource name. 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 (*ProjectsLocationsApisDeploymentsArtifactsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsArtifactsCreateCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.create" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsArtifactsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsArtifactsCreateCall) Header

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

type ProjectsLocationsApisDeploymentsArtifactsDeleteCall

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

func (*ProjectsLocationsApisDeploymentsArtifactsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsArtifactsDeleteCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsArtifactsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsArtifactsDeleteCall) Header

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

type ProjectsLocationsApisDeploymentsArtifactsGetCall

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

func (*ProjectsLocationsApisDeploymentsArtifactsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsArtifactsGetCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.get" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsArtifactsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsArtifactsGetCall) Header

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

func (*ProjectsLocationsApisDeploymentsArtifactsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisDeploymentsArtifactsGetContentsCall

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

func (*ProjectsLocationsApisDeploymentsArtifactsGetContentsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsArtifactsGetContentsCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.getContents" call. Exactly one of *HttpBody or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HttpBody.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsArtifactsGetContentsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsArtifactsGetContentsCall) Header

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

func (*ProjectsLocationsApisDeploymentsArtifactsGetContentsCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisDeploymentsArtifactsListCall

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

func (*ProjectsLocationsApisDeploymentsArtifactsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsArtifactsListCall) Do

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

func (*ProjectsLocationsApisDeploymentsArtifactsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsArtifactsListCall) Filter

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

func (*ProjectsLocationsApisDeploymentsArtifactsListCall) Header

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

func (*ProjectsLocationsApisDeploymentsArtifactsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisDeploymentsArtifactsListCall) OrderBy added in v0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list of fields, 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 of artifacts to return. The service may return fewer than this value. If unspecified, at most 50 values will be returned. The maximum is 1000; values above 1000 will be coerced to 1000.

func (*ProjectsLocationsApisDeploymentsArtifactsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListArtifacts` call. Provide this to retrieve the subsequent 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.

type ProjectsLocationsApisDeploymentsArtifactsReplaceArtifactCall

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

func (*ProjectsLocationsApisDeploymentsArtifactsReplaceArtifactCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsArtifactsReplaceArtifactCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.replaceArtifact" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsArtifactsReplaceArtifactCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsArtifactsReplaceArtifactCall) Header

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

type ProjectsLocationsApisDeploymentsArtifactsService

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

func NewProjectsLocationsApisDeploymentsArtifactsService

func NewProjectsLocationsApisDeploymentsArtifactsService(s *Service) *ProjectsLocationsApisDeploymentsArtifactsService

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 are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

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

type ProjectsLocationsApisDeploymentsCreateCall

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

func (*ProjectsLocationsApisDeploymentsCreateCall) ApiDeploymentId

ApiDeploymentId sets the optional parameter "apiDeploymentId": Required. The ID to use for the deployment, which will become the final component of the deployment's resource name. 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 (*ProjectsLocationsApisDeploymentsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsCreateCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.create" call. Exactly one of *ApiDeployment or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsCreateCall) Header

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

type ProjectsLocationsApisDeploymentsDeleteCall

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

func (*ProjectsLocationsApisDeploymentsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsDeleteCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsDeleteCall) Force

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

func (*ProjectsLocationsApisDeploymentsDeleteCall) Header

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

type ProjectsLocationsApisDeploymentsDeleteRevisionCall

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

func (*ProjectsLocationsApisDeploymentsDeleteRevisionCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsDeleteRevisionCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.deleteRevision" call. Exactly one of *ApiDeployment or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsDeleteRevisionCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsDeleteRevisionCall) Header

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

type ProjectsLocationsApisDeploymentsGetCall

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

func (*ProjectsLocationsApisDeploymentsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsGetCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.get" call. Exactly one of *ApiDeployment or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsGetCall) Header

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

func (*ProjectsLocationsApisDeploymentsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisDeploymentsGetIamPolicyCall

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

func (*ProjectsLocationsApisDeploymentsGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsGetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsGetIamPolicyCall) Header

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

func (*ProjectsLocationsApisDeploymentsGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisDeploymentsGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsApisDeploymentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsApisDeploymentsGetIamPolicyCall

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

type ProjectsLocationsApisDeploymentsListCall

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

func (*ProjectsLocationsApisDeploymentsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsListCall) Do

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

func (*ProjectsLocationsApisDeploymentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsListCall) Filter

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

func (*ProjectsLocationsApisDeploymentsListCall) Header

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

func (*ProjectsLocationsApisDeploymentsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisDeploymentsListCall) OrderBy added in v0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list of fields, 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 of deployments to return. The service may return fewer than this value. If unspecified, at most 50 values will be returned. The maximum is 1000; values above 1000 will be coerced to 1000.

func (*ProjectsLocationsApisDeploymentsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListApiDeployments` call. Provide this to retrieve the subsequent 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.

type ProjectsLocationsApisDeploymentsListRevisionsCall

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

func (*ProjectsLocationsApisDeploymentsListRevisionsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsListRevisionsCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.listRevisions" call. Exactly one of *ListApiDeploymentRevisionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListApiDeploymentRevisionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsListRevisionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsListRevisionsCall) Filter added in v0.109.0

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

func (*ProjectsLocationsApisDeploymentsListRevisionsCall) Header

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

func (*ProjectsLocationsApisDeploymentsListRevisionsCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisDeploymentsListRevisionsCall) PageSize

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

func (*ProjectsLocationsApisDeploymentsListRevisionsCall) PageToken

PageToken sets the optional parameter "pageToken": The page token, received from a previous ListApiDeploymentRevisions call. Provide this to retrieve the 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.

type ProjectsLocationsApisDeploymentsPatchCall

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

func (*ProjectsLocationsApisDeploymentsPatchCall) AllowMissing

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

func (*ProjectsLocationsApisDeploymentsPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsPatchCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.patch" call. Exactly one of *ApiDeployment or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsPatchCall) Header

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

func (*ProjectsLocationsApisDeploymentsPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

type ProjectsLocationsApisDeploymentsRollbackCall

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

func (*ProjectsLocationsApisDeploymentsRollbackCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsRollbackCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.rollback" call. Exactly one of *ApiDeployment or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsRollbackCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsRollbackCall) Header

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

type ProjectsLocationsApisDeploymentsService

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

func NewProjectsLocationsApisDeploymentsService

func NewProjectsLocationsApisDeploymentsService(s *Service) *ProjectsLocationsApisDeploymentsService

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 child resources (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 revision ID explicitly included. Example: `projects/sample/locations/global/apis/petstore/deployments/prod@c7c fa2a8`.

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 an empty 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 returned in 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 that this 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 ID.

func (*ProjectsLocationsApisDeploymentsService) TestIamPermissions

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

type ProjectsLocationsApisDeploymentsSetIamPolicyCall

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

func (*ProjectsLocationsApisDeploymentsSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsSetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsSetIamPolicyCall) Header

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

type ProjectsLocationsApisDeploymentsTagRevisionCall

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

func (*ProjectsLocationsApisDeploymentsTagRevisionCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsTagRevisionCall) Do

Do executes the "apigeeregistry.projects.locations.apis.deployments.tagRevision" call. Exactly one of *ApiDeployment or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisDeploymentsTagRevisionCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsTagRevisionCall) Header

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

type ProjectsLocationsApisDeploymentsTestIamPermissionsCall

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

func (*ProjectsLocationsApisDeploymentsTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisDeploymentsTestIamPermissionsCall) Do

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

func (*ProjectsLocationsApisDeploymentsTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisDeploymentsTestIamPermissionsCall) Header

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

type ProjectsLocationsApisGetCall

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

func (*ProjectsLocationsApisGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisGetCall) Do

Do executes the "apigeeregistry.projects.locations.apis.get" call. Exactly one of *Api or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Api.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisGetCall) Header

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

func (*ProjectsLocationsApisGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisGetIamPolicyCall

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

func (*ProjectsLocationsApisGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisGetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisGetIamPolicyCall) Header

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

func (*ProjectsLocationsApisGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsApisGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsApisGetIamPolicyCall

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

type ProjectsLocationsApisListCall

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

func (*ProjectsLocationsApisListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisListCall) Do

Do executes the "apigeeregistry.projects.locations.apis.list" call. Exactly one of *ListApisResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListApisResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisListCall) Filter

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

func (*ProjectsLocationsApisListCall) Header

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

func (*ProjectsLocationsApisListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisListCall) OrderBy added in v0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list of fields, 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 APIs to return. The service may return fewer than this value. If unspecified, at most 50 values will be returned. The maximum is 1000; values above 1000 will be coerced to 1000.

func (*ProjectsLocationsApisListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListApis` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListApis` must match 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.

type ProjectsLocationsApisPatchCall

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

func (*ProjectsLocationsApisPatchCall) AllowMissing

AllowMissing sets the optional parameter "allowMissing": If set to true, and the 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. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisPatchCall) Do

Do executes the "apigeeregistry.projects.locations.apis.patch" call. Exactly one of *Api or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Api.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisPatchCall) Header

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

func (*ProjectsLocationsApisPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

type ProjectsLocationsApisService

type ProjectsLocationsApisService struct {
	Artifacts *ProjectsLocationsApisArtifactsService

	Deployments *ProjectsLocationsApisDeploymentsService

	Versions *ProjectsLocationsApisVersionsService
	// contains filtered or unexported fields
}

func NewProjectsLocationsApisService

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 an empty 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

func (r *ProjectsLocationsApisService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsApisSetIamPolicyCall

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(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsApisTestIamPermissionsCall

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

type ProjectsLocationsApisSetIamPolicyCall

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

func (*ProjectsLocationsApisSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisSetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisSetIamPolicyCall) Header

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

type ProjectsLocationsApisTestIamPermissionsCall

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

func (*ProjectsLocationsApisTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisTestIamPermissionsCall) Do

Do executes the "apigeeregistry.projects.locations.apis.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisTestIamPermissionsCall) Header

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

type ProjectsLocationsApisVersionsArtifactsCreateCall

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

func (*ProjectsLocationsApisVersionsArtifactsCreateCall) ArtifactId

ArtifactId sets the optional parameter "artifactId": Required. The ID to use for the artifact, which will become the final component of the artifact's resource name. 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 (*ProjectsLocationsApisVersionsArtifactsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsArtifactsCreateCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.create" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsArtifactsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsArtifactsCreateCall) Header

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

type ProjectsLocationsApisVersionsArtifactsDeleteCall

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

func (*ProjectsLocationsApisVersionsArtifactsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsArtifactsDeleteCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsArtifactsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsArtifactsDeleteCall) Header

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

type ProjectsLocationsApisVersionsArtifactsGetCall

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

func (*ProjectsLocationsApisVersionsArtifactsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsArtifactsGetCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.get" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsArtifactsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsArtifactsGetCall) Header

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

func (*ProjectsLocationsApisVersionsArtifactsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisVersionsArtifactsGetContentsCall

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

func (*ProjectsLocationsApisVersionsArtifactsGetContentsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsArtifactsGetContentsCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.getContents" call. Exactly one of *HttpBody or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HttpBody.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsArtifactsGetContentsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsArtifactsGetContentsCall) Header

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

func (*ProjectsLocationsApisVersionsArtifactsGetContentsCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall) Header

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

func (*ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall

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

type ProjectsLocationsApisVersionsArtifactsListCall

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

func (*ProjectsLocationsApisVersionsArtifactsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsArtifactsListCall) Do

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

func (*ProjectsLocationsApisVersionsArtifactsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsArtifactsListCall) Filter

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

func (*ProjectsLocationsApisVersionsArtifactsListCall) Header

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

func (*ProjectsLocationsApisVersionsArtifactsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisVersionsArtifactsListCall) OrderBy added in v0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list of fields, 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 of artifacts to return. The service may return fewer than this value. If unspecified, at most 50 values will be returned. The maximum is 1000; values above 1000 will be coerced to 1000.

func (*ProjectsLocationsApisVersionsArtifactsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListArtifacts` call. Provide this to retrieve the subsequent 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.

type ProjectsLocationsApisVersionsArtifactsReplaceArtifactCall

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

func (*ProjectsLocationsApisVersionsArtifactsReplaceArtifactCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsArtifactsReplaceArtifactCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.replaceArtifact" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsArtifactsReplaceArtifactCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsArtifactsReplaceArtifactCall) Header

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

type ProjectsLocationsApisVersionsArtifactsService

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

func NewProjectsLocationsApisVersionsArtifactsService

func NewProjectsLocationsApisVersionsArtifactsService(s *Service) *ProjectsLocationsApisVersionsArtifactsService

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 are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

  • 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 an empty 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 specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

type ProjectsLocationsApisVersionsArtifactsSetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsArtifactsSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsArtifactsSetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsArtifactsSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsArtifactsSetIamPolicyCall) Header

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

type ProjectsLocationsApisVersionsArtifactsTestIamPermissionsCall

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

func (*ProjectsLocationsApisVersionsArtifactsTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsArtifactsTestIamPermissionsCall) Do

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

func (*ProjectsLocationsApisVersionsArtifactsTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsArtifactsTestIamPermissionsCall) Header

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

type ProjectsLocationsApisVersionsCreateCall

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

func (*ProjectsLocationsApisVersionsCreateCall) ApiVersionId

ApiVersionId sets the optional parameter "apiVersionId": Required. The ID to use for the version, which will become the final component of the version's resource name. This value should be 1-63 characters, and valid characters are /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. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsCreateCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.create" call. Exactly one of *ApiVersion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApiVersion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsCreateCall) Header

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

type ProjectsLocationsApisVersionsDeleteCall

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

func (*ProjectsLocationsApisVersionsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsDeleteCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsDeleteCall) Force added in v0.88.0

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

func (*ProjectsLocationsApisVersionsDeleteCall) Header

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

type ProjectsLocationsApisVersionsGetCall

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

func (*ProjectsLocationsApisVersionsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsGetCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.get" call. Exactly one of *ApiVersion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApiVersion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsGetCall) Header

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

func (*ProjectsLocationsApisVersionsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisVersionsGetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsGetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsGetIamPolicyCall) Header

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

func (*ProjectsLocationsApisVersionsGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisVersionsGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsApisVersionsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsApisVersionsGetIamPolicyCall

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

type ProjectsLocationsApisVersionsListCall

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

func (*ProjectsLocationsApisVersionsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsListCall) Do

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

func (*ProjectsLocationsApisVersionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsListCall) Filter

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

func (*ProjectsLocationsApisVersionsListCall) Header

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

func (*ProjectsLocationsApisVersionsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisVersionsListCall) OrderBy added in v0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list of fields, 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 of versions to return. The service may return fewer than this value. If unspecified, at most 50 values will be returned. The maximum is 1000; values above 1000 will be coerced to 1000.

func (*ProjectsLocationsApisVersionsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListApiVersions` call. Provide this to retrieve the subsequent 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.

type ProjectsLocationsApisVersionsPatchCall

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

func (*ProjectsLocationsApisVersionsPatchCall) AllowMissing

AllowMissing sets the optional parameter "allowMissing": If set to true, and the 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. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsPatchCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.patch" call. Exactly one of *ApiVersion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApiVersion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsPatchCall) Header

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

func (*ProjectsLocationsApisVersionsPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

type ProjectsLocationsApisVersionsService

type ProjectsLocationsApisVersionsService struct {
	Artifacts *ProjectsLocationsApisVersionsArtifactsService

	Specs *ProjectsLocationsApisVersionsSpecsService
	// contains filtered or unexported fields
}

func NewProjectsLocationsApisVersionsService

func NewProjectsLocationsApisVersionsService(s *Service) *ProjectsLocationsApisVersionsService

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 an empty 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 specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

type ProjectsLocationsApisVersionsSetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSetIamPolicyCall) Header

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

type ProjectsLocationsApisVersionsSpecsArtifactsCreateCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsCreateCall) ArtifactId

ArtifactId sets the optional parameter "artifactId": Required. The ID to use for the artifact, which will become the final component of the artifact's resource name. 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 (*ProjectsLocationsApisVersionsSpecsArtifactsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsArtifactsCreateCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.create" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsArtifactsCreateCall) Header

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

type ProjectsLocationsApisVersionsSpecsArtifactsDeleteCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsArtifactsDeleteCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsArtifactsDeleteCall) Header

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

type ProjectsLocationsApisVersionsSpecsArtifactsGetCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.get" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetCall) Header

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.getContents" call. Exactly one of *HttpBody or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HttpBody.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall) Header

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall) Header

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall) OptionsRequestedPolicyVersion

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

type ProjectsLocationsApisVersionsSpecsArtifactsListCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall) Do

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall) Filter

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall) Header

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall) OrderBy added in v0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list of fields, 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 of artifacts to return. The service may return fewer than this value. If unspecified, at most 50 values will be returned. The maximum is 1000; values above 1000 will be coerced to 1000.

func (*ProjectsLocationsApisVersionsSpecsArtifactsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListArtifacts` call. Provide this to retrieve the subsequent 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.

type ProjectsLocationsApisVersionsSpecsArtifactsReplaceArtifactCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsReplaceArtifactCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsArtifactsReplaceArtifactCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.replaceArtifact" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsReplaceArtifactCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsArtifactsReplaceArtifactCall) Header

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

type ProjectsLocationsApisVersionsSpecsArtifactsService

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 are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

  • 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 an empty 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 specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

type ProjectsLocationsApisVersionsSpecsArtifactsSetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsArtifactsSetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsArtifactsSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsArtifactsSetIamPolicyCall) Header

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

type ProjectsLocationsApisVersionsSpecsArtifactsTestIamPermissionsCall

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsArtifactsTestIamPermissionsCall) Do

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

func (*ProjectsLocationsApisVersionsSpecsArtifactsTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsArtifactsTestIamPermissionsCall) Header

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

type ProjectsLocationsApisVersionsSpecsCreateCall

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

func (*ProjectsLocationsApisVersionsSpecsCreateCall) ApiSpecId

ApiSpecId sets the optional parameter "apiSpecId": Required. The ID to use for the spec, which will become the final component of the spec's resource name. 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. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsCreateCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.create" call. Exactly one of *ApiSpec or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApiSpec.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsCreateCall) Header

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

type ProjectsLocationsApisVersionsSpecsDeleteCall

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

func (*ProjectsLocationsApisVersionsSpecsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsDeleteCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsDeleteCall) Force

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

func (*ProjectsLocationsApisVersionsSpecsDeleteCall) Header

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

type ProjectsLocationsApisVersionsSpecsDeleteRevisionCall

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

func (*ProjectsLocationsApisVersionsSpecsDeleteRevisionCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsDeleteRevisionCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.deleteRevision" call. Exactly one of *ApiSpec or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApiSpec.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsDeleteRevisionCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsDeleteRevisionCall) Header

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

type ProjectsLocationsApisVersionsSpecsGetCall

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

func (*ProjectsLocationsApisVersionsSpecsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsGetCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.get" call. Exactly one of *ApiSpec or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApiSpec.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsGetCall) Header

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

func (*ProjectsLocationsApisVersionsSpecsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisVersionsSpecsGetContentsCall

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

func (*ProjectsLocationsApisVersionsSpecsGetContentsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsGetContentsCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.getContents" call. Exactly one of *HttpBody or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HttpBody.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsGetContentsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsGetContentsCall) Header

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

func (*ProjectsLocationsApisVersionsSpecsGetContentsCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsApisVersionsSpecsGetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsSpecsGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsGetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsGetIamPolicyCall) Header

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

func (*ProjectsLocationsApisVersionsSpecsGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisVersionsSpecsGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsApisVersionsSpecsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsApisVersionsSpecsGetIamPolicyCall

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

type ProjectsLocationsApisVersionsSpecsListCall

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

func (*ProjectsLocationsApisVersionsSpecsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsListCall) Do

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

func (*ProjectsLocationsApisVersionsSpecsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsListCall) Filter

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

func (*ProjectsLocationsApisVersionsSpecsListCall) Header

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

func (*ProjectsLocationsApisVersionsSpecsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisVersionsSpecsListCall) OrderBy added in v0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list of fields, 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 specs to return. The service may return fewer than this value. If unspecified, at most 50 values will be returned. The maximum is 1000; values above 1000 will be coerced to 1000.

func (*ProjectsLocationsApisVersionsSpecsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListApiSpecs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListApiSpecs` must match 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.

type ProjectsLocationsApisVersionsSpecsListRevisionsCall

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

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall) Do

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

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall) Filter added in v0.109.0

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

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall) Header

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

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall) PageSize

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

func (*ProjectsLocationsApisVersionsSpecsListRevisionsCall) PageToken

PageToken sets the optional parameter "pageToken": The page token, received from a previous ListApiSpecRevisions call. Provide this to retrieve the subsequent 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.

type ProjectsLocationsApisVersionsSpecsPatchCall

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

func (*ProjectsLocationsApisVersionsSpecsPatchCall) AllowMissing

AllowMissing sets the optional parameter "allowMissing": If set to true, and the 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. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsPatchCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.patch" call. Exactly one of *ApiSpec or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApiSpec.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsPatchCall) Header

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

func (*ProjectsLocationsApisVersionsSpecsPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

type ProjectsLocationsApisVersionsSpecsRollbackCall

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

func (*ProjectsLocationsApisVersionsSpecsRollbackCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsRollbackCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.rollback" call. Exactly one of *ApiSpec or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApiSpec.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsRollbackCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsRollbackCall) Header

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

type ProjectsLocationsApisVersionsSpecsService

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

func NewProjectsLocationsApisVersionsSpecsService

func NewProjectsLocationsApisVersionsSpecsService(s *Service) *ProjectsLocationsApisVersionsSpecsService

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 ID explicitly 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 stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

  • 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 an empty 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 in descending 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 that this 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.

func (*ProjectsLocationsApisVersionsSpecsService) TestIamPermissions

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

type ProjectsLocationsApisVersionsSpecsSetIamPolicyCall

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

func (*ProjectsLocationsApisVersionsSpecsSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsSetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsSetIamPolicyCall) Header

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

type ProjectsLocationsApisVersionsSpecsTagRevisionCall

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

func (*ProjectsLocationsApisVersionsSpecsTagRevisionCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsTagRevisionCall) Do

Do executes the "apigeeregistry.projects.locations.apis.versions.specs.tagRevision" call. Exactly one of *ApiSpec or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApiSpec.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsApisVersionsSpecsTagRevisionCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsTagRevisionCall) Header

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

type ProjectsLocationsApisVersionsSpecsTestIamPermissionsCall

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

func (*ProjectsLocationsApisVersionsSpecsTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsSpecsTestIamPermissionsCall) Do

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

func (*ProjectsLocationsApisVersionsSpecsTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsSpecsTestIamPermissionsCall) Header

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

type ProjectsLocationsApisVersionsTestIamPermissionsCall

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

func (*ProjectsLocationsApisVersionsTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsApisVersionsTestIamPermissionsCall) Do

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

func (*ProjectsLocationsApisVersionsTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsApisVersionsTestIamPermissionsCall) Header

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

type ProjectsLocationsArtifactsCreateCall

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

func (*ProjectsLocationsArtifactsCreateCall) ArtifactId

ArtifactId sets the optional parameter "artifactId": Required. The ID to use for the artifact, which will become the final component of the artifact's resource name. 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 (*ProjectsLocationsArtifactsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsArtifactsCreateCall) Do

Do executes the "apigeeregistry.projects.locations.artifacts.create" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsArtifactsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsArtifactsCreateCall) Header

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

type ProjectsLocationsArtifactsDeleteCall

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

func (*ProjectsLocationsArtifactsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsArtifactsDeleteCall) Do

Do executes the "apigeeregistry.projects.locations.artifacts.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsArtifactsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsArtifactsDeleteCall) Header

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

type ProjectsLocationsArtifactsGetCall

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

func (*ProjectsLocationsArtifactsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsArtifactsGetCall) Do

Do executes the "apigeeregistry.projects.locations.artifacts.get" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsArtifactsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsArtifactsGetCall) Header

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

func (*ProjectsLocationsArtifactsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsArtifactsGetContentsCall

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

func (*ProjectsLocationsArtifactsGetContentsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsArtifactsGetContentsCall) Do

Do executes the "apigeeregistry.projects.locations.artifacts.getContents" call. Exactly one of *HttpBody or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HttpBody.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsArtifactsGetContentsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsArtifactsGetContentsCall) Header

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

func (*ProjectsLocationsArtifactsGetContentsCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsArtifactsGetIamPolicyCall

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

func (*ProjectsLocationsArtifactsGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsArtifactsGetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.artifacts.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsArtifactsGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsArtifactsGetIamPolicyCall) Header

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

func (*ProjectsLocationsArtifactsGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsArtifactsGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsArtifactsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsArtifactsGetIamPolicyCall

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

type ProjectsLocationsArtifactsListCall

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

func (*ProjectsLocationsArtifactsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsArtifactsListCall) Do

Do executes the "apigeeregistry.projects.locations.artifacts.list" call. Exactly one of *ListArtifactsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListArtifactsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsArtifactsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsArtifactsListCall) Filter

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

func (*ProjectsLocationsArtifactsListCall) Header

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

func (*ProjectsLocationsArtifactsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsArtifactsListCall) OrderBy added in v0.96.0

OrderBy sets the optional parameter "orderBy": A comma-separated list of fields, 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 of artifacts to return. The service may return fewer than this value. If unspecified, at most 50 values will be returned. The maximum is 1000; values above 1000 will be coerced to 1000.

func (*ProjectsLocationsArtifactsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListArtifacts` call. Provide this to retrieve the subsequent 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.

type ProjectsLocationsArtifactsReplaceArtifactCall

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

func (*ProjectsLocationsArtifactsReplaceArtifactCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsArtifactsReplaceArtifactCall) Do

Do executes the "apigeeregistry.projects.locations.artifacts.replaceArtifact" call. Exactly one of *Artifact or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Artifact.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsArtifactsReplaceArtifactCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsArtifactsReplaceArtifactCall) Header

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

type ProjectsLocationsArtifactsService

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

func NewProjectsLocationsArtifactsService

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 are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

  • 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 an empty 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 specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

type ProjectsLocationsArtifactsSetIamPolicyCall

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

func (*ProjectsLocationsArtifactsSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsArtifactsSetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.artifacts.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsArtifactsSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsArtifactsSetIamPolicyCall) Header

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

type ProjectsLocationsArtifactsTestIamPermissionsCall

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

func (*ProjectsLocationsArtifactsTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsArtifactsTestIamPermissionsCall) Do

Do executes the "apigeeregistry.projects.locations.artifacts.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsArtifactsTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsArtifactsTestIamPermissionsCall) Header

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

type ProjectsLocationsGetCall

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

func (*ProjectsLocationsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsGetCall) Do

Do executes the "apigeeregistry.projects.locations.get" call. Exactly one of *Location or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Location.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsGetCall) Header

func (c *ProjectsLocationsGetCall) Header() http.Header

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

func (*ProjectsLocationsGetCall) IfNoneMatch

func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsInstancesCreateCall

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

func (*ProjectsLocationsInstancesCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsInstancesCreateCall) Do

Do executes the "apigeeregistry.projects.locations.instances.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsInstancesCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsInstancesCreateCall) Header

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

func (*ProjectsLocationsInstancesCreateCall) InstanceId

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

type ProjectsLocationsInstancesDeleteCall

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

func (*ProjectsLocationsInstancesDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsInstancesDeleteCall) Do

Do executes the "apigeeregistry.projects.locations.instances.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsInstancesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsInstancesDeleteCall) Header

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

type ProjectsLocationsInstancesGetCall

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

func (*ProjectsLocationsInstancesGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsInstancesGetCall) Do

Do executes the "apigeeregistry.projects.locations.instances.get" call. Exactly one of *Instance or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Instance.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsInstancesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsInstancesGetCall) Header

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

func (*ProjectsLocationsInstancesGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsInstancesGetIamPolicyCall

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

func (*ProjectsLocationsInstancesGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsInstancesGetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.instances.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsInstancesGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsInstancesGetIamPolicyCall) Header

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

func (*ProjectsLocationsInstancesGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsInstancesGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsInstancesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsInstancesGetIamPolicyCall

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

type ProjectsLocationsInstancesService

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

func NewProjectsLocationsInstancesService

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 an empty 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 specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

type ProjectsLocationsInstancesSetIamPolicyCall

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

func (*ProjectsLocationsInstancesSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsInstancesSetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.instances.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsInstancesSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsInstancesSetIamPolicyCall) Header

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

type ProjectsLocationsInstancesTestIamPermissionsCall

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

func (*ProjectsLocationsInstancesTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsInstancesTestIamPermissionsCall) Do

Do executes the "apigeeregistry.projects.locations.instances.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsInstancesTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsInstancesTestIamPermissionsCall) Header

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

type ProjectsLocationsListCall

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

func (*ProjectsLocationsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsListCall) Do

Do executes the "apigeeregistry.projects.locations.list" call. Exactly one of *ListLocationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLocationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsListCall) Filter

Filter sets the optional parameter "filter": A filter to narrow down results to 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 an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsLocationsListCall) IfNoneMatch

func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsListCall) PageSize

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

func (*ProjectsLocationsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive 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.

type ProjectsLocationsOperationsCancelCall

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

func (*ProjectsLocationsOperationsCancelCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsOperationsCancelCall) Do

Do executes the "apigeeregistry.projects.locations.operations.cancel" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsCancelCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsOperationsCancelCall) Header

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

type ProjectsLocationsOperationsDeleteCall

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

func (*ProjectsLocationsOperationsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsOperationsDeleteCall) Do

Do executes the "apigeeregistry.projects.locations.operations.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsOperationsDeleteCall) Header

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

type ProjectsLocationsOperationsGetCall

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

func (*ProjectsLocationsOperationsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsOperationsGetCall) Do

Do executes the "apigeeregistry.projects.locations.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsOperationsGetCall) Header

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

func (*ProjectsLocationsOperationsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsLocationsOperationsListCall

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

func (*ProjectsLocationsOperationsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsOperationsListCall) Do

Do executes the "apigeeregistry.projects.locations.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsOperationsListCall) Filter

Filter sets the optional parameter "filter": The standard list filter.

func (*ProjectsLocationsOperationsListCall) Header

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

func (*ProjectsLocationsOperationsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsOperationsListCall) PageSize

PageSize sets the optional parameter "pageSize": The standard list page size.

func (*ProjectsLocationsOperationsListCall) PageToken

PageToken sets the optional parameter "pageToken": The standard list page token.

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.

type ProjectsLocationsOperationsService

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

func NewProjectsLocationsOperationsService

func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService

func (*ProjectsLocationsOperationsService) Cancel

Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.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 the client is no longer interested in the operation result. It does not cancel the 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 this method to poll the operation result at intervals as recommended by the API service.

- name: The name of the operation resource.

func (*ProjectsLocationsOperationsService) List

List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.

- name: The name of the operation's parent resource.

type ProjectsLocationsRuntimeGetIamPolicyCall

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

func (*ProjectsLocationsRuntimeGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsRuntimeGetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.runtime.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsRuntimeGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsRuntimeGetIamPolicyCall) Header

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

func (*ProjectsLocationsRuntimeGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLocationsRuntimeGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsRuntimeGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsRuntimeGetIamPolicyCall

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

type ProjectsLocationsRuntimeService

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

func NewProjectsLocationsRuntimeService

func NewProjectsLocationsRuntimeService(s *Service) *ProjectsLocationsRuntimeService

func (*ProjectsLocationsRuntimeService) GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns an empty 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

func (r *ProjectsLocationsRuntimeService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsRuntimeTestIamPermissionsCall

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

type ProjectsLocationsRuntimeSetIamPolicyCall

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

func (*ProjectsLocationsRuntimeSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsRuntimeSetIamPolicyCall) Do

Do executes the "apigeeregistry.projects.locations.runtime.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsRuntimeSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsRuntimeSetIamPolicyCall) Header

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

type ProjectsLocationsRuntimeTestIamPermissionsCall

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

func (*ProjectsLocationsRuntimeTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLocationsRuntimeTestIamPermissionsCall) Do

Do executes the "apigeeregistry.projects.locations.runtime.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsRuntimeTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsRuntimeTestIamPermissionsCall) Header

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

type ProjectsLocationsService

type ProjectsLocationsService struct {
	Apis *ProjectsLocationsApisService

	Artifacts *ProjectsLocationsArtifactsService

	Instances *ProjectsLocationsInstancesService

	Operations *ProjectsLocationsOperationsService

	Runtime *ProjectsLocationsRuntimeService
	// contains filtered or unexported fields
}

func NewProjectsLocationsService

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.

type ProjectsService

type ProjectsService struct {
	Locations *ProjectsLocationsService
	// contains filtered or unexported fields
}

func NewProjectsService

func NewProjectsService(s *Service) *ProjectsService

type RollbackApiDeploymentRequest

type RollbackApiDeploymentRequest struct {
	// RevisionId: Required. The revision ID to roll back to. It must be a
	// revision of the same deployment. Example: `c7cfa2a8`
	RevisionId string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "RevisionId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

RollbackApiDeploymentRequest: Request message for RollbackApiDeployment.

func (*RollbackApiDeploymentRequest) MarshalJSON

func (s *RollbackApiDeploymentRequest) MarshalJSON() ([]byte, error)

type RollbackApiSpecRequest

type RollbackApiSpecRequest struct {
	// RevisionId: Required. The revision ID to roll back to. It must be a
	// revision of the same spec. Example: `c7cfa2a8`
	RevisionId string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "RevisionId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

RollbackApiSpecRequest: Request message for RollbackApiSpec.

func (*RollbackApiSpecRequest) MarshalJSON

func (s *RollbackApiSpecRequest) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Projects *ProjectsService
	// contains filtered or unexported fields
}

func New deprecated

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.

func NewService

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

NewService creates a new Service.

type SetIamPolicyRequest

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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Policy") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

SetIamPolicyRequest: Request message for `SetIamPolicy` method.

func (*SetIamPolicyRequest) MarshalJSON

func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error)

type Status

type Status struct {
	// Code: The status code, which should be an enum value of
	// google.rpc.Code.
	Code int64 `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.
	Message string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Code") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).

func (*Status) MarshalJSON

func (s *Status) MarshalJSON() ([]byte, error)

type TagApiDeploymentRevisionRequest

type TagApiDeploymentRevisionRequest struct {
	// Tag: Required. The tag to apply. The tag should be at most 40
	// characters, and match `a-z{3,39}`.
	Tag string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Tag") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

TagApiDeploymentRevisionRequest: Request message for TagApiDeploymentRevision.

func (*TagApiDeploymentRevisionRequest) MarshalJSON

func (s *TagApiDeploymentRevisionRequest) MarshalJSON() ([]byte, error)

type TagApiSpecRevisionRequest

type TagApiSpecRevisionRequest struct {
	// Tag: Required. The tag to apply. The tag should be at most 40
	// characters, and match `a-z{3,39}`.
	Tag string `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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Tag") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

TagApiSpecRevisionRequest: Request message for TagApiSpecRevision.

func (*TagApiSpecRevisionRequest) MarshalJSON

func (s *TagApiSpecRevisionRequest) MarshalJSON() ([]byte, error)

type TestIamPermissionsRequest

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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Permissions") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

TestIamPermissionsRequest: Request message for `TestIamPermissions` method.

func (*TestIamPermissionsRequest) MarshalJSON

func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error)

type TestIamPermissionsResponse

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. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Permissions") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

TestIamPermissionsResponse: Response message for `TestIamPermissions` method.

func (*TestIamPermissionsResponse) MarshalJSON

func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL