Movatterモバイル変換


[0]ホーム

URL:


run

package
v0.257.0Latest Latest
Warning

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

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

Details

Repository

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

Links

Documentation

Overview

Package run provides access to the Cloud Run Admin API.

For product documentation, see:https://cloud.google.com/run/

Creating a client

Usage example:

import "google.golang.org/api/run/v1beta1"...ctx := context.Background()runService, err := run.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

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

Other authentication options

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

runService, err := run.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, ...)runService, err := run.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seehttps://godoc.org/google.golang.org/api/option/ for details on options.

Index

Constants

View Source
const (// View and manage your data across Google Cloud Platform servicesCloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeCustomResourceColumnDefinitionadded inv0.11.0

type CustomResourceColumnDefinition struct {// Description: description is a human readable description of this// column. +optionalDescriptionstring `json:"description,omitempty"`// Format: format is an optional OpenAPI type definition for this// column. The 'name' format is applied to the primary identifier column// to assist in clients identifying column is the resource name. See//https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types// for more. +optionalFormatstring `json:"format,omitempty"`// JsonPath: JSONPath is a simple JSON path, i.e. with array notation.JsonPathstring `json:"jsonPath,omitempty"`// Name: name is a human readable name for the column.Namestring `json:"name,omitempty"`// Priority: priority is an integer defining the relative importance of// this column compared to others. Lower numbers are considered higher// priority. Columns that may be omitted in limited space scenarios// should be given a higher priority. +optionalPriorityint64 `json:"priority,omitempty"`// Type: type is an OpenAPI type definition for this column. See//https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types// for more.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

CustomResourceColumnDefinition: CustomResourceColumnDefinitionspecifies a column for server side printing.

func (*CustomResourceColumnDefinition)MarshalJSONadded inv0.11.0

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

typeCustomResourceDefinitionadded inv0.11.0

type CustomResourceDefinition struct {// ApiVersion: The API version for this call such as// "k8s.apiextensions.io/v1beta1".ApiVersionstring `json:"apiVersion,omitempty"`// Kind: The kind of resource, in this case always// "CustomResourceDefinition".Kindstring `json:"kind,omitempty"`// Metadata: Metadata associated with this CustomResourceDefinition.Metadata *ObjectMeta `json:"metadata,omitempty"`// Spec: Spec describes how the user wants the resources to appearSpec *CustomResourceDefinitionSpec `json:"spec,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ApiVersion") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "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:"-"`}

CustomResourceDefinition: CustomResourceDefinition represents aresource that should be exposed on the API server. Its name MUST bein the format <.spec.name>.<.spec.group>.

func (*CustomResourceDefinition)MarshalJSONadded inv0.11.0

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

typeCustomResourceDefinitionNamesadded inv0.11.0

type CustomResourceDefinitionNames struct {// Categories: Categories is a list of grouped resources custom// resources belong to (e.g. 'all') +optionalCategories []string `json:"categories,omitempty"`// Kind: Kind is the serialized kind of the resource. It is normally// CamelCase and singular.Kindstring `json:"kind,omitempty"`// ListKind: ListKind is the serialized kind of the list for this// resource. Defaults to List. +optionalListKindstring `json:"listKind,omitempty"`// Plural: Plural is the plural name of the resource to serve. It must// match the name of the CustomResourceDefinition-registration too:// plural.group and it must be all lowercase.Pluralstring `json:"plural,omitempty"`// ShortNames: ShortNames are short names for the resource. It must be// all lowercase. +optionalShortNames []string `json:"shortNames,omitempty"`// Singular: Singular is the singular name of the resource. It must be// all lowercase Defaults to lowercased +optionalSingularstring `json:"singular,omitempty"`// ForceSendFields is a list of field names (e.g. "Categories") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Categories") 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:"-"`}

CustomResourceDefinitionNames: CustomResourceDefinitionNamesindicates the names to serve this CustomResourceDefinition

func (*CustomResourceDefinitionNames)MarshalJSONadded inv0.11.0

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

typeCustomResourceDefinitionSpecadded inv0.11.0

type CustomResourceDefinitionSpec struct {// AdditionalPrinterColumns: AdditionalPrinterColumns are additional// columns shown e.g. in kubectl next to the name. Defaults to a// created-at column. +optionalAdditionalPrinterColumns []*CustomResourceColumnDefinition `json:"additionalPrinterColumns,omitempty"`// Group: Group is the group this resource belongs inGroupstring `json:"group,omitempty"`// Names: Names are the names used to describe this custom resourceNames *CustomResourceDefinitionNames `json:"names,omitempty"`// Scope: Scope indicates whether this resource is cluster or namespace// scoped. Default is namespacedScopestring `json:"scope,omitempty"`// Subresources: Subresources describes the subresources for// CustomResources +optionalSubresources *CustomResourceSubresources `json:"subresources,omitempty"`// Validation: Validation describes the validation methods for// CustomResources +optionalValidation *CustomResourceValidation `json:"validation,omitempty"`// Version: Version is the version this resource belongs in Should be// always first item in Versions field if provided. Optional, but at// least one of Version or Versions must be set. Deprecated: Please use// `Versions`. +optionalVersionstring `json:"version,omitempty"`// Versions: Versions is the list of all supported versions for this// resource. If Version field is provided, this field is optional.// Validation: All versions must use the same validation schema for now.// i.e., top level Validation field is applied to all of these versions.// Order: The version name will be used to compute the order. If the// version string is "kube-like", it will sort above non "kube-like"// version strings, which are ordered lexicographically. "Kube-like"// versions start with a "v", then are followed by a number (the major// version), then optionally the string "alpha" or "beta" and another// number (the minor version). These are sorted first by GA > beta >// alpha (where GA is a version with no suffix such as beta or alpha),// and then by comparing major version, then minor version. An example// sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1,// v12alpha1, v11alpha2, foo1, foo10. +optionalVersions []*CustomResourceDefinitionVersion `json:"versions,omitempty"`// ForceSendFields is a list of field names (e.g.// "AdditionalPrinterColumns") to unconditionally include in API// requests. By default, fields with empty values are omitted from API// requests. However, any non-pointer, non-interface field appearing in// ForceSendFields will be sent to the server regardless of whether the// field is empty or not. This may be used to include empty fields in// Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalPrinterColumns")// 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:"-"`}

CustomResourceDefinitionSpec: CustomResourceDefinitionSpec describeshow a user wants their resource to appear

func (*CustomResourceDefinitionSpec)MarshalJSONadded inv0.11.0

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

typeCustomResourceDefinitionVersionadded inv0.11.0

type CustomResourceDefinitionVersion struct {// Name: Name is the version name, e.g. “v1”, “v2beta1”, etc.Namestring `json:"name,omitempty"`// Served: Served is a flag enabling/disabling this version from being// served via REST APIsServedbool `json:"served,omitempty"`// Storage: Storage flags the version as storage version. There must be// exactly one flagged as storage version.Storagebool `json:"storage,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*CustomResourceDefinitionVersion)MarshalJSONadded inv0.11.0

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

typeCustomResourceSubresourceScaleadded inv0.11.0

type CustomResourceSubresourceScale struct {// LabelSelectorPath: LabelSelectorPath defines the JSON path inside of// a CustomResource that corresponds to Scale.Status.Selector. Only JSON// paths without the array notation are allowed. Must be a JSON Path// under .status. Must be set to work with HPA. If there is no value// under the given path in the CustomResource, the status label selector// value in the /scale subresource will default to the empty string.// +optionalLabelSelectorPathstring `json:"labelSelectorPath,omitempty"`// SpecReplicasPath: SpecReplicasPath defines the JSON path inside of a// CustomResource that corresponds to Scale.Spec.Replicas. Only JSON// paths without the array notation are allowed. Must be a JSON Path// under .spec. If there is no value under the given path in the// CustomResource, the /scale subresource will return an error on GET.SpecReplicasPathstring `json:"specReplicasPath,omitempty"`// StatusReplicasPath: StatusReplicasPath defines the JSON path inside// of a CustomResource that corresponds to Scale.Status.Replicas. Only// JSON paths without the array notation are allowed. Must be a JSON// Path under .status. If there is no value under the given path in the// CustomResource, the status replica value in the /scale subresource// will default to 0.StatusReplicasPathstring `json:"statusReplicasPath,omitempty"`// ForceSendFields is a list of field names (e.g. "LabelSelectorPath")// to unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LabelSelectorPath") 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:"-"`}

CustomResourceSubresourceScale: CustomResourceSubresourceScaledefines how to serve the scale subresource for CustomResources.

func (*CustomResourceSubresourceScale)MarshalJSONadded inv0.11.0

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

typeCustomResourceSubresourceStatusadded inv0.11.0

type CustomResourceSubresourceStatus struct {}

CustomResourceSubresourceStatus: CustomResourceSubresourceStatusdefines how to serve the status subresource for CustomResources.Status is represented by the `.status` JSON path inside of aCustomResource. When set, * exposes a /status subresource for thecustom resource * PUT requests to the /status subresource take acustom resource object, and ignore changes to anything except thestatus stanza * PUT/POST/PATCH requests to the custom resource ignorechanges to the status stanza

typeCustomResourceSubresourcesadded inv0.11.0

type CustomResourceSubresources struct {// Scale: Scale denotes the scale subresource for CustomResources// +optionalScale *CustomResourceSubresourceScale `json:"scale,omitempty"`// Status: Status denotes the status subresource for CustomResources// +optionalStatus *CustomResourceSubresourceStatus `json:"status,omitempty"`// ForceSendFields is a list of field names (e.g. "Scale") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Scale") 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:"-"`}

CustomResourceSubresources: CustomResourceSubresources defines thestatus and scale subresources for CustomResources.

func (*CustomResourceSubresources)MarshalJSONadded inv0.11.0

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

typeCustomResourceValidationadded inv0.11.0

type CustomResourceValidation struct {// OpenAPIV3Schema: OpenAPIV3Schema is the OpenAPI v3 schema to be// validated against. +optionalOpenAPIV3Schema *JSONSchemaProps `json:"openAPIV3Schema,omitempty"`// ForceSendFields is a list of field names (e.g. "OpenAPIV3Schema") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "OpenAPIV3Schema") 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:"-"`}

CustomResourceValidation: CustomResourceValidation is a list ofvalidation methods for CustomResources.

func (*CustomResourceValidation)MarshalJSONadded inv0.11.0

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

typeCustomresourcedefinitionsListCalladded inv0.11.0

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

func (*CustomresourcedefinitionsListCall)Contextadded inv0.11.0

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*CustomresourcedefinitionsListCall)Continueadded inv0.11.0

Continue sets the optional parameter "continue": Optional encodedstring to continue paging.

func (*CustomresourcedefinitionsListCall)Doadded inv0.11.0

Do executes the "run.customresourcedefinitions.list" call.Exactly one of *ListCustomResourceDefinitionsResponse or error willbe non-nil. Any non-2xx status code is an error. Response headers arein either*ListCustomResourceDefinitionsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*CustomresourcedefinitionsListCall)FieldSelectoradded inv0.11.0

FieldSelector sets the optional parameter "fieldSelector": Allows tofilter resources based on a specific value for a field name. Sendthis in a query string format. i.e. 'metadata.name%3Dlorem'. Notcurrently used by Cloud Run.

func (*CustomresourcedefinitionsListCall)Fieldsadded inv0.11.0

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

func (*CustomresourcedefinitionsListCall)Headeradded inv0.11.0

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

func (*CustomresourcedefinitionsListCall)IfNoneMatchadded inv0.11.0

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

func (*CustomresourcedefinitionsListCall)IncludeUninitializedadded inv0.11.0

func (c *CustomresourcedefinitionsListCall) IncludeUninitialized(includeUninitializedbool) *CustomresourcedefinitionsListCall

IncludeUninitialized sets the optional parameter"includeUninitialized": Not currently used by Cloud Run.

func (*CustomresourcedefinitionsListCall)LabelSelectoradded inv0.11.0

LabelSelector sets the optional parameter "labelSelector": Allows tofilter resources based on a label. Supported operations are =, !=,exists, in, and notIn.

func (*CustomresourcedefinitionsListCall)Limitadded inv0.11.0

Limit sets the optional parameter "limit":

func (*CustomresourcedefinitionsListCall)Parentadded inv0.11.0

Parent sets the optional parameter "parent": The project ID orproject number from which the storages should be listed.

func (*CustomresourcedefinitionsListCall)ResourceVersionadded inv0.11.0

ResourceVersion sets the optional parameter "resourceVersion": Thebaseline resource version from which the list or watch operationshould start. Not currently used by Cloud Run.

func (*CustomresourcedefinitionsListCall)Watchadded inv0.11.0

Watch sets the optional parameter "watch": Flag that indicates thatthe client expects to watch this resource as well. Not currently usedby Cloud Run.

typeCustomresourcedefinitionsServiceadded inv0.11.0

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

funcNewCustomresourcedefinitionsServiceadded inv0.11.0

func NewCustomresourcedefinitionsService(s *Service) *CustomresourcedefinitionsService

func (*CustomresourcedefinitionsService)Listadded inv0.11.0

List: Rpc to list custom resource definitions.

typeExternalDocumentationadded inv0.11.0

type ExternalDocumentation struct {Descriptionstring `json:"description,omitempty"`Urlstring `json:"url,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

ExternalDocumentation: ExternalDocumentation allows referencing anexternal resource for extended documentation.

func (*ExternalDocumentation)MarshalJSONadded inv0.11.0

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

typeJSONadded inv0.11.0

type JSON struct {Rawstring `json:"raw,omitempty"`// ForceSendFields is a list of field names (e.g. "Raw") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Raw") 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:"-"`}

JSON: JSON represents any valid JSON value. These types aresupported: bool, int64, float64, string, []interface{},map[string]interface{} and nil.

func (*JSON)MarshalJSONadded inv0.11.0

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

typeJSONSchemaPropsadded inv0.11.0

type JSONSchemaProps struct {AdditionalItems *JSONSchemaPropsOrBool `json:"additionalItems,omitempty"`AdditionalProperties *JSONSchemaPropsOrBool `json:"additionalProperties,omitempty"`AllOf []*JSONSchemaProps `json:"allOf,omitempty"`AnyOf []*JSONSchemaProps `json:"anyOf,omitempty"`Default *JSON `json:"default,omitempty"`Definitions map[string]JSONSchemaProps `json:"definitions,omitempty"`Dependencies map[string]JSONSchemaPropsOrStringArray `json:"dependencies,omitempty"`Descriptionstring `json:"description,omitempty"`Enum []string `json:"enum,omitempty"`Example *JSON `json:"example,omitempty"`ExclusiveMaximumbool `json:"exclusiveMaximum,omitempty"`ExclusiveMinimumbool `json:"exclusiveMinimum,omitempty"`ExternalDocs *ExternalDocumentation `json:"externalDocs,omitempty"`Formatstring `json:"format,omitempty"`Idstring `json:"id,omitempty"`Items *JSONSchemaPropsOrArray `json:"items,omitempty"`MaxItemsint64 `json:"maxItems,omitempty,string"`MaxLengthint64 `json:"maxLength,omitempty,string"`MaxPropertiesint64 `json:"maxProperties,omitempty,string"`Maximumfloat64 `json:"maximum,omitempty"`MinItemsint64 `json:"minItems,omitempty,string"`MinLengthint64 `json:"minLength,omitempty,string"`MinPropertiesint64 `json:"minProperties,omitempty,string"`Minimumfloat64 `json:"minimum,omitempty"`MultipleOffloat64 `json:"multipleOf,omitempty"`Not *JSONSchemaProps `json:"not,omitempty"`OneOf []*JSONSchemaProps `json:"oneOf,omitempty"`Patternstring `json:"pattern,omitempty"`PatternProperties map[string]JSONSchemaProps `json:"patternProperties,omitempty"`Properties map[string]JSONSchemaProps `json:"properties,omitempty"`Refstring `json:"ref,omitempty"`Required []string `json:"required,omitempty"`Schemastring `json:"schema,omitempty"`Titlestring `json:"title,omitempty"`Typestring `json:"type,omitempty"`UniqueItemsbool `json:"uniqueItems,omitempty"`// ForceSendFields is a list of field names (e.g. "AdditionalItems") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalItems") 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:"-"`}

JSONSchemaProps: JSONSchemaProps is a JSON-Schema followingSpecification Draft 4 (http://json-schema.org/).

func (*JSONSchemaProps)MarshalJSONadded inv0.11.0

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

func (*JSONSchemaProps)UnmarshalJSONadded inv0.11.0

func (s *JSONSchemaProps) UnmarshalJSON(data []byte)error

typeJSONSchemaPropsOrArrayadded inv0.11.0

type JSONSchemaPropsOrArray struct {JsonSchemas []*JSONSchemaProps `json:"jsonSchemas,omitempty"`Schema *JSONSchemaProps `json:"schema,omitempty"`// ForceSendFields is a list of field names (e.g. "JsonSchemas") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "JsonSchemas") 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:"-"`}

JSONSchemaPropsOrArray: JSONSchemaPropsOrArray represents a valuethat can either be a JSONSchemaProps or an array of JSONSchemaProps.Mainly here for serialization purposes.

func (*JSONSchemaPropsOrArray)MarshalJSONadded inv0.11.0

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

typeJSONSchemaPropsOrBooladded inv0.11.0

type JSONSchemaPropsOrBool struct {Allowsbool `json:"allows,omitempty"`Schema *JSONSchemaProps `json:"schema,omitempty"`// ForceSendFields is a list of field names (e.g. "Allows") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Allows") 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:"-"`}

JSONSchemaPropsOrBool: JSONSchemaPropsOrBool representsJSONSchemaProps or a boolean value. Defaults to true for the booleanproperty.

func (*JSONSchemaPropsOrBool)MarshalJSONadded inv0.11.0

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

typeJSONSchemaPropsOrStringArrayadded inv0.11.0

type JSONSchemaPropsOrStringArray struct {Property []string `json:"property,omitempty"`Schema *JSONSchemaProps `json:"schema,omitempty"`// ForceSendFields is a list of field names (e.g. "Property") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Property") 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:"-"`}

JSONSchemaPropsOrStringArray: JSONSchemaPropsOrStringArray representsa JSONSchemaProps or a string array.

func (*JSONSchemaPropsOrStringArray)MarshalJSONadded inv0.11.0

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

typeListCustomResourceDefinitionsResponseadded inv0.11.0

type ListCustomResourceDefinitionsResponse struct {// ApiVersion: The API version for this call such as// "k8s.apiextensions.io/v1beta1".ApiVersionstring `json:"apiVersion,omitempty"`// Items: List of CustomResourceDefinitions.Items []*CustomResourceDefinition `json:"items,omitempty"`// Kind: The kind of this resource, in this case// "CustomResourceDefinitionList".Kindstring `json:"kind,omitempty"`// Metadata: Metadata associated with this CustomResourceDefinition// list.Metadata *ListMeta `json:"metadata,omitempty"`// Unreachable: Locations that could not be reached.Unreachable []string `json:"unreachable,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ApiVersion") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "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:"-"`}

func (*ListCustomResourceDefinitionsResponse)MarshalJSONadded inv0.11.0

typeListMetaadded inv0.11.0

type ListMeta struct {// Continue: continue may be set if the user set a limit on the number// of items returned, and indicates that the server has more data// available. The value is opaque and may be used to issue another// request to the endpoint that served this list to retrieve the next// set of available objects. Continuing a list may not be possible if// the server configuration has changed or more than a few minutes have// passed. The resourceVersion field returned when using this continue// value will be identical to the value in the first response.Continuestring `json:"continue,omitempty"`// ResourceVersion: String that identifies the server's internal version// of this object that can be used by clients to determine when objects// have changed. Value must be treated as opaque by clients and passed// unmodified back to the server. Populated by the system. Read-only.// More info://https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency// +optionalResourceVersionstring `json:"resourceVersion,omitempty"`// SelfLink: SelfLink is a URL representing this object. Populated by// the system. Read-only. +optionalSelfLinkstring `json:"selfLink,omitempty"`// ForceSendFields is a list of field names (e.g. "Continue") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Continue") 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:"-"`}

ListMeta: ListMeta describes metadata that synthetic resources musthave, including lists and various status objects. A resource may haveonly one of {ObjectMeta, ListMeta}.

func (*ListMeta)MarshalJSONadded inv0.11.0

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

typeNamespacesCustomresourcedefinitionsGetCalladded inv0.11.0

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

func (*NamespacesCustomresourcedefinitionsGetCall)Contextadded inv0.11.0

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*NamespacesCustomresourcedefinitionsGetCall)Doadded inv0.11.0

Do executes the "run.namespaces.customresourcedefinitions.get" call.Exactly one of *CustomResourceDefinition or error will be non-nil.Any non-2xx status code is an error. Response headers are in either*CustomResourceDefinition.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*NamespacesCustomresourcedefinitionsGetCall)Fieldsadded inv0.11.0

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

func (*NamespacesCustomresourcedefinitionsGetCall)Headeradded inv0.11.0

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

func (*NamespacesCustomresourcedefinitionsGetCall)IfNoneMatchadded inv0.11.0

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

typeNamespacesCustomresourcedefinitionsServiceadded inv0.11.0

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

funcNewNamespacesCustomresourcedefinitionsServiceadded inv0.11.0

func NewNamespacesCustomresourcedefinitionsService(s *Service) *NamespacesCustomresourcedefinitionsService

func (*NamespacesCustomresourcedefinitionsService)Getadded inv0.11.0

Get: Rpc to get information about a CustomResourceDefinition.

  • name: The name of the CustomResourceDefinition being retrieved. Ifneeded, replace {namespace_id} with the project ID.

typeNamespacesServiceadded inv0.11.0

type NamespacesService struct {Customresourcedefinitions *NamespacesCustomresourcedefinitionsService// contains filtered or unexported fields}

funcNewNamespacesServiceadded inv0.11.0

func NewNamespacesService(s *Service) *NamespacesService

typeObjectMetaadded inv0.11.0

type ObjectMeta struct {// Annotations: (Optional) Annotations is an unstructured key value map// stored with a resource that may be set by external tools to store and// retrieve arbitrary metadata. They are not queryable and should be// preserved when modifying objects. More info://http://kubernetes.io/docs/user-guide/annotationsAnnotations map[string]string `json:"annotations,omitempty"`// ClusterName: (Optional) Cloud Run fully managed: not supported Cloud// Run for Anthos: supported The name of the cluster which the object// belongs to. This is used to distinguish resources with same name and// namespace in different clusters. This field is not set anywhere right// now and apiserver is going to ignore it if set in create or update// request.ClusterNamestring `json:"clusterName,omitempty"`// CreationTimestamp: (Optional) CreationTimestamp is a timestamp// representing the server time when this object was created. It is not// guaranteed to be set in happens-before order across separate// operations. Clients may not set this value. It is represented in// RFC3339 form and is in UTC. Populated by the system. Read-only. Null// for lists. More info://https://git.k8s.io/community/contributors/devel/api-conventions.md#metadataCreationTimestampstring `json:"creationTimestamp,omitempty"`// DeletionGracePeriodSeconds: (Optional) Cloud Run fully managed: not// supported Cloud Run for Anthos: supported Number of seconds allowed// for this object to gracefully terminate before it will be removed// from the system. Only set when deletionTimestamp is also set. May// only be shortened. Read-only.DeletionGracePeriodSecondsint64 `json:"deletionGracePeriodSeconds,omitempty"`// DeletionTimestamp: (Optional) Cloud Run fully managed: not supported// Cloud Run for Anthos: supported DeletionTimestamp isRFC 3339 date// and time at which this resource will be deleted. This field is set by// the server when a graceful deletion is requested by the user, and is// not directly settable by a client. The resource is expected to be// deleted (no longer visible from resource lists, and not reachable by// name) after the time in this field, once the finalizers list is// empty. As long as the finalizers list contains items, deletion is// blocked. Once the deletionTimestamp is set, this value may not be// unset or be set further into the future, although it may be shortened// or the resource may be deleted prior to this time. For example, a// user may request that a pod is deleted in 30 seconds. The Kubelet// will react by sending a graceful termination signal to the containers// in the pod. After that 30 seconds, the Kubelet will send a hard// termination signal (SIGKILL) to the container and after cleanup,// remove the pod from the API. In the presence of network partitions,// this object may still exist after this timestamp, until an// administrator or automated process can determine the resource is// fully terminated. If not set, graceful deletion of the object has not// been requested. Populated by the system when a graceful deletion is// requested. Read-only. More info://https://git.k8s.io/community/contributors/devel/api-conventions.md#metadataDeletionTimestampstring `json:"deletionTimestamp,omitempty"`// Finalizers: (Optional) Cloud Run fully managed: not supported Cloud// Run for Anthos: supported Must be empty before the object is deleted// from the registry. Each entry is an identifier for the responsible// component that will remove the entry from the list. If the// deletionTimestamp of the object is non-nil, entries in this list can// only be removed. +patchStrategy=mergeFinalizers []string `json:"finalizers,omitempty"`// GenerateName: (Optional) Cloud Run fully managed: not supported Cloud// Run for Anthos: supported GenerateName is an optional prefix, used by// the server, to generate a unique name ONLY IF the Name field has not// been provided. If this field is used, the name returned to the client// will be different than the name passed. This value will also be// combined with a unique suffix. The provided value has the same// validation rules as the Name field, and may be truncated by the// length of the suffix required to make the value unique on the server.// If this field is specified and the generated name exists, the server// will NOT return a 409 - instead, it will either return 201 Created or// 500 with Reason ServerTimeout indicating a unique name could not be// found in the time allotted, and the client should retry (optionally// after the time indicated in the Retry-After header). Applied only if// Name is not specified. More info://https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency// string generateName = 2;GenerateNamestring `json:"generateName,omitempty"`// Generation: (Optional) A sequence number representing a specific// generation of the desired state. Populated by the system. Read-only.Generationint64 `json:"generation,omitempty"`// Labels: (Optional) Map of string keys and values that can be used to// organize and categorize (scope and select) objects. May match// selectors of replication controllers and routes. More info://http://kubernetes.io/docs/user-guide/labelsLabels map[string]string `json:"labels,omitempty"`// Name: Name must be unique within a namespace, within a Cloud Run// region. Is required when creating resources, although some resources// may allow a client to request the generation of an appropriate name// automatically. Name is primarily intended for creation idempotence// and configuration definition. Cannot be updated. More info://http://kubernetes.io/docs/user-guide/identifiers#names +optionalNamestring `json:"name,omitempty"`// Namespace: Namespace defines the space within each name must be// unique, within a Cloud Run region. In Cloud Run the namespace must be// equal to either the project ID or project number.Namespacestring `json:"namespace,omitempty"`// OwnerReferences: (Optional) Cloud Run fully managed: not supported// Cloud Run for Anthos: supported List of objects that own this object.// If ALL objects in the list have been deleted, this object will be// garbage collected.OwnerReferences []*OwnerReference `json:"ownerReferences,omitempty"`// ResourceVersion: (Optional) An opaque value that represents the// internal version of this object that can be used by clients to// determine when objects have changed. May be used for optimistic// concurrency, change detection, and the watch operation on a resource// or set of resources. Clients must treat these values as opaque and// passed unmodified back to the server. They may only be valid for a// particular resource or set of resources. Populated by the system.// Read-only. Value must be treated as opaque by clients. More info://https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistencyResourceVersionstring `json:"resourceVersion,omitempty"`// SelfLink: (Optional) SelfLink is a URL representing this object.// Populated by the system. Read-only. string selfLink = 4;SelfLinkstring `json:"selfLink,omitempty"`// Uid: (Optional) UID is the unique in time and space value for this// object. It is typically generated by the server on successful// creation of a resource and is not allowed to change on PUT// operations. Populated by the system. Read-only. More info://http://kubernetes.io/docs/user-guide/identifiers#uidsUidstring `json:"uid,omitempty"`// ForceSendFields is a list of field names (e.g. "Annotations") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "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:"-"`}

ObjectMeta: k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta ismetadata that all persisted resources must have, which includes allobjects users must create.

func (*ObjectMeta)MarshalJSONadded inv0.11.0

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

typeOwnerReferenceadded inv0.11.0

type OwnerReference struct {// ApiVersion: API version of the referent.ApiVersionstring `json:"apiVersion,omitempty"`// BlockOwnerDeletion: If true, AND if the owner has the// "foregroundDeletion" finalizer, then the owner cannot be deleted from// the key-value store until this reference is removed. Defaults to// false. To set this field, a user needs "delete" permission of the// owner, otherwise 422 (Unprocessable Entity) will be returned.// +optionalBlockOwnerDeletionbool `json:"blockOwnerDeletion,omitempty"`// Controller: If true, this reference points to the managing// controller. +optionalControllerbool `json:"controller,omitempty"`// Kind: Kind of the referent. More info://https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kindsKindstring `json:"kind,omitempty"`// Name: Name of the referent. More info://http://kubernetes.io/docs/user-guide/identifiers#namesNamestring `json:"name,omitempty"`// Uid: UID of the referent. More info://http://kubernetes.io/docs/user-guide/identifiers#uidsUidstring `json:"uid,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiVersion") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "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:"-"`}

OwnerReference: OwnerReference contains enough information to let youidentify an owning object. Currently, an owning object must be in thesame namespace, so there is no namespace field.

func (*OwnerReference)MarshalJSONadded inv0.11.0

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

typeProjectsLocationsCustomresourcedefinitionsGetCalladded inv0.11.0

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

func (*ProjectsLocationsCustomresourcedefinitionsGetCall)Contextadded inv0.11.0

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*ProjectsLocationsCustomresourcedefinitionsGetCall)Doadded inv0.11.0

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

func (*ProjectsLocationsCustomresourcedefinitionsGetCall)Fieldsadded inv0.11.0

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

func (*ProjectsLocationsCustomresourcedefinitionsGetCall)Headeradded inv0.11.0

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

func (*ProjectsLocationsCustomresourcedefinitionsGetCall)IfNoneMatchadded inv0.11.0

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

typeProjectsLocationsCustomresourcedefinitionsListCalladded inv0.11.0

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

func (*ProjectsLocationsCustomresourcedefinitionsListCall)Contextadded inv0.11.0

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*ProjectsLocationsCustomresourcedefinitionsListCall)Continueadded inv0.11.0

Continue sets the optional parameter "continue": Optional encodedstring to continue paging.

func (*ProjectsLocationsCustomresourcedefinitionsListCall)Doadded inv0.11.0

Do executes the "run.projects.locations.customresourcedefinitions.list" call.Exactly one of *ListCustomResourceDefinitionsResponse or error willbe non-nil. Any non-2xx status code is an error. Response headers arein either*ListCustomResourceDefinitionsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*ProjectsLocationsCustomresourcedefinitionsListCall)FieldSelectoradded inv0.11.0

FieldSelector sets the optional parameter "fieldSelector": Allows tofilter resources based on a specific value for a field name. Sendthis in a query string format. i.e. 'metadata.name%3Dlorem'. Notcurrently used by Cloud Run.

func (*ProjectsLocationsCustomresourcedefinitionsListCall)Fieldsadded inv0.11.0

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

func (*ProjectsLocationsCustomresourcedefinitionsListCall)Headeradded inv0.11.0

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

func (*ProjectsLocationsCustomresourcedefinitionsListCall)IfNoneMatchadded inv0.11.0

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

func (*ProjectsLocationsCustomresourcedefinitionsListCall)IncludeUninitializedadded inv0.11.0

IncludeUninitialized sets the optional parameter"includeUninitialized": Not currently used by Cloud Run.

func (*ProjectsLocationsCustomresourcedefinitionsListCall)LabelSelectoradded inv0.11.0

LabelSelector sets the optional parameter "labelSelector": Allows tofilter resources based on a label. Supported operations are =, !=,exists, in, and notIn.

func (*ProjectsLocationsCustomresourcedefinitionsListCall)Limitadded inv0.11.0

Limit sets the optional parameter "limit":

func (*ProjectsLocationsCustomresourcedefinitionsListCall)ResourceVersionadded inv0.11.0

ResourceVersion sets the optional parameter "resourceVersion": Thebaseline resource version from which the list or watch operationshould start. Not currently used by Cloud Run.

func (*ProjectsLocationsCustomresourcedefinitionsListCall)Watchadded inv0.11.0

Watch sets the optional parameter "watch": Flag that indicates thatthe client expects to watch this resource as well. Not currently usedby Cloud Run.

typeProjectsLocationsCustomresourcedefinitionsServiceadded inv0.11.0

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

funcNewProjectsLocationsCustomresourcedefinitionsServiceadded inv0.11.0

func NewProjectsLocationsCustomresourcedefinitionsService(s *Service) *ProjectsLocationsCustomresourcedefinitionsService

func (*ProjectsLocationsCustomresourcedefinitionsService)Getadded inv0.11.0

Get: Rpc to get information about a CustomResourceDefinition.

  • name: The name of the CustomResourceDefinition being retrieved. Ifneeded, replace {namespace_id} with the project ID.

func (*ProjectsLocationsCustomresourcedefinitionsService)Listadded inv0.11.0

List: Rpc to list custom resource definitions.

  • parent: The project ID or project number from which the storagesshould be listed.

typeProjectsLocationsService

type ProjectsLocationsService struct {Customresourcedefinitions *ProjectsLocationsCustomresourcedefinitionsService// contains filtered or unexported fields}

funcNewProjectsLocationsService

func NewProjectsLocationsService(s *Service) *ProjectsLocationsService

typeProjectsService

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

funcNewProjectsService

func NewProjectsService(s *Service) *ProjectsService

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentCustomresourcedefinitions *CustomresourcedefinitionsServiceNamespaces *NamespacesServiceProjects *ProjectsService// contains filtered or unexported fields}

funcNewdeprecated

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

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

funcNewService

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

NewService creates a new Service.

Source Files

View all Source files

Jump to

Keyboard shortcuts

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

[8]ページ先頭

©2009-2025 Movatter.jp