vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood 2018-03-19 15:51:38 +00:00
parent 940df88eb2
commit d64789528d
4309 changed files with 1327278 additions and 1001118 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
// Package appengine provides access to the Google App Engine Admin API.
// Package appengine provides access to the App Engine Admin API.
//
// See https://cloud.google.com/appengine/docs/admin-api/
//
@ -366,11 +366,11 @@ type Application struct {
// where you want to deploy your application. Example: myapp.
Id string `json:"id,omitempty"`
// LocationId: 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 USeurope-west - Western Europeus-east1 - Eastern US
// LocationId: Location from which this application runs. Application
// instances run out of the data centers in the specified location,
// which is also where all of the application's end user content is
// stored.Defaults to us-central.View the list of supported locations
// (https://cloud.google.com/appengine/docs/locations).
LocationId string `json:"locationId,omitempty"`
// Name: Full path to the Application resource in the API. Example:
@ -556,7 +556,7 @@ type AutomaticScaling struct {
MaxPendingLatency string `json:"maxPendingLatency,omitempty"`
// MaxTotalInstances: Maximum number of instances that should be started
// to handle requests.
// to handle requests for this version.
MaxTotalInstances int64 `json:"maxTotalInstances,omitempty"`
// MinIdleInstances: Minimum number of idle instances that should be
@ -568,7 +568,7 @@ type AutomaticScaling struct {
// the pending queue before starting a new instance to handle it.
MinPendingLatency string `json:"minPendingLatency,omitempty"`
// MinTotalInstances: Minimum number of instances that should be
// MinTotalInstances: Minimum number of running instances that should be
// maintained for this version.
MinTotalInstances int64 `json:"minTotalInstances,omitempty"`
@ -1910,6 +1910,10 @@ func (s *LivenessCheck) MarshalJSON() ([]byte, error) {
// Location: A resource that represents Google Cloud Platform location.
type Location struct {
// DisplayName: The friendly name for this location, typically a nearby
// city name. For example, "Tokyo".
DisplayName string `json:"displayName,omitempty"`
// Labels: Cross-service attributes for the location. For
// example
// {"cloud.googleapis.com/region": "us-east1"}
@ -1933,7 +1937,7 @@ type Location struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Labels") to
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@ -1941,10 +1945,10 @@ type Location struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Labels") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@ -1959,11 +1963,11 @@ func (s *Location) MarshalJSON() ([]byte, error) {
// LocationMetadata: Metadata for the given
// google.cloud.location.Location.
type LocationMetadata struct {
// FlexibleEnvironmentAvailable: App Engine Flexible Environment is
// FlexibleEnvironmentAvailable: App Engine flexible environment is
// available in the given location.@OutputOnly
FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
// StandardEnvironmentAvailable: App Engine Standard Environment is
// StandardEnvironmentAvailable: App Engine standard environment is
// available in the given location.@OutputOnly
StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
@ -2033,8 +2037,8 @@ type Network struct {
// App Engine flexible environment.
ForwardedPorts []string `json:"forwardedPorts,omitempty"`
// InstanceTag: Tag to apply to the VM instance during creation. for
// Only applicable in the App Engine flexible environment.
// InstanceTag: Tag to apply to the instance during creation. Only
// applicable in the App Engine flexible environment.
InstanceTag string `json:"instanceTag,omitempty"`
// Name: Google Compute Engine network where the virtual machines are
@ -2046,15 +2050,16 @@ type Network struct {
// machines are created. Specify the short name, not the resource
// path.If a subnetwork name is specified, a network name will also be
// required unless it is for the default network.
// If the network the VM instance is being created in is a Legacy
// If the network that the instance is being created in is a Legacy
// network, then the IP address is allocated from the IPv4Range.
// If the network the VM instance is being created in is an auto Subnet
// Mode Network, then only network name should be specified (not the
// subnetwork_name) and the IP address is created from the IPCidrRange
// of the subnetwork that exists in that zone for that network.
// If the network the VM instance is being created in is a custom Subnet
// Mode Network, then the subnetwork_name must be specified and the IP
// address is created from the IPCidrRange of the subnetwork.If
// If the network that the instance is being created in is an auto
// Subnet Mode Network, then only network name should be specified (not
// the subnetwork_name) and the IP address is created from the
// IPCidrRange of the subnetwork that exists in that zone for that
// network.
// If the network that the instance is being created in is a custom
// Subnet Mode Network, then the subnetwork_name must be specified and
// the IP address is created from the IPCidrRange of the subnetwork.If
// specified, the subnetwork must exist in the same region as the App
// Engine flexible environment application.
SubnetworkName string `json:"subnetworkName,omitempty"`
@ -2734,12 +2739,12 @@ func (s *SslSettings) MarshalJSON() ([]byte, error) {
// StandardSchedulerSettings: Scheduler settings for standard
// environment.
type StandardSchedulerSettings struct {
// MaxInstances: Maximum number of instances for an app version. Set to
// zero to disable max_instances configuration.
// MaxInstances: Maximum number of instances to run for this version.
// Set to zero to disable max_instances configuration.
MaxInstances int64 `json:"maxInstances,omitempty"`
// MinInstances: Minimum number of instances for an app version. Set to
// zero to disable min_instances configuration.
// MinInstances: Minimum number of instances to run for this version.
// Set to zero to disable min_instances configuration.
MinInstances int64 `json:"minInstances,omitempty"`
// TargetCpuUtilization: Target CPU utilization ratio to maintain when
@ -3193,7 +3198,7 @@ type Version struct {
// GET requests if view=FULL is set.
Handlers []*UrlMap `json:"handlers,omitempty"`
// HealthCheck: Configures health checking for VM instances. Unhealthy
// HealthCheck: Configures health checking for instances. Unhealthy
// instances are stopped and replaced with new instances. Only
// applicable in the App Engine flexible environment.Only returned in
// GET requests if view=FULL is set.
@ -3238,7 +3243,7 @@ type Version struct {
// view=FULL is set.
Libraries []*Library `json:"libraries,omitempty"`
// LivenessCheck: Configures liveness health checking for VM instances.
// LivenessCheck: Configures liveness health checking for instances.
// Unhealthy instances are stopped and replaced with new instancesOnly
// returned in GET requests if view=FULL is set.
LivenessCheck *LivenessCheck `json:"livenessCheck,omitempty"`
@ -3261,13 +3266,13 @@ type Version struct {
// GET requests if view=FULL is set.
NobuildFilesRegex string `json:"nobuildFilesRegex,omitempty"`
// ReadinessCheck: Configures readiness health checking for VM
// instances. Unhealthy instances are not put into the backend traffic
// ReadinessCheck: Configures readiness health checking for instances.
// Unhealthy instances are not put into the backend traffic
// rotation.Only returned in GET requests if view=FULL is set.
ReadinessCheck *ReadinessCheck `json:"readinessCheck,omitempty"`
// Resources: Machine resources for this version. Only applicable for VM
// runtimes.
// Resources: Machine resources for this version. Only applicable in the
// App Engine flexible environment.
Resources *Resources `json:"resources,omitempty"`
// Runtime: Desired runtime. Example: python27.
@ -3278,6 +3283,10 @@ type Version struct {
// https://cloud.google.com/appengine/docs/standard/<language>/config/appref
RuntimeApiVersion string `json:"runtimeApiVersion,omitempty"`
// RuntimeChannel: The channel of the runtime to use. Only available for
// some runtimes. Defaults to the default channel.
RuntimeChannel string `json:"runtimeChannel,omitempty"`
// ServingStatus: 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
@ -3304,8 +3313,8 @@ type Version struct {
// machine.
Vm bool `json:"vm,omitempty"`
// Zones: The choice of gce zones to use for this App Engine Flexible
// version.
// Zones: The Google Compute Engine zones that are supported by this
// version in the App Engine flexible environment.
Zones []string `json:"zones,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -3437,7 +3446,7 @@ type AppsCreateCall struct {
// (https://cloud.google.com/appengine/docs/locations) where you want
// the App Engine application located.For more information about App
// Engine applications, see Managing Projects, Applications, and Billing
// (https://cloud.google.com/appengine/docs/python/console/).
// (https://cloud.google.com/appengine/docs/standard/python/console/).
func (r *AppsService) Create(application *Application) *AppsCreateCall {
c := &AppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.application = application
@ -3527,7 +3536,7 @@ func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
}
return ret, nil
// {
// "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields:\nid - The ID of the target Cloud Platform project.\nlocation - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/python/console/).",
// "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields:\nid - The ID of the target Cloud Platform project.\nlocation - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).",
// "flatPath": "v1/apps",
// "httpMethod": "POST",
// "id": "appengine.apps.create",
@ -8763,23 +8772,23 @@ type AppsServicesVersionsPatchCall struct {
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/a
// pps.services.versions#Version.FIELDS.automatic_scaling): For Version
// resources that use automatic scaling and run in the App Engine
// Flexible environment.
// flexible environment.
// automatic_scaling.max_total_instances
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/a
// pps.services.versions#Version.FIELDS.automatic_scaling): For Version
// resources that use automatic scaling and run in the App Engine
// Flexible environment.
// flexible environment.
// automatic_scaling.cool_down_period_sec
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/a
// pps.services.versions#Version.FIELDS.automatic_scaling): For Version
// resources that use automatic scaling and run in the App Engine
// Flexible
// flexible
// environment.
// automatic_scaling.cpu_utilization.target_utilization
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/a
// pps.services.versions#Version.FIELDS.automatic_scaling): For Version
// resources that use automatic scaling and run in the App Engine
// Flexible environment.
// flexible environment.
func (r *AppsServicesVersionsService) Patch(appsId string, servicesId string, versionsId string, version *Version) *AppsServicesVersionsPatchCall {
c := &AppsServicesVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.appsId = appsId
@ -8884,7 +8893,7 @@ func (c *AppsServicesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Opera
}
return ret, nil
// {
// "description": "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:\nserving_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.\ninstance_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.\nautomatic_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.\nautomatic_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.\nautomatic_scaling.min_total_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 Flexible environment.\nautomatic_scaling.max_total_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 Flexible environment.\nautomatic_scaling.cool_down_period_sec (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 Flexible environment.\nautomatic_scaling.cpu_utilization.target_utilization (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 Flexible environment.",
// "description": "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:\nserving_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.\ninstance_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.\nautomatic_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.\nautomatic_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.\nautomatic_scaling.min_total_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 flexible environment.\nautomatic_scaling.max_total_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 flexible environment.\nautomatic_scaling.cool_down_period_sec (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 flexible environment.\nautomatic_scaling.cpu_utilization.target_utilization (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 flexible environment.",
// "flatPath": "v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}",
// "httpMethod": "PATCH",
// "id": "appengine.apps.services.versions.patch",

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
// Package appengine provides access to the Google App Engine Admin API.
// Package appengine provides access to the App Engine Admin API.
//
// See https://cloud.google.com/appengine/docs/admin-api/
//
@ -624,6 +624,10 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
// Location: A resource that represents Google Cloud Platform location.
type Location struct {
// DisplayName: The friendly name for this location, typically a nearby
// city name. For example, "Tokyo".
DisplayName string `json:"displayName,omitempty"`
// Labels: Cross-service attributes for the location. For
// example
// {"cloud.googleapis.com/region": "us-east1"}
@ -647,7 +651,7 @@ type Location struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Labels") to
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@ -655,10 +659,10 @@ type Location struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Labels") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@ -673,11 +677,11 @@ func (s *Location) MarshalJSON() ([]byte, error) {
// LocationMetadata: Metadata for the given
// google.cloud.location.Location.
type LocationMetadata struct {
// FlexibleEnvironmentAvailable: App Engine Flexible Environment is
// FlexibleEnvironmentAvailable: App Engine flexible environment is
// available in the given location.@OutputOnly
FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
// StandardEnvironmentAvailable: App Engine Standard Environment is
// StandardEnvironmentAvailable: App Engine standard environment is
// available in the given location.@OutputOnly
StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
// Package appengine provides access to the Google App Engine Admin API.
// Package appengine provides access to the App Engine Admin API.
//
// See https://cloud.google.com/appengine/docs/admin-api/
//
@ -366,11 +366,11 @@ type Application struct {
// where you want to deploy your application. Example: myapp.
Id string `json:"id,omitempty"`
// LocationId: 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 USeurope-west - Western Europeus-east1 - Eastern US
// LocationId: Location from which this application runs. Application
// instances run out of the data centers in the specified location,
// which is also where all of the application's end user content is
// stored.Defaults to us-central.View the list of supported locations
// (https://cloud.google.com/appengine/docs/locations).
LocationId string `json:"locationId,omitempty"`
// Name: Full path to the Application resource in the API. Example:
@ -546,6 +546,9 @@ type AutomaticScaling struct {
// CpuUtilization: Target scaling by CPU usage.
CpuUtilization *CpuUtilization `json:"cpuUtilization,omitempty"`
// CustomMetrics: Target scaling by user-provided metrics.
CustomMetrics []*CustomMetric `json:"customMetrics,omitempty"`
// DiskUtilization: Target scaling by disk usage.
DiskUtilization *DiskUtilization `json:"diskUtilization,omitempty"`
@ -563,7 +566,7 @@ type AutomaticScaling struct {
MaxPendingLatency string `json:"maxPendingLatency,omitempty"`
// MaxTotalInstances: Maximum number of instances that should be started
// to handle requests.
// to handle requests for this version.
MaxTotalInstances int64 `json:"maxTotalInstances,omitempty"`
// MinIdleInstances: Minimum number of idle instances that should be
@ -575,7 +578,7 @@ type AutomaticScaling struct {
// the pending queue before starting a new instance to handle it.
MinPendingLatency string `json:"minPendingLatency,omitempty"`
// MinTotalInstances: Minimum number of instances that should be
// MinTotalInstances: Minimum number of running instances that should be
// maintained for this version.
MinTotalInstances int64 `json:"minTotalInstances,omitempty"`
@ -964,6 +967,67 @@ func (s *CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CustomMetric: Allows autoscaling based on Stackdriver metrics.
type CustomMetric struct {
// Filter: Allows filtering on the metric's fields.
Filter string `json:"filter,omitempty"`
// MetricName: The name of the metric.
MetricName string `json:"metricName,omitempty"`
// SingleInstanceAssignment: May be used instead of target_utilization
// when an instance can handle a specific amount of work/resources and
// the metric value is equal to the current amount of work remaining.
// The autoscaler will try to keep the number of instances equal to the
// metric value divided by single_instance_assignment.
SingleInstanceAssignment float64 `json:"singleInstanceAssignment,omitempty"`
// TargetType: The type of the metric. Must be a string representing a
// Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.
TargetType string `json:"targetType,omitempty"`
// TargetUtilization: The target value for the metric.
TargetUtilization float64 `json:"targetUtilization,omitempty"`
// ForceSendFields is a list of field names (e.g. "Filter") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Filter") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CustomMetric) MarshalJSON() ([]byte, error) {
type NoMethod CustomMetric
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *CustomMetric) UnmarshalJSON(data []byte) error {
type NoMethod CustomMetric
var s1 struct {
SingleInstanceAssignment gensupport.JSONFloat64 `json:"singleInstanceAssignment"`
TargetUtilization gensupport.JSONFloat64 `json:"targetUtilization"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.SingleInstanceAssignment = float64(s1.SingleInstanceAssignment)
s.TargetUtilization = float64(s1.TargetUtilization)
return nil
}
// DebugInstanceRequest: Request message for Instances.DebugInstance.
type DebugInstanceRequest struct {
// SshKey: Public SSH key to add to the instance.
@ -1002,7 +1066,9 @@ func (s *DebugInstanceRequest) MarshalJSON() ([]byte, error) {
// Deployment: Code and application artifacts used to deploy a version
// to App Engine.
type Deployment struct {
// Build: Google Cloud Container Builder build information.
// Build: Google Cloud Container Builder build information. Only
// applicable for instances running in the App Engine flexible
// environment.
Build *BuildInfo `json:"build,omitempty"`
// CloudBuildOptions: Options for any Google Cloud Container Builder
@ -2006,6 +2072,10 @@ func (s *LivenessCheck) MarshalJSON() ([]byte, error) {
// Location: A resource that represents Google Cloud Platform location.
type Location struct {
// DisplayName: The friendly name for this location, typically a nearby
// city name. For example, "Tokyo".
DisplayName string `json:"displayName,omitempty"`
// Labels: Cross-service attributes for the location. For
// example
// {"cloud.googleapis.com/region": "us-east1"}
@ -2029,7 +2099,7 @@ type Location struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Labels") to
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@ -2037,10 +2107,10 @@ type Location struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Labels") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@ -2055,11 +2125,11 @@ func (s *Location) MarshalJSON() ([]byte, error) {
// LocationMetadata: Metadata for the given
// google.cloud.location.Location.
type LocationMetadata struct {
// FlexibleEnvironmentAvailable: App Engine Flexible Environment is
// FlexibleEnvironmentAvailable: App Engine flexible environment is
// available in the given location.@OutputOnly
FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
// StandardEnvironmentAvailable: App Engine Standard Environment is
// StandardEnvironmentAvailable: App Engine standard environment is
// available in the given location.@OutputOnly
StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
@ -2191,8 +2261,8 @@ type Network struct {
// App Engine flexible environment.
ForwardedPorts []string `json:"forwardedPorts,omitempty"`
// InstanceTag: Tag to apply to the VM instance during creation. for
// Only applicable in the App Engine flexible environment.
// InstanceTag: Tag to apply to the instance during creation. Only
// applicable in the App Engine flexible environment.
InstanceTag string `json:"instanceTag,omitempty"`
// Name: Google Compute Engine network where the virtual machines are
@ -2200,19 +2270,23 @@ type Network struct {
// default.
Name string `json:"name,omitempty"`
// SessionAffinity: Enable session affinity.
SessionAffinity bool `json:"sessionAffinity,omitempty"`
// SubnetworkName: Google Cloud Platform sub-network where the virtual
// machines are created. Specify the short name, not the resource
// path.If a subnetwork name is specified, a network name will also be
// required unless it is for the default network.
// If the network the VM instance is being created in is a Legacy
// If the network that the instance is being created in is a Legacy
// network, then the IP address is allocated from the IPv4Range.
// If the network the VM instance is being created in is an auto Subnet
// Mode Network, then only network name should be specified (not the
// subnetwork_name) and the IP address is created from the IPCidrRange
// of the subnetwork that exists in that zone for that network.
// If the network the VM instance is being created in is a custom Subnet
// Mode Network, then the subnetwork_name must be specified and the IP
// address is created from the IPCidrRange of the subnetwork.If
// If the network that the instance is being created in is an auto
// Subnet Mode Network, then only network name should be specified (not
// the subnetwork_name) and the IP address is created from the
// IPCidrRange of the subnetwork that exists in that zone for that
// network.
// If the network that the instance is being created in is a custom
// Subnet Mode Network, then the subnetwork_name must be specified and
// the IP address is created from the IPCidrRange of the subnetwork.If
// specified, the subnetwork must exist in the same region as the App
// Engine flexible environment application.
SubnetworkName string `json:"subnetworkName,omitempty"`
@ -2920,12 +2994,12 @@ func (s *SslSettings) MarshalJSON() ([]byte, error) {
// StandardSchedulerSettings: Scheduler settings for standard
// environment.
type StandardSchedulerSettings struct {
// MaxInstances: Maximum number of instances for an app version. Set to
// zero to disable max_instances configuration.
// MaxInstances: Maximum number of instances to run for this version.
// Set to zero to disable max_instances configuration.
MaxInstances int64 `json:"maxInstances,omitempty"`
// MinInstances: Minimum number of instances for an app version. Set to
// zero to disable min_instances configuration.
// MinInstances: Minimum number of instances to run for this version.
// Set to zero to disable min_instances configuration.
MinInstances int64 `json:"minInstances,omitempty"`
// TargetCpuUtilization: Target CPU utilization ratio to maintain when
@ -3380,7 +3454,7 @@ type Version struct {
// GET requests if view=FULL is set.
Handlers []*UrlMap `json:"handlers,omitempty"`
// HealthCheck: Configures health checking for VM instances. Unhealthy
// HealthCheck: Configures health checking for instances. Unhealthy
// instances are stopped and replaced with new instances. Only
// applicable in the App Engine flexible environment.Only returned in
// GET requests if view=FULL is set.
@ -3425,7 +3499,7 @@ type Version struct {
// view=FULL is set.
Libraries []*Library `json:"libraries,omitempty"`
// LivenessCheck: Configures liveness health checking for VM instances.
// LivenessCheck: Configures liveness health checking for instances.
// Unhealthy instances are stopped and replaced with new instancesOnly
// returned in GET requests if view=FULL is set.
LivenessCheck *LivenessCheck `json:"livenessCheck,omitempty"`
@ -3448,13 +3522,13 @@ type Version struct {
// GET requests if view=FULL is set.
NobuildFilesRegex string `json:"nobuildFilesRegex,omitempty"`
// ReadinessCheck: Configures readiness health checking for VM
// instances. Unhealthy instances are not put into the backend traffic
// ReadinessCheck: Configures readiness health checking for instances.
// Unhealthy instances are not put into the backend traffic
// rotation.Only returned in GET requests if view=FULL is set.
ReadinessCheck *ReadinessCheck `json:"readinessCheck,omitempty"`
// Resources: Machine resources for this version. Only applicable for VM
// runtimes.
// Resources: Machine resources for this version. Only applicable in the
// App Engine flexible environment.
Resources *Resources `json:"resources,omitempty"`
// Runtime: Desired runtime. Example: python27.
@ -3465,6 +3539,10 @@ type Version struct {
// https://cloud.google.com/appengine/docs/standard/<language>/config/appref
RuntimeApiVersion string `json:"runtimeApiVersion,omitempty"`
// RuntimeChannel: The channel of the runtime to use. Only available for
// some runtimes. Defaults to the default channel.
RuntimeChannel string `json:"runtimeChannel,omitempty"`
// ServingStatus: 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
@ -3491,8 +3569,8 @@ type Version struct {
// machine.
Vm bool `json:"vm,omitempty"`
// Zones: The choice of gce zones to use for this App Engine Flexible
// version.
// Zones: The Google Compute Engine zones that are supported by this
// version in the App Engine flexible environment.
Zones []string `json:"zones,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@ -3624,7 +3702,7 @@ type AppsCreateCall struct {
// (https://cloud.google.com/appengine/docs/locations) where you want
// the App Engine application located.For more information about App
// Engine applications, see Managing Projects, Applications, and Billing
// (https://cloud.google.com/appengine/docs/python/console/).
// (https://cloud.google.com/appengine/docs/standard/python/console/).
func (r *AppsService) Create(application *Application) *AppsCreateCall {
c := &AppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.application = application
@ -3714,7 +3792,7 @@ func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
}
return ret, nil
// {
// "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields:\nid - The ID of the target Cloud Platform project.\nlocation - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/python/console/).",
// "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields:\nid - The ID of the target Cloud Platform project.\nlocation - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).",
// "flatPath": "v1beta/apps",
// "httpMethod": "POST",
// "id": "appengine.apps.create",
@ -8951,23 +9029,23 @@ type AppsServicesVersionsPatchCall struct {
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1be
// ta/apps.services.versions#Version.FIELDS.automatic_scaling): For
// Version resources that use automatic scaling and run in the App
// Engine Flexible environment.
// Engine flexible environment.
// automatic_scaling.max_total_instances
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1be
// ta/apps.services.versions#Version.FIELDS.automatic_scaling): For
// Version resources that use automatic scaling and run in the App
// Engine Flexible environment.
// Engine flexible environment.
// automatic_scaling.cool_down_period_sec
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1be
// ta/apps.services.versions#Version.FIELDS.automatic_scaling): For
// Version resources that use automatic scaling and run in the App
// Engine Flexible
// Engine flexible
// environment.
// automatic_scaling.cpu_utilization.target_utilization
// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1be
// ta/apps.services.versions#Version.FIELDS.automatic_scaling): For
// Version resources that use automatic scaling and run in the App
// Engine Flexible environment.
// Engine flexible environment.
func (r *AppsServicesVersionsService) Patch(appsId string, servicesId string, versionsId string, version *Version) *AppsServicesVersionsPatchCall {
c := &AppsServicesVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.appsId = appsId
@ -9072,7 +9150,7 @@ func (c *AppsServicesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Opera
}
return ret, nil
// {
// "description": "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:\nserving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment.\ninstance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment.\nautomatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine Flexible environment.\nautomatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine Flexible environment.\nautomatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine Flexible environment.\nautomatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine Flexible environment.",
// "description": "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:\nserving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment.\ninstance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment.\nautomatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine flexible environment.\nautomatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine flexible environment.\nautomatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine flexible environment.\nautomatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine flexible environment.",
// "flatPath": "v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}",
// "httpMethod": "PATCH",
// "id": "appengine.apps.services.versions.patch",

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
// Package appengine provides access to the Google App Engine Admin API.
// Package appengine provides access to the App Engine Admin API.
//
// See https://cloud.google.com/appengine/docs/admin-api/
//
@ -1257,6 +1257,10 @@ func (s *ListVersionsResponse) MarshalJSON() ([]byte, error) {
// Location: A resource that represents Google Cloud Platform location.
type Location struct {
// DisplayName: The friendly name for this location, typically a nearby
// city name. For example, "Tokyo".
DisplayName string `json:"displayName,omitempty"`
// Labels: Cross-service attributes for the location. For
// example
// {"cloud.googleapis.com/region": "us-east1"}
@ -1280,7 +1284,7 @@ type Location struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Labels") to
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@ -1288,10 +1292,10 @@ type Location struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Labels") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@ -1306,11 +1310,11 @@ func (s *Location) MarshalJSON() ([]byte, error) {
// LocationMetadata: Metadata for the given
// google.cloud.location.Location.
type LocationMetadata struct {
// FlexibleEnvironmentAvailable: App Engine Flexible Environment is
// FlexibleEnvironmentAvailable: App Engine flexible environment is
// available in the given location.@OutputOnly
FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
// StandardEnvironmentAvailable: App Engine Standard Environment is
// StandardEnvironmentAvailable: App Engine standard environment is
// available in the given location.@OutputOnly
StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
// Package appengine provides access to the Google App Engine Admin API.
// Package appengine provides access to the App Engine Admin API.
//
// See https://cloud.google.com/appengine/docs/admin-api/
//
@ -1257,6 +1257,10 @@ func (s *ListVersionsResponse) MarshalJSON() ([]byte, error) {
// Location: A resource that represents Google Cloud Platform location.
type Location struct {
// DisplayName: The friendly name for this location, typically a nearby
// city name. For example, "Tokyo".
DisplayName string `json:"displayName,omitempty"`
// Labels: Cross-service attributes for the location. For
// example
// {"cloud.googleapis.com/region": "us-east1"}
@ -1280,7 +1284,7 @@ type Location struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Labels") to
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@ -1288,10 +1292,10 @@ type Location struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Labels") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@ -1306,11 +1310,11 @@ func (s *Location) MarshalJSON() ([]byte, error) {
// LocationMetadata: Metadata for the given
// google.cloud.location.Location.
type LocationMetadata struct {
// FlexibleEnvironmentAvailable: App Engine Flexible Environment is
// FlexibleEnvironmentAvailable: App Engine flexible environment is
// available in the given location.@OutputOnly
FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
// StandardEnvironmentAvailable: App Engine Standard Environment is
// StandardEnvironmentAvailable: App Engine standard environment is
// available in the given location.@OutputOnly
StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`