Documentation ¶
Overview ¶
Package appengine provides access to the Google App Engine Admin API.
See https://cloud.google.com/appengine/docs/admin-api/
Usage example:
import "google.golang.org/api/appengine/v1beta4" ... appengineService, err := appengine.New(oauthHttpClient)
Index ¶
- Constants
- type ApiConfigHandler
- type ApiEndpointHandler
- type Application
- type AppsGetCall
- func (c *AppsGetCall) Context(ctx context.Context) *AppsGetCall
- func (c *AppsGetCall) Do(opts ...googleapi.CallOption) (*Application, error)
- func (c *AppsGetCall) EnsureResourcesExist(ensureResourcesExist bool) *AppsGetCall
- func (c *AppsGetCall) Fields(s ...googleapi.Field) *AppsGetCall
- func (c *AppsGetCall) IfNoneMatch(entityTag string) *AppsGetCall
- type AppsModulesDeleteCall
- type AppsModulesGetCall
- func (c *AppsModulesGetCall) Context(ctx context.Context) *AppsModulesGetCall
- func (c *AppsModulesGetCall) Do(opts ...googleapi.CallOption) (*Module, error)
- func (c *AppsModulesGetCall) Fields(s ...googleapi.Field) *AppsModulesGetCall
- func (c *AppsModulesGetCall) IfNoneMatch(entityTag string) *AppsModulesGetCall
- type AppsModulesListCall
- func (c *AppsModulesListCall) Context(ctx context.Context) *AppsModulesListCall
- func (c *AppsModulesListCall) Do(opts ...googleapi.CallOption) (*ListModulesResponse, error)
- func (c *AppsModulesListCall) Fields(s ...googleapi.Field) *AppsModulesListCall
- func (c *AppsModulesListCall) IfNoneMatch(entityTag string) *AppsModulesListCall
- func (c *AppsModulesListCall) PageSize(pageSize int64) *AppsModulesListCall
- func (c *AppsModulesListCall) PageToken(pageToken string) *AppsModulesListCall
- func (c *AppsModulesListCall) Pages(ctx context.Context, f func(*ListModulesResponse) error) error
- type AppsModulesPatchCall
- func (c *AppsModulesPatchCall) Context(ctx context.Context) *AppsModulesPatchCall
- func (c *AppsModulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *AppsModulesPatchCall) Fields(s ...googleapi.Field) *AppsModulesPatchCall
- func (c *AppsModulesPatchCall) Mask(mask string) *AppsModulesPatchCall
- func (c *AppsModulesPatchCall) MigrateTraffic(migrateTraffic bool) *AppsModulesPatchCall
- type AppsModulesService
- func (r *AppsModulesService) Delete(appsId string, modulesId string) *AppsModulesDeleteCall
- func (r *AppsModulesService) Get(appsId string, modulesId string) *AppsModulesGetCall
- func (r *AppsModulesService) List(appsId string) *AppsModulesListCall
- func (r *AppsModulesService) Patch(appsId string, modulesId string, module *Module) *AppsModulesPatchCall
- type AppsModulesVersionsCreateCall
- type AppsModulesVersionsDeleteCall
- type AppsModulesVersionsGetCall
- func (c *AppsModulesVersionsGetCall) Context(ctx context.Context) *AppsModulesVersionsGetCall
- func (c *AppsModulesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, error)
- func (c *AppsModulesVersionsGetCall) Fields(s ...googleapi.Field) *AppsModulesVersionsGetCall
- func (c *AppsModulesVersionsGetCall) IfNoneMatch(entityTag string) *AppsModulesVersionsGetCall
- func (c *AppsModulesVersionsGetCall) View(view string) *AppsModulesVersionsGetCall
- type AppsModulesVersionsListCall
- func (c *AppsModulesVersionsListCall) Context(ctx context.Context) *AppsModulesVersionsListCall
- func (c *AppsModulesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVersionsResponse, error)
- func (c *AppsModulesVersionsListCall) Fields(s ...googleapi.Field) *AppsModulesVersionsListCall
- func (c *AppsModulesVersionsListCall) IfNoneMatch(entityTag string) *AppsModulesVersionsListCall
- func (c *AppsModulesVersionsListCall) PageSize(pageSize int64) *AppsModulesVersionsListCall
- func (c *AppsModulesVersionsListCall) PageToken(pageToken string) *AppsModulesVersionsListCall
- func (c *AppsModulesVersionsListCall) Pages(ctx context.Context, f func(*ListVersionsResponse) error) error
- func (c *AppsModulesVersionsListCall) View(view string) *AppsModulesVersionsListCall
- type AppsModulesVersionsService
- func (r *AppsModulesVersionsService) Create(appsId string, modulesId string, version *Version) *AppsModulesVersionsCreateCall
- func (r *AppsModulesVersionsService) Delete(appsId string, modulesId string, versionsId string) *AppsModulesVersionsDeleteCall
- func (r *AppsModulesVersionsService) Get(appsId string, modulesId string, versionsId string) *AppsModulesVersionsGetCall
- func (r *AppsModulesVersionsService) List(appsId string, modulesId string) *AppsModulesVersionsListCall
- type AppsOperationsGetCall
- func (c *AppsOperationsGetCall) Context(ctx context.Context) *AppsOperationsGetCall
- func (c *AppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *AppsOperationsGetCall) Fields(s ...googleapi.Field) *AppsOperationsGetCall
- func (c *AppsOperationsGetCall) IfNoneMatch(entityTag string) *AppsOperationsGetCall
- type AppsOperationsListCall
- func (c *AppsOperationsListCall) Context(ctx context.Context) *AppsOperationsListCall
- func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *AppsOperationsListCall) Fields(s ...googleapi.Field) *AppsOperationsListCall
- func (c *AppsOperationsListCall) Filter(filter string) *AppsOperationsListCall
- func (c *AppsOperationsListCall) IfNoneMatch(entityTag string) *AppsOperationsListCall
- func (c *AppsOperationsListCall) PageSize(pageSize int64) *AppsOperationsListCall
- func (c *AppsOperationsListCall) PageToken(pageToken string) *AppsOperationsListCall
- func (c *AppsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- type AppsOperationsService
- type AppsService
- type AutomaticScaling
- type BasicScaling
- type ContainerInfo
- type CpuUtilization
- type Deployment
- type DiskUtilization
- type ErrorHandler
- type FileInfo
- type HealthCheck
- type Library
- type ListModulesResponse
- type ListOperationsResponse
- type ListVersionsResponse
- type ManualScaling
- type Module
- type Network
- type NetworkUtilization
- type Operation
- type OperationMetadata
- type OperationMetadata1
- type OperationMetadataV1Beta5
- type OperationResponse
- type RequestUtilization
- type Resources
- type ScriptHandler
- type Service
- type SourceReference
- type StaticDirectoryHandler
- type StaticFilesHandler
- type Status
- type StatusDetails
- type TrafficSplit
- type TrafficSplitAllocations
- type UrlDispatchRule
- type UrlMap
- type Version
Constants ¶
const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiConfigHandler ¶
type ApiConfigHandler struct { // AuthFailAction: For users not logged in, how to handle access to // resources with required login. Defaults to "redirect". // // Possible values: // "AUTH_FAIL_ACTION_UNSPECIFIED" // "AUTH_FAIL_ACTION_REDIRECT" // "AUTH_FAIL_ACTION_UNAUTHORIZED" AuthFailAction string `json:"authFailAction,omitempty"` // Login: What level of login is required to access this resource. // Default is "optional". // // Possible values: // "LOGIN_UNSPECIFIED" // "LOGIN_OPTIONAL" // "LOGIN_ADMIN" // "LOGIN_REQUIRED" Login string `json:"login,omitempty"` // Script: Specifies the path to the script from the application root // directory. Script string `json:"script,omitempty"` // SecurityLevel: Configures whether security (HTTPS) should be enforced // for this URL. // // Possible values: // "SECURE_UNSPECIFIED" // "SECURE_DEFAULT" // "SECURE_NEVER" // "SECURE_OPTIONAL" // "SECURE_ALWAYS" SecurityLevel string `json:"securityLevel,omitempty"` // Url: URL to serve the endpoint at. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "AuthFailAction") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ApiConfigHandler: API Serving configuration for Cloud Endpoints.
func (*ApiConfigHandler) MarshalJSON ¶
func (s *ApiConfigHandler) MarshalJSON() ([]byte, error)
type ApiEndpointHandler ¶
type ApiEndpointHandler struct { // ScriptPath: Specifies the path to the script from the application // root directory. ScriptPath string `json:"scriptPath,omitempty"` // ForceSendFields is a list of field names (e.g. "ScriptPath") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ApiEndpointHandler: Use Google Cloud Endpoints to handle requests.
func (*ApiEndpointHandler) MarshalJSON ¶
func (s *ApiEndpointHandler) MarshalJSON() ([]byte, error)
type Application ¶
type Application struct { // CodeBucket: A Google Cloud Storage bucket which can be used for // storing files associated with an application. This bucket is // associated with the application and can be used by the gcloud // deployment commands. @OutputOnly CodeBucket string `json:"codeBucket,omitempty"` // DefaultBucket: A Google Cloud Storage bucket which can be used by the // application to store content. @OutputOnly DefaultBucket string `json:"defaultBucket,omitempty"` // DispatchRules: HTTP path dispatch rules for requests to the app that // do not explicitly target a module or version. The rules are // order-dependent. DispatchRules []*UrlDispatchRule `json:"dispatchRules,omitempty"` // Id: The relative name/path of the application. Example: "myapp". // @OutputOnly Id string `json:"id,omitempty"` // Location: The location from which the application will be run. // Choices are "us-central" for United States and "europe-west" for // European Union. Application instances will run out of data centers in // the chosen location and all of the application's End User Content // will be stored at rest in the chosen location. The default is // "us-central". Location string `json:"location,omitempty"` // Name: The full path to the application in the API. Example: // "apps/myapp". @OutputOnly Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CodeBucket") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Application: An Application contains the top-level configuration of an App Engine application.
func (*Application) MarshalJSON ¶
func (s *Application) MarshalJSON() ([]byte, error)
type AppsGetCall ¶
type AppsGetCall struct {
// contains filtered or unexported fields
}
func (*AppsGetCall) Context ¶
func (c *AppsGetCall) Context(ctx context.Context) *AppsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AppsGetCall) Do ¶
func (c *AppsGetCall) Do(opts ...googleapi.CallOption) (*Application, error)
Do executes the "appengine.apps.get" call. Exactly one of *Application or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Application.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AppsGetCall) EnsureResourcesExist ¶
func (c *AppsGetCall) EnsureResourcesExist(ensureResourcesExist bool) *AppsGetCall
EnsureResourcesExist sets the optional parameter "ensureResourcesExist": Certain resources associated with an application are created on-demand. Controls whether these resources should be created when performing the `GET` operation. If specified and any resources could not be created, the request will fail with an error code. Additionally, this parameter can cause the request to take longer to complete.
func (*AppsGetCall) Fields ¶
func (c *AppsGetCall) Fields(s ...googleapi.Field) *AppsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AppsGetCall) IfNoneMatch ¶
func (c *AppsGetCall) IfNoneMatch(entityTag string) *AppsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type AppsModulesDeleteCall ¶
type AppsModulesDeleteCall struct {
// contains filtered or unexported fields
}
func (*AppsModulesDeleteCall) Context ¶
func (c *AppsModulesDeleteCall) Context(ctx context.Context) *AppsModulesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AppsModulesDeleteCall) Do ¶
func (c *AppsModulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "appengine.apps.modules.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AppsModulesDeleteCall) Fields ¶
func (c *AppsModulesDeleteCall) Fields(s ...googleapi.Field) *AppsModulesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type AppsModulesGetCall ¶
type AppsModulesGetCall struct {
// contains filtered or unexported fields
}
func (*AppsModulesGetCall) Context ¶
func (c *AppsModulesGetCall) Context(ctx context.Context) *AppsModulesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AppsModulesGetCall) Do ¶
func (c *AppsModulesGetCall) Do(opts ...googleapi.CallOption) (*Module, error)
Do executes the "appengine.apps.modules.get" call. Exactly one of *Module or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Module.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AppsModulesGetCall) Fields ¶
func (c *AppsModulesGetCall) Fields(s ...googleapi.Field) *AppsModulesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AppsModulesGetCall) IfNoneMatch ¶
func (c *AppsModulesGetCall) IfNoneMatch(entityTag string) *AppsModulesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type AppsModulesListCall ¶
type AppsModulesListCall struct {
// contains filtered or unexported fields
}
func (*AppsModulesListCall) Context ¶
func (c *AppsModulesListCall) Context(ctx context.Context) *AppsModulesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AppsModulesListCall) Do ¶
func (c *AppsModulesListCall) Do(opts ...googleapi.CallOption) (*ListModulesResponse, error)
Do executes the "appengine.apps.modules.list" call. Exactly one of *ListModulesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListModulesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AppsModulesListCall) Fields ¶
func (c *AppsModulesListCall) Fields(s ...googleapi.Field) *AppsModulesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AppsModulesListCall) IfNoneMatch ¶
func (c *AppsModulesListCall) IfNoneMatch(entityTag string) *AppsModulesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*AppsModulesListCall) PageSize ¶
func (c *AppsModulesListCall) PageSize(pageSize int64) *AppsModulesListCall
PageSize sets the optional parameter "pageSize": Maximum results to return per page.
func (*AppsModulesListCall) PageToken ¶
func (c *AppsModulesListCall) PageToken(pageToken string) *AppsModulesListCall
PageToken sets the optional parameter "pageToken": Continuation token for fetching the next page of results.
func (*AppsModulesListCall) Pages ¶
func (c *AppsModulesListCall) Pages(ctx context.Context, f func(*ListModulesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AppsModulesPatchCall ¶
type AppsModulesPatchCall struct {
// contains filtered or unexported fields
}
func (*AppsModulesPatchCall) Context ¶
func (c *AppsModulesPatchCall) Context(ctx context.Context) *AppsModulesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AppsModulesPatchCall) Do ¶
func (c *AppsModulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "appengine.apps.modules.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AppsModulesPatchCall) Fields ¶
func (c *AppsModulesPatchCall) Fields(s ...googleapi.Field) *AppsModulesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AppsModulesPatchCall) Mask ¶
func (c *AppsModulesPatchCall) Mask(mask string) *AppsModulesPatchCall
Mask sets the optional parameter "mask": Standard field mask for the set of fields to be updated.
func (*AppsModulesPatchCall) MigrateTraffic ¶
func (c *AppsModulesPatchCall) MigrateTraffic(migrateTraffic bool) *AppsModulesPatchCall
MigrateTraffic sets the optional parameter "migrateTraffic": Whether to use Traffic Migration to shift traffic gradually. Traffic can only be migrated from a single version to another single version.
type AppsModulesService ¶
type AppsModulesService struct { Versions *AppsModulesVersionsService // contains filtered or unexported fields }
func NewAppsModulesService ¶
func NewAppsModulesService(s *Service) *AppsModulesService
func (*AppsModulesService) Delete ¶
func (r *AppsModulesService) Delete(appsId string, modulesId string) *AppsModulesDeleteCall
Delete: Deletes a module and all enclosed versions.
func (*AppsModulesService) Get ¶
func (r *AppsModulesService) Get(appsId string, modulesId string) *AppsModulesGetCall
Get: Gets the current configuration of the module.
func (*AppsModulesService) List ¶
func (r *AppsModulesService) List(appsId string) *AppsModulesListCall
List: Lists all the modules in the application.
func (*AppsModulesService) Patch ¶
func (r *AppsModulesService) Patch(appsId string, modulesId string, module *Module) *AppsModulesPatchCall
Patch: Updates the configuration of the specified module.
type AppsModulesVersionsCreateCall ¶
type AppsModulesVersionsCreateCall struct {
// contains filtered or unexported fields
}
func (*AppsModulesVersionsCreateCall) Context ¶
func (c *AppsModulesVersionsCreateCall) Context(ctx context.Context) *AppsModulesVersionsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AppsModulesVersionsCreateCall) Do ¶
func (c *AppsModulesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "appengine.apps.modules.versions.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AppsModulesVersionsCreateCall) Fields ¶
func (c *AppsModulesVersionsCreateCall) Fields(s ...googleapi.Field) *AppsModulesVersionsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type AppsModulesVersionsDeleteCall ¶
type AppsModulesVersionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*AppsModulesVersionsDeleteCall) Context ¶
func (c *AppsModulesVersionsDeleteCall) Context(ctx context.Context) *AppsModulesVersionsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AppsModulesVersionsDeleteCall) Do ¶
func (c *AppsModulesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "appengine.apps.modules.versions.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AppsModulesVersionsDeleteCall) Fields ¶
func (c *AppsModulesVersionsDeleteCall) Fields(s ...googleapi.Field) *AppsModulesVersionsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type AppsModulesVersionsGetCall ¶
type AppsModulesVersionsGetCall struct {
// contains filtered or unexported fields
}
func (*AppsModulesVersionsGetCall) Context ¶
func (c *AppsModulesVersionsGetCall) Context(ctx context.Context) *AppsModulesVersionsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AppsModulesVersionsGetCall) Do ¶
func (c *AppsModulesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, error)
Do executes the "appengine.apps.modules.versions.get" call. Exactly one of *Version or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Version.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AppsModulesVersionsGetCall) Fields ¶
func (c *AppsModulesVersionsGetCall) Fields(s ...googleapi.Field) *AppsModulesVersionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AppsModulesVersionsGetCall) IfNoneMatch ¶
func (c *AppsModulesVersionsGetCall) IfNoneMatch(entityTag string) *AppsModulesVersionsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*AppsModulesVersionsGetCall) View ¶
func (c *AppsModulesVersionsGetCall) View(view string) *AppsModulesVersionsGetCall
View sets the optional parameter "view": Controls the set of fields returned in the `Get` response.
Possible values:
"BASIC" "FULL"
type AppsModulesVersionsListCall ¶
type AppsModulesVersionsListCall struct {
// contains filtered or unexported fields
}
func (*AppsModulesVersionsListCall) Context ¶
func (c *AppsModulesVersionsListCall) Context(ctx context.Context) *AppsModulesVersionsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AppsModulesVersionsListCall) Do ¶
func (c *AppsModulesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVersionsResponse, error)
Do executes the "appengine.apps.modules.versions.list" call. Exactly one of *ListVersionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListVersionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AppsModulesVersionsListCall) Fields ¶
func (c *AppsModulesVersionsListCall) Fields(s ...googleapi.Field) *AppsModulesVersionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AppsModulesVersionsListCall) IfNoneMatch ¶
func (c *AppsModulesVersionsListCall) IfNoneMatch(entityTag string) *AppsModulesVersionsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*AppsModulesVersionsListCall) PageSize ¶
func (c *AppsModulesVersionsListCall) PageSize(pageSize int64) *AppsModulesVersionsListCall
PageSize sets the optional parameter "pageSize": Maximum results to return per page.
func (*AppsModulesVersionsListCall) PageToken ¶
func (c *AppsModulesVersionsListCall) PageToken(pageToken string) *AppsModulesVersionsListCall
PageToken sets the optional parameter "pageToken": Continuation token for fetching the next page of results.
func (*AppsModulesVersionsListCall) Pages ¶
func (c *AppsModulesVersionsListCall) Pages(ctx context.Context, f func(*ListVersionsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func (*AppsModulesVersionsListCall) View ¶
func (c *AppsModulesVersionsListCall) View(view string) *AppsModulesVersionsListCall
View sets the optional parameter "view": Controls the set of fields returned in the `List` response.
Possible values:
"BASIC" "FULL"
type AppsModulesVersionsService ¶
type AppsModulesVersionsService struct {
// contains filtered or unexported fields
}
func NewAppsModulesVersionsService ¶
func NewAppsModulesVersionsService(s *Service) *AppsModulesVersionsService
func (*AppsModulesVersionsService) Create ¶
func (r *AppsModulesVersionsService) Create(appsId string, modulesId string, version *Version) *AppsModulesVersionsCreateCall
Create: Deploys new code and resource files to a version.
func (*AppsModulesVersionsService) Delete ¶
func (r *AppsModulesVersionsService) Delete(appsId string, modulesId string, versionsId string) *AppsModulesVersionsDeleteCall
Delete: Deletes an existing version.
func (*AppsModulesVersionsService) Get ¶
func (r *AppsModulesVersionsService) Get(appsId string, modulesId string, versionsId string) *AppsModulesVersionsGetCall
Get: Gets application deployment information.
func (*AppsModulesVersionsService) List ¶
func (r *AppsModulesVersionsService) List(appsId string, modulesId string) *AppsModulesVersionsListCall
List: Lists the versions of a module.
type AppsOperationsGetCall ¶
type AppsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*AppsOperationsGetCall) Context ¶
func (c *AppsOperationsGetCall) Context(ctx context.Context) *AppsOperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AppsOperationsGetCall) Do ¶
func (c *AppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "appengine.apps.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AppsOperationsGetCall) Fields ¶
func (c *AppsOperationsGetCall) Fields(s ...googleapi.Field) *AppsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AppsOperationsGetCall) IfNoneMatch ¶
func (c *AppsOperationsGetCall) IfNoneMatch(entityTag string) *AppsOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type AppsOperationsListCall ¶
type AppsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*AppsOperationsListCall) Context ¶
func (c *AppsOperationsListCall) Context(ctx context.Context) *AppsOperationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AppsOperationsListCall) Do ¶
func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
Do executes the "appengine.apps.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AppsOperationsListCall) Fields ¶
func (c *AppsOperationsListCall) Fields(s ...googleapi.Field) *AppsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AppsOperationsListCall) Filter ¶
func (c *AppsOperationsListCall) Filter(filter string) *AppsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*AppsOperationsListCall) IfNoneMatch ¶
func (c *AppsOperationsListCall) IfNoneMatch(entityTag string) *AppsOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*AppsOperationsListCall) PageSize ¶
func (c *AppsOperationsListCall) PageSize(pageSize int64) *AppsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*AppsOperationsListCall) PageToken ¶
func (c *AppsOperationsListCall) PageToken(pageToken string) *AppsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*AppsOperationsListCall) Pages ¶
func (c *AppsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AppsOperationsService ¶
type AppsOperationsService struct {
// contains filtered or unexported fields
}
func NewAppsOperationsService ¶
func NewAppsOperationsService(s *Service) *AppsOperationsService
func (*AppsOperationsService) Get ¶
func (r *AppsOperationsService) Get(appsId string, operationsId string) *AppsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
func (*AppsOperationsService) List ¶
func (r *AppsOperationsService) List(appsId string) *AppsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding below allows API services to override the binding to use different resource name schemes, such as `users/*/operations`.
type AppsService ¶
type AppsService struct { Modules *AppsModulesService Operations *AppsOperationsService // contains filtered or unexported fields }
func NewAppsService ¶
func NewAppsService(s *Service) *AppsService
func (*AppsService) Get ¶
func (r *AppsService) Get(appsId string) *AppsGetCall
Get: Gets information about an application.
type AutomaticScaling ¶
type AutomaticScaling struct { // CoolDownPeriod: The amount of time that the // [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) // should wait between changes to the number of virtual machines. // Applies only to the VM runtime. CoolDownPeriod string `json:"coolDownPeriod,omitempty"` // CpuUtilization: Target scaling by CPU usage. CpuUtilization *CpuUtilization `json:"cpuUtilization,omitempty"` // DiskUtilization: Target scaling by disk usage. DiskUtilization *DiskUtilization `json:"diskUtilization,omitempty"` // MaxConcurrentRequests: The number of concurrent requests an automatic // scaling instance can accept before the scheduler spawns a new // instance. Default value is chosen based on the runtime. MaxConcurrentRequests int64 `json:"maxConcurrentRequests,omitempty"` // MaxIdleInstances: The maximum number of idle instances that App // Engine should maintain for this version. MaxIdleInstances int64 `json:"maxIdleInstances,omitempty"` // MaxPendingLatency: The maximum amount of time that App Engine should // allow a request to wait in the pending queue before starting a new // instance to handle it. MaxPendingLatency string `json:"maxPendingLatency,omitempty"` // MaxTotalInstances: Max number of instances that App Engine should // start to handle requests. MaxTotalInstances int64 `json:"maxTotalInstances,omitempty"` // MinIdleInstances: The minimum number of idle instances that App // Engine should maintain for this version. Only applies to the default // version of a module, since other versions are not expected to receive // significant traffic. MinIdleInstances int64 `json:"minIdleInstances,omitempty"` // MinPendingLatency: The minimum amount of time that App Engine should // allow a request to wait in the pending queue before starting a new // instance to handle it. MinPendingLatency string `json:"minPendingLatency,omitempty"` // MinTotalInstances: Minimum number of instances that App Engine should // maintain. MinTotalInstances int64 `json:"minTotalInstances,omitempty"` // NetworkUtilization: Target scaling by network usage. NetworkUtilization *NetworkUtilization `json:"networkUtilization,omitempty"` // RequestUtilization: Target scaling by request utilization. RequestUtilization *RequestUtilization `json:"requestUtilization,omitempty"` // ForceSendFields is a list of field names (e.g. "CoolDownPeriod") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
AutomaticScaling: Automatic scaling is the scaling policy that App Engine has used since its inception. It is based on request rate, response latencies, and other application metrics.
func (*AutomaticScaling) MarshalJSON ¶
func (s *AutomaticScaling) MarshalJSON() ([]byte, error)
type BasicScaling ¶
type BasicScaling struct { // IdleTimeout: The instance will be shut down this amount of time after // receiving its last request. IdleTimeout string `json:"idleTimeout,omitempty"` // MaxInstances: The maximum number of instances for App Engine to // create for this version. MaxInstances int64 `json:"maxInstances,omitempty"` // ForceSendFields is a list of field names (e.g. "IdleTimeout") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
BasicScaling: A module 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) MarshalJSON ¶
func (s *BasicScaling) MarshalJSON() ([]byte, error)
type ContainerInfo ¶
type ContainerInfo struct { // Image: Reference to a hosted container image. Must be a URI to a // resource in a Docker repository. Must be fully qualified, including // tag or digest. e.g. gcr.io/my-project/image:tag or // gcr.io/my-project/image@digest Image string `json:"image,omitempty"` // ForceSendFields is a list of field names (e.g. "Image") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ContainerInfo: A Docker (container) image which should be used to start the application.
func (*ContainerInfo) MarshalJSON ¶
func (s *ContainerInfo) MarshalJSON() ([]byte, error)
type CpuUtilization ¶
type CpuUtilization struct { // AggregationWindowLength: The period of time over which CPU // utilization is calculated. AggregationWindowLength string `json:"aggregationWindowLength,omitempty"` // TargetUtilization: Target (0-1) CPU utilization ratio to maintain // when scaling. TargetUtilization float64 `json:"targetUtilization,omitempty"` // ForceSendFields is a list of field names (e.g. // "AggregationWindowLength") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` }
CpuUtilization: Target scaling by CPU usage.
func (*CpuUtilization) MarshalJSON ¶
func (s *CpuUtilization) MarshalJSON() ([]byte, error)
type Deployment ¶
type Deployment struct { // Container: If supplied, a docker (container) image which should be // used to start the application. Only applicable to the 'vm' runtime. Container *ContainerInfo `json:"container,omitempty"` // Files: A manifest of files stored in Google Cloud Storage which // should be included as part of this application. All files must be // readable using the credentials supplied with this call. Files map[string]FileInfo `json:"files,omitempty"` // SourceReferences: The origin of the source code for this deployment. // There can be more than one source reference per Version if source // code is distributed among multiple repositories. SourceReferences []*SourceReference `json:"sourceReferences,omitempty"` // ForceSendFields is a list of field names (e.g. "Container") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Deployment: Code and application artifacts used to deploy a version to App Engine.
func (*Deployment) MarshalJSON ¶
func (s *Deployment) MarshalJSON() ([]byte, error)
type DiskUtilization ¶
type DiskUtilization struct { // TargetReadBytesPerSec: Target bytes per second read. TargetReadBytesPerSec int64 `json:"targetReadBytesPerSec,omitempty"` // TargetReadOpsPerSec: Target ops per second read. TargetReadOpsPerSec int64 `json:"targetReadOpsPerSec,omitempty"` // TargetWriteBytesPerSec: Target bytes per second written. TargetWriteBytesPerSec int64 `json:"targetWriteBytesPerSec,omitempty"` // TargetWriteOpsPerSec: Target ops per second written. TargetWriteOpsPerSec int64 `json:"targetWriteOpsPerSec,omitempty"` // ForceSendFields is a list of field names (e.g. // "TargetReadBytesPerSec") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` }
DiskUtilization: Target scaling by disk usage (for VM runtimes only).
func (*DiskUtilization) MarshalJSON ¶
func (s *DiskUtilization) MarshalJSON() ([]byte, error)
type ErrorHandler ¶
type ErrorHandler struct { // ErrorCode: The error condition this handler applies to. // // Possible values: // "ERROR_CODE_UNSPECIFIED" // "ERROR_CODE_DEFAULT" // "ERROR_CODE_OVER_QUOTA" // "ERROR_CODE_DOS_API_DENIAL" // "ERROR_CODE_TIMEOUT" ErrorCode string `json:"errorCode,omitempty"` // MimeType: MIME type of file. If unspecified, "text/html" is assumed. MimeType string `json:"mimeType,omitempty"` // StaticFile: Static file content to be served for this error. StaticFile string `json:"staticFile,omitempty"` // ForceSendFields is a list of field names (e.g. "ErrorCode") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ErrorHandler: A custom static error page to be served when an error occurs.
func (*ErrorHandler) MarshalJSON ¶
func (s *ErrorHandler) MarshalJSON() ([]byte, error)
type FileInfo ¶
type FileInfo struct { // MimeType: The MIME type of the file; if unspecified, the value from // Google Cloud Storage will be used. MimeType string `json:"mimeType,omitempty"` // Sha1Sum: The SHA1 (160 bits) hash of the file in hex. Sha1Sum string `json:"sha1Sum,omitempty"` // SourceUrl: The 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/\/\'. SourceUrl string `json:"sourceUrl,omitempty"` // ForceSendFields is a list of field names (e.g. "MimeType") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
FileInfo: A single source file which is part of the application to be deployed.
func (*FileInfo) MarshalJSON ¶
type HealthCheck ¶
type HealthCheck struct { // CheckInterval: The interval between health checks. CheckInterval string `json:"checkInterval,omitempty"` // DisableHealthCheck: Whether to explicitly disable health checks for // this instance. DisableHealthCheck bool `json:"disableHealthCheck,omitempty"` // HealthyThreshold: The number of consecutive successful health checks // before receiving traffic. HealthyThreshold int64 `json:"healthyThreshold,omitempty"` // Host: The host header to send when performing an HTTP health check // (e.g. myapp.appspot.com) Host string `json:"host,omitempty"` // RestartThreshold: The number of consecutive failed health checks // before an instance is restarted. RestartThreshold int64 `json:"restartThreshold,omitempty"` // Timeout: The amount of time before the health check is considered // failed. Timeout string `json:"timeout,omitempty"` // UnhealthyThreshold: The number of consecutive failed health checks // before removing traffic. UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"` // ForceSendFields is a list of field names (e.g. "CheckInterval") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
HealthCheck: Configure health checking for the VM instances. Unhealthy VM instances will be killed and replaced with new instances.
func (*HealthCheck) MarshalJSON ¶
func (s *HealthCheck) MarshalJSON() ([]byte, error)
type Library ¶
type Library struct { // Name: The name of the library, e.g. "PIL" or "django". Name string `json:"name,omitempty"` // Version: The version of the library to select, or "latest". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Library: A Python runtime third-party library required by the application.
func (*Library) MarshalJSON ¶
type ListModulesResponse ¶
type ListModulesResponse struct { // Modules: The modules belonging to the requested application. Modules []*Module `json:"modules,omitempty"` // NextPageToken: Continuation token for fetching the next page of // results. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Modules") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ListModulesResponse: Response message for `Modules.ListModules`.
func (*ListModulesResponse) MarshalJSON ¶
func (s *ListModulesResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse ¶
type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // Operations: A list of operations that matches the specified filter in // the request. Operations []*Operation `json:"operations,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ListOperationsResponse: The response message for Operations.ListOperations.
func (*ListOperationsResponse) MarshalJSON ¶
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error)
type ListVersionsResponse ¶
type ListVersionsResponse struct { // NextPageToken: Continuation token for fetching the next page of // results. NextPageToken string `json:"nextPageToken,omitempty"` // Versions: The versions belonging to the requested application module. Versions []*Version `json:"versions,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ListVersionsResponse: Response message for `Versions.ListVersions`.
func (*ListVersionsResponse) MarshalJSON ¶
func (s *ListVersionsResponse) MarshalJSON() ([]byte, error)
type ManualScaling ¶
type ManualScaling struct { // Instances: The number of instances to assign to the module 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 int64 `json:"instances,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ManualScaling: A module with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
func (*ManualScaling) MarshalJSON ¶
func (s *ManualScaling) MarshalJSON() ([]byte, error)
type Module ¶
type Module struct { // Id: The relative name/path of the module within the application. // Example: "default" @OutputOnly Id string `json:"id,omitempty"` // Name: The full path to the Module resource in the API. Example: // "apps/myapp/modules/default" @OutputOnly Name string `json:"name,omitempty"` // Split: A mapping that defines fractional HTTP traffic diversion to // different versions within the module. Split *TrafficSplit `json:"split,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Module: A module is a component of an application that provides a single service or configuration. A module has a collection of versions that define a specific set of code used to implement the functionality of that module.
func (*Module) MarshalJSON ¶
type Network ¶
type Network struct { // ForwardedPorts: A list of ports (or port pairs) to forward from the // VM into the app container. ForwardedPorts []string `json:"forwardedPorts,omitempty"` // InstanceTag: A tag to apply to the VM instance during creation. InstanceTag string `json:"instanceTag,omitempty"` // Name: The Google Compute Engine network where the VMs will be // created. If not specified, or empty, the network named "default" will // be used. (The short name should be specified, not the resource path.) Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "ForwardedPorts") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Network: Used to specify extra network settings (for VM runtimes only).
func (*Network) MarshalJSON ¶
type NetworkUtilization ¶
type NetworkUtilization struct { // TargetReceivedBytesPerSec: Target bytes per second received. TargetReceivedBytesPerSec int64 `json:"targetReceivedBytesPerSec,omitempty"` // TargetReceivedPacketsPerSec: Target packets per second received. TargetReceivedPacketsPerSec int64 `json:"targetReceivedPacketsPerSec,omitempty"` // TargetSentBytesPerSec: Target bytes per second sent. TargetSentBytesPerSec int64 `json:"targetSentBytesPerSec,omitempty"` // TargetSentPacketsPerSec: Target packets per second sent. TargetSentPacketsPerSec int64 `json:"targetSentPacketsPerSec,omitempty"` // ForceSendFields is a list of field names (e.g. // "TargetReceivedBytesPerSec") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` }
NetworkUtilization: Target scaling by network usage (for VM runtimes only).
func (*NetworkUtilization) MarshalJSON ¶
func (s *NetworkUtilization) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct { // Done: If the value is `false`, it means the operation is still in // progress. If true, the operation is completed, and either `error` or // `response` is available. Done bool `json:"done,omitempty"` // Error: The error result of the operation in case of failure. Error *Status `json:"error,omitempty"` // Metadata: Service-specific metadata associated with the operation. It // typically contains progress information and common metadata such as // create time. Some services might not provide such metadata. Any // method that returns a long-running operation should document the // metadata type, if any. Metadata OperationMetadata `json:"metadata,omitempty"` // Name: The server-assigned name, which is only unique within the same // service that originally returns it. If you use the default HTTP // mapping above, the `name` should have the format of // `operations/some/unique/name`. Name string `json:"name,omitempty"` // Response: The normal response of the operation in case of success. If // the original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type // `XxxResponse`, where `Xxx` is the original method name. For example, // if the original method name is `TakeSnapshot()`, the inferred // response type is `TakeSnapshotResponse`. Response OperationResponse `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Done") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Operation: This resource represents a long-running operation that is the result of a network API call.
func (*Operation) MarshalJSON ¶
type OperationMetadata ¶
type OperationMetadata interface{}
type OperationMetadata1 ¶
type OperationMetadata1 struct { // EndTime: Timestamp that this operation was completed. (Not present if // the operation is still in progress.) @OutputOnly EndTime string `json:"endTime,omitempty"` // InsertTime: Timestamp that this operation was received. @OutputOnly InsertTime string `json:"insertTime,omitempty"` // Method: API method name that initiated the operation. Example: // "google.appengine.v1beta4.Version.CreateVersion". @OutputOnly Method string `json:"method,omitempty"` // OperationType: The type of the operation (deprecated, use method // field instead). Example: "create_version". @OutputOnly OperationType string `json:"operationType,omitempty"` // Target: Resource that this operation is acting on. Example: // "apps/myapp/modules/default". @OutputOnly Target string `json:"target,omitempty"` // User: The user who requested this operation. @OutputOnly User string `json:"user,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
OperationMetadata1: Metadata for the given google.longrunning.Operation.
func (*OperationMetadata1) MarshalJSON ¶
func (s *OperationMetadata1) MarshalJSON() ([]byte, error)
type OperationMetadataV1Beta5 ¶
type OperationMetadataV1Beta5 struct { // EndTime: Timestamp that this operation was completed. (Not present if // the operation is still in progress.) @OutputOnly EndTime string `json:"endTime,omitempty"` // InsertTime: Timestamp that this operation was received. @OutputOnly InsertTime string `json:"insertTime,omitempty"` // Method: API method name that initiated the operation. Example: // "google.appengine.v1beta5.Version.CreateVersion". @OutputOnly Method string `json:"method,omitempty"` // Target: Resource that this operation is acting on. Example: // "apps/myapp/services/default". @OutputOnly Target string `json:"target,omitempty"` // User: The user who requested this operation. @OutputOnly User string `json:"user,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
OperationMetadataV1Beta5: Metadata for the given google.longrunning.Operation.
func (*OperationMetadataV1Beta5) MarshalJSON ¶
func (s *OperationMetadataV1Beta5) MarshalJSON() ([]byte, error)
type OperationResponse ¶
type OperationResponse interface{}
type RequestUtilization ¶
type RequestUtilization struct { // TargetConcurrentRequests: Target number of concurrent requests. TargetConcurrentRequests int64 `json:"targetConcurrentRequests,omitempty"` // TargetRequestCountPerSec: Target requests per second. TargetRequestCountPerSec int64 `json:"targetRequestCountPerSec,omitempty"` // ForceSendFields is a list of field names (e.g. // "TargetConcurrentRequests") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` }
RequestUtilization: Target scaling by request utilization (for VM runtimes only).
func (*RequestUtilization) MarshalJSON ¶
func (s *RequestUtilization) MarshalJSON() ([]byte, error)
type Resources ¶
type Resources struct { // Cpu: How many CPU cores an app version needs. Cpu float64 `json:"cpu,omitempty"` // DiskGb: How much disk size, in GB, an app version needs. DiskGb float64 `json:"diskGb,omitempty"` // MemoryGb: How much memory, in GB, an app version needs. MemoryGb float64 `json:"memoryGb,omitempty"` // ForceSendFields is a list of field names (e.g. "Cpu") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Resources: Used to specify how many machine resources an app version needs.
func (*Resources) MarshalJSON ¶
type ScriptHandler ¶
type ScriptHandler struct { // ScriptPath: Specifies the path to the script from the application // root directory. ScriptPath string `json:"scriptPath,omitempty"` // ForceSendFields is a list of field names (e.g. "ScriptPath") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ScriptHandler: Executes a script to handle the request that matches the URL pattern.
func (*ScriptHandler) MarshalJSON ¶
func (s *ScriptHandler) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Apps *AppsService // contains filtered or unexported fields }
type SourceReference ¶
type SourceReference struct { // Repository: Optional. A URI string identifying the repository. // Example: "https://source.developers.google.com/p/app-123/r/default" Repository string `json:"repository,omitempty"` // RevisionId: The canonical (and persistent) identifier of the deployed // revision, i.e. any kind of aliases including tags or branch names are // not allowed. Example (git): // "2198322f89e0bb2e25021667c2ed489d1fd34e6b" RevisionId string `json:"revisionId,omitempty"` // ForceSendFields is a list of field names (e.g. "Repository") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
SourceReference: A reference to a particular snapshot of the source tree used to build and deploy the application.
func (*SourceReference) MarshalJSON ¶
func (s *SourceReference) MarshalJSON() ([]byte, error)
type StaticDirectoryHandler ¶
type StaticDirectoryHandler struct { // ApplicationReadable: 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 an application. If this field is set to // true, the files are also uploaded as code data so your application // can read them. Both uploads are charged against your code and static // data storage resource quotas. ApplicationReadable bool `json:"applicationReadable,omitempty"` // Directory: The path to the directory containing the static files, // from the application root directory. Everything after the end of the // matched url pattern is appended to static_dir to form the full path // to the requested file. Directory string `json:"directory,omitempty"` // Expiration: The length of time a static file served by this handler // ought to be cached by web proxies and browsers. Expiration string `json:"expiration,omitempty"` // HttpHeaders: HTTP headers to use for all responses from these URLs. HttpHeaders map[string]string `json:"httpHeaders,omitempty"` // MimeType: If specified, all files served by this handler will be // served using the specified MIME type. If not specified, the MIME type // for a file will be derived from the file's filename extension. MimeType string `json:"mimeType,omitempty"` // RequireMatchingFile: If true, this UrlMap entry does not match the // request unless the file referenced by the handler also exists. If no // such file exists, processing will continue with the next UrlMap that // matches the requested URL. RequireMatchingFile bool `json:"requireMatchingFile,omitempty"` // ForceSendFields is a list of field names (e.g. "ApplicationReadable") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
StaticDirectoryHandler: Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static directory handlers make it easy to serve the entire contents of a directory as static files.
func (*StaticDirectoryHandler) MarshalJSON ¶
func (s *StaticDirectoryHandler) MarshalJSON() ([]byte, error)
type StaticFilesHandler ¶
type StaticFilesHandler struct { // ApplicationReadable: 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 an application. If this field is set to // true, the files are also uploaded as code data so your application // can read them. Both uploads are charged against your code and static // data storage resource quotas. ApplicationReadable bool `json:"applicationReadable,omitempty"` // Expiration: The length of time a static file served by this handler // ought to be cached by web proxies and browsers. Expiration string `json:"expiration,omitempty"` // HttpHeaders: HTTP headers to use for all responses from these URLs. HttpHeaders map[string]string `json:"httpHeaders,omitempty"` // MimeType: If specified, all files served by this handler will be // served using the specified MIME type. If not specified, the MIME type // for a file will be derived from the file's filename extension. MimeType string `json:"mimeType,omitempty"` // Path: The 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 `json:"path,omitempty"` // RequireMatchingFile: If true, this UrlMap entry does not match the // request unless the file referenced by the handler also exists. If no // such file exists, processing will continue with the next UrlMap that // matches the requested URL. RequireMatchingFile bool `json:"requireMatchingFile,omitempty"` // UploadPathRegex: A regular expression that matches the file paths for // all files that will be referenced by this handler. UploadPathRegex string `json:"uploadPathRegex,omitempty"` // ForceSendFields is a list of field names (e.g. "ApplicationReadable") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
StaticFilesHandler: 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) MarshalJSON ¶
func (s *StaticFilesHandler) MarshalJSON() ([]byte, error)
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There will // be a common set of message types for APIs to use. Details []StatusDetails `json:"details,omitempty"` // Message: A developer-facing error message, which should be in // English. Any user-facing error message should be localized and sent // in the google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). The error model is designed to be: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` which can be used for common error conditions. # Language mapping The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Example uses of this error model include: - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response. - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons.
func (*Status) MarshalJSON ¶
type StatusDetails ¶
type StatusDetails interface{}
type TrafficSplit ¶
type TrafficSplit struct { // Allocations: Mapping from module version IDs within the module to // fractional (0.000, 1] allocations of traffic for that version. Each // version may only be specified once, but some versions in the module // may not have any traffic allocation. Modules that have traffic // allocated in this field may not be deleted until the module is // deleted, or their traffic allocation is removed. Allocations must sum // to 1. Supports precision up to two decimal places for IP-based splits // and up to three decimal places for cookie-based splits. Allocations *TrafficSplitAllocations `json:"allocations,omitempty"` // ShardBy: Which mechanism should be used as a selector when choosing a // version to send a request to. The traffic selection algorithm will be // stable for either type until allocations are changed. // // Possible values: // "UNSPECIFIED" // "COOKIE" // "IP" ShardBy string `json:"shardBy,omitempty"` // ForceSendFields is a list of field names (e.g. "Allocations") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
TrafficSplit: Configuration for traffic splitting for versions within a single module. Traffic splitting allows traffic directed to the module to be assigned to one of several versions in a fractional way, enabling experiments and canarying new builds, for example.
func (*TrafficSplit) MarshalJSON ¶
func (s *TrafficSplit) MarshalJSON() ([]byte, error)
type TrafficSplitAllocations ¶
type TrafficSplitAllocations struct { }
TrafficSplitAllocations: Mapping from module version IDs within the module to fractional (0.000, 1] allocations of traffic for that version. Each version may only be specified once, but some versions in the module may not have any traffic allocation. Modules that have traffic allocated in this field may not be deleted until the module is deleted, or their traffic allocation is removed. Allocations must sum to 1. Supports precision up to two decimal places for IP-based splits and up to three decimal places for cookie-based splits.
type UrlDispatchRule ¶
type UrlDispatchRule struct { // Domain: The domain name to match on. Supports '*' (glob) wildcarding // on the left-hand side of a '.'. If empty, all domains will be matched // (the same as '*'). Domain string `json:"domain,omitempty"` // Module: The resource id of a Module in this application that should // service the matched request. The Module must already exist. Example: // "default". Module string `json:"module,omitempty"` // Path: The pathname within the host. This must start with a '/'. A // single '*' (glob) 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 `json:"path,omitempty"` // ForceSendFields is a list of field names (e.g. "Domain") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
UrlDispatchRule: Rules to match an HTTP request and dispatch that request to a module.
func (*UrlDispatchRule) MarshalJSON ¶
func (s *UrlDispatchRule) MarshalJSON() ([]byte, error)
type UrlMap ¶
type UrlMap struct { // ApiEndpoint: Use API Endpoints to handle requests. ApiEndpoint *ApiEndpointHandler `json:"apiEndpoint,omitempty"` // AuthFailAction: For users not logged in, how to handle access to // resources with required login. Defaults to "redirect". // // Possible values: // "AUTH_FAIL_ACTION_UNSPECIFIED" // "AUTH_FAIL_ACTION_REDIRECT" // "AUTH_FAIL_ACTION_UNAUTHORIZED" AuthFailAction string `json:"authFailAction,omitempty"` // Login: What level of login is required to access this resource. // // Possible values: // "LOGIN_UNSPECIFIED" // "LOGIN_OPTIONAL" // "LOGIN_ADMIN" // "LOGIN_REQUIRED" Login string `json:"login,omitempty"` // RedirectHttpResponseCode: `30x` code to use when performing redirects // for the `secure` field. A `302` is used by default. // // Possible values: // "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" // "REDIRECT_HTTP_RESPONSE_CODE_301" // "REDIRECT_HTTP_RESPONSE_CODE_302" // "REDIRECT_HTTP_RESPONSE_CODE_303" // "REDIRECT_HTTP_RESPONSE_CODE_307" RedirectHttpResponseCode string `json:"redirectHttpResponseCode,omitempty"` // Script: Executes a script to handle the request that matches the URL // pattern. Script *ScriptHandler `json:"script,omitempty"` // SecurityLevel: Configures whether security (HTTPS) should be enforced // for this URL. // // Possible values: // "SECURE_UNSPECIFIED" // "SECURE_DEFAULT" // "SECURE_NEVER" // "SECURE_OPTIONAL" // "SECURE_ALWAYS" SecurityLevel string `json:"securityLevel,omitempty"` // StaticDirectory: Serves the entire contents of a directory as static // files. This attribute is deprecated. You can mimic the behavior of // static directories using static files. StaticDirectory *StaticDirectoryHandler `json:"staticDirectory,omitempty"` // StaticFiles: Returns the contents of a file, such as an image, as the // response. StaticFiles *StaticFilesHandler `json:"staticFiles,omitempty"` // UrlRegex: A URL prefix. This value uses regular expression syntax // (and so regexp special characters must be escaped), but it 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. This is always required. UrlRegex string `json:"urlRegex,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiEndpoint") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
UrlMap: A URL pattern and description of how it should be handled. App Engine can handle URLs by executing application code, or by serving static files uploaded with the code, such as images, CSS or JavaScript.
func (*UrlMap) MarshalJSON ¶
type Version ¶
type Version struct { // ApiConfig: Serving configuration for Google Cloud Endpoints. Only // returned in `GET` requests if `view=FULL` is set. May only be set on // create requests; once created, is immutable. ApiConfig *ApiConfigHandler `json:"apiConfig,omitempty"` // AutomaticScaling: Automatic scaling is the scaling policy that App // Engine has used since its inception. It is based on request rate, // response latencies, and other application metrics. AutomaticScaling *AutomaticScaling `json:"automaticScaling,omitempty"` // BasicScaling: A module 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. BasicScaling *BasicScaling `json:"basicScaling,omitempty"` // BetaSettings: Beta settings supplied to the application via metadata. BetaSettings map[string]string `json:"betaSettings,omitempty"` // CreationTime: Creation time of this version. This will be between the // start and end times of the operation that creates this version. // @OutputOnly CreationTime string `json:"creationTime,omitempty"` // DefaultExpiration: The length of time a static file served by a // static file handler ought to be cached by web proxies and browsers, // if the handler does not specify its own expiration. Only returned in // `GET` requests if `view=FULL` is set. May only be set on create // requests; once created, is immutable. DefaultExpiration string `json:"defaultExpiration,omitempty"` // Deployer: The email address of the user who created this version. // @OutputOnly Deployer string `json:"deployer,omitempty"` // Deployment: Code and application artifacts that make up this version. // Only returned in `GET` requests if `view=FULL` is set. May only be // set on create requests; once created, is immutable. Deployment *Deployment `json:"deployment,omitempty"` // Env: The App Engine execution environment to use for this version. // Default: "1" Env string `json:"env,omitempty"` // EnvVariables: Environment variables made available to the // application. Only returned in `GET` requests if `view=FULL` is set. // May only be set on create requests; once created, is immutable. EnvVariables map[string]string `json:"envVariables,omitempty"` // ErrorHandlers: Custom static error pages instead of these generic // error pages, (limit 10 KB/page) Only returned in `GET` requests if // `view=FULL` is set. May only be set on create requests; once created, // is immutable. ErrorHandlers []*ErrorHandler `json:"errorHandlers,omitempty"` // Handlers: An ordered list of URL Matching patterns that should be // applied to incoming requests. The first matching URL consumes the // request, and subsequent handlers are not attempted. Only returned in // `GET` requests if `view=FULL` is set. May only be set on create // requests; once created, is immutable. Handlers []*UrlMap `json:"handlers,omitempty"` // HealthCheck: Configure health checking for the VM instances. // Unhealthy VM instances will be stopped and replaced with new // instances. Only returned in `GET` requests if `view=FULL` is set. May // only be set on create requests; once created, is immutable. HealthCheck *HealthCheck `json:"healthCheck,omitempty"` // Id: The relative name/path of the Version within the module. Example: // "v1". Version specifiers can contain lowercase letters, digits, and // hyphens. It cannot begin with the prefix `ah-` and the names // `default` and `latest` are reserved and cannot be used. Id string `json:"id,omitempty"` // InboundServices: Before an application can receive email or XMPP // messages, the application must be configured to enable the service. // // Possible values: // "INBOUND_SERVICE_UNSPECIFIED" - Not specified. // "INBOUND_SERVICE_MAIL" - Allows an application to receive mail. // "INBOUND_SERVICE_MAIL_BOUNCE" - Allows an application receive email // bound notifications. // "INBOUND_SERVICE_XMPP_ERROR" - Allows an application to receive // error stanzas. // "INBOUND_SERVICE_XMPP_MESSAGE" - Allows an application to receive // instant messages. // "INBOUND_SERVICE_XMPP_SUBSCRIBE" - Allows an application to receive // user subscription POSTs. // "INBOUND_SERVICE_XMPP_PRESENCE" - Allows an application to receive // a user's chat presence. // "INBOUND_SERVICE_CHANNEL_PRESENCE" - Registers an application for // notifications when a client connects or disconnects from a channel. // "INBOUND_SERVICE_WARMUP" - Enables warmup requests. InboundServices []string `json:"inboundServices,omitempty"` // InstanceClass: The frontend instance class to use to run this app. // Valid values are `[F1, F2, F4, F4_1G]`. Default: "F1" InstanceClass string `json:"instanceClass,omitempty"` // Libraries: Configuration for Python runtime third-party libraries // required by the application. Only returned in `GET` requests if // `view=FULL` is set. May only be set on create requests; once created, // is immutable. Libraries []*Library `json:"libraries,omitempty"` // ManualScaling: A module with manual scaling runs continuously, // allowing you to perform complex initialization and rely on the state // of its memory over time. ManualScaling *ManualScaling `json:"manualScaling,omitempty"` // Name: The full path to the Version resource in the API. Example: // "apps/myapp/modules/default/versions/v1". @OutputOnly Name string `json:"name,omitempty"` // Network: Used to specify extra network settings (for VM runtimes // only). Network *Network `json:"network,omitempty"` // NobuildFilesRegex: Go only. Files that match this pattern will not be // built into the app. May only be set on create requests. NobuildFilesRegex string `json:"nobuildFilesRegex,omitempty"` // Resources: Used to specify how many machine resources an app version // needs (for VM runtimes only). Resources *Resources `json:"resources,omitempty"` // Runtime: The desired runtime. Values can include python27, java7, go, // etc. Runtime string `json:"runtime,omitempty"` // ServingStatus: The current serving status of this version. Only // `SERVING` versions will have instances created or billed for. If this // field is unset when a version is created, `SERVING` status will be // assumed. It is an error to explicitly set this field to // `SERVING_STATUS_UNSPECIFIED`. // // Possible values: // "SERVING_STATUS_UNSPECIFIED" // "SERVING" // "STOPPED" ServingStatus string `json:"servingStatus,omitempty"` // Threadsafe: If true, multiple requests can be dispatched to the app // at once. Threadsafe bool `json:"threadsafe,omitempty"` // Vm: Whether to deploy this app in a VM container. Vm bool `json:"vm,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ApiConfig") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Version: A Version is a specific set of source code and configuration files deployed to a module.