appengine

package
v0.0.0-...-52d6a69 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package appengine is a generated protocol buffer package.

It is generated from these files:

google/appengine/v1/app_yaml.proto
google/appengine/v1/appengine.proto
google/appengine/v1/application.proto
google/appengine/v1/deploy.proto
google/appengine/v1/instance.proto
google/appengine/v1/location.proto
google/appengine/v1/operation.proto
google/appengine/v1/service.proto
google/appengine/v1/version.proto

It has these top-level messages:

ApiConfigHandler
ErrorHandler
UrlMap
StaticFilesHandler
ScriptHandler
ApiEndpointHandler
HealthCheck
Library
GetApplicationRequest
RepairApplicationRequest
ListServicesRequest
ListServicesResponse
GetServiceRequest
UpdateServiceRequest
DeleteServiceRequest
ListVersionsRequest
ListVersionsResponse
GetVersionRequest
CreateVersionRequest
UpdateVersionRequest
DeleteVersionRequest
ListInstancesRequest
ListInstancesResponse
GetInstanceRequest
DeleteInstanceRequest
DebugInstanceRequest
Application
UrlDispatchRule
Deployment
FileInfo
ContainerInfo
ZipInfo
Instance
LocationMetadata
OperationMetadataV1
Service
TrafficSplit
Version
AutomaticScaling
BasicScaling
ManualScaling
CpuUtilization
RequestUtilization
DiskUtilization
NetworkUtilization
Network
Resources

Index

Constants

This section is empty.

Variables

View Source
var AuthFailAction_name = map[int32]string{
	0: "AUTH_FAIL_ACTION_UNSPECIFIED",
	1: "AUTH_FAIL_ACTION_REDIRECT",
	2: "AUTH_FAIL_ACTION_UNAUTHORIZED",
}
View Source
var AuthFailAction_value = map[string]int32{
	"AUTH_FAIL_ACTION_UNSPECIFIED":  0,
	"AUTH_FAIL_ACTION_REDIRECT":     1,
	"AUTH_FAIL_ACTION_UNAUTHORIZED": 2,
}
View Source
var ErrorHandler_ErrorCode_name = map[int32]string{
	0: "ERROR_CODE_UNSPECIFIED",

	1: "ERROR_CODE_OVER_QUOTA",
	2: "ERROR_CODE_DOS_API_DENIAL",
	3: "ERROR_CODE_TIMEOUT",
}
View Source
var ErrorHandler_ErrorCode_value = map[string]int32{
	"ERROR_CODE_UNSPECIFIED":    0,
	"ERROR_CODE_DEFAULT":        0,
	"ERROR_CODE_OVER_QUOTA":     1,
	"ERROR_CODE_DOS_API_DENIAL": 2,
	"ERROR_CODE_TIMEOUT":        3,
}
View Source
var InboundServiceType_name = map[int32]string{
	0: "INBOUND_SERVICE_UNSPECIFIED",
	1: "INBOUND_SERVICE_MAIL",
	2: "INBOUND_SERVICE_MAIL_BOUNCE",
	3: "INBOUND_SERVICE_XMPP_ERROR",
	4: "INBOUND_SERVICE_XMPP_MESSAGE",
	5: "INBOUND_SERVICE_XMPP_SUBSCRIBE",
	6: "INBOUND_SERVICE_XMPP_PRESENCE",
	7: "INBOUND_SERVICE_CHANNEL_PRESENCE",
	9: "INBOUND_SERVICE_WARMUP",
}
View Source
var InboundServiceType_value = map[string]int32{
	"INBOUND_SERVICE_UNSPECIFIED":      0,
	"INBOUND_SERVICE_MAIL":             1,
	"INBOUND_SERVICE_MAIL_BOUNCE":      2,
	"INBOUND_SERVICE_XMPP_ERROR":       3,
	"INBOUND_SERVICE_XMPP_MESSAGE":     4,
	"INBOUND_SERVICE_XMPP_SUBSCRIBE":   5,
	"INBOUND_SERVICE_XMPP_PRESENCE":    6,
	"INBOUND_SERVICE_CHANNEL_PRESENCE": 7,
	"INBOUND_SERVICE_WARMUP":           9,
}
View Source
var Instance_Availability_name = map[int32]string{
	0: "UNSPECIFIED",
	1: "RESIDENT",
	2: "DYNAMIC",
}
View Source
var Instance_Availability_value = map[string]int32{
	"UNSPECIFIED": 0,
	"RESIDENT":    1,
	"DYNAMIC":     2,
}
View Source
var LoginRequirement_name = map[int32]string{
	0: "LOGIN_UNSPECIFIED",
	1: "LOGIN_OPTIONAL",
	2: "LOGIN_ADMIN",
	3: "LOGIN_REQUIRED",
}
View Source
var LoginRequirement_value = map[string]int32{
	"LOGIN_UNSPECIFIED": 0,
	"LOGIN_OPTIONAL":    1,
	"LOGIN_ADMIN":       2,
	"LOGIN_REQUIRED":    3,
}
View Source
var SecurityLevel_name = map[int32]string{
	0: "SECURE_UNSPECIFIED",

	1: "SECURE_NEVER",
	2: "SECURE_OPTIONAL",
	3: "SECURE_ALWAYS",
}
View Source
var SecurityLevel_value = map[string]int32{
	"SECURE_UNSPECIFIED": 0,
	"SECURE_DEFAULT":     0,
	"SECURE_NEVER":       1,
	"SECURE_OPTIONAL":    2,
	"SECURE_ALWAYS":      3,
}
View Source
var ServingStatus_name = map[int32]string{
	0: "SERVING_STATUS_UNSPECIFIED",
	1: "SERVING",
	2: "STOPPED",
}
View Source
var ServingStatus_value = map[string]int32{
	"SERVING_STATUS_UNSPECIFIED": 0,
	"SERVING":                    1,
	"STOPPED":                    2,
}
View Source
var TrafficSplit_ShardBy_name = map[int32]string{
	0: "UNSPECIFIED",
	1: "COOKIE",
	2: "IP",
}
View Source
var TrafficSplit_ShardBy_value = map[string]int32{
	"UNSPECIFIED": 0,
	"COOKIE":      1,
	"IP":          2,
}
View Source
var UrlMap_RedirectHttpResponseCode_name = map[int32]string{
	0: "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED",
	1: "REDIRECT_HTTP_RESPONSE_CODE_301",
	2: "REDIRECT_HTTP_RESPONSE_CODE_302",
	3: "REDIRECT_HTTP_RESPONSE_CODE_303",
	4: "REDIRECT_HTTP_RESPONSE_CODE_307",
}
View Source
var UrlMap_RedirectHttpResponseCode_value = map[string]int32{
	"REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED": 0,
	"REDIRECT_HTTP_RESPONSE_CODE_301":         1,
	"REDIRECT_HTTP_RESPONSE_CODE_302":         2,
	"REDIRECT_HTTP_RESPONSE_CODE_303":         3,
	"REDIRECT_HTTP_RESPONSE_CODE_307":         4,
}
View Source
var VersionView_name = map[int32]string{
	0: "BASIC",
	1: "FULL",
}
View Source
var VersionView_value = map[string]int32{
	"BASIC": 0,
	"FULL":  1,
}

Functions

func RegisterApplicationsServer

func RegisterApplicationsServer(s *grpc.Server, srv ApplicationsServer)

func RegisterInstancesServer

func RegisterInstancesServer(s *grpc.Server, srv InstancesServer)

func RegisterServicesServer

func RegisterServicesServer(s *grpc.Server, srv ServicesServer)

func RegisterVersionsServer

func RegisterVersionsServer(s *grpc.Server, srv VersionsServer)

Types

type ApiConfigHandler

type ApiConfigHandler struct {
	// Action to take when users access resources that require
	// authentication. Defaults to `redirect`.
	AuthFailAction AuthFailAction `` /* 139-byte string literal not displayed */
	// Level of login required to access this resource. Defaults to
	// `optional`.
	Login LoginRequirement `protobuf:"varint,2,opt,name=login,enum=google.appengine.v1.LoginRequirement" json:"login,omitempty"`
	// Path to the script from the application root directory.
	Script string `protobuf:"bytes,3,opt,name=script" json:"script,omitempty"`
	// Security (HTTPS) enforcement for this URL.
	SecurityLevel SecurityLevel `` /* 133-byte string literal not displayed */
	// URL to serve the endpoint at.
	Url string `protobuf:"bytes,5,opt,name=url" json:"url,omitempty"`
}

[Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers.

func (*ApiConfigHandler) Descriptor

func (*ApiConfigHandler) Descriptor() ([]byte, []int)

func (*ApiConfigHandler) GetAuthFailAction

func (m *ApiConfigHandler) GetAuthFailAction() AuthFailAction

func (*ApiConfigHandler) GetLogin

func (m *ApiConfigHandler) GetLogin() LoginRequirement

func (*ApiConfigHandler) GetScript

func (m *ApiConfigHandler) GetScript() string

func (*ApiConfigHandler) GetSecurityLevel

func (m *ApiConfigHandler) GetSecurityLevel() SecurityLevel

func (*ApiConfigHandler) GetUrl

func (m *ApiConfigHandler) GetUrl() string

func (*ApiConfigHandler) ProtoMessage

func (*ApiConfigHandler) ProtoMessage()

func (*ApiConfigHandler) Reset

func (m *ApiConfigHandler) Reset()

func (*ApiConfigHandler) String

func (m *ApiConfigHandler) String() string

type ApiEndpointHandler

type ApiEndpointHandler struct {
	// Path to the script from the application root directory.
	ScriptPath string `protobuf:"bytes,1,opt,name=script_path,json=scriptPath" json:"script_path,omitempty"`
}

Uses Google Cloud Endpoints to handle requests.

func (*ApiEndpointHandler) Descriptor

func (*ApiEndpointHandler) Descriptor() ([]byte, []int)

func (*ApiEndpointHandler) GetScriptPath

func (m *ApiEndpointHandler) GetScriptPath() string

func (*ApiEndpointHandler) ProtoMessage

func (*ApiEndpointHandler) ProtoMessage()

func (*ApiEndpointHandler) Reset

func (m *ApiEndpointHandler) Reset()

func (*ApiEndpointHandler) String

func (m *ApiEndpointHandler) String() string

type Application

type Application struct {
	// Full path to the Application resource in the API.
	// Example: `apps/myapp`.
	//
	// @OutputOnly
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Identifier of the Application resource. This identifier is equivalent
	// to the project ID of the Google Cloud Platform project where you want to
	// deploy your application.
	// Example: `myapp`.
	Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	// HTTP path dispatch rules for requests to the application that do not
	// explicitly target a service or version. Rules are order-dependent.
	//
	// @OutputOnly
	DispatchRules []*UrlDispatchRule `protobuf:"bytes,3,rep,name=dispatch_rules,json=dispatchRules" json:"dispatch_rules,omitempty"`
	// Google Apps authentication domain that controls which users can access
	// this application.
	//
	// Defaults to open access for any Google Account.
	AuthDomain string `protobuf:"bytes,6,opt,name=auth_domain,json=authDomain" json:"auth_domain,omitempty"`
	// Location from which this application will be run. Application instances
	// will run out of data centers in the chosen location, which is also where
	// all of the application's end user content is stored.
	//
	// Defaults to `us-central`.
	//
	// Options are:
	//
	// `us-central` - Central US
	//
	// `europe-west` - Western Europe
	//
	// `us-east1` - Eastern US
	LocationId string `protobuf:"bytes,7,opt,name=location_id,json=locationId" json:"location_id,omitempty"`
	// Google Cloud Storage bucket that can be used for storing files
	// associated with this application. This bucket is associated with the
	// application and can be used by the gcloud deployment commands.
	//
	// @OutputOnly
	CodeBucket string `protobuf:"bytes,8,opt,name=code_bucket,json=codeBucket" json:"code_bucket,omitempty"`
	// Cookie expiration policy for this application.
	//
	// @OutputOnly
	DefaultCookieExpiration *google_protobuf1.Duration `protobuf:"bytes,9,opt,name=default_cookie_expiration,json=defaultCookieExpiration" json:"default_cookie_expiration,omitempty"`
	// Hostname used to reach this application, as resolved by App Engine.
	//
	// @OutputOnly
	DefaultHostname string `protobuf:"bytes,11,opt,name=default_hostname,json=defaultHostname" json:"default_hostname,omitempty"`
	// Google Cloud Storage bucket that can be used by this application to store
	// content.
	//
	// @OutputOnly
	DefaultBucket string `protobuf:"bytes,12,opt,name=default_bucket,json=defaultBucket" json:"default_bucket,omitempty"`
}

An Application resource contains the top-level configuration of an App Engine application.

func (*Application) Descriptor

func (*Application) Descriptor() ([]byte, []int)

func (*Application) GetAuthDomain

func (m *Application) GetAuthDomain() string

func (*Application) GetCodeBucket

func (m *Application) GetCodeBucket() string

func (*Application) GetDefaultBucket

func (m *Application) GetDefaultBucket() string

func (*Application) GetDefaultCookieExpiration

func (m *Application) GetDefaultCookieExpiration() *google_protobuf1.Duration

func (*Application) GetDefaultHostname

func (m *Application) GetDefaultHostname() string

func (*Application) GetDispatchRules

func (m *Application) GetDispatchRules() []*UrlDispatchRule

func (*Application) GetId

func (m *Application) GetId() string

func (*Application) GetLocationId

func (m *Application) GetLocationId() string

func (*Application) GetName

func (m *Application) GetName() string

func (*Application) ProtoMessage

func (*Application) ProtoMessage()

func (*Application) Reset

func (m *Application) Reset()

func (*Application) String

func (m *Application) String() string

type ApplicationsClient

type ApplicationsClient interface {
	// Gets information about an application.
	GetApplication(ctx context.Context, in *GetApplicationRequest, opts ...grpc.CallOption) (*Application, error)
	// Recreates the required App Engine features for the application in your
	// project, for example a Cloud Storage bucket or App Engine service account.
	// Use this method if you receive an error message about a missing feature,
	// for example "*Error retrieving the App Engine service account*".
	RepairApplication(ctx context.Context, in *RepairApplicationRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
}

func NewApplicationsClient

func NewApplicationsClient(cc *grpc.ClientConn) ApplicationsClient

type ApplicationsServer

type ApplicationsServer interface {
	// Gets information about an application.
	GetApplication(context.Context, *GetApplicationRequest) (*Application, error)
	// Recreates the required App Engine features for the application in your
	// project, for example a Cloud Storage bucket or App Engine service account.
	// Use this method if you receive an error message about a missing feature,
	// for example "*Error retrieving the App Engine service account*".
	RepairApplication(context.Context, *RepairApplicationRequest) (*google_longrunning.Operation, error)
}

type AuthFailAction

type AuthFailAction int32

Actions to take when the user is not logged in.

const (
	// Not specified. `AUTH_FAIL_ACTION_REDIRECT` is assumed.
	AuthFailAction_AUTH_FAIL_ACTION_UNSPECIFIED AuthFailAction = 0
	// Redirects user to "accounts.google.com". The user is redirected back to the
	// application URL after signing in or creating an account.
	AuthFailAction_AUTH_FAIL_ACTION_REDIRECT AuthFailAction = 1
	// Rejects request with a `401` HTTP status code and an error
	// message.
	AuthFailAction_AUTH_FAIL_ACTION_UNAUTHORIZED AuthFailAction = 2
)

func (AuthFailAction) EnumDescriptor

func (AuthFailAction) EnumDescriptor() ([]byte, []int)

func (AuthFailAction) String

func (x AuthFailAction) String() string

type AutomaticScaling

type AutomaticScaling struct {
	// Amount of time that the
	// [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/)
	// should wait between changes to the number of virtual machines.
	// Only applicable for VM runtimes.
	CoolDownPeriod *google_protobuf1.Duration `protobuf:"bytes,1,opt,name=cool_down_period,json=coolDownPeriod" json:"cool_down_period,omitempty"`
	// Target scaling by CPU usage.
	CpuUtilization *CpuUtilization `protobuf:"bytes,2,opt,name=cpu_utilization,json=cpuUtilization" json:"cpu_utilization,omitempty"`
	// Number of concurrent requests an automatic scaling instance can accept
	// before the scheduler spawns a new instance.
	//
	// Defaults to a runtime-specific value.
	MaxConcurrentRequests int32 `protobuf:"varint,3,opt,name=max_concurrent_requests,json=maxConcurrentRequests" json:"max_concurrent_requests,omitempty"`
	// Maximum number of idle instances that should be maintained for this
	// version.
	MaxIdleInstances int32 `protobuf:"varint,4,opt,name=max_idle_instances,json=maxIdleInstances" json:"max_idle_instances,omitempty"`
	// Maximum number of instances that should be started to handle requests.
	MaxTotalInstances int32 `protobuf:"varint,5,opt,name=max_total_instances,json=maxTotalInstances" json:"max_total_instances,omitempty"`
	// Maximum amount of time that a request should wait in the pending queue
	// before starting a new instance to handle it.
	MaxPendingLatency *google_protobuf1.Duration `protobuf:"bytes,6,opt,name=max_pending_latency,json=maxPendingLatency" json:"max_pending_latency,omitempty"`
	// Minimum number of idle instances that should be maintained for
	// this version. Only applicable for the default version of a service.
	MinIdleInstances int32 `protobuf:"varint,7,opt,name=min_idle_instances,json=minIdleInstances" json:"min_idle_instances,omitempty"`
	// Minimum number of instances that should be maintained for this version.
	MinTotalInstances int32 `protobuf:"varint,8,opt,name=min_total_instances,json=minTotalInstances" json:"min_total_instances,omitempty"`
	// Minimum amount of time a request should wait in the pending queue before
	// starting a new instance to handle it.
	MinPendingLatency *google_protobuf1.Duration `protobuf:"bytes,9,opt,name=min_pending_latency,json=minPendingLatency" json:"min_pending_latency,omitempty"`
	// Target scaling by request utilization.
	RequestUtilization *RequestUtilization `protobuf:"bytes,10,opt,name=request_utilization,json=requestUtilization" json:"request_utilization,omitempty"`
	// Target scaling by disk usage.
	DiskUtilization *DiskUtilization `protobuf:"bytes,11,opt,name=disk_utilization,json=diskUtilization" json:"disk_utilization,omitempty"`
	// Target scaling by network usage.
	NetworkUtilization *NetworkUtilization `protobuf:"bytes,12,opt,name=network_utilization,json=networkUtilization" json:"network_utilization,omitempty"`
}

Automatic scaling is based on request rate, response latencies, and other application metrics.

func (*AutomaticScaling) Descriptor

func (*AutomaticScaling) Descriptor() ([]byte, []int)

func (*AutomaticScaling) GetCoolDownPeriod

func (m *AutomaticScaling) GetCoolDownPeriod() *google_protobuf1.Duration

func (*AutomaticScaling) GetCpuUtilization

func (m *AutomaticScaling) GetCpuUtilization() *CpuUtilization

func (*AutomaticScaling) GetDiskUtilization

func (m *AutomaticScaling) GetDiskUtilization() *DiskUtilization

func (*AutomaticScaling) GetMaxConcurrentRequests

func (m *AutomaticScaling) GetMaxConcurrentRequests() int32

func (*AutomaticScaling) GetMaxIdleInstances

func (m *AutomaticScaling) GetMaxIdleInstances() int32

func (*AutomaticScaling) GetMaxPendingLatency

func (m *AutomaticScaling) GetMaxPendingLatency() *google_protobuf1.Duration

func (*AutomaticScaling) GetMaxTotalInstances

func (m *AutomaticScaling) GetMaxTotalInstances() int32

func (*AutomaticScaling) GetMinIdleInstances

func (m *AutomaticScaling) GetMinIdleInstances() int32

func (*AutomaticScaling) GetMinPendingLatency

func (m *AutomaticScaling) GetMinPendingLatency() *google_protobuf1.Duration

func (*AutomaticScaling) GetMinTotalInstances

func (m *AutomaticScaling) GetMinTotalInstances() int32

func (*AutomaticScaling) GetNetworkUtilization

func (m *AutomaticScaling) GetNetworkUtilization() *NetworkUtilization

func (*AutomaticScaling) GetRequestUtilization

func (m *AutomaticScaling) GetRequestUtilization() *RequestUtilization

func (*AutomaticScaling) ProtoMessage

func (*AutomaticScaling) ProtoMessage()

func (*AutomaticScaling) Reset

func (m *AutomaticScaling) Reset()

func (*AutomaticScaling) String

func (m *AutomaticScaling) String() string

type BasicScaling

type BasicScaling struct {
	// Duration of time after the last request that an instance must wait before
	// the instance is shut down.
	IdleTimeout *google_protobuf1.Duration `protobuf:"bytes,1,opt,name=idle_timeout,json=idleTimeout" json:"idle_timeout,omitempty"`
	// Maximum number of instances to create for this version.
	MaxInstances int32 `protobuf:"varint,2,opt,name=max_instances,json=maxInstances" json:"max_instances,omitempty"`
}

A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.

func (*BasicScaling) Descriptor

func (*BasicScaling) Descriptor() ([]byte, []int)

func (*BasicScaling) GetIdleTimeout

func (m *BasicScaling) GetIdleTimeout() *google_protobuf1.Duration

func (*BasicScaling) GetMaxInstances

func (m *BasicScaling) GetMaxInstances() int32

func (*BasicScaling) ProtoMessage

func (*BasicScaling) ProtoMessage()

func (*BasicScaling) Reset

func (m *BasicScaling) Reset()

func (*BasicScaling) String

func (m *BasicScaling) String() string

type ContainerInfo

type ContainerInfo struct {
	// URI to the hosted container image in a Docker repository. The URI must be
	// fully qualified and include a tag or digest.
	// Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
	Image string `protobuf:"bytes,1,opt,name=image" json:"image,omitempty"`
}

Docker image that is used to start a VM container for the version you deploy.

func (*ContainerInfo) Descriptor

func (*ContainerInfo) Descriptor() ([]byte, []int)

func (*ContainerInfo) GetImage

func (m *ContainerInfo) GetImage() string

func (*ContainerInfo) ProtoMessage

func (*ContainerInfo) ProtoMessage()

func (*ContainerInfo) Reset

func (m *ContainerInfo) Reset()

func (*ContainerInfo) String

func (m *ContainerInfo) String() string

type CpuUtilization

type CpuUtilization struct {
	// Period of time over which CPU utilization is calculated.
	AggregationWindowLength *google_protobuf1.Duration `protobuf:"bytes,1,opt,name=aggregation_window_length,json=aggregationWindowLength" json:"aggregation_window_length,omitempty"`
	// Target CPU utilization ratio to maintain when scaling. Must be between 0
	// and 1.
	TargetUtilization float64 `protobuf:"fixed64,2,opt,name=target_utilization,json=targetUtilization" json:"target_utilization,omitempty"`
}

Target scaling by CPU usage.

func (*CpuUtilization) Descriptor

func (*CpuUtilization) Descriptor() ([]byte, []int)

func (*CpuUtilization) GetAggregationWindowLength

func (m *CpuUtilization) GetAggregationWindowLength() *google_protobuf1.Duration

func (*CpuUtilization) GetTargetUtilization

func (m *CpuUtilization) GetTargetUtilization() float64

func (*CpuUtilization) ProtoMessage

func (*CpuUtilization) ProtoMessage()

func (*CpuUtilization) Reset

func (m *CpuUtilization) Reset()

func (*CpuUtilization) String

func (m *CpuUtilization) String() string

type CreateVersionRequest

type CreateVersionRequest struct {
	// Name of the parent resource to create this version under. Example:
	// `apps/myapp/services/default`.
	Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
	// Application deployment configuration.
	Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
}

Request message for `Versions.CreateVersion`.

func (*CreateVersionRequest) Descriptor

func (*CreateVersionRequest) Descriptor() ([]byte, []int)

func (*CreateVersionRequest) GetParent

func (m *CreateVersionRequest) GetParent() string

func (*CreateVersionRequest) GetVersion

func (m *CreateVersionRequest) GetVersion() *Version

func (*CreateVersionRequest) ProtoMessage

func (*CreateVersionRequest) ProtoMessage()

func (*CreateVersionRequest) Reset

func (m *CreateVersionRequest) Reset()

func (*CreateVersionRequest) String

func (m *CreateVersionRequest) String() string

type DebugInstanceRequest

type DebugInstanceRequest struct {
	// Name of the resource requested. Example:
	// `apps/myapp/services/default/versions/v1/instances/instance-1`.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

Request message for `Instances.DebugInstance`.

func (*DebugInstanceRequest) Descriptor

func (*DebugInstanceRequest) Descriptor() ([]byte, []int)

func (*DebugInstanceRequest) GetName

func (m *DebugInstanceRequest) GetName() string

func (*DebugInstanceRequest) ProtoMessage

func (*DebugInstanceRequest) ProtoMessage()

func (*DebugInstanceRequest) Reset

func (m *DebugInstanceRequest) Reset()

func (*DebugInstanceRequest) String

func (m *DebugInstanceRequest) String() string

type DeleteInstanceRequest

type DeleteInstanceRequest struct {
	// Name of the resource requested. Example:
	// `apps/myapp/services/default/versions/v1/instances/instance-1`.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

Request message for `Instances.DeleteInstance`.

func (*DeleteInstanceRequest) Descriptor

func (*DeleteInstanceRequest) Descriptor() ([]byte, []int)

func (*DeleteInstanceRequest) GetName

func (m *DeleteInstanceRequest) GetName() string

func (*DeleteInstanceRequest) ProtoMessage

func (*DeleteInstanceRequest) ProtoMessage()

func (*DeleteInstanceRequest) Reset

func (m *DeleteInstanceRequest) Reset()

func (*DeleteInstanceRequest) String

func (m *DeleteInstanceRequest) String() string

type DeleteServiceRequest

type DeleteServiceRequest struct {
	// Name of the resource requested. Example: `apps/myapp/services/default`.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

Request message for `Services.DeleteService`.

func (*DeleteServiceRequest) Descriptor

func (*DeleteServiceRequest) Descriptor() ([]byte, []int)

func (*DeleteServiceRequest) GetName

func (m *DeleteServiceRequest) GetName() string

func (*DeleteServiceRequest) ProtoMessage

func (*DeleteServiceRequest) ProtoMessage()

func (*DeleteServiceRequest) Reset

func (m *DeleteServiceRequest) Reset()

func (*DeleteServiceRequest) String

func (m *DeleteServiceRequest) String() string

type DeleteVersionRequest

type DeleteVersionRequest struct {
	// Name of the resource requested. Example:
	// `apps/myapp/services/default/versions/v1`.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

Request message for `Versions.DeleteVersion`.

func (*DeleteVersionRequest) Descriptor

func (*DeleteVersionRequest) Descriptor() ([]byte, []int)

func (*DeleteVersionRequest) GetName

func (m *DeleteVersionRequest) GetName() string

func (*DeleteVersionRequest) ProtoMessage

func (*DeleteVersionRequest) ProtoMessage()

func (*DeleteVersionRequest) Reset

func (m *DeleteVersionRequest) Reset()

func (*DeleteVersionRequest) String

func (m *DeleteVersionRequest) String() string

type Deployment

type Deployment struct {
	// Manifest of the files stored in Google Cloud Storage that are included
	// as part of this version. All files must be readable using the
	// credentials supplied with this call.
	Files map[string]*FileInfo `` /* 130-byte string literal not displayed */
	// A Docker image that App Engine uses to run the version.
	// Only applicable for instances in App Engine flexible environment.
	Container *ContainerInfo `protobuf:"bytes,2,opt,name=container" json:"container,omitempty"`
	// The zip file for this deployment, if this is a zip deployment.
	Zip *ZipInfo `protobuf:"bytes,3,opt,name=zip" json:"zip,omitempty"`
}

Code and application artifacts used to deploy a version to App Engine.

func (*Deployment) Descriptor

func (*Deployment) Descriptor() ([]byte, []int)

func (*Deployment) GetContainer

func (m *Deployment) GetContainer() *ContainerInfo

func (*Deployment) GetFiles

func (m *Deployment) GetFiles() map[string]*FileInfo

func (*Deployment) GetZip

func (m *Deployment) GetZip() *ZipInfo

func (*Deployment) ProtoMessage

func (*Deployment) ProtoMessage()

func (*Deployment) Reset

func (m *Deployment) Reset()

func (*Deployment) String

func (m *Deployment) String() string

type DiskUtilization

type DiskUtilization struct {
	// Target bytes written per second.
	TargetWriteBytesPerSecond int32 `` /* 137-byte string literal not displayed */
	// Target ops written per second.
	TargetWriteOpsPerSecond int32 `` /* 131-byte string literal not displayed */
	// Target bytes read per second.
	TargetReadBytesPerSecond int32 `` /* 134-byte string literal not displayed */
	// Target ops read per seconds.
	TargetReadOpsPerSecond int32 `` /* 128-byte string literal not displayed */
}

Target scaling by disk usage. Only applicable for VM runtimes.

func (*DiskUtilization) Descriptor

func (*DiskUtilization) Descriptor() ([]byte, []int)

func (*DiskUtilization) GetTargetReadBytesPerSecond

func (m *DiskUtilization) GetTargetReadBytesPerSecond() int32

func (*DiskUtilization) GetTargetReadOpsPerSecond

func (m *DiskUtilization) GetTargetReadOpsPerSecond() int32

func (*DiskUtilization) GetTargetWriteBytesPerSecond

func (m *DiskUtilization) GetTargetWriteBytesPerSecond() int32

func (*DiskUtilization) GetTargetWriteOpsPerSecond

func (m *DiskUtilization) GetTargetWriteOpsPerSecond() int32

func (*DiskUtilization) ProtoMessage

func (*DiskUtilization) ProtoMessage()

func (*DiskUtilization) Reset

func (m *DiskUtilization) Reset()

func (*DiskUtilization) String

func (m *DiskUtilization) String() string

type ErrorHandler

type ErrorHandler struct {
	// Error condition this handler applies to.
	ErrorCode ErrorHandler_ErrorCode `` /* 130-byte string literal not displayed */
	// Static file content to be served for this error.
	StaticFile string `protobuf:"bytes,2,opt,name=static_file,json=staticFile" json:"static_file,omitempty"`
	// MIME type of file. Defaults to `text/html`.
	MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType" json:"mime_type,omitempty"`
}

Custom static error page to be served when an error occurs.

func (*ErrorHandler) Descriptor

func (*ErrorHandler) Descriptor() ([]byte, []int)

func (*ErrorHandler) GetErrorCode

func (m *ErrorHandler) GetErrorCode() ErrorHandler_ErrorCode

func (*ErrorHandler) GetMimeType

func (m *ErrorHandler) GetMimeType() string

func (*ErrorHandler) GetStaticFile

func (m *ErrorHandler) GetStaticFile() string

func (*ErrorHandler) ProtoMessage

func (*ErrorHandler) ProtoMessage()

func (*ErrorHandler) Reset

func (m *ErrorHandler) Reset()

func (*ErrorHandler) String

func (m *ErrorHandler) String() string

type ErrorHandler_ErrorCode

type ErrorHandler_ErrorCode int32

Error codes.

const (
	// Not specified. ERROR_CODE_DEFAULT is assumed.
	ErrorHandler_ERROR_CODE_UNSPECIFIED ErrorHandler_ErrorCode = 0
	// All other error types.
	ErrorHandler_ERROR_CODE_DEFAULT ErrorHandler_ErrorCode = 0
	// Application has exceeded a resource quota.
	ErrorHandler_ERROR_CODE_OVER_QUOTA ErrorHandler_ErrorCode = 1
	// Client blocked by the application's Denial of Service protection
	// configuration.
	ErrorHandler_ERROR_CODE_DOS_API_DENIAL ErrorHandler_ErrorCode = 2
	// Deadline reached before the application responds.
	ErrorHandler_ERROR_CODE_TIMEOUT ErrorHandler_ErrorCode = 3
)

func (ErrorHandler_ErrorCode) EnumDescriptor

func (ErrorHandler_ErrorCode) EnumDescriptor() ([]byte, []int)

func (ErrorHandler_ErrorCode) String

func (x ErrorHandler_ErrorCode) String() string

type FileInfo

type FileInfo struct {
	// URL source to use to fetch this file. Must be a URL to a resource in
	// Google Cloud Storage in the form
	// 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.
	SourceUrl string `protobuf:"bytes,1,opt,name=source_url,json=sourceUrl" json:"source_url,omitempty"`
	// The SHA1 hash of the file, in hex.
	Sha1Sum string `protobuf:"bytes,2,opt,name=sha1_sum,json=sha1Sum" json:"sha1_sum,omitempty"`
	// The MIME type of the file.
	//
	// Defaults to the value from Google Cloud Storage.
	MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType" json:"mime_type,omitempty"`
}

Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.

func (*FileInfo) Descriptor

func (*FileInfo) Descriptor() ([]byte, []int)

func (*FileInfo) GetMimeType

func (m *FileInfo) GetMimeType() string

func (*FileInfo) GetSha1Sum

func (m *FileInfo) GetSha1Sum() string

func (*FileInfo) GetSourceUrl

func (m *FileInfo) GetSourceUrl() string

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) Reset

func (m *FileInfo) Reset()

func (*FileInfo) String

func (m *FileInfo) String() string

type GetApplicationRequest

type GetApplicationRequest struct {
	// Name of the Application resource to get. Example: `apps/myapp`.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

Request message for `Applications.GetApplication`.

func (*GetApplicationRequest) Descriptor

func (*GetApplicationRequest) Descriptor() ([]byte, []int)

func (*GetApplicationRequest) GetName

func (m *GetApplicationRequest) GetName() string

func (*GetApplicationRequest) ProtoMessage

func (*GetApplicationRequest) ProtoMessage()

func (*GetApplicationRequest) Reset

func (m *GetApplicationRequest) Reset()

func (*GetApplicationRequest) String

func (m *GetApplicationRequest) String() string

type GetInstanceRequest

type GetInstanceRequest struct {
	// Name of the resource requested. Example:
	// `apps/myapp/services/default/versions/v1/instances/instance-1`.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

Request message for `Instances.GetInstance`.

func (*GetInstanceRequest) Descriptor

func (*GetInstanceRequest) Descriptor() ([]byte, []int)

func (*GetInstanceRequest) GetName

func (m *GetInstanceRequest) GetName() string

func (*GetInstanceRequest) ProtoMessage

func (*GetInstanceRequest) ProtoMessage()

func (*GetInstanceRequest) Reset

func (m *GetInstanceRequest) Reset()

func (*GetInstanceRequest) String

func (m *GetInstanceRequest) String() string

type GetServiceRequest

type GetServiceRequest struct {
	// Name of the resource requested. Example: `apps/myapp/services/default`.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

Request message for `Services.GetService`.

func (*GetServiceRequest) Descriptor

func (*GetServiceRequest) Descriptor() ([]byte, []int)

func (*GetServiceRequest) GetName

func (m *GetServiceRequest) GetName() string

func (*GetServiceRequest) ProtoMessage

func (*GetServiceRequest) ProtoMessage()

func (*GetServiceRequest) Reset

func (m *GetServiceRequest) Reset()

func (*GetServiceRequest) String

func (m *GetServiceRequest) String() string

type GetVersionRequest

type GetVersionRequest struct {
	// Name of the resource requested. Example:
	// `apps/myapp/services/default/versions/v1`.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Controls the set of fields returned in the `Get` response.
	View VersionView `protobuf:"varint,2,opt,name=view,enum=google.appengine.v1.VersionView" json:"view,omitempty"`
}

Request message for `Versions.GetVersion`.

func (*GetVersionRequest) Descriptor

func (*GetVersionRequest) Descriptor() ([]byte, []int)

func (*GetVersionRequest) GetName

func (m *GetVersionRequest) GetName() string

func (*GetVersionRequest) GetView

func (m *GetVersionRequest) GetView() VersionView

func (*GetVersionRequest) ProtoMessage

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) Reset

func (m *GetVersionRequest) Reset()

func (*GetVersionRequest) String

func (m *GetVersionRequest) String() string

type HealthCheck

type HealthCheck struct {
	// Whether to explicitly disable health checks for this instance.
	DisableHealthCheck bool `protobuf:"varint,1,opt,name=disable_health_check,json=disableHealthCheck" json:"disable_health_check,omitempty"`
	// Host header to send when performing an HTTP health check.
	// Example: "myapp.appspot.com"
	Host string `protobuf:"bytes,2,opt,name=host" json:"host,omitempty"`
	// Number of consecutive successful health checks required before receiving
	// traffic.
	HealthyThreshold uint32 `protobuf:"varint,3,opt,name=healthy_threshold,json=healthyThreshold" json:"healthy_threshold,omitempty"`
	// Number of consecutive failed health checks required before removing
	// traffic.
	UnhealthyThreshold uint32 `protobuf:"varint,4,opt,name=unhealthy_threshold,json=unhealthyThreshold" json:"unhealthy_threshold,omitempty"`
	// Number of consecutive failed health checks required before an instance is
	// restarted.
	RestartThreshold uint32 `protobuf:"varint,5,opt,name=restart_threshold,json=restartThreshold" json:"restart_threshold,omitempty"`
	// Interval between health checks.
	CheckInterval *google_protobuf1.Duration `protobuf:"bytes,6,opt,name=check_interval,json=checkInterval" json:"check_interval,omitempty"`
	// Time before the health check is considered failed.
	Timeout *google_protobuf1.Duration `protobuf:"bytes,7,opt,name=timeout" json:"timeout,omitempty"`
}

Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment.

func (*HealthCheck) Descriptor

func (*HealthCheck) Descriptor() ([]byte, []int)

func (*HealthCheck) GetCheckInterval

func (m *HealthCheck) GetCheckInterval() *google_protobuf1.Duration

func (*HealthCheck) GetDisableHealthCheck

func (m *HealthCheck) GetDisableHealthCheck() bool

func (*HealthCheck) GetHealthyThreshold

func (m *HealthCheck) GetHealthyThreshold() uint32

func (*HealthCheck) GetHost

func (m *HealthCheck) GetHost() string

func (*HealthCheck) GetRestartThreshold

func (m *HealthCheck) GetRestartThreshold() uint32

func (*HealthCheck) GetTimeout

func (m *HealthCheck) GetTimeout() *google_protobuf1.Duration

func (*HealthCheck) GetUnhealthyThreshold

func (m *HealthCheck) GetUnhealthyThreshold() uint32

func (*HealthCheck) ProtoMessage

func (*HealthCheck) ProtoMessage()

func (*HealthCheck) Reset

func (m *HealthCheck) Reset()

func (*HealthCheck) String

func (m *HealthCheck) String() string

type InboundServiceType

type InboundServiceType int32

Available inbound services.

const (
	// Not specified.
	InboundServiceType_INBOUND_SERVICE_UNSPECIFIED InboundServiceType = 0
	// Allows an application to receive mail.
	InboundServiceType_INBOUND_SERVICE_MAIL InboundServiceType = 1
	// Allows an application to receive email-bound notifications.
	InboundServiceType_INBOUND_SERVICE_MAIL_BOUNCE InboundServiceType = 2
	// Allows an application to receive error stanzas.
	InboundServiceType_INBOUND_SERVICE_XMPP_ERROR InboundServiceType = 3
	// Allows an application to receive instant messages.
	InboundServiceType_INBOUND_SERVICE_XMPP_MESSAGE InboundServiceType = 4
	// Allows an application to receive user subscription POSTs.
	InboundServiceType_INBOUND_SERVICE_XMPP_SUBSCRIBE InboundServiceType = 5
	// Allows an application to receive a user's chat presence.
	InboundServiceType_INBOUND_SERVICE_XMPP_PRESENCE InboundServiceType = 6
	// Registers an application for notifications when a client connects or
	// disconnects from a channel.
	InboundServiceType_INBOUND_SERVICE_CHANNEL_PRESENCE InboundServiceType = 7
	// Enables warmup requests.
	InboundServiceType_INBOUND_SERVICE_WARMUP InboundServiceType = 9
)

func (InboundServiceType) EnumDescriptor

func (InboundServiceType) EnumDescriptor() ([]byte, []int)

func (InboundServiceType) String

func (x InboundServiceType) String() string

type Instance

type Instance struct {
	// Full path to the Instance resource in the API.
	// Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
	//
	// @OutputOnly
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Relative name of the instance within the version.
	// Example: `instance-1`.
	//
	// @OutputOnly
	Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	// App Engine release this instance is running on.
	//
	// @OutputOnly
	AppEngineRelease string `protobuf:"bytes,3,opt,name=app_engine_release,json=appEngineRelease" json:"app_engine_release,omitempty"`
	// Availability of the instance.
	//
	// @OutputOnly
	Availability Instance_Availability `protobuf:"varint,4,opt,name=availability,enum=google.appengine.v1.Instance_Availability" json:"availability,omitempty"`
	// Name of the virtual machine where this instance lives. Only applicable
	// for instances in App Engine flexible environment.
	//
	// @OutputOnly
	VmName string `protobuf:"bytes,5,opt,name=vm_name,json=vmName" json:"vm_name,omitempty"`
	// Zone where the virtual machine is located. Only applicable for instances
	// in App Engine flexible environment.
	//
	// @OutputOnly
	VmZoneName string `protobuf:"bytes,6,opt,name=vm_zone_name,json=vmZoneName" json:"vm_zone_name,omitempty"`
	// Virtual machine ID of this instance. Only applicable for instances in
	// App Engine flexible environment.
	//
	// @OutputOnly
	VmId string `protobuf:"bytes,7,opt,name=vm_id,json=vmId" json:"vm_id,omitempty"`
	// Time that this instance was started.
	//
	// @OutputOnly
	StartTime *google_protobuf2.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
	// Number of requests since this instance was started.
	//
	// @OutputOnly
	Requests int32 `protobuf:"varint,9,opt,name=requests" json:"requests,omitempty"`
	// Number of errors since this instance was started.
	//
	// @OutputOnly
	Errors int32 `protobuf:"varint,10,opt,name=errors" json:"errors,omitempty"`
	// Average queries per second (QPS) over the last minute.
	//
	// @OutputOnly
	Qps float32 `protobuf:"fixed32,11,opt,name=qps" json:"qps,omitempty"`
	// Average latency (ms) over the last minute.
	//
	// @OutputOnly
	AverageLatency int32 `protobuf:"varint,12,opt,name=average_latency,json=averageLatency" json:"average_latency,omitempty"`
	// Total memory in use (bytes).
	//
	// @OutputOnly
	MemoryUsage int64 `protobuf:"varint,13,opt,name=memory_usage,json=memoryUsage" json:"memory_usage,omitempty"`
	// Status of the virtual machine where this instance lives. Only applicable
	// for instances in App Engine flexible environment.
	//
	// @OutputOnly
	VmStatus string `protobuf:"bytes,14,opt,name=vm_status,json=vmStatus" json:"vm_status,omitempty"`
	// Whether this instance is in debug mode. Only applicable for instances in
	// App Engine flexible environment.
	//
	// @OutputOnly
	VmDebugEnabled bool `protobuf:"varint,15,opt,name=vm_debug_enabled,json=vmDebugEnabled" json:"vm_debug_enabled,omitempty"`
}

An Instance resource is the computing unit that App Engine uses to automatically scale an application.

func (*Instance) Descriptor

func (*Instance) Descriptor() ([]byte, []int)

func (*Instance) GetAppEngineRelease

func (m *Instance) GetAppEngineRelease() string

func (*Instance) GetAvailability

func (m *Instance) GetAvailability() Instance_Availability

func (*Instance) GetAverageLatency

func (m *Instance) GetAverageLatency() int32

func (*Instance) GetErrors

func (m *Instance) GetErrors() int32

func (*Instance) GetId

func (m *Instance) GetId() string

func (*Instance) GetMemoryUsage

func (m *Instance) GetMemoryUsage() int64

func (*Instance) GetName

func (m *Instance) GetName() string

func (*Instance) GetQps

func (m *Instance) GetQps() float32

func (*Instance) GetRequests

func (m *Instance) GetRequests() int32

func (*Instance) GetStartTime

func (m *Instance) GetStartTime() *google_protobuf2.Timestamp

func (*Instance) GetVmDebugEnabled

func (m *Instance) GetVmDebugEnabled() bool

func (*Instance) GetVmId

func (m *Instance) GetVmId() string

func (*Instance) GetVmName

func (m *Instance) GetVmName() string

func (*Instance) GetVmStatus

func (m *Instance) GetVmStatus() string

func (*Instance) GetVmZoneName

func (m *Instance) GetVmZoneName() string

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) Reset

func (m *Instance) Reset()

func (*Instance) String

func (m *Instance) String() string

type Instance_Availability

type Instance_Availability int32

Availability of the instance.

const (
	Instance_UNSPECIFIED Instance_Availability = 0
	Instance_RESIDENT    Instance_Availability = 1
	Instance_DYNAMIC     Instance_Availability = 2
)

func (Instance_Availability) EnumDescriptor

func (Instance_Availability) EnumDescriptor() ([]byte, []int)

func (Instance_Availability) String

func (x Instance_Availability) String() string

type InstancesClient

type InstancesClient interface {
	// Lists the instances of a version.
	ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error)
	// Gets instance information.
	GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error)
	// Stops a running instance.
	DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
	// Enables debugging on a VM instance. This allows you to use the SSH
	// command to connect to the virtual machine where the instance lives.
	// While in "debug mode", the instance continues to serve live traffic.
	// You should delete the instance when you are done debugging and then
	// allow the system to take over and determine if another instance
	// should be started.
	//
	// Only applicable for instances in App Engine flexible environment.
	DebugInstance(ctx context.Context, in *DebugInstanceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
}

func NewInstancesClient

func NewInstancesClient(cc *grpc.ClientConn) InstancesClient

type InstancesServer

type InstancesServer interface {
	// Lists the instances of a version.
	ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error)
	// Gets instance information.
	GetInstance(context.Context, *GetInstanceRequest) (*Instance, error)
	// Stops a running instance.
	DeleteInstance(context.Context, *DeleteInstanceRequest) (*google_longrunning.Operation, error)
	// Enables debugging on a VM instance. This allows you to use the SSH
	// command to connect to the virtual machine where the instance lives.
	// While in "debug mode", the instance continues to serve live traffic.
	// You should delete the instance when you are done debugging and then
	// allow the system to take over and determine if another instance
	// should be started.
	//
	// Only applicable for instances in App Engine flexible environment.
	DebugInstance(context.Context, *DebugInstanceRequest) (*google_longrunning.Operation, error)
}

type Library

type Library struct {
	// Name of the library. Example: "django".
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Version of the library to select, or "latest".
	Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
}

Third-party Python runtime library that is required by the application.

func (*Library) Descriptor

func (*Library) Descriptor() ([]byte, []int)

func (*Library) GetName

func (m *Library) GetName() string

func (*Library) GetVersion

func (m *Library) GetVersion() string

func (*Library) ProtoMessage

func (*Library) ProtoMessage()

func (*Library) Reset

func (m *Library) Reset()

func (*Library) String

func (m *Library) String() string

type ListInstancesRequest

type ListInstancesRequest struct {
	// Name of the parent Version resource. Example:
	// `apps/myapp/services/default/versions/v1`.
	Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
	// Maximum results to return per page.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	// Continuation token for fetching the next page of results.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
}

Request message for `Instances.ListInstances`.

func (*ListInstancesRequest) Descriptor

func (*ListInstancesRequest) Descriptor() ([]byte, []int)

func (*ListInstancesRequest) GetPageSize

func (m *ListInstancesRequest) GetPageSize() int32

func (*ListInstancesRequest) GetPageToken

func (m *ListInstancesRequest) GetPageToken() string

func (*ListInstancesRequest) GetParent

func (m *ListInstancesRequest) GetParent() string

func (*ListInstancesRequest) ProtoMessage

func (*ListInstancesRequest) ProtoMessage()

func (*ListInstancesRequest) Reset

func (m *ListInstancesRequest) Reset()

func (*ListInstancesRequest) String

func (m *ListInstancesRequest) String() string

type ListInstancesResponse

type ListInstancesResponse struct {
	// The instances belonging to the requested version.
	Instances []*Instance `protobuf:"bytes,1,rep,name=instances" json:"instances,omitempty"`
	// Continuation token for fetching the next page of results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}

Response message for `Instances.ListInstances`.

func (*ListInstancesResponse) Descriptor

func (*ListInstancesResponse) Descriptor() ([]byte, []int)

func (*ListInstancesResponse) GetInstances

func (m *ListInstancesResponse) GetInstances() []*Instance

func (*ListInstancesResponse) GetNextPageToken

func (m *ListInstancesResponse) GetNextPageToken() string

func (*ListInstancesResponse) ProtoMessage

func (*ListInstancesResponse) ProtoMessage()

func (*ListInstancesResponse) Reset

func (m *ListInstancesResponse) Reset()

func (*ListInstancesResponse) String

func (m *ListInstancesResponse) String() string

type ListServicesRequest

type ListServicesRequest struct {
	// Name of the parent Application resource. Example: `apps/myapp`.
	Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
	// Maximum results to return per page.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	// Continuation token for fetching the next page of results.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
}

Request message for `Services.ListServices`.

func (*ListServicesRequest) Descriptor

func (*ListServicesRequest) Descriptor() ([]byte, []int)

func (*ListServicesRequest) GetPageSize

func (m *ListServicesRequest) GetPageSize() int32

func (*ListServicesRequest) GetPageToken

func (m *ListServicesRequest) GetPageToken() string

func (*ListServicesRequest) GetParent

func (m *ListServicesRequest) GetParent() string

func (*ListServicesRequest) ProtoMessage

func (*ListServicesRequest) ProtoMessage()

func (*ListServicesRequest) Reset

func (m *ListServicesRequest) Reset()

func (*ListServicesRequest) String

func (m *ListServicesRequest) String() string

type ListServicesResponse

type ListServicesResponse struct {
	// The services belonging to the requested application.
	Services []*Service `protobuf:"bytes,1,rep,name=services" json:"services,omitempty"`
	// Continuation token for fetching the next page of results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}

Response message for `Services.ListServices`.

func (*ListServicesResponse) Descriptor

func (*ListServicesResponse) Descriptor() ([]byte, []int)

func (*ListServicesResponse) GetNextPageToken

func (m *ListServicesResponse) GetNextPageToken() string

func (*ListServicesResponse) GetServices

func (m *ListServicesResponse) GetServices() []*Service

func (*ListServicesResponse) ProtoMessage

func (*ListServicesResponse) ProtoMessage()

func (*ListServicesResponse) Reset

func (m *ListServicesResponse) Reset()

func (*ListServicesResponse) String

func (m *ListServicesResponse) String() string

type ListVersionsRequest

type ListVersionsRequest struct {
	// Name of the parent Service resource. Example:
	// `apps/myapp/services/default`.
	Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
	// Controls the set of fields returned in the `List` response.
	View VersionView `protobuf:"varint,2,opt,name=view,enum=google.appengine.v1.VersionView" json:"view,omitempty"`
	// Maximum results to return per page.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	// Continuation token for fetching the next page of results.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
}

Request message for `Versions.ListVersions`.

func (*ListVersionsRequest) Descriptor

func (*ListVersionsRequest) Descriptor() ([]byte, []int)

func (*ListVersionsRequest) GetPageSize

func (m *ListVersionsRequest) GetPageSize() int32

func (*ListVersionsRequest) GetPageToken

func (m *ListVersionsRequest) GetPageToken() string

func (*ListVersionsRequest) GetParent

func (m *ListVersionsRequest) GetParent() string

func (*ListVersionsRequest) GetView

func (m *ListVersionsRequest) GetView() VersionView

func (*ListVersionsRequest) ProtoMessage

func (*ListVersionsRequest) ProtoMessage()

func (*ListVersionsRequest) Reset

func (m *ListVersionsRequest) Reset()

func (*ListVersionsRequest) String

func (m *ListVersionsRequest) String() string

type ListVersionsResponse

type ListVersionsResponse struct {
	// The versions belonging to the requested service.
	Versions []*Version `protobuf:"bytes,1,rep,name=versions" json:"versions,omitempty"`
	// Continuation token for fetching the next page of results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}

Response message for `Versions.ListVersions`.

func (*ListVersionsResponse) Descriptor

func (*ListVersionsResponse) Descriptor() ([]byte, []int)

func (*ListVersionsResponse) GetNextPageToken

func (m *ListVersionsResponse) GetNextPageToken() string

func (*ListVersionsResponse) GetVersions

func (m *ListVersionsResponse) GetVersions() []*Version

func (*ListVersionsResponse) ProtoMessage

func (*ListVersionsResponse) ProtoMessage()

func (*ListVersionsResponse) Reset

func (m *ListVersionsResponse) Reset()

func (*ListVersionsResponse) String

func (m *ListVersionsResponse) String() string

type LocationMetadata

type LocationMetadata struct {
	// App Engine Standard Environment is available in the given location.
	//
	// @OutputOnly
	StandardEnvironmentAvailable bool `` /* 141-byte string literal not displayed */
	// App Engine Flexible Environment is available in the given location.
	//
	// @OutputOnly
	FlexibleEnvironmentAvailable bool `` /* 141-byte string literal not displayed */
}

Metadata for the given [google.cloud.location.Location][google.cloud.location.Location].

func (*LocationMetadata) Descriptor

func (*LocationMetadata) Descriptor() ([]byte, []int)

func (*LocationMetadata) GetFlexibleEnvironmentAvailable

func (m *LocationMetadata) GetFlexibleEnvironmentAvailable() bool

func (*LocationMetadata) GetStandardEnvironmentAvailable

func (m *LocationMetadata) GetStandardEnvironmentAvailable() bool

func (*LocationMetadata) ProtoMessage

func (*LocationMetadata) ProtoMessage()

func (*LocationMetadata) Reset

func (m *LocationMetadata) Reset()

func (*LocationMetadata) String

func (m *LocationMetadata) String() string

type LoginRequirement

type LoginRequirement int32

Methods to restrict access to a URL based on login status.

const (
	// Not specified. `LOGIN_OPTIONAL` is assumed.
	LoginRequirement_LOGIN_UNSPECIFIED LoginRequirement = 0
	// Does not require that the user is signed in.
	LoginRequirement_LOGIN_OPTIONAL LoginRequirement = 1
	// If the user is not signed in, the `auth_fail_action` is taken.
	// In addition, if the user is not an administrator for the
	// application, they are given an error message regardless of
	// `auth_fail_action`. If the user is an administrator, the handler
	// proceeds.
	LoginRequirement_LOGIN_ADMIN LoginRequirement = 2
	// If the user has signed in, the handler proceeds normally. Otherwise, the
	// auth_fail_action is taken.
	LoginRequirement_LOGIN_REQUIRED LoginRequirement = 3
)

func (LoginRequirement) EnumDescriptor

func (LoginRequirement) EnumDescriptor() ([]byte, []int)

func (LoginRequirement) String

func (x LoginRequirement) String() string

type ManualScaling

type ManualScaling struct {
	// Number of instances to assign to the service at the start. This number
	// can later be altered by using the
	// [Modules API](https://cloud.google.com/appengine/docs/python/modules/functions)
	// `set_num_instances()` function.
	Instances int32 `protobuf:"varint,1,opt,name=instances" json:"instances,omitempty"`
}

A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.

func (*ManualScaling) Descriptor

func (*ManualScaling) Descriptor() ([]byte, []int)

func (*ManualScaling) GetInstances

func (m *ManualScaling) GetInstances() int32

func (*ManualScaling) ProtoMessage

func (*ManualScaling) ProtoMessage()

func (*ManualScaling) Reset

func (m *ManualScaling) Reset()

func (*ManualScaling) String

func (m *ManualScaling) String() string

type Network

type Network struct {
	// List of ports, or port pairs, to forward from the virtual machine to the
	// application container.
	ForwardedPorts []string `protobuf:"bytes,1,rep,name=forwarded_ports,json=forwardedPorts" json:"forwarded_ports,omitempty"`
	// Tag to apply to the VM instance during creation.
	InstanceTag string `protobuf:"bytes,2,opt,name=instance_tag,json=instanceTag" json:"instance_tag,omitempty"`
	// Google Cloud Platform network where the virtual machines are created.
	// Specify the short name, not the resource path.
	//
	// Defaults to `default`.
	Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
}

Extra network settings. Only applicable for VM runtimes.

func (*Network) Descriptor

func (*Network) Descriptor() ([]byte, []int)

func (*Network) GetForwardedPorts

func (m *Network) GetForwardedPorts() []string

func (*Network) GetInstanceTag

func (m *Network) GetInstanceTag() string

func (*Network) GetName

func (m *Network) GetName() string

func (*Network) ProtoMessage

func (*Network) ProtoMessage()

func (*Network) Reset

func (m *Network) Reset()

func (*Network) String

func (m *Network) String() string

type NetworkUtilization

type NetworkUtilization struct {
	// Target bytes sent per second.
	TargetSentBytesPerSecond int32 `` /* 133-byte string literal not displayed */
	// Target packets sent per second.
	TargetSentPacketsPerSecond int32 `` /* 140-byte string literal not displayed */
	// Target bytes received per second.
	TargetReceivedBytesPerSecond int32 `` /* 146-byte string literal not displayed */
	// Target packets received per second.
	TargetReceivedPacketsPerSecond int32 `` /* 152-byte string literal not displayed */
}

Target scaling by network usage. Only applicable for VM runtimes.

func (*NetworkUtilization) Descriptor

func (*NetworkUtilization) Descriptor() ([]byte, []int)

func (*NetworkUtilization) GetTargetReceivedBytesPerSecond

func (m *NetworkUtilization) GetTargetReceivedBytesPerSecond() int32

func (*NetworkUtilization) GetTargetReceivedPacketsPerSecond

func (m *NetworkUtilization) GetTargetReceivedPacketsPerSecond() int32

func (*NetworkUtilization) GetTargetSentBytesPerSecond

func (m *NetworkUtilization) GetTargetSentBytesPerSecond() int32

func (*NetworkUtilization) GetTargetSentPacketsPerSecond

func (m *NetworkUtilization) GetTargetSentPacketsPerSecond() int32

func (*NetworkUtilization) ProtoMessage

func (*NetworkUtilization) ProtoMessage()

func (*NetworkUtilization) Reset

func (m *NetworkUtilization) Reset()

func (*NetworkUtilization) String

func (m *NetworkUtilization) String() string

type OperationMetadataV1

type OperationMetadataV1 struct {
	// API method that initiated this operation. Example:
	// `google.appengine.v1.Versions.CreateVersion`.
	//
	// @OutputOnly
	Method string `protobuf:"bytes,1,opt,name=method" json:"method,omitempty"`
	// Time that this operation was created.
	//
	// @OutputOnly
	InsertTime *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=insert_time,json=insertTime" json:"insert_time,omitempty"`
	// Time that this operation completed.
	//
	// @OutputOnly
	EndTime *google_protobuf2.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
	// User who requested this operation.
	//
	// @OutputOnly
	User string `protobuf:"bytes,4,opt,name=user" json:"user,omitempty"`
	// Name of the resource that this operation is acting on. Example:
	// `apps/myapp/services/default`.
	//
	// @OutputOnly
	Target string `protobuf:"bytes,5,opt,name=target" json:"target,omitempty"`
}

Metadata for the given [google.longrunning.Operation][google.longrunning.Operation].

func (*OperationMetadataV1) Descriptor

func (*OperationMetadataV1) Descriptor() ([]byte, []int)

func (*OperationMetadataV1) GetEndTime

func (*OperationMetadataV1) GetInsertTime

func (m *OperationMetadataV1) GetInsertTime() *google_protobuf2.Timestamp

func (*OperationMetadataV1) GetMethod

func (m *OperationMetadataV1) GetMethod() string

func (*OperationMetadataV1) GetTarget

func (m *OperationMetadataV1) GetTarget() string

func (*OperationMetadataV1) GetUser

func (m *OperationMetadataV1) GetUser() string

func (*OperationMetadataV1) ProtoMessage

func (*OperationMetadataV1) ProtoMessage()

func (*OperationMetadataV1) Reset

func (m *OperationMetadataV1) Reset()

func (*OperationMetadataV1) String

func (m *OperationMetadataV1) String() string

type RepairApplicationRequest

type RepairApplicationRequest struct {
	// Name of the application to repair. Example: `apps/myapp`
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

Request message for 'Applications.RepairApplication'.

func (*RepairApplicationRequest) Descriptor

func (*RepairApplicationRequest) Descriptor() ([]byte, []int)

func (*RepairApplicationRequest) GetName

func (m *RepairApplicationRequest) GetName() string

func (*RepairApplicationRequest) ProtoMessage

func (*RepairApplicationRequest) ProtoMessage()

func (*RepairApplicationRequest) Reset

func (m *RepairApplicationRequest) Reset()

func (*RepairApplicationRequest) String

func (m *RepairApplicationRequest) String() string

type RequestUtilization

type RequestUtilization struct {
	// Target requests per second.
	TargetRequestCountPerSecond int32 `` /* 142-byte string literal not displayed */
	// Target number of concurrent requests.
	TargetConcurrentRequests int32 `` /* 129-byte string literal not displayed */
}

Target scaling by request utilization. Only applicable for VM runtimes.

func (*RequestUtilization) Descriptor

func (*RequestUtilization) Descriptor() ([]byte, []int)

func (*RequestUtilization) GetTargetConcurrentRequests

func (m *RequestUtilization) GetTargetConcurrentRequests() int32

func (*RequestUtilization) GetTargetRequestCountPerSecond

func (m *RequestUtilization) GetTargetRequestCountPerSecond() int32

func (*RequestUtilization) ProtoMessage

func (*RequestUtilization) ProtoMessage()

func (*RequestUtilization) Reset

func (m *RequestUtilization) Reset()

func (*RequestUtilization) String

func (m *RequestUtilization) String() string

type Resources

type Resources struct {
	// Number of CPU cores needed.
	Cpu float64 `protobuf:"fixed64,1,opt,name=cpu" json:"cpu,omitempty"`
	// Disk size (GB) needed.
	DiskGb float64 `protobuf:"fixed64,2,opt,name=disk_gb,json=diskGb" json:"disk_gb,omitempty"`
	// Memory (GB) needed.
	MemoryGb float64 `protobuf:"fixed64,3,opt,name=memory_gb,json=memoryGb" json:"memory_gb,omitempty"`
}

Machine resources for a version.

func (*Resources) Descriptor

func (*Resources) Descriptor() ([]byte, []int)

func (*Resources) GetCpu

func (m *Resources) GetCpu() float64

func (*Resources) GetDiskGb

func (m *Resources) GetDiskGb() float64

func (*Resources) GetMemoryGb

func (m *Resources) GetMemoryGb() float64

func (*Resources) ProtoMessage

func (*Resources) ProtoMessage()

func (*Resources) Reset

func (m *Resources) Reset()

func (*Resources) String

func (m *Resources) String() string

type ScriptHandler

type ScriptHandler struct {
	// Path to the script from the application root directory.
	ScriptPath string `protobuf:"bytes,1,opt,name=script_path,json=scriptPath" json:"script_path,omitempty"`
}

Executes a script to handle the request that matches the URL pattern.

func (*ScriptHandler) Descriptor

func (*ScriptHandler) Descriptor() ([]byte, []int)

func (*ScriptHandler) GetScriptPath

func (m *ScriptHandler) GetScriptPath() string

func (*ScriptHandler) ProtoMessage

func (*ScriptHandler) ProtoMessage()

func (*ScriptHandler) Reset

func (m *ScriptHandler) Reset()

func (*ScriptHandler) String

func (m *ScriptHandler) String() string

type SecurityLevel

type SecurityLevel int32

Methods to enforce security (HTTPS) on a URL.

const (
	// Not specified.
	SecurityLevel_SECURE_UNSPECIFIED SecurityLevel = 0
	// Both HTTP and HTTPS requests with URLs that match the handler succeed
	// without redirects. The application can examine the request to determine
	// which protocol was used, and respond accordingly.
	SecurityLevel_SECURE_DEFAULT SecurityLevel = 0
	// Requests for a URL that match this handler that use HTTPS are automatically
	// redirected to the HTTP equivalent URL.
	SecurityLevel_SECURE_NEVER SecurityLevel = 1
	// Both HTTP and HTTPS requests with URLs that match the handler succeed
	// without redirects. The application can examine the request to determine
	// which protocol was used and respond accordingly.
	SecurityLevel_SECURE_OPTIONAL SecurityLevel = 2
	// Requests for a URL that match this handler that do not use HTTPS are
	// automatically redirected to the HTTPS URL with the same path. Query
	// parameters are reserved for the redirect.
	SecurityLevel_SECURE_ALWAYS SecurityLevel = 3
)

func (SecurityLevel) EnumDescriptor

func (SecurityLevel) EnumDescriptor() ([]byte, []int)

func (SecurityLevel) String

func (x SecurityLevel) String() string

type Service

type Service struct {
	// Full path to the Service resource in the API.
	// Example: `apps/myapp/services/default`.
	//
	// @OutputOnly
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Relative name of the service within the application.
	// Example: `default`.
	//
	// @OutputOnly
	Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	// Mapping that defines fractional HTTP traffic diversion to
	// different versions within the service.
	Split *TrafficSplit `protobuf:"bytes,3,opt,name=split" json:"split,omitempty"`
}

A Service resource is a logical component of an application that can share state and communicate in a secure fashion with other services. For example, an application that handles customer requests might include separate services to handle tasks such as backend data analysis or API requests from mobile devices. Each service has a collection of versions that define a specific set of code used to implement the functionality of that service.

func (*Service) Descriptor

func (*Service) Descriptor() ([]byte, []int)

func (*Service) GetId

func (m *Service) GetId() string

func (*Service) GetName

func (m *Service) GetName() string

func (*Service) GetSplit

func (m *Service) GetSplit() *TrafficSplit

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) String

func (m *Service) String() string

type ServicesClient

type ServicesClient interface {
	// Lists all the services in the application.
	ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error)
	// Gets the current configuration of the specified service.
	GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*Service, error)
	// Updates the configuration of the specified service.
	UpdateService(ctx context.Context, in *UpdateServiceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
	// Deletes the specified service and all enclosed versions.
	DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
}

func NewServicesClient

func NewServicesClient(cc *grpc.ClientConn) ServicesClient

type ServicesServer

type ServicesServer interface {
	// Lists all the services in the application.
	ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)
	// Gets the current configuration of the specified service.
	GetService(context.Context, *GetServiceRequest) (*Service, error)
	// Updates the configuration of the specified service.
	UpdateService(context.Context, *UpdateServiceRequest) (*google_longrunning.Operation, error)
	// Deletes the specified service and all enclosed versions.
	DeleteService(context.Context, *DeleteServiceRequest) (*google_longrunning.Operation, error)
}

type ServingStatus

type ServingStatus int32

Run states of a version.

const (
	// Not specified.
	ServingStatus_SERVING_STATUS_UNSPECIFIED ServingStatus = 0
	// Currently serving. Instances are created according to the
	// scaling settings of the version.
	ServingStatus_SERVING ServingStatus = 1
	// Disabled. No instances will be created and the scaling
	// settings are ignored until the state of the version changes
	// to `SERVING`.
	ServingStatus_STOPPED ServingStatus = 2
)

func (ServingStatus) EnumDescriptor

func (ServingStatus) EnumDescriptor() ([]byte, []int)

func (ServingStatus) String

func (x ServingStatus) String() string

type StaticFilesHandler

type StaticFilesHandler struct {
	// Path to the static files matched by the URL pattern, from the
	// application root directory. The path can refer to text matched in groupings
	// in the URL pattern.
	Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
	// Regular expression that matches the file paths for all files that should be
	// referenced by this handler.
	UploadPathRegex string `protobuf:"bytes,2,opt,name=upload_path_regex,json=uploadPathRegex" json:"upload_path_regex,omitempty"`
	// HTTP headers to use for all responses from these URLs.
	HttpHeaders map[string]string `` /* 161-byte string literal not displayed */
	// MIME type used to serve all files served by this handler.
	//
	// Defaults to file-specific MIME types, which are derived from each file's
	// filename extension.
	MimeType string `protobuf:"bytes,4,opt,name=mime_type,json=mimeType" json:"mime_type,omitempty"`
	// Time a static file served by this handler should be cached
	// by web proxies and browsers.
	Expiration *google_protobuf1.Duration `protobuf:"bytes,5,opt,name=expiration" json:"expiration,omitempty"`
	// Whether this handler should match the request if the file
	// referenced by the handler does not exist.
	RequireMatchingFile bool `protobuf:"varint,6,opt,name=require_matching_file,json=requireMatchingFile" json:"require_matching_file,omitempty"`
	// Whether files should also be uploaded as code data. By default, files
	// declared in static file handlers are uploaded as static
	// data and are only served to end users; they cannot be read by the
	// application. If enabled, uploads are charged against both your code and
	// static data storage resource quotas.
	ApplicationReadable bool `protobuf:"varint,7,opt,name=application_readable,json=applicationReadable" json:"application_readable,omitempty"`
}

Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them.

func (*StaticFilesHandler) Descriptor

func (*StaticFilesHandler) Descriptor() ([]byte, []int)

func (*StaticFilesHandler) GetApplicationReadable

func (m *StaticFilesHandler) GetApplicationReadable() bool

func (*StaticFilesHandler) GetExpiration

func (m *StaticFilesHandler) GetExpiration() *google_protobuf1.Duration

func (*StaticFilesHandler) GetHttpHeaders

func (m *StaticFilesHandler) GetHttpHeaders() map[string]string

func (*StaticFilesHandler) GetMimeType

func (m *StaticFilesHandler) GetMimeType() string

func (*StaticFilesHandler) GetPath

func (m *StaticFilesHandler) GetPath() string

func (*StaticFilesHandler) GetRequireMatchingFile

func (m *StaticFilesHandler) GetRequireMatchingFile() bool

func (*StaticFilesHandler) GetUploadPathRegex

func (m *StaticFilesHandler) GetUploadPathRegex() string

func (*StaticFilesHandler) ProtoMessage

func (*StaticFilesHandler) ProtoMessage()

func (*StaticFilesHandler) Reset

func (m *StaticFilesHandler) Reset()

func (*StaticFilesHandler) String

func (m *StaticFilesHandler) String() string

type TrafficSplit

type TrafficSplit struct {
	// Mechanism used to determine which version a request is sent to.
	// The traffic selection algorithm will
	// be stable for either type until allocations are changed.
	ShardBy TrafficSplit_ShardBy `protobuf:"varint,1,opt,name=shard_by,json=shardBy,enum=google.appengine.v1.TrafficSplit_ShardBy" json:"shard_by,omitempty"`
	// Mapping from version IDs within the service to fractional
	// (0.000, 1] allocations of traffic for that version. Each version can
	// be specified only once, but some versions in the service may not
	// have any traffic allocation. Services that have traffic allocated
	// cannot be deleted until either the service is deleted or
	// their traffic allocation is removed. Allocations must sum to 1.
	// Up to two decimal place precision is supported for IP-based splits and
	// up to three decimal places is supported for cookie-based splits.
	Allocations map[string]float64 `` /* 144-byte string literal not displayed */
}

Traffic routing configuration for versions within a single service. Traffic splits define how traffic directed to the service is assigned to versions.

func (*TrafficSplit) Descriptor

func (*TrafficSplit) Descriptor() ([]byte, []int)

func (*TrafficSplit) GetAllocations

func (m *TrafficSplit) GetAllocations() map[string]float64

func (*TrafficSplit) GetShardBy

func (m *TrafficSplit) GetShardBy() TrafficSplit_ShardBy

func (*TrafficSplit) ProtoMessage

func (*TrafficSplit) ProtoMessage()

func (*TrafficSplit) Reset

func (m *TrafficSplit) Reset()

func (*TrafficSplit) String

func (m *TrafficSplit) String() string

type TrafficSplit_ShardBy

type TrafficSplit_ShardBy int32

Available sharding mechanisms.

const (
	// Diversion method unspecified.
	TrafficSplit_UNSPECIFIED TrafficSplit_ShardBy = 0
	// Diversion based on a specially named cookie, "GOOGAPPUID." The cookie
	// must be set by the application itself or no diversion will occur.
	TrafficSplit_COOKIE TrafficSplit_ShardBy = 1
	// Diversion based on applying the modulus operation to a fingerprint
	// of the IP address.
	TrafficSplit_IP TrafficSplit_ShardBy = 2
)

func (TrafficSplit_ShardBy) EnumDescriptor

func (TrafficSplit_ShardBy) EnumDescriptor() ([]byte, []int)

func (TrafficSplit_ShardBy) String

func (x TrafficSplit_ShardBy) String() string

type UpdateServiceRequest

type UpdateServiceRequest struct {
	// Name of the resource to update. Example: `apps/myapp/services/default`.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// A Service resource containing the updated service. Only fields set in the
	// field mask will be updated.
	Service *Service `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"`
	// Standard field mask for the set of fields to be updated.
	UpdateMask *google_protobuf5.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
	// Set to `true` to gradually shift traffic from one version to another
	// single version. By default, traffic is shifted immediately.
	// For gradual traffic migration, the target version
	// must be located within instances that are configured for both
	// [warmup requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#inboundservicetype)
	// and
	// [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#automaticscaling).
	// You must specify the
	// [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#shardby)
	// field in the Service resource. Gradual traffic migration is not
	// supported in the App Engine flexible environment. For examples, see
	// [Migrating and Splitting Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).
	MigrateTraffic bool `protobuf:"varint,4,opt,name=migrate_traffic,json=migrateTraffic" json:"migrate_traffic,omitempty"`
}

Request message for `Services.UpdateService`.

func (*UpdateServiceRequest) Descriptor

func (*UpdateServiceRequest) Descriptor() ([]byte, []int)

func (*UpdateServiceRequest) GetMigrateTraffic

func (m *UpdateServiceRequest) GetMigrateTraffic() bool

func (*UpdateServiceRequest) GetName

func (m *UpdateServiceRequest) GetName() string

func (*UpdateServiceRequest) GetService

func (m *UpdateServiceRequest) GetService() *Service

func (*UpdateServiceRequest) GetUpdateMask

func (m *UpdateServiceRequest) GetUpdateMask() *google_protobuf5.FieldMask

func (*UpdateServiceRequest) ProtoMessage

func (*UpdateServiceRequest) ProtoMessage()

func (*UpdateServiceRequest) Reset

func (m *UpdateServiceRequest) Reset()

func (*UpdateServiceRequest) String

func (m *UpdateServiceRequest) String() string

type UpdateVersionRequest

type UpdateVersionRequest struct {
	// Name of the resource to update. Example:
	// `apps/myapp/services/default/versions/1`.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// A Version containing the updated resource. Only fields set in the field
	// mask will be updated.
	Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
	// Standard field mask for the set of fields to be updated.
	UpdateMask *google_protobuf5.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
}

Request message for `Versions.UpdateVersion`.

func (*UpdateVersionRequest) Descriptor

func (*UpdateVersionRequest) Descriptor() ([]byte, []int)

func (*UpdateVersionRequest) GetName

func (m *UpdateVersionRequest) GetName() string

func (*UpdateVersionRequest) GetUpdateMask

func (m *UpdateVersionRequest) GetUpdateMask() *google_protobuf5.FieldMask

func (*UpdateVersionRequest) GetVersion

func (m *UpdateVersionRequest) GetVersion() *Version

func (*UpdateVersionRequest) ProtoMessage

func (*UpdateVersionRequest) ProtoMessage()

func (*UpdateVersionRequest) Reset

func (m *UpdateVersionRequest) Reset()

func (*UpdateVersionRequest) String

func (m *UpdateVersionRequest) String() string

type UrlDispatchRule

type UrlDispatchRule struct {
	// Domain name to match against. The wildcard "`*`" is supported if
	// specified before a period: "`*.`".
	//
	// Defaults to matching all domains: "`*`".
	Domain string `protobuf:"bytes,1,opt,name=domain" json:"domain,omitempty"`
	// Pathname within the host. Must start with a "`/`". A
	// single "`*`" can be included at the end of the path. The sum
	// of the lengths of the domain and path may not exceed 100
	// characters.
	Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
	// Resource ID of a service in this application that should
	// serve the matched request. The service must already
	// exist. Example: `default`.
	Service string `protobuf:"bytes,3,opt,name=service" json:"service,omitempty"`
}

Rules to match an HTTP request and dispatch that request to a service.

func (*UrlDispatchRule) Descriptor

func (*UrlDispatchRule) Descriptor() ([]byte, []int)

func (*UrlDispatchRule) GetDomain

func (m *UrlDispatchRule) GetDomain() string

func (*UrlDispatchRule) GetPath

func (m *UrlDispatchRule) GetPath() string

func (*UrlDispatchRule) GetService

func (m *UrlDispatchRule) GetService() string

func (*UrlDispatchRule) ProtoMessage

func (*UrlDispatchRule) ProtoMessage()

func (*UrlDispatchRule) Reset

func (m *UrlDispatchRule) Reset()

func (*UrlDispatchRule) String

func (m *UrlDispatchRule) String() string

type UrlMap

type UrlMap struct {
	// URL prefix. Uses regular expression syntax, which means regexp
	// special characters must be escaped, but should not contain groupings.
	// All URLs that begin with this prefix are handled by this handler, using the
	// portion of the URL after the prefix as part of the file path.
	UrlRegex string `protobuf:"bytes,1,opt,name=url_regex,json=urlRegex" json:"url_regex,omitempty"`
	// Type of handler for this URL pattern.
	//
	// Types that are valid to be assigned to HandlerType:
	//	*UrlMap_StaticFiles
	//	*UrlMap_Script
	//	*UrlMap_ApiEndpoint
	HandlerType isUrlMap_HandlerType `protobuf_oneof:"handler_type"`
	// Security (HTTPS) enforcement for this URL.
	SecurityLevel SecurityLevel `` /* 133-byte string literal not displayed */
	// Level of login required to access this resource.
	Login LoginRequirement `protobuf:"varint,6,opt,name=login,enum=google.appengine.v1.LoginRequirement" json:"login,omitempty"`
	// Action to take when users access resources that require
	// authentication. Defaults to `redirect`.
	AuthFailAction AuthFailAction `` /* 139-byte string literal not displayed */
	// `30x` code to use when performing redirects for the `secure` field.
	// Defaults to `302`.
	RedirectHttpResponseCode UrlMap_RedirectHttpResponseCode `` /* 188-byte string literal not displayed */
}

URL pattern and description of how the URL should be handled. App Engine can handle URLs by executing application code or by serving static files uploaded with the version, such as images, CSS, or JavaScript.

func (*UrlMap) Descriptor

func (*UrlMap) Descriptor() ([]byte, []int)

func (*UrlMap) GetApiEndpoint

func (m *UrlMap) GetApiEndpoint() *ApiEndpointHandler

func (*UrlMap) GetAuthFailAction

func (m *UrlMap) GetAuthFailAction() AuthFailAction

func (*UrlMap) GetHandlerType

func (m *UrlMap) GetHandlerType() isUrlMap_HandlerType

func (*UrlMap) GetLogin

func (m *UrlMap) GetLogin() LoginRequirement

func (*UrlMap) GetRedirectHttpResponseCode

func (m *UrlMap) GetRedirectHttpResponseCode() UrlMap_RedirectHttpResponseCode

func (*UrlMap) GetScript

func (m *UrlMap) GetScript() *ScriptHandler

func (*UrlMap) GetSecurityLevel

func (m *UrlMap) GetSecurityLevel() SecurityLevel

func (*UrlMap) GetStaticFiles

func (m *UrlMap) GetStaticFiles() *StaticFilesHandler

func (*UrlMap) GetUrlRegex

func (m *UrlMap) GetUrlRegex() string

func (*UrlMap) ProtoMessage

func (*UrlMap) ProtoMessage()

func (*UrlMap) Reset

func (m *UrlMap) Reset()

func (*UrlMap) String

func (m *UrlMap) String() string

func (*UrlMap) XXX_OneofFuncs

func (*UrlMap) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type UrlMap_ApiEndpoint

type UrlMap_ApiEndpoint struct {
	ApiEndpoint *ApiEndpointHandler `protobuf:"bytes,4,opt,name=api_endpoint,json=apiEndpoint,oneof"`
}

type UrlMap_RedirectHttpResponseCode

type UrlMap_RedirectHttpResponseCode int32

Redirect codes.

const (
	// Not specified. `302` is assumed.
	UrlMap_REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED UrlMap_RedirectHttpResponseCode = 0
	// `301 Moved Permanently` code.
	UrlMap_REDIRECT_HTTP_RESPONSE_CODE_301 UrlMap_RedirectHttpResponseCode = 1
	// `302 Moved Temporarily` code.
	UrlMap_REDIRECT_HTTP_RESPONSE_CODE_302 UrlMap_RedirectHttpResponseCode = 2
	// `303 See Other` code.
	UrlMap_REDIRECT_HTTP_RESPONSE_CODE_303 UrlMap_RedirectHttpResponseCode = 3
	// `307 Temporary Redirect` code.
	UrlMap_REDIRECT_HTTP_RESPONSE_CODE_307 UrlMap_RedirectHttpResponseCode = 4
)

func (UrlMap_RedirectHttpResponseCode) EnumDescriptor

func (UrlMap_RedirectHttpResponseCode) EnumDescriptor() ([]byte, []int)

func (UrlMap_RedirectHttpResponseCode) String

type UrlMap_Script

type UrlMap_Script struct {
	Script *ScriptHandler `protobuf:"bytes,3,opt,name=script,oneof"`
}

type UrlMap_StaticFiles

type UrlMap_StaticFiles struct {
	StaticFiles *StaticFilesHandler `protobuf:"bytes,2,opt,name=static_files,json=staticFiles,oneof"`
}

type Version

type Version struct {
	// Full path to the Version resource in the API.  Example:
	// `apps/myapp/services/default/versions/v1`.
	//
	// @OutputOnly
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Relative name of the version within the service.  Example: `v1`.
	// Version names can contain only lowercase letters, numbers, or hyphens.
	// Reserved names: "default", "latest", and any name with the prefix "ah-".
	Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	// Controls how instances are created.
	//
	// Defaults to `AutomaticScaling`.
	//
	// Types that are valid to be assigned to Scaling:
	//	*Version_AutomaticScaling
	//	*Version_BasicScaling
	//	*Version_ManualScaling
	Scaling isVersion_Scaling `protobuf_oneof:"scaling"`
	// Before an application can receive email or XMPP messages, the application
	// must be configured to enable the service.
	InboundServices []InboundServiceType `` /* 151-byte string literal not displayed */
	// Instance class that is used to run this version. Valid values are:
	// * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G`
	// * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G`
	//
	// Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or
	// BasicScaling.
	InstanceClass string `protobuf:"bytes,7,opt,name=instance_class,json=instanceClass" json:"instance_class,omitempty"`
	// Extra network settings. Only applicable for VM runtimes.
	Network *Network `protobuf:"bytes,8,opt,name=network" json:"network,omitempty"`
	// Machine resources for this version. Only applicable for VM runtimes.
	Resources *Resources `protobuf:"bytes,9,opt,name=resources" json:"resources,omitempty"`
	// Desired runtime. Example: `python27`.
	Runtime string `protobuf:"bytes,10,opt,name=runtime" json:"runtime,omitempty"`
	// Whether multiple requests can be dispatched to this version at once.
	Threadsafe bool `protobuf:"varint,11,opt,name=threadsafe" json:"threadsafe,omitempty"`
	// Whether to deploy this version in a container on a virtual machine.
	Vm bool `protobuf:"varint,12,opt,name=vm" json:"vm,omitempty"`
	// Metadata settings that are supplied to this version to enable
	// beta runtime features.
	BetaSettings map[string]string `` /* 165-byte string literal not displayed */
	// App Engine execution environment for this version.
	//
	// Defaults to `standard`.
	Env string `protobuf:"bytes,14,opt,name=env" json:"env,omitempty"`
	// Current serving status of this version. Only the versions with a
	// `SERVING` status create instances and can be billed.
	//
	// `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`.
	ServingStatus ServingStatus `` /* 134-byte string literal not displayed */
	// Email address of the user who created this version.
	//
	// @OutputOnly
	CreatedBy string `protobuf:"bytes,16,opt,name=created_by,json=createdBy" json:"created_by,omitempty"`
	// Time that this version was created.
	//
	// @OutputOnly
	CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,17,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// Total size in bytes of all the files that are included in this version
	// and curerntly hosted on the App Engine disk.
	//
	// @OutputOnly
	DiskUsageBytes int64 `protobuf:"varint,18,opt,name=disk_usage_bytes,json=diskUsageBytes" json:"disk_usage_bytes,omitempty"`
	// An ordered list of URL-matching patterns that should be applied to incoming
	// requests. The first matching URL handles the request and other request
	// handlers are not attempted.
	//
	// Only returned in `GET` requests if `view=FULL` is set.
	Handlers []*UrlMap `protobuf:"bytes,100,rep,name=handlers" json:"handlers,omitempty"`
	// Custom static error pages. Limited to 10KB per page.
	//
	// Only returned in `GET` requests if `view=FULL` is set.
	ErrorHandlers []*ErrorHandler `protobuf:"bytes,101,rep,name=error_handlers,json=errorHandlers" json:"error_handlers,omitempty"`
	// Configuration for third-party Python runtime libraries that are required
	// by the application.
	//
	// Only returned in `GET` requests if `view=FULL` is set.
	Libraries []*Library `protobuf:"bytes,102,rep,name=libraries" json:"libraries,omitempty"`
	// Serving configuration for
	// [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/).
	//
	// Only returned in `GET` requests if `view=FULL` is set.
	ApiConfig *ApiConfigHandler `protobuf:"bytes,103,opt,name=api_config,json=apiConfig" json:"api_config,omitempty"`
	// Environment variables available to the application.
	//
	// Only returned in `GET` requests if `view=FULL` is set.
	EnvVariables map[string]string `` /* 166-byte string literal not displayed */
	// Duration that static files should be cached by web proxies and browsers.
	// Only applicable if the corresponding
	// [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#staticfileshandler)
	// does not specify its own expiration time.
	//
	// Only returned in `GET` requests if `view=FULL` is set.
	DefaultExpiration *google_protobuf1.Duration `protobuf:"bytes,105,opt,name=default_expiration,json=defaultExpiration" json:"default_expiration,omitempty"`
	// Configures health checking for VM instances. Unhealthy instances are
	// stopped and replaced with new instances. Only applicable for VM
	// runtimes.
	//
	// Only returned in `GET` requests if `view=FULL` is set.
	HealthCheck *HealthCheck `protobuf:"bytes,106,opt,name=health_check,json=healthCheck" json:"health_check,omitempty"`
	// Files that match this pattern will not be built into this version.
	// Only applicable for Go runtimes.
	//
	// Only returned in `GET` requests if `view=FULL` is set.
	NobuildFilesRegex string `protobuf:"bytes,107,opt,name=nobuild_files_regex,json=nobuildFilesRegex" json:"nobuild_files_regex,omitempty"`
	// Code and application artifacts that make up this version.
	//
	// Only returned in `GET` requests if `view=FULL` is set.
	Deployment *Deployment `protobuf:"bytes,108,opt,name=deployment" json:"deployment,omitempty"`
	// Serving URL for this version. Example:
	// "https://myversion-dot-myservice-dot-myapp.appspot.com"
	//
	// @OutputOnly
	VersionUrl string `protobuf:"bytes,109,opt,name=version_url,json=versionUrl" json:"version_url,omitempty"`
}

A Version resource is a specific set of source code and configuration files that are deployed into a service.

func (*Version) Descriptor

func (*Version) Descriptor() ([]byte, []int)

func (*Version) GetApiConfig

func (m *Version) GetApiConfig() *ApiConfigHandler

func (*Version) GetAutomaticScaling

func (m *Version) GetAutomaticScaling() *AutomaticScaling

func (*Version) GetBasicScaling

func (m *Version) GetBasicScaling() *BasicScaling

func (*Version) GetBetaSettings

func (m *Version) GetBetaSettings() map[string]string

func (*Version) GetCreateTime

func (m *Version) GetCreateTime() *google_protobuf2.Timestamp

func (*Version) GetCreatedBy

func (m *Version) GetCreatedBy() string

func (*Version) GetDefaultExpiration

func (m *Version) GetDefaultExpiration() *google_protobuf1.Duration

func (*Version) GetDeployment

func (m *Version) GetDeployment() *Deployment

func (*Version) GetDiskUsageBytes

func (m *Version) GetDiskUsageBytes() int64

func (*Version) GetEnv

func (m *Version) GetEnv() string

func (*Version) GetEnvVariables

func (m *Version) GetEnvVariables() map[string]string

func (*Version) GetErrorHandlers

func (m *Version) GetErrorHandlers() []*ErrorHandler

func (*Version) GetHandlers

func (m *Version) GetHandlers() []*UrlMap

func (*Version) GetHealthCheck

func (m *Version) GetHealthCheck() *HealthCheck

func (*Version) GetId

func (m *Version) GetId() string

func (*Version) GetInboundServices

func (m *Version) GetInboundServices() []InboundServiceType

func (*Version) GetInstanceClass

func (m *Version) GetInstanceClass() string

func (*Version) GetLibraries

func (m *Version) GetLibraries() []*Library

func (*Version) GetManualScaling

func (m *Version) GetManualScaling() *ManualScaling

func (*Version) GetName

func (m *Version) GetName() string

func (*Version) GetNetwork

func (m *Version) GetNetwork() *Network

func (*Version) GetNobuildFilesRegex

func (m *Version) GetNobuildFilesRegex() string

func (*Version) GetResources

func (m *Version) GetResources() *Resources

func (*Version) GetRuntime

func (m *Version) GetRuntime() string

func (*Version) GetScaling

func (m *Version) GetScaling() isVersion_Scaling

func (*Version) GetServingStatus

func (m *Version) GetServingStatus() ServingStatus

func (*Version) GetThreadsafe

func (m *Version) GetThreadsafe() bool

func (*Version) GetVersionUrl

func (m *Version) GetVersionUrl() string

func (*Version) GetVm

func (m *Version) GetVm() bool

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) Reset

func (m *Version) Reset()

func (*Version) String

func (m *Version) String() string

func (*Version) XXX_OneofFuncs

func (*Version) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type VersionView

type VersionView int32

Fields that should be returned when Version[google.appengine.v1.Version] resources are retreived.

const (
	// Basic version information including scaling and inbound services,
	// but not detailed deployment information.
	VersionView_BASIC VersionView = 0
	// The information from `BASIC`, plus detailed information about the
	// deployment. This format is required when creating resources, but
	// is not returned in `Get` or `List` by default.
	VersionView_FULL VersionView = 1
)

func (VersionView) EnumDescriptor

func (VersionView) EnumDescriptor() ([]byte, []int)

func (VersionView) String

func (x VersionView) String() string

type Version_AutomaticScaling

type Version_AutomaticScaling struct {
	AutomaticScaling *AutomaticScaling `protobuf:"bytes,3,opt,name=automatic_scaling,json=automaticScaling,oneof"`
}

type Version_BasicScaling

type Version_BasicScaling struct {
	BasicScaling *BasicScaling `protobuf:"bytes,4,opt,name=basic_scaling,json=basicScaling,oneof"`
}

type Version_ManualScaling

type Version_ManualScaling struct {
	ManualScaling *ManualScaling `protobuf:"bytes,5,opt,name=manual_scaling,json=manualScaling,oneof"`
}

type VersionsClient

type VersionsClient interface {
	// Lists the versions of a service.
	ListVersions(ctx context.Context, in *ListVersionsRequest, opts ...grpc.CallOption) (*ListVersionsResponse, error)
	// Gets the specified Version resource.
	// By default, only a `BASIC_VIEW` will be returned.
	// Specify the `FULL_VIEW` parameter to get the full resource.
	GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*Version, error)
	// Deploys code and resource files to a new version.
	CreateVersion(ctx context.Context, in *CreateVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
	// Updates the specified Version resource.
	// You can specify the following fields depending on the App Engine
	// environment and type of scaling that the version resource uses:
	//
	// * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status):
	//   For Version resources that use basic scaling, manual scaling, or run in
	//   the App Engine flexible environment.
	// * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class):
	//   For Version resources that run in the App Engine standard environment.
	// * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling):
	//   For Version resources that use automatic scaling and run in the App
	//   Engine standard environment.
	// * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling):
	//   For Version resources that use automatic scaling and run in the App
	//   Engine standard environment.
	UpdateVersion(ctx context.Context, in *UpdateVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
	// Deletes an existing Version resource.
	DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
}

func NewVersionsClient

func NewVersionsClient(cc *grpc.ClientConn) VersionsClient

type VersionsServer

type VersionsServer interface {
	// Lists the versions of a service.
	ListVersions(context.Context, *ListVersionsRequest) (*ListVersionsResponse, error)
	// Gets the specified Version resource.
	// By default, only a `BASIC_VIEW` will be returned.
	// Specify the `FULL_VIEW` parameter to get the full resource.
	GetVersion(context.Context, *GetVersionRequest) (*Version, error)
	// Deploys code and resource files to a new version.
	CreateVersion(context.Context, *CreateVersionRequest) (*google_longrunning.Operation, error)
	// Updates the specified Version resource.
	// You can specify the following fields depending on the App Engine
	// environment and type of scaling that the version resource uses:
	//
	// * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status):
	//   For Version resources that use basic scaling, manual scaling, or run in
	//   the App Engine flexible environment.
	// * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class):
	//   For Version resources that run in the App Engine standard environment.
	// * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling):
	//   For Version resources that use automatic scaling and run in the App
	//   Engine standard environment.
	// * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling):
	//   For Version resources that use automatic scaling and run in the App
	//   Engine standard environment.
	UpdateVersion(context.Context, *UpdateVersionRequest) (*google_longrunning.Operation, error)
	// Deletes an existing Version resource.
	DeleteVersion(context.Context, *DeleteVersionRequest) (*google_longrunning.Operation, error)
}

type ZipInfo

type ZipInfo struct {
	// URL of the zip file to deploy from. Must be a URL to a resource in
	// Google Cloud Storage in the form
	// 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.
	SourceUrl string `protobuf:"bytes,3,opt,name=source_url,json=sourceUrl" json:"source_url,omitempty"`
	// An estimate of the number of files in a zip for a zip deployment.
	// If set, must be greater than or equal to the actual number of files.
	// Used for optimizing performance; if not provided, deployment may be slow.
	FilesCount int32 `protobuf:"varint,4,opt,name=files_count,json=filesCount" json:"files_count,omitempty"`
}

func (*ZipInfo) Descriptor

func (*ZipInfo) Descriptor() ([]byte, []int)

func (*ZipInfo) GetFilesCount

func (m *ZipInfo) GetFilesCount() int32

func (*ZipInfo) GetSourceUrl

func (m *ZipInfo) GetSourceUrl() string

func (*ZipInfo) ProtoMessage

func (*ZipInfo) ProtoMessage()

func (*ZipInfo) Reset

func (m *ZipInfo) Reset()

func (*ZipInfo) String

func (m *ZipInfo) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL