blob: 4085cc06cf5c86ef78403a5e8a0d8f598633e5c9 [file] [log] [blame]
// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package run provides access to the Cloud Run API.
//
// For product documentation, see: https://cloud.google.com/run/
//
// Creating a client
//
// Usage example:
//
// import "google.golang.org/api/run/v1alpha1"
// ...
// 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, 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:
//
// 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)))
//
// See https://godoc.org/google.golang.org/api/option/ for details on options.
package run // import "google.golang.org/api/run/v1alpha1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
googleapi "google.golang.org/api/googleapi"
gensupport "google.golang.org/api/internal/gensupport"
option "google.golang.org/api/option"
htransport "google.golang.org/api/transport/http"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
const apiId = "run:v1alpha1"
const apiName = "run"
const apiVersion = "v1alpha1"
const basePath = "https://run.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
// NewService creates a new APIService.
func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) {
scopesOption := option.WithScopes(
"https://www.googleapis.com/auth/cloud-platform",
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
}
s, err := New(client)
if err != nil {
return nil, err
}
if endpoint != "" {
s.BasePath = endpoint
}
return s, nil
}
// New creates a new APIService. 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 New(client *http.Client) (*APIService, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &APIService{client: client, BasePath: basePath}
s.Namespaces = NewNamespacesService(s)
s.Projects = NewProjectsService(s)
return s, nil
}
type APIService struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Namespaces *NamespacesService
Projects *ProjectsService
}
func (s *APIService) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewNamespacesService(s *APIService) *NamespacesService {
rs := &NamespacesService{s: s}
rs.Authorizeddomains = NewNamespacesAuthorizeddomainsService(s)
rs.Configurations = NewNamespacesConfigurationsService(s)
rs.Domainmappings = NewNamespacesDomainmappingsService(s)
rs.Eventtypes = NewNamespacesEventtypesService(s)
rs.Pubsubs = NewNamespacesPubsubsService(s)
rs.Revisions = NewNamespacesRevisionsService(s)
rs.Routes = NewNamespacesRoutesService(s)
rs.Services = NewNamespacesServicesService(s)
rs.Triggers = NewNamespacesTriggersService(s)
return rs
}
type NamespacesService struct {
s *APIService
Authorizeddomains *NamespacesAuthorizeddomainsService
Configurations *NamespacesConfigurationsService
Domainmappings *NamespacesDomainmappingsService
Eventtypes *NamespacesEventtypesService
Pubsubs *NamespacesPubsubsService
Revisions *NamespacesRevisionsService
Routes *NamespacesRoutesService
Services *NamespacesServicesService
Triggers *NamespacesTriggersService
}
func NewNamespacesAuthorizeddomainsService(s *APIService) *NamespacesAuthorizeddomainsService {
rs := &NamespacesAuthorizeddomainsService{s: s}
return rs
}
type NamespacesAuthorizeddomainsService struct {
s *APIService
}
func NewNamespacesConfigurationsService(s *APIService) *NamespacesConfigurationsService {
rs := &NamespacesConfigurationsService{s: s}
return rs
}
type NamespacesConfigurationsService struct {
s *APIService
}
func NewNamespacesDomainmappingsService(s *APIService) *NamespacesDomainmappingsService {
rs := &NamespacesDomainmappingsService{s: s}
return rs
}
type NamespacesDomainmappingsService struct {
s *APIService
}
func NewNamespacesEventtypesService(s *APIService) *NamespacesEventtypesService {
rs := &NamespacesEventtypesService{s: s}
return rs
}
type NamespacesEventtypesService struct {
s *APIService
}
func NewNamespacesPubsubsService(s *APIService) *NamespacesPubsubsService {
rs := &NamespacesPubsubsService{s: s}
return rs
}
type NamespacesPubsubsService struct {
s *APIService
}
func NewNamespacesRevisionsService(s *APIService) *NamespacesRevisionsService {
rs := &NamespacesRevisionsService{s: s}
return rs
}
type NamespacesRevisionsService struct {
s *APIService
}
func NewNamespacesRoutesService(s *APIService) *NamespacesRoutesService {
rs := &NamespacesRoutesService{s: s}
return rs
}
type NamespacesRoutesService struct {
s *APIService
}
func NewNamespacesServicesService(s *APIService) *NamespacesServicesService {
rs := &NamespacesServicesService{s: s}
return rs
}
type NamespacesServicesService struct {
s *APIService
}
func NewNamespacesTriggersService(s *APIService) *NamespacesTriggersService {
rs := &NamespacesTriggersService{s: s}
return rs
}
type NamespacesTriggersService struct {
s *APIService
}
func NewProjectsService(s *APIService) *ProjectsService {
rs := &ProjectsService{s: s}
rs.Locations = NewProjectsLocationsService(s)
return rs
}
type ProjectsService struct {
s *APIService
Locations *ProjectsLocationsService
}
func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService {
rs := &ProjectsLocationsService{s: s}
rs.Authorizeddomains = NewProjectsLocationsAuthorizeddomainsService(s)
rs.Configurations = NewProjectsLocationsConfigurationsService(s)
rs.Domainmappings = NewProjectsLocationsDomainmappingsService(s)
rs.Eventtypes = NewProjectsLocationsEventtypesService(s)
rs.Pubsubs = NewProjectsLocationsPubsubsService(s)
rs.Revisions = NewProjectsLocationsRevisionsService(s)
rs.Routes = NewProjectsLocationsRoutesService(s)
rs.Services = NewProjectsLocationsServicesService(s)
rs.Triggers = NewProjectsLocationsTriggersService(s)
return rs
}
type ProjectsLocationsService struct {
s *APIService
Authorizeddomains *ProjectsLocationsAuthorizeddomainsService
Configurations *ProjectsLocationsConfigurationsService
Domainmappings *ProjectsLocationsDomainmappingsService
Eventtypes *ProjectsLocationsEventtypesService
Pubsubs *ProjectsLocationsPubsubsService
Revisions *ProjectsLocationsRevisionsService
Routes *ProjectsLocationsRoutesService
Services *ProjectsLocationsServicesService
Triggers *ProjectsLocationsTriggersService
}
func NewProjectsLocationsAuthorizeddomainsService(s *APIService) *ProjectsLocationsAuthorizeddomainsService {
rs := &ProjectsLocationsAuthorizeddomainsService{s: s}
return rs
}
type ProjectsLocationsAuthorizeddomainsService struct {
s *APIService
}
func NewProjectsLocationsConfigurationsService(s *APIService) *ProjectsLocationsConfigurationsService {
rs := &ProjectsLocationsConfigurationsService{s: s}
return rs
}
type ProjectsLocationsConfigurationsService struct {
s *APIService
}
func NewProjectsLocationsDomainmappingsService(s *APIService) *ProjectsLocationsDomainmappingsService {
rs := &ProjectsLocationsDomainmappingsService{s: s}
return rs
}
type ProjectsLocationsDomainmappingsService struct {
s *APIService
}
func NewProjectsLocationsEventtypesService(s *APIService) *ProjectsLocationsEventtypesService {
rs := &ProjectsLocationsEventtypesService{s: s}
return rs
}
type ProjectsLocationsEventtypesService struct {
s *APIService
}
func NewProjectsLocationsPubsubsService(s *APIService) *ProjectsLocationsPubsubsService {
rs := &ProjectsLocationsPubsubsService{s: s}
return rs
}
type ProjectsLocationsPubsubsService struct {
s *APIService
}
func NewProjectsLocationsRevisionsService(s *APIService) *ProjectsLocationsRevisionsService {
rs := &ProjectsLocationsRevisionsService{s: s}
return rs
}
type ProjectsLocationsRevisionsService struct {
s *APIService
}
func NewProjectsLocationsRoutesService(s *APIService) *ProjectsLocationsRoutesService {
rs := &ProjectsLocationsRoutesService{s: s}
return rs
}
type ProjectsLocationsRoutesService struct {
s *APIService
}
func NewProjectsLocationsServicesService(s *APIService) *ProjectsLocationsServicesService {
rs := &ProjectsLocationsServicesService{s: s}
return rs
}
type ProjectsLocationsServicesService struct {
s *APIService
}
func NewProjectsLocationsTriggersService(s *APIService) *ProjectsLocationsTriggersService {
rs := &ProjectsLocationsTriggersService{s: s}
return rs
}
type ProjectsLocationsTriggersService struct {
s *APIService
}
// Addressable: Information for connecting over HTTP(s).
type Addressable struct {
// Hostname: Deprecated - use url instead.
Hostname string `json:"hostname,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Hostname") 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. "Hostname") 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 (s *Addressable) MarshalJSON() ([]byte, error) {
type NoMethod Addressable
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AuditConfig: Specifies the audit configuration for a service.
// The configuration determines which permission types are logged, and
// what
// identities, if any, are exempted from logging.
// An AuditConfig must have one or more AuditLogConfigs.
//
// If there are AuditConfigs for both `allServices` and a specific
// service,
// the union of the two AuditConfigs is used for that service: the
// log_types
// specified in each AuditConfig are enabled, and the exempted_members
// in each
// AuditLogConfig are exempted.
//
// Example Policy with multiple AuditConfigs:
//
// {
// "audit_configs": [
// {
// "service": "allServices"
// "audit_log_configs": [
// {
// "log_type": "DATA_READ",
// "exempted_members": [
// "user:jose@example.com"
// ]
// },
// {
// "log_type": "DATA_WRITE",
// },
// {
// "log_type": "ADMIN_READ",
// }
// ]
// },
// {
// "service": "sampleservice.googleapis.com"
// "audit_log_configs": [
// {
// "log_type": "DATA_READ",
// },
// {
// "log_type": "DATA_WRITE",
// "exempted_members": [
// "user:aliya@example.com"
// ]
// }
// ]
// }
// ]
// }
//
// For sampleservice, this policy enables DATA_READ, DATA_WRITE and
// ADMIN_READ
// logging. It also exempts jose@example.com from DATA_READ logging,
// and
// aliya@example.com from DATA_WRITE logging.
type AuditConfig struct {
// AuditLogConfigs: The configuration for logging of each type of
// permission.
AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
// Service: Specifies a service that will be enabled for audit
// logging.
// For example, `storage.googleapis.com`,
// `cloudsql.googleapis.com`.
// `allServices` is a special value that covers all services.
Service string `json:"service,omitempty"`
// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AuditLogConfigs") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AuditConfig) MarshalJSON() ([]byte, error) {
type NoMethod AuditConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AuditLogConfig: Provides the configuration for logging a type of
// permissions.
// Example:
//
// {
// "audit_log_configs": [
// {
// "log_type": "DATA_READ",
// "exempted_members": [
// "user:jose@example.com"
// ]
// },
// {
// "log_type": "DATA_WRITE",
// }
// ]
// }
//
// This enables 'DATA_READ' and 'DATA_WRITE' logging, while
// exempting
// jose@example.com from DATA_READ logging.
type AuditLogConfig struct {
// ExemptedMembers: Specifies the identities that do not cause logging
// for this type of
// permission.
// Follows the same format of Binding.members.
ExemptedMembers []string `json:"exemptedMembers,omitempty"`
// LogType: The log type that this config enables.
//
// Possible values:
// "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
// "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
// "DATA_WRITE" - Data writes. Example: CloudSQL Users create
// "DATA_READ" - Data reads. Example: CloudSQL Users list
LogType string `json:"logType,omitempty"`
// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ExemptedMembers") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
type NoMethod AuditLogConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AuthorizedDomain: A domain that a user has been authorized to
// administer. To authorize use
// of a domain, verify ownership via
// [Webmaster
// Central](https://www.google.com/webmasters/verification/home).
type AuthorizedDomain struct {
// Id: Relative name of the domain authorized for use. Example:
// `example.com`.
Id string `json:"id,omitempty"`
// Name: Read only. Full path to the `AuthorizedDomain` resource in the
// API.
// Example: `apps/myapp/authorizedDomains/example.com`.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Id") 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. "Id") 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 (s *AuthorizedDomain) MarshalJSON() ([]byte, error) {
type NoMethod AuthorizedDomain
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Binding: Associates `members` with a `role`.
type Binding struct {
// Condition: The condition that is associated with this binding.
// NOTE: An unsatisfied condition will not allow user access via
// current
// binding. Different bindings, including their conditions, are
// examined
// independently.
Condition *Expr `json:"condition,omitempty"`
// Members: Specifies the identities requesting access for a Cloud
// Platform resource.
// `members` can have the following values:
//
// * `allUsers`: A special identifier that represents anyone who is
// on the internet; with or without a Google account.
//
// * `allAuthenticatedUsers`: A special identifier that represents
// anyone
// who is authenticated with a Google account or a service
// account.
//
// * `user:{emailid}`: An email address that represents a specific
// Google
// account. For example, `alice@example.com` .
//
//
// * `serviceAccount:{emailid}`: An email address that represents a
// service
// account. For example,
// `my-other-app@appspot.gserviceaccount.com`.
//
// * `group:{emailid}`: An email address that represents a Google
// group.
// For example, `admins@example.com`.
//
//
// * `domain:{domain}`: The G Suite domain (primary) that represents all
// the
// users of that domain. For example, `google.com` or
// `example.com`.
//
//
Members []string `json:"members,omitempty"`
// Role: Role that is assigned to `members`.
// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
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 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:"-"`
}
func (s *Binding) MarshalJSON() ([]byte, error) {
type NoMethod Binding
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Capabilities: Adds and removes POSIX capabilities from running
// containers.
type Capabilities struct {
// Add: Added capabilities
// +optional
Add []string `json:"add,omitempty"`
// Drop: Removed capabilities
// +optional
Drop []string `json:"drop,omitempty"`
// ForceSendFields is a list of field names (e.g. "Add") 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. "Add") 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 (s *Capabilities) MarshalJSON() ([]byte, error) {
type NoMethod Capabilities
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CloudEventOverrides: CloudEventOverrides defines arguments for a
// Source that control the output
// format of the CloudEvents produced by the Source.
type CloudEventOverrides struct {
// Extensions: Extensions specify what attribute are added or overridden
// on the outbound
// event. Each `Extensions` key-value pair are set on the event as
// an
// attribute extension independently.
// +optional
Extensions map[string]string `json:"extensions,omitempty"`
// ForceSendFields is a list of field names (e.g. "Extensions") 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. "Extensions") 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 (s *CloudEventOverrides) MarshalJSON() ([]byte, error) {
type NoMethod CloudEventOverrides
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Condition: Condition defines a generic condition for a Resource
type Condition struct {
// LastTransitionTime: Optional. Last time the condition transitioned
// from one status to another.
LastTransitionTime string `json:"lastTransitionTime,omitempty"`
// Message: Optional. Human readable message indicating details about
// the current status.
Message string `json:"message,omitempty"`
// Reason: Optional. One-word CamelCase reason for the condition's last
// transition.
Reason string `json:"reason,omitempty"`
// Severity: Optional. How to interpret failures of this condition, one
// of Error, Warning, Info
Severity string `json:"severity,omitempty"`
// Status: Status of the condition, one of True, False, Unknown.
Status string `json:"status,omitempty"`
// Type: type is used to communicate the status of the reconciliation
// process.
// See
// also:
// https://github.com/knative/serving/blob/master/docs/spec/errors.
// md#error-conditions-and-reporting
// Types common to all resources include:
// * "Ready": True when the Resource is ready.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "LastTransitionTime")
// 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. "LastTransitionTime") 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 (s *Condition) MarshalJSON() ([]byte, error) {
type NoMethod Condition
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConfigMapEnvSource: ConfigMapEnvSource selects a ConfigMap to
// populate the environment
// variables with.
//
// The contents of the target ConfigMap's Data field will represent
// the
// key-value pairs as environment variables.
type ConfigMapEnvSource struct {
// LocalObjectReference: This field should not be used directly as it is
// meant to be inlined
// directly into the message. Use the "name" field instead.
LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
// Name: Cloud Run fully managed: not supported
//
// Cloud Run for Anthos: supported
//
// The ConfigMap to select from.
Name string `json:"name,omitempty"`
// Optional: Cloud Run fully managed: not supported
//
// Cloud Run for Anthos: supported
//
// Specify whether the ConfigMap must be defined
// +optional
Optional bool `json:"optional,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "LocalObjectReference") 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. "LocalObjectReference") 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 (s *ConfigMapEnvSource) MarshalJSON() ([]byte, error) {
type NoMethod ConfigMapEnvSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConfigMapKeySelector: Cloud Run fully managed: not supported
//
// Cloud Run on GKE: supported
//
// Selects a key from a ConfigMap.
type ConfigMapKeySelector struct {
// Key: Cloud Run fully managed: not supported
//
// Cloud Run on GKE: supported
//
// The key to select.
Key string `json:"key,omitempty"`
// LocalObjectReference: This field should not be used directly as it is
// meant to be inlined
// directly into the message. Use the "name" field instead.
LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
// Name: Cloud Run fully managed: not supported
//
// Cloud Run on GKE: supported
//
// The ConfigMap to select from.
Name string `json:"name,omitempty"`
// Optional: Cloud Run fully managed: not supported
//
// Cloud Run on GKE: supported
//
// Specify whether the ConfigMap or its key must be defined
// +optional
Optional bool `json:"optional,omitempty"`
// ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 (s *ConfigMapKeySelector) MarshalJSON() ([]byte, error) {
type NoMethod ConfigMapKeySelector
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConfigMapVolumeSource: Adapts a ConfigMap into a volume.
// The contents of the target ConfigMap's Data field will be presented
// in a
// volume as files using the keys in the Data field as the file names,
// unless
// the items element is populated with specific mappings of keys to
// paths.
type ConfigMapVolumeSource struct {
// DefaultMode: Mode bits to use on created files by default. Must be a
// value between 0 and
// 0777. Defaults to 0644. Directories within the path are not affected
// by
// this setting. This might be in conflict with other options that
// affect the
// file mode, like fsGroup, and the result can be other mode bits set.
DefaultMode int64 `json:"defaultMode,omitempty"`
// Items: If unspecified, each key-value pair in the Data field of the
// referenced
// Secret will be projected into the volume as a file whose name is
// the
// key and content is the value. If specified, the listed keys will
// be
// projected into the specified paths, and unlisted keys will not
// be
// present. If a key is specified which is not present in the
// Secret,
// the volume setup will error unless it is marked optional.
Items []*KeyToPath `json:"items,omitempty"`
// Name: Name of the config.
Name string `json:"name,omitempty"`
// Optional: Specify whether the Secret or its keys must be defined.
Optional bool `json:"optional,omitempty"`
// ForceSendFields is a list of field names (e.g. "DefaultMode") 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. "DefaultMode") 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 (s *ConfigMapVolumeSource) MarshalJSON() ([]byte, error) {
type NoMethod ConfigMapVolumeSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Configuration: Configuration represents the "floating HEAD" of a
// linear history of
// Revisions, and optionally how the containers those revisions
// reference are
// built. Users create new Revisions by updating the Configuration's
// spec. The
// "latest created" revision's name is available under status, as is the
// "latest
// ready" revision's name. See
// also:
// https://github.com/knative/serving/blob/master/docs/spec/overvie
// w.md#configuration
type Configuration struct {
// ApiVersion: The API version for this call such as
// "serving.knative.dev/v1alpha1".
ApiVersion string `json:"apiVersion,omitempty"`
// Kind: The kind of resource, in this case always "Configuration".
Kind string `json:"kind,omitempty"`
// Metadata: Metadata associated with this Configuration, including
// name, namespace,
// labels, and annotations.
Metadata *ObjectMeta `json:"metadata,omitempty"`
// Spec: Spec holds the desired state of the Configuration (from the
// client).
Spec *ConfigurationSpec `json:"spec,omitempty"`
// Status: Status communicates the observed state of the Configuration
// (from the
// controller).
Status *ConfigurationStatus `json:"status,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 (s *Configuration) MarshalJSON() ([]byte, error) {
type NoMethod Configuration
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConfigurationCondition: ConfigurationCondition defines a readiness
// condition for a Configuration.
type ConfigurationCondition struct {
// LastTransitionTime: Last time the condition transitioned from one
// status to another.
// +optional
LastTransitionTime string `json:"lastTransitionTime,omitempty"`
// Message: Human-readable message indicating details about last
// transition.
// +optional
Message string `json:"message,omitempty"`
// Reason: One-word CamelCase reason for the condition's last
// transition.
// +optional
Reason string `json:"reason,omitempty"`
// Severity: How to interpret failures of this condition, one of Error,
// Warning, Info
// +optional
Severity string `json:"severity,omitempty"`
// Status: Status of the condition, one of True, False, Unknown.
Status string `json:"status,omitempty"`
// Type: ConfigurationConditionType is used to communicate the status of
// the
// reconciliation process. See
// also:
// https://github.com/knative/serving/blob/master/docs/spec/errors.
// md#error-conditions-and-reporting
// Types include:"Ready"
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "LastTransitionTime")
// 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. "LastTransitionTime") 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 (s *ConfigurationCondition) MarshalJSON() ([]byte, error) {
type NoMethod ConfigurationCondition
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConfigurationSpec: ConfigurationSpec holds the desired state of the
// Configuration (from the
// client).
type ConfigurationSpec struct {
// Generation: Deprecated and not currently populated by Cloud Run.
// See
// metadata.generation instead, which is the sequence number containing
// the
// latest generation of the desired state.
//
// Read-only.
Generation int64 `json:"generation,omitempty"`
// RevisionTemplate: RevisionTemplate holds the latest specification for
// the Revision to
// be stamped out. The template references the container image, and may
// also
// include labels and annotations that should be attached to the
// Revision.
// To correlate a Revision, and/or to force a Revision to be created
// when the
// spec doesn't otherwise change, a nonce label may be provided in
// the
// template metadata. For more details,
// see:
// https://github.com/knative/serving/blob/master/docs/client-conven
// tions.md#associate-modifications-with-revisions
//
// Cloud Run does not currently support referencing a build that
// is
// responsible for materializing the container image from source.
RevisionTemplate *RevisionTemplate `json:"revisionTemplate,omitempty"`
// Template: Template holds the latest specification for the Revision to
// be stamped out.
Template *RevisionTemplate `json:"template,omitempty"`
// ForceSendFields is a list of field names (e.g. "Generation") 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. "Generation") 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 (s *ConfigurationSpec) MarshalJSON() ([]byte, error) {
type NoMethod ConfigurationSpec
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConfigurationStatus: ConfigurationStatus communicates the observed
// state of the Configuration
// (from the controller).
type ConfigurationStatus struct {
// Conditions: Conditions communicates information about
// ongoing/complete
// reconciliation processes that bring the "spec" inline with the
// observed
// state of the world.
Conditions []*ConfigurationCondition `json:"conditions,omitempty"`
// LatestCreatedRevisionName: LatestCreatedRevisionName is the last
// revision that was created from this
// Configuration. It might not be ready yet, for that
// use
// LatestReadyRevisionName.
LatestCreatedRevisionName string `json:"latestCreatedRevisionName,omitempty"`
// LatestReadyRevisionName: LatestReadyRevisionName holds the name of
// the latest Revision stamped out
// from this Configuration that has had its "Ready" condition become
// "True".
LatestReadyRevisionName string `json:"latestReadyRevisionName,omitempty"`
// ObservedGeneration: ObservedGeneration is the 'Generation' of the
// Configuration that
// was last processed by the controller. The observed generation is
// updated
// even if the controller failed to process the spec and create the
// Revision.
//
// Clients polling for completed reconciliation should poll
// until
// observedGeneration = metadata.generation, and the Ready condition's
// status
// is True or False.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// ForceSendFields is a list of field names (e.g. "Conditions") 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. "Conditions") 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 (s *ConfigurationStatus) MarshalJSON() ([]byte, error) {
type NoMethod ConfigurationStatus
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Container: A single application container.
// This specifies both the container to run, the command to run in the
// container
// and the arguments to supply to it.
// Note that additional arguments may be supplied by the system to the
// container
// at runtime.
type Container struct {
// Args: Arguments to the entrypoint.
// The docker image's CMD is used if this is not provided.
// Variable references $(VAR_NAME) are expanded using the
// container's
// environment. If a variable cannot be resolved, the reference in the
// input
// string will be unchanged. The $(VAR_NAME) syntax can be escaped with
// a
// double $$, ie: $$(VAR_NAME). Escaped references will never be
// expanded,
// regardless of whether the variable exists or not.
// Cannot be updated.
// More
// info:
// https://kubernetes.io/docs/tasks/inject-data-application/define-
// command-argument-container/#running-a-command-in-a-shell
// +optional
Args []string `json:"args,omitempty"`
// Command: Entrypoint array. Not executed within a shell.
// The docker image's ENTRYPOINT is used if this is not
// provided.
// Variable references $(VAR_NAME) are expanded using the
// container's
// environment. If a variable cannot be resolved, the reference in the
// input
// string will be unchanged. The $(VAR_NAME) syntax can be escaped with
// a
// double $$, ie: $$(VAR_NAME). Escaped references will never be
// expanded,
// regardless of whether the variable exists or not.
// Cannot be updated.
// More
// info:
// https://kubernetes.io/docs/tasks/inject-data-application/define-
// command-argument-container/#running-a-command-in-a-shell
// +optional
Command []string `json:"command,omitempty"`
// Env: List of environment variables to set in the container.
// Cannot be updated.
// +optional
Env []*EnvVar `json:"env,omitempty"`
// EnvFrom: List of sources to populate environment variables in the
// container.
// The keys defined within a source must be a C_IDENTIFIER. All invalid
// keys
// will be reported as an event when the container is starting. When a
// key
// exists in multiple sources, the value associated with the last source
// will
// take precedence. Values defined by an Env with a duplicate key will
// take
// precedence. Cannot be updated. +optional
EnvFrom []*EnvFromSource `json:"envFrom,omitempty"`
// Image: Docker image name.
// More info: https://kubernetes.io/docs/concepts/containers/images
Image string `json:"image,omitempty"`
// ImagePullPolicy: Image pull policy.
// One of Always, Never, IfNotPresent.
// Defaults to Always if :latest tag is specified, or IfNotPresent
// otherwise.
// Cannot be updated.
// More
// info:
// https://kubernetes.io/docs/concepts/containers/images#updating-i
// mages
// +optional
ImagePullPolicy string `json:"imagePullPolicy,omitempty"`
// Lifecycle: Actions that the management system should take in response
// to container
// lifecycle events. Cannot be updated. +optional
Lifecycle *Lifecycle `json:"lifecycle,omitempty"`
// LivenessProbe: Periodic probe of container liveness.
// Container will be restarted if the probe fails.
// Cannot be updated.
// More
// info:
// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
// #container-probes
// +optional
LivenessProbe *Probe `json:"livenessProbe,omitempty"`
// Name: Name of the container specified as a DNS_LABEL.
// Each container must have a unique name (DNS_LABEL).
// Cannot be updated.
Name string `json:"name,omitempty"`
// Ports: List of ports to expose from the container. Exposing a port
// here gives
// the system additional information about the network connections
// a
// container uses, but is primarily informational. Not specifying a port
// here
// DOES NOT prevent that port from being exposed. Any port which
// is
// listening on the default "0.0.0.0" address inside a container will
// be
// accessible from the network.
// Cannot be updated.
// +optional
Ports []*ContainerPort `json:"ports,omitempty"`
// ReadinessProbe: Periodic probe of container service
// readiness.
// Container will be removed from service endpoints if the probe
// fails.
// Cannot be updated.
// More
// info:
// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
// #container-probes
// +optional
ReadinessProbe *Probe `json:"readinessProbe,omitempty"`
// Resources: Compute Resources required by this container.
// Cannot be updated.
// More
// info:
// https://kubernetes.io/docs/concepts/storage/persistent-volumes#r
// esources
// +optional
Resources *ResourceRequirements `json:"resources,omitempty"`
// SecurityContext: Security options the pod should run with.
// More info:
// https://kubernetes.io/docs/concepts/policy/security-context/
// More
// info:
// https://kubernetes.io/docs/tasks/configure-pod-container/securit
// y-context/
// +optional
SecurityContext *SecurityContext `json:"securityContext,omitempty"`
// Stdin: Whether this container should allocate a buffer for stdin in
// the container
// runtime. If this is not set, reads from stdin in the container will
// always
// result in EOF. Default is false. +optional
Stdin bool `json:"stdin,omitempty"`
// StdinOnce: Whether the container runtime should close the stdin
// channel after it has
// been opened by a single attach. When stdin is true the stdin stream
// will
// remain open across multiple attach sessions. If stdinOnce is set to
// true,
// stdin is opened on container start, is empty until the first
// client
// attaches to stdin, and then remains open and accepts data until the
// client
// disconnects, at which time stdin is closed and remains closed until
// the
// container is restarted. If this flag is false, a container processes
// that
// reads from stdin will never receive an EOF. Default is false
// +optional
StdinOnce bool `json:"stdinOnce,omitempty"`
// TerminationMessagePath: Optional: Path at which the file to which the
// container's termination
// message will be written is mounted into the container's filesystem.
// Message
// written is intended to be brief final status, such as an assertion
// failure
// message. Will be truncated by the node if greater than 4096 bytes.
// The
// total message length across all containers will be limited to
// 12kb.
// Defaults to /dev/termination-log.
// Cannot be updated.
// +optional
TerminationMessagePath string `json:"terminationMessagePath,omitempty"`
// TerminationMessagePolicy: Indicate how the termination message should
// be populated. File will use the
// contents of terminationMessagePath to populate the container status
// message
// on both success and failure. FallbackToLogsOnError will use the last
// chunk
// of container log output if the termination message file is empty and
// the
// container exited with an error. The log output is limited to 2048
// bytes or
// 80 lines, whichever is smaller. Defaults to File. Cannot be
// updated.
// +optional
TerminationMessagePolicy string `json:"terminationMessagePolicy,omitempty"`
// Tty: Whether this container should allocate a TTY for itself, also
// requires
// 'stdin' to be true. Default is false. +optional
Tty bool `json:"tty,omitempty"`
// VolumeDevices: volumeDevices is the list of block devices to be used
// by the container.
// This is an alpha feature and may change in the future.
// +optional
VolumeDevices []*VolumeDevice `json:"volumeDevices,omitempty"`
// VolumeMounts: Pod volumes to mount into the container's
// filesystem.
// Cannot be updated.
// +optional
VolumeMounts []*VolumeMount `json:"volumeMounts,omitempty"`
// WorkingDir: Container's working directory.
// If not specified, the container runtime's default will be used,
// which
// might be configured in the container image.
// Cannot be updated.
// +optional
WorkingDir string `json:"workingDir,omitempty"`
// ForceSendFields is a list of field names (e.g. "Args") 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. "Args") 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 (s *Container) MarshalJSON() ([]byte, error) {
type NoMethod Container
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ContainerPort: ContainerPort represents a network port in a single
// container.
type ContainerPort struct {
// ContainerPort: Number of port to expose on the pod's IP address.
// This must be a valid port number, 0 < x < 65536.
ContainerPort int64 `json:"containerPort,omitempty"`
// HostIP: What host IP to bind the external port to.
// +optional
HostIP string `json:"hostIP,omitempty"`
// HostPort: Number of port to expose on the host.
// If specified, this must be a valid port number, 0 < x < 65536.
// If HostNetwork is specified, this must match ContainerPort.
// Most containers do not need this.
// +optional
HostPort int64 `json:"hostPort,omitempty"`
// Name: If specified, this must be an IANA_SVC_NAME and unique within
// the pod. Each
// named port in a pod must have a unique name. Name for the port that
// can be
// referred to by services.
// +optional
Name string `json:"name,omitempty"`
// Protocol: Protocol for port. Must be UDP or TCP.
// Defaults to "TCP".
// +optional
Protocol string `json:"protocol,omitempty"`
// ForceSendFields is a list of field names (e.g. "ContainerPort") 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. "ContainerPort") 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 (s *ContainerPort) MarshalJSON() ([]byte, error) {
type NoMethod ContainerPort
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Destination struct {
// Ref: ObjectReference points to an Addressable.
// + optional
Ref *ObjectReference `json:"ref,omitempty"`
// Uri: URI is for direct URI Designations or used with the resulting
// URL from
// Addressable ObjectReference. If used with an ObjectReference, will
// be
// appended to the path of the resulting URL from the Addressable.
// + optional
Uri string `json:"uri,omitempty"`
// ForceSendFields is a list of field names (e.g. "Ref") 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. "Ref") 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 (s *Destination) MarshalJSON() ([]byte, error) {
type NoMethod Destination
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DomainMapping: Resource to hold the state and status of a user's
// domain mapping.
type DomainMapping struct {
// ApiVersion: The API version for this call such as
// "domains.cloudrun.com/v1alpha1".
ApiVersion string `json:"apiVersion,omitempty"`
// Kind: The kind of resource, in this case "DomainMapping".
Kind string `json:"kind,omitempty"`
// Metadata: Metadata associated with this BuildTemplate.
Metadata *ObjectMeta `json:"metadata,omitempty"`
// Spec: The spec for this DomainMapping.
Spec *DomainMappingSpec `json:"spec,omitempty"`
// Status: The current status of the DomainMapping.
Status *DomainMappingStatus `json:"status,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 (s *DomainMapping) MarshalJSON() ([]byte, error) {
type NoMethod DomainMapping
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DomainMappingCondition: DomainMappingCondition contains state
// information for a DomainMapping.
type DomainMappingCondition struct {
// LastTransitionTime: Last time the condition transitioned from one
// status to another.
// +optional
LastTransitionTime string `json:"lastTransitionTime,omitempty"`
// Message: Human readable message indicating details about the current
// status.
// +optional
Message string `json:"message,omitempty"`
// Reason: One-word CamelCase reason for the condition's current
// status.
// +optional
Reason string `json:"reason,omitempty"`
// Severity: How to interpret failures of this condition, one of Error,
// Warning, Info
// +optional
Severity string `json:"severity,omitempty"`
// Status: Status of the condition, one of True, False, Unknown.
Status string `json:"status,omitempty"`
// Type: Type of domain mapping condition.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "LastTransitionTime")
// 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. "LastTransitionTime") 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 (s *DomainMappingCondition) MarshalJSON() ([]byte, error) {
type NoMethod DomainMappingCondition
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DomainMappingSpec: The desired state of the Domain Mapping.
type DomainMappingSpec struct {
// CertificateMode: The mode of the certificate.
//
// Possible values:
// "CERTIFICATE_MODE_UNSPECIFIED"
// "NONE" - Do not provision an HTTPS certificate.
// "AUTOMATIC" - Automatically provisions an HTTPS certificate via
// LetsEncrypt.
CertificateMode string `json:"certificateMode,omitempty"`
// ForceOverride: If set, the mapping will override any mapping set
// before this spec was set.
// It is recommended that the user leaves this empty to receive an
// error
// warning about a potential conflict and only set it once the
// respective UI
// has given such a warning.
ForceOverride bool `json:"forceOverride,omitempty"`
// RouteName: The name of the Knative Route that this DomainMapping
// applies to.
// The route must exist.
RouteName string `json:"routeName,omitempty"`
// ForceSendFields is a list of field names (e.g. "CertificateMode") 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. "CertificateMode") 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 (s *DomainMappingSpec) MarshalJSON() ([]byte, error) {
type NoMethod DomainMappingSpec
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DomainMappingStatus: The current state of the Domain Mapping.
type DomainMappingStatus struct {
// Conditions: Array of observed DomainMappingConditions, indicating the
// current state
// of the DomainMapping.
Conditions []*DomainMappingCondition `json:"conditions,omitempty"`
// MappedRouteName: The name of the route that the mapping currently
// points to.
MappedRouteName string `json:"mappedRouteName,omitempty"`
// ObservedGeneration: ObservedGeneration is the 'Generation' of the
// DomainMapping that
// was last processed by the controller.
//
// Clients polling for completed reconciliation should poll
// until
// observedGeneration = metadata.generation and the Ready condition's
// status
// is True or False.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// ResourceRecords: The resource records required to configure this
// domain mapping. These
// records must be added to the domain's DNS configuration in order
// to
// serve the application via this domain mapping.
ResourceRecords []*ResourceRecord `json:"resourceRecords,omitempty"`
// ForceSendFields is a list of field names (e.g. "Conditions") 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. "Conditions") 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 (s *DomainMappingStatus) MarshalJSON() ([]byte, error) {
type NoMethod DomainMappingStatus
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// 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);
// }
//
// The JSON representation for `Empty` is empty JSON object `{}`.
type Empty struct {
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
}
// EnvFromSource: EnvFromSource represents the source of a set of
// ConfigMaps
type EnvFromSource struct {
// ConfigMapRef: The ConfigMap to select from
// +optional
ConfigMapRef *ConfigMapEnvSource `json:"configMapRef,omitempty"`
// Prefix: An optional identifier to prepend to each key in the
// ConfigMap. Must be a
// C_IDENTIFIER. +optional
Prefix string `json:"prefix,omitempty"`
// SecretRef: The Secret to select from
// +optional
SecretRef *SecretEnvSource `json:"secretRef,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConfigMapRef") 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. "ConfigMapRef") 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 (s *EnvFromSource) MarshalJSON() ([]byte, error) {
type NoMethod EnvFromSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EnvVar: EnvVar represents an environment variable present in a
// Container.
type EnvVar struct {
// Name: Name of the environment variable. Must be a C_IDENTIFIER.
Name string `json:"name,omitempty"`
// Value: Variable references $(VAR_NAME) are expanded
// using the previous defined environment variables in the container
// and
// any route environment variables. If a variable cannot be
// resolved,
// the reference in the input string will be unchanged. The
// $(VAR_NAME)
// syntax can be escaped with a double $$, ie: $$(VAR_NAME).
// Escaped
// references will never be expanded, regardless of whether the
// variable
// exists or not.
// Defaults to "".
// +optional
Value string `json:"value,omitempty"`
// ValueFrom: Cloud Run fully managed: not supported
//
// Cloud Run on GKE: supported
//
// Source for the environment variable's value. Cannot be used if value
// is not
// empty. +optional
ValueFrom *EnvVarSource `json:"valueFrom,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 (s *EnvVar) MarshalJSON() ([]byte, error) {
type NoMethod EnvVar
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EnvVarSource: Cloud Run fully managed: not supported
//
// Cloud Run on GKE: supported
//
// EnvVarSource represents a source for the value of an EnvVar.
type EnvVarSource struct {
// ConfigMapKeyRef: Cloud Run fully managed: not supported
//
// Cloud Run on GKE: supported
//
// Selects a key of a ConfigMap.
// +optional
ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
// SecretKeyRef: Cloud Run fully managed: not supported
//
// Cloud Run on GKE: supported
//
// Selects a key of a secret in the pod's namespace
// +optional
SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConfigMapKeyRef") 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. "ConfigMapKeyRef") 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 (s *EnvVarSource) MarshalJSON() ([]byte, error) {
type NoMethod EnvVarSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type EventType struct {
// ApiVersion: The API version for this call such as
// "eventing.knative.dev/v1alpha1".
ApiVersion string `json:"apiVersion,omitempty"`
// Kind: The kind of resource, in this case "EventType".
Kind string `json:"kind,omitempty"`
// Metadata: Metadata associated with this EventType.
Metadata *ObjectMeta `json:"metadata,omitempty"`
// Spec: Spec defines the desired state of the EventType.
Spec *EventTypeSpec `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:"-"`
}
func (s *EventType) MarshalJSON() ([]byte, error) {
type NoMethod EventType
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type EventTypeImporter struct {
// ApiVersion: The API version of the importer CRD.
ApiVersion string `json:"apiVersion,omitempty"`
// Kind: The kind of the importer CRD.
Kind string `json:"kind,omitempty"`
// Parameters: Parameters required to create an importer for the
// EventType.
Parameters []*EventTypeParameter `json:"parameters,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:"-"`
}
func (s *EventTypeImporter) MarshalJSON() ([]byte, error) {
type NoMethod EventTypeImporter
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type EventTypeParameter struct {
// Description: Description of the parameter. E.g. "Google Cloud Project
// Id."
Description string `json:"description,omitempty"`
// Name: Name of the parameter. E.g. googleCloudProject.
Name string `json:"name,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:"-"`
}
func (s *EventTypeParameter) MarshalJSON() ([]byte, error) {
type NoMethod EventTypeParameter
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type EventTypeSpec struct {
// Broker: Refers to the Broker that can provide the EventType.
Broker string `json:"broker,omitempty"`
// Description: Description is a string describing what the EventType is
// about.
// +optional
Description string `json:"description,omitempty"`
// Importer: The importer that provides this EventType to the eventing
// mesh.
Importer *EventTypeImporter `json:"importer,omitempty"`
// Schema: Schema is a URI with the EventType schema. It may be a JSON
// schema, a
// protobuf schema, etc.
// +optional
Schema string `json:"schema,omitempty"`
// Source: Source is a valid URI. Refers to the CloudEvent source as it
// enters into
// the eventing mesh.
Source string `json:"source,omitempty"`
// Type: Type is authoritative. This refers to the CloudEvent type as it
// enters
// into the eventing mesh.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Broker") 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. "Broker") 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 (s *EventTypeSpec) MarshalJSON() ([]byte, error) {
type NoMethod EventTypeSpec
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ExecAction: ExecAction describes a "run in container" action.
type ExecAction struct {
// Command: Command is the command line to execute inside the container,
// the working
// directory for the command is root ('/') in the container's
// filesystem. The
// command is simply exec'd, it is not run inside a shell, so
// traditional
// shell instructions ('|', etc) won't work. To use a shell, you need
// to
// explicitly call out to that shell. Exit status of 0 is treated
// as
// live/healthy and non-zero is unhealthy. +optional
Command string `json:"command,omitempty"`
// ForceSendFields is a list of field names (e.g. "Command") 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. "Command") 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 (s *ExecAction) MarshalJSON() ([]byte, error) {
type NoMethod ExecAction
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Expr: Represents an expression text. Example:
//
// title: "User account presence"
// description: "Determines whether the request has a user account"
// expression: "size(request.user) > 0"
type Expr struct {
// Description: An 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.
//
// The application context of the containing message determines
// which
// well-known feature set of CEL is supported.
Expression string `json:"expression,omitempty"`
// Location: An 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: An 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 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:"-"`
}
func (s *Expr) MarshalJSON() ([]byte, error) {
type NoMethod Expr
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// HTTPGetAction: HTTPGetAction describes an action based on HTTP Get
// requests.
type HTTPGetAction struct {
// Host: Host name to connect to, defaults to the pod IP. You probably
// want to set
// "Host" in httpHeaders instead.
// +optional
Host string `json:"host,omitempty"`
// HttpHeaders: Custom headers to set in the request. HTTP allows
// repeated headers.
// +optional
HttpHeaders []*HTTPHeader `json:"httpHeaders,omitempty"`
// Path: Path to access on the HTTP server.
// +optional
Path string `json:"path,omitempty"`
// Port: Name or number of the port to access on the container.
// Number must be in the range 1 to 65535.
// Name must be an IANA_SVC_NAME.
Port *IntOrString `json:"port,omitempty"`
// Scheme: Scheme to use for connecting to the host.
// Defaults to HTTP.
// +optional
Scheme string `json:"scheme,omitempty"`
// ForceSendFields is a list of field names (e.g. "Host") 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. "Host") 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 (s *HTTPGetAction) MarshalJSON() ([]byte, error) {
type NoMethod HTTPGetAction
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// HTTPHeader: HTTPHeader describes a custom header to be used in HTTP
// probes
type HTTPHeader struct {
// Name: The header field name
Name string `json:"name,omitempty"`
// Value: The header field value
Value string `json:"value,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 (s *HTTPHeader) MarshalJSON() ([]byte, error) {
type NoMethod HTTPHeader
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Handler: Handler defines a specific action that should be taken
type Handler struct {
// Exec: One and only one of the following should be specified.
// Exec specifies the action to take.
// +optional
Exec *ExecAction `json:"exec,omitempty"`
// HttpGet: HTTPGet specifies the http request to perform.
// +optional
HttpGet *HTTPGetAction `json:"httpGet,omitempty"`
// TcpSocket: TCPSocket specifies an action involving a TCP port.
// TCP hooks not yet supported
TcpSocket *TCPSocketAction `json:"tcpSocket,omitempty"`
// ForceSendFields is a list of field names (e.g. "Exec") 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. "Exec") 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 (s *Handler) MarshalJSON() ([]byte, error) {
type NoMethod Handler
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Initializer: Initializer is information about an initializer that has
// not yet completed.
type Initializer struct {
// Name: name of the process that is responsible for initializing this
// object.
Name string `json:"name,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 (s *Initializer) MarshalJSON() ([]byte, error) {
type NoMethod Initializer
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Initializers: Initializers tracks the progress of initialization.
type Initializers struct {
// Pending: Pending is a list of initializers that must execute in order
// before this
// object is visible. When the last pending initializer is removed, and
// no
// failing result is set, the initializers struct will be set to nil and
// the
// object is considered as initialized and visible to all
// clients.
// +patchMergeKey=name
// +patchStrategy=merge
Pending []*Initializer `json:"pending,omitempty"`
// ForceSendFields is a list of field names (e.g. "Pending") 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. "Pending") 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 (s *Initializers) MarshalJSON() ([]byte, error) {
type NoMethod Initializers
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// IntOrString: IntOrString is a type that can hold an int32 or a
// string. When used in
// JSON or YAML marshalling and unmarshalling, it produces or consumes
// the
// inner type. This allows you to have, for example, a JSON field that
// can
// accept a name or number.
type IntOrString struct {
// IntVal: The int value.
IntVal int64 `json:"intVal,omitempty"`
// StrVal: The string value.
StrVal string `json:"strVal,omitempty"`
// Type: The type of the value.
Type int64 `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "IntVal") 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. "IntVal") 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 (s *IntOrString) MarshalJSON() ([]byte, error) {
type NoMethod IntOrString
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// KeyToPath: Maps a string key to a path within a volume.
type KeyToPath struct {
// Key: The key to project.
Key string `json:"key,omitempty"`
// Mode: Mode bits to use on this file, must be a value between 0 and
// 0777. If not
// specified, the volume defaultMode will be used. This might be in
// conflict
// with other options that affect the file mode, like fsGroup, and the
// result
// can be other mode bits set. +optional
Mode int64 `json:"mode,omitempty"`
// Path: The relative path of the file to map the key to.
// May not be an absolute path.
// May not contain the path element '..'.
// May not start with the string '..'.
Path string `json:"path,omitempty"`
// ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 (s *KeyToPath) MarshalJSON() ([]byte, error) {
type NoMethod KeyToPath
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Lifecycle: Lifecycle describes actions that the management system
// should take in
// response to container lifecycle events. For the PostStart and
// PreStop
// lifecycle handlers, management of the container blocks until the
// action is
// complete, unless the container process fails, in which case the
// handler is
// aborted.
type Lifecycle struct {
// PostStart: PostStart is called immediately after a container is
// created. If the
// handler fails, the container is terminated and restarted according to
// its
// restart policy. Other management of the container blocks until the
// hook
// completes. More
// info:
// https://kubernetes.io/docs/concepts/containers/container-lifecyc
// le-hooks/#container-hooks
// +optional
PostStart *Handler `json:"postStart,omitempty"`
// PreStop: PreStop is called immediately before a container is
// terminated.
// The container is terminated after the handler completes.
// The reason for termination is passed to the handler.
// Regardless of the outcome of the handler, the container is
// eventually
// terminated. Other management of the container blocks until the
// hook
// completes. More
// info:
// https://kubernetes.io/docs/concepts/containers/container-lifecyc
// le-hooks/#container-hooks
// +optional
PreStop *Handler `json:"preStop,omitempty"`
// ForceSendFields is a list of field names (e.g. "PostStart") 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. "PostStart") 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 (s *Lifecycle) MarshalJSON() ([]byte, error) {
type NoMethod Lifecycle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListAuthorizedDomainsResponse: A list of Authorized Domains.
type ListAuthorizedDomainsResponse struct {
// Domains: The authorized domains belonging to the user.
Domains []*AuthorizedDomain `json:"domains,omitempty"`
// NextPageToken: Continuation token for fetching the next page of
// results.
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. "Domains") 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. "Domains") 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 (s *ListAuthorizedDomainsResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListAuthorizedDomainsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListConfigurationsResponse: ListConfigurationsResponse is a list of
// Configuration resources.
type ListConfigurationsResponse struct {
// ApiVersion: The API version for this call such as
// "serving.knative.dev/v1alpha1".
ApiVersion string `json:"apiVersion,omitempty"`
// Items: List of Configurations.
Items []*Configuration `json:"items,omitempty"`
// Kind: The kind of this resource, in this case "ConfigurationList".
Kind string `json:"kind,omitempty"`
// Metadata: Metadata associated with this Configuration 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 (s *ListConfigurationsResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListConfigurationsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListDomainMappingsResponse: ListDomainMappingsResponse is a list of
// DomainMapping resources.
type ListDomainMappingsResponse struct {
// ApiVersion: The API version for this call such as
// "domains.cloudrun.com/v1alpha1".
ApiVersion string `json:"apiVersion,omitempty"`
// Items: List of DomainMappings.
Items []*DomainMapping `json:"items,omitempty"`
// Kind: The kind of this resource, in this case "DomainMappingList".
Kind string `json:"kind,omitempty"`
// Metadata: Metadata associated with this DomainMapping 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 (s *ListDomainMappingsResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListDomainMappingsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListEventTypesResponse: ListEventTypesResponse is a list of EventType
// resources.
type ListEventTypesResponse struct {
// ApiVersion: The API version for this call such as
// "eventing.knative.dev/v1alpha1".
ApiVersion string `json:"apiVersion,omitempty"`
// Items: List of EventTypes.
Items []*EventType `json:"items,omitempty"`
// Kind: The kind of this resource, in this case "EventTypeList".
Kind string `json:"kind,omitempty"`
// Metadata: Metadata associated with this EventType 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 (s *ListEventTypesResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListEventTypesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListLocationsResponse: The response message for
// Locations.ListLocations.
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 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:"-"`
}
func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListLocationsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListMeta: ListMeta describes metadata that synthetic resources must
// have, including
// lists and various status objects. A resource may have only one
// of
// {ObjectMeta, ListMeta}.
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.
Continue string `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
// +optional
ResourceVersion string `json:"resourceVersion,omitempty"`
// SelfLink: SelfLink is a URL representing this object.
// Populated by the system.
// Read-only.
// +optional
SelfLink string `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:"-"`
}
func (s *ListMeta) MarshalJSON() ([]byte, error) {
type NoMethod ListMeta
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListPubSubsResponse: ListPubSubsResponse is a list of PubSub
// resources.
type ListPubSubsResponse struct {
// ApiVersion: The API version for this call such as
// "events.cloud.google.com/v1alpha1".
ApiVersion string `json:"apiVersion,omitempty"`
// Items: List of PubSubs.
Items []*PubSub `json:"items,omitempty"`
// Kind: The kind of this resource, in this case "PubSubList".
Kind string `json:"kind,omitempty"`
// Metadata: Metadata associated with this PubSub 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 (s *ListPubSubsResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListPubSubsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListRevisionsResponse: ListRevisionsResponse is a list of Revision
// resources.
type ListRevisionsResponse struct {
// ApiVersion: The API version for this call such as
// "serving.knative.dev/v1alpha1".
ApiVersion string `json:"apiVersion,omitempty"`
// Items: List of Revisions.
Items []*Revision `json:"items,omitempty"`
// Kind: The kind of this resource, in this case "RevisionList".
Kind string `json:"kind,omitempty"`
// Metadata: Metadata associated with this revision 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 (s *ListRevisionsResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListRevisionsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListRoutesResponse: ListRoutesResponse is a list of Route resources.
type ListRoutesResponse struct {
// ApiVersion: The API version for this call such as
// "serving.knative.dev/v1alpha1".
ApiVersion string `json:"apiVersion,omitempty"`
// Items: List of Routes.
Items []*Route `json:"items,omitempty"`
// Kind: The kind of this resource, in this case always "RouteList".
Kind string `json:"kind,omitempty"`
// Metadata: Metadata associated with this Route 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 (s *ListRoutesResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListRoutesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListServicesResponse: A list of Service resources.
type ListServicesResponse struct {
// ApiVersion: The API version for this call such as
// "serving.knative.dev/v1alpha1".
ApiVersion string `json:"apiVersion,omitempty"`
// Items: List of Services.
Items []*Service `json:"items,omitempty"`
// Kind: The kind of this resource, in this case "ServiceList".
Kind string `json:"kind,omitempty"`
// Metadata: Metadata associated with this Service 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 (s *ListServicesResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListServicesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListTriggersResponse: ListTriggersResponse is a list of Trigger
// resources.
type ListTriggersResponse struct {
// ApiVersion: The API version for this call such as
// "eventing.knative.dev/v1alpha1".
ApiVersion string `json:"apiVersion,omitempty"`
// Items: List of Triggers.
Items []*Trigger `json:"items,omitempty"`
// Kind: The kind of this resource, in this case "TriggerList".
Kind string `json:"kind,omitempty"`
// Metadata: Metadata associated with this Trigger 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 (s *ListTriggersResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListTriggersResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LocalObjectReference: LocalObjectReference contains enough
// information to let you locate the
// referenced object inside the same namespace.
type LocalObjectReference struct {
// Name: Name of the referent.
// More
// info:
// https://kubernetes.io/docs/concepts/overview/working-with-object
// s/names/#names
Name string `json:"name,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 (s *LocalObjectReference) MarshalJSON() ([]byte, error) {
type NoMethod LocalObjectReference
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Location: A resource that represents Google Cloud Platform 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"`
// ForceSendFields is a list of field names (e.g. "DisplayName") 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. "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:"-"`
}
func (s *Location) MarshalJSON() ([]byte, error) {
type NoMethod Location
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ObjectMeta: ObjectMeta is metadata that all persisted resources must
// have, which includes
// all objects users must create.
type ObjectMeta struct {
// Annotations: 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/annotations +optional
Annotations map[string]string `json:"annotations,omitempty"`
// ClusterName: Not currently supported by Cloud Run.
//
// 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. +optional
ClusterName string `json:"clusterName,omitempty"`
// CreationTimestamp: 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#metadata
// +optional
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// DeletionGracePeriodSeconds: Not currently supported by Cloud
// Run.
//
// 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. +optional
DeletionGracePeriodSeconds int64 `json:"deletionGracePeriodSeconds,omitempty"`
// DeletionTimestamp: DeletionTimestamp is RFC 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#metadata
// +optional
DeletionTimestamp string `json:"deletionTimestamp,omitempty"`
// Finalizers: Not currently supported by Cloud Run.
//
// 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.
// +optional
// +patchStrategy=merge
Finalizers []string `json:"finalizers,omitempty"`
// GenerateName: Not currently supported by Cloud Run.
//
// 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
// +optional
// string generateName = 2;
GenerateName string `json:"generateName,omitempty"`
// Generation: A sequence number representing a specific generation of
// the desired state.
// Populated by the system. Read-only.
// +optional
Generation int64 `json:"generation,omitempty"`
// Initializers: Not currently supported by Cloud Run.
//
// An initializer is a controller which enforces some system invariant
// at
// object creation time. This field is a list of initializers that have
// not
// yet acted on this object. If nil or empty, this object has been
// completely
// initialized. Otherwise, the object is considered uninitialized and
// is
// hidden (in list/watch and get calls) from clients that haven't
// explicitly
// asked to observe uninitialized objects.
//
// When an object is created, the system will populate this list with
// the
// current set of initializers. Only privileged users may set or modify
// this
// list. Once it is empty, it may not be modified further by any user.
Initializers *Initializers `json:"initializers,omitempty"`
// Labels: 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/labels
// +optional
Labels 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
// +optional
Name string `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.
Namespace string `json:"namespace,omitempty"`
// OwnerReferences: List of objects that own this object. If ALL objects
// in the list have
// been deleted, this object will be garbage collected.
// +optional
OwnerReferences []*OwnerReference `json:"ownerReferences,omitempty"`
// ResourceVersion: 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 and .
// More
// info:
// https://git.k8s.io/community/contributors/devel/api-conventions.
// md#concurrency-control-and-consistency
// +optional
ResourceVersion string `json:"resourceVersion,omitempty"`
// SelfLink: SelfLink is a URL representing this object.
// Populated by the system.
// Read-only.
// +optional
// string selfLink = 4;
SelfLink string `json:"selfLink,omitempty"`
// Uid: 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#uids
// +optional
Uid string `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:"-"`
}
func (s *ObjectMeta) MarshalJSON() ([]byte, error) {
type NoMethod ObjectMeta
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ObjectReference: ObjectReference contains enough information to let
// you inspect or modify the
// referred object.
type ObjectReference struct {
// ApiVersion: API version of the referent.
// +optional
ApiVersion string `json:"apiVersion,omitempty"`
// FieldPath: If referring to a piece of an object instead of an entire
// object, this
// string should contain a valid JSON/Go field access statement, such
// as
// desiredState.manifest.containers[2]. For example, if the object
// reference
// is to a container within a pod, this would take on a value
// like:
// "spec.containers{name}" (where "name" refers to the name of the
// container
// that triggered the event) or if no container name is
// specified
// "spec.containers[2]" (container with index 2 in this pod). This
// syntax is
// chosen only to have some well-defined way of referencing a part of
// an
// object.
FieldPath string `json:"fieldPath,omitempty"`
// Kind: Kind of the referent.
// More
// info:
// https://git.k8s.io/community/contributors/devel/api-conventions.
// md#types-kinds
// +optional
Kind string `json:"kind,omitempty"`
// Name: Name of the referent.
// More
// info:
// https://kubernetes.io/docs/concepts/overview/working-with-object
// s/names/#names
// +optional
Name string `json:"name,omitempty"`
// Namespace: Namespace of the referent.
// More
// info:
// https://kubernetes.io/docs/concepts/overview/working-with-object
// s/namespaces/
// +optional
Namespace string `json:"namespace,omitempty"`
// ResourceVersion: Specific resourceVersion to which this reference is
// made, if any.
// More
// info:
// https://git.k8s.io/community/contributors/devel/api-conventions.
// md#concurrency-control-and-consistency
// +optional
ResourceVersion string `json:"resourceVersion,omitempty"`
// Uid: UID of the referent.
// More
// info:
// https://kubernetes.io/docs/concepts/overview/working-with-object
// s/names/#uids
// +optional
Uid string `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:"-"`
}
func (s *ObjectReference) MarshalJSON() ([]byte, error) {
type NoMethod ObjectReference
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// OwnerReference: OwnerReference contains enough information to let you
// identify an owning
// object. Currently, an owning object must be in the same namespace, so
// there
// is no namespace field.
type OwnerReference struct {
// ApiVersion: API version of the referent.
ApiVersion string `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.
// +optional
BlockOwnerDeletion bool `json:"blockOwnerDeletion,omitempty"`
// Controller: If true, this reference points to the managing
// controller.
// +optional
Controller bool `json:"controller,omitempty"`
// Kind: Kind of the referent.
// More
// info:
// https://git.k8s.io/community/contributors/devel/api-conventions.
// md#types-kinds
Kind string `json:"kind,omitempty"`
// Name: Name of the referent.
// More info: http://kubernetes.io/docs/user-guide/identifiers#names
Name string `json:"name,omitempty"`
// Uid: UID of the referent.
// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
Uid string `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:"-"`
}
func (s *OwnerReference) MarshalJSON() ([]byte, error) {
type NoMethod OwnerReference
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Policy: Defines an Identity and Access Management (IAM) policy. It is
// used to
// specify access control policies for Cloud Platform resources.
//
//
// A `Policy` is a collection of `bindings`. A `binding` binds one or
// more
// `members` to a single `role`. Members can be user accounts, service
// accounts,
// Google groups, and domains (such as G Suite). A `role` is a named
// list of
// permissions (defined by IAM or configured by users). A `binding`
// can
// optionally specify a `condition`, which is a logic expression that
// further
// constrains the role binding based on attributes about the request
// and/or
// target resource.
//
// **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')",
// }
// }
// ]
// }
//
// **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')
//
// For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct {
// AuditConfigs: Specifies cloud audit logging configuration for this
// policy.
AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
// Bindings: Associates a list of `members` to a `role`. Optionally may
// specify a
// `condition` that determines when binding is in effect.
// `bindings` with no members will result in an error.
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.
//
// If no `etag` is provided in the call to `setIamPolicy`, then the
// existing
// policy is overwritten. Due to blind-set semantics of an etag-less
// policy,
// 'setIamPolicy' will not fail even if the incoming policy version does
// not
// meet the requirements for modifying the stored policy.
Etag string `json:"etag,omitempty"`
// Version: Specifies the format of the policy.
//
// Valid values are 0, 1, and 3. Requests specifying an invalid value
// will be
// rejected.
//
// Operations affecting conditional bindings must specify version 3.
// This can
// be either setting a conditional policy, modifying a conditional
// binding,
// or removing a binding (conditional or unconditional) from the
// stored
// conditional policy.
// Operations on non-conditional policies may specify any valid value
// or
// leave the field unset.
//
// If no etag is provided in the call to `setIamPolicy`, version
// compliance
// checks against the stored policy is skipped.
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. "AuditConfigs") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AuditConfigs") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.