mirror of https://github.com/k3s-io/k3s
Godep vendor files for google cloud alpha
parent
b5247c5c01
commit
f51b26e502
|
@ -80373,6 +80373,41 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
================================================================================
|
||||
|
||||
|
||||
================================================================================
|
||||
= vendor/google.golang.org/api/compute/v0.alpha licensed under: =
|
||||
|
||||
Copyright (c) 2011 Google Inc. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
= vendor/google.golang.org/api/LICENSE a651bb3d8b1c412632e28823bb432b40 -
|
||||
================================================================================
|
||||
|
||||
|
||||
================================================================================
|
||||
= vendor/google.golang.org/api/compute/v1 licensed under: =
|
||||
|
||||
|
|
|
@ -7855,6 +7855,18 @@ go_library(
|
|||
],
|
||||
)
|
||||
|
||||
go_library(
|
||||
name = "google.golang.org/api/compute/v0.alpha",
|
||||
srcs = ["google.golang.org/api/compute/v0.alpha/compute-gen.go"],
|
||||
tags = ["automanaged"],
|
||||
deps = [
|
||||
"//vendor:golang.org/x/net/context",
|
||||
"//vendor:golang.org/x/net/context/ctxhttp",
|
||||
"//vendor:google.golang.org/api/gensupport",
|
||||
"//vendor:google.golang.org/api/googleapi",
|
||||
],
|
||||
)
|
||||
|
||||
go_library(
|
||||
name = "google.golang.org/api/compute/v1",
|
||||
srcs = ["google.golang.org/api/compute/v1/compute-gen.go"],
|
||||
|
@ -7897,7 +7909,9 @@ go_library(
|
|||
"google.golang.org/api/gensupport/backoff.go",
|
||||
"google.golang.org/api/gensupport/buffer.go",
|
||||
"google.golang.org/api/gensupport/doc.go",
|
||||
"google.golang.org/api/gensupport/header.go",
|
||||
"google.golang.org/api/gensupport/json.go",
|
||||
"google.golang.org/api/gensupport/jsonfloat.go",
|
||||
"google.golang.org/api/gensupport/media.go",
|
||||
"google.golang.org/api/gensupport/params.go",
|
||||
"google.golang.org/api/gensupport/resumable.go",
|
||||
|
|
|
@ -67,9 +67,10 @@ func New(client *http.Client) (*Service, error) {
|
|||
}
|
||||
|
||||
type Service struct {
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
GoogleClientHeaderElement string // client header fragment, for Google use only
|
||||
|
||||
MetricDescriptors *MetricDescriptorsService
|
||||
|
||||
|
@ -85,6 +86,10 @@ func (s *Service) userAgent() string {
|
|||
return googleapi.UserAgent + " " + s.UserAgent
|
||||
}
|
||||
|
||||
func (s *Service) clientHeader() string {
|
||||
return gensupport.GoogleClientHeader("20170210", s.GoogleClientHeaderElement)
|
||||
}
|
||||
|
||||
func NewMetricDescriptorsService(s *Service) *MetricDescriptorsService {
|
||||
rs := &MetricDescriptorsService{s: s}
|
||||
return rs
|
||||
|
@ -555,6 +560,22 @@ func (s *Point) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *Point) UnmarshalJSON(data []byte) error {
|
||||
type noMethod Point
|
||||
var s1 struct {
|
||||
DoubleValue *gensupport.JSONFloat64 `json:"doubleValue"`
|
||||
*noMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
if s1.DoubleValue != nil {
|
||||
s.DoubleValue = (*float64)(s1.DoubleValue)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// PointDistribution: Distribution data point value type. When writing
|
||||
// distribution points, try to be consistent with the boundaries of your
|
||||
// buckets. If you must modify the bucket boundaries, then do so by
|
||||
|
@ -632,6 +653,22 @@ func (s *PointDistributionBucket) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *PointDistributionBucket) UnmarshalJSON(data []byte) error {
|
||||
type noMethod PointDistributionBucket
|
||||
var s1 struct {
|
||||
LowerBound gensupport.JSONFloat64 `json:"lowerBound"`
|
||||
UpperBound gensupport.JSONFloat64 `json:"upperBound"`
|
||||
*noMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
s.LowerBound = float64(s1.LowerBound)
|
||||
s.UpperBound = float64(s1.UpperBound)
|
||||
return nil
|
||||
}
|
||||
|
||||
// PointDistributionOverflowBucket: The overflow bucket is a special
|
||||
// bucket that does not have the upperBound field; it includes all of
|
||||
// the events that are no less than its lower bound.
|
||||
|
@ -667,6 +704,20 @@ func (s *PointDistributionOverflowBucket) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *PointDistributionOverflowBucket) UnmarshalJSON(data []byte) error {
|
||||
type noMethod PointDistributionOverflowBucket
|
||||
var s1 struct {
|
||||
LowerBound gensupport.JSONFloat64 `json:"lowerBound"`
|
||||
*noMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
s.LowerBound = float64(s1.LowerBound)
|
||||
return nil
|
||||
}
|
||||
|
||||
// PointDistributionUnderflowBucket: The underflow bucket is a special
|
||||
// bucket that does not have the lowerBound field; it includes all of
|
||||
// the events that are less than its upper bound.
|
||||
|
@ -702,6 +753,20 @@ func (s *PointDistributionUnderflowBucket) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *PointDistributionUnderflowBucket) UnmarshalJSON(data []byte) error {
|
||||
type noMethod PointDistributionUnderflowBucket
|
||||
var s1 struct {
|
||||
UpperBound gensupport.JSONFloat64 `json:"upperBound"`
|
||||
*noMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
s.UpperBound = float64(s1.UpperBound)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Timeseries: The monitoring data is organized as metrics and stored as
|
||||
// data points that are recorded over time. Each data point represents
|
||||
// information like the CPU utilization of your virtual machine. A
|
||||
|
@ -954,6 +1019,7 @@ func (c *MetricDescriptorsCreateCall) doRequest(alt string) (*http.Response, err
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.metricdescriptor)
|
||||
if err != nil {
|
||||
|
@ -1088,6 +1154,7 @@ func (c *MetricDescriptorsDeleteCall) doRequest(alt string) (*http.Response, err
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/metricDescriptors/{metric}")
|
||||
|
@ -1265,6 +1332,7 @@ func (c *MetricDescriptorsListCall) doRequest(alt string) (*http.Response, error
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
|
@ -1542,6 +1610,7 @@ func (c *TimeseriesListCall) doRequest(alt string) (*http.Response, error) {
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
|
@ -1772,6 +1841,7 @@ func (c *TimeseriesWriteCall) doRequest(alt string) (*http.Response, error) {
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.writetimeseriesrequest)
|
||||
if err != nil {
|
||||
|
@ -2012,6 +2082,7 @@ func (c *TimeseriesDescriptorsListCall) doRequest(alt string) (*http.Response, e
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/cpP4K9eaLrLwMGtsdl5oXjxb8rw\"",
|
||||
"etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/aTs6tIgXySgjqhtr4EU6PD-kvdQ\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "container:v1",
|
||||
"name": "container",
|
||||
"version": "v1",
|
||||
"revision": "20160421",
|
||||
"revision": "20161024",
|
||||
"title": "Google Container Engine API",
|
||||
"description": "Builds and manages clusters that run container-based applications, powered by open source Kubernetes technology.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -183,7 +183,7 @@
|
|||
},
|
||||
"nodePools": {
|
||||
"type": "array",
|
||||
"description": "The node pools associated with this cluster. When creating a new cluster, only a single node pool should be specified. This field should not be set if \"node_config\" or \"initial_node_count\" are specified.",
|
||||
"description": "The node pools associated with this cluster. This field should not be set if \"node_config\" or \"initial_node_count\" are specified.",
|
||||
"items": {
|
||||
"$ref": "NodePool"
|
||||
}
|
||||
|
@ -195,6 +195,10 @@
|
|||
"type": "string"
|
||||
}
|
||||
},
|
||||
"enableKubernetesAlpha": {
|
||||
"type": "boolean",
|
||||
"description": "Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation."
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "[Output only] Server-defined URL for the resource."
|
||||
|
@ -259,6 +263,10 @@
|
|||
"type": "integer",
|
||||
"description": "[Output only] The number of nodes currently in the cluster.",
|
||||
"format": "int32"
|
||||
},
|
||||
"expireTime": {
|
||||
"type": "string",
|
||||
"description": "[Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -283,12 +291,43 @@
|
|||
"type": "string"
|
||||
}
|
||||
},
|
||||
"serviceAccount": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud Platform Service Account to be used by the node VMs. If no Service Account is specified, the \"default\" service account is used."
|
||||
},
|
||||
"metadata": {
|
||||
"type": "object",
|
||||
"description": "The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the four reserved keys: \"instance-template\", \"kube-env\", \"startup-script\", and \"user-data\" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"imageType": {
|
||||
"type": "string",
|
||||
"description": "The image type to use for this node. Note that for a given image type, the latest version of it will be used."
|
||||
},
|
||||
"labels": {
|
||||
"type": "object",
|
||||
"description": "The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: http://kubernetes.io/v1.1/docs/user-guide/labels.html",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"localSsdCount": {
|
||||
"type": "integer",
|
||||
"description": "The number of local SSD disks to be attached to the node. The limit for this value is dependant upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits for more information.",
|
||||
"format": "int32"
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"description": "The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"preemptible": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -376,11 +415,11 @@
|
|||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "Server-defined URL for the resource."
|
||||
"description": "[Output only] Server-defined URL for the resource."
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"description": "The version of the Kubernetes of this node."
|
||||
"description": "[Output only] The version of the Kubernetes of this node."
|
||||
},
|
||||
"instanceGroupUrls": {
|
||||
"type": "array",
|
||||
|
@ -391,7 +430,7 @@
|
|||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "The status of the nodes in this pool instance.",
|
||||
"description": "[Output only] The status of the nodes in this pool instance.",
|
||||
"enum": [
|
||||
"STATUS_UNSPECIFIED",
|
||||
"PROVISIONING",
|
||||
|
@ -405,6 +444,65 @@
|
|||
"statusMessage": {
|
||||
"type": "string",
|
||||
"description": "[Output only] Additional information about the current status of this node pool instance, if available."
|
||||
},
|
||||
"autoscaling": {
|
||||
"$ref": "NodePoolAutoscaling",
|
||||
"description": "Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present."
|
||||
},
|
||||
"management": {
|
||||
"$ref": "NodeManagement",
|
||||
"description": "NodeManagement configuration for this NodePool."
|
||||
}
|
||||
}
|
||||
},
|
||||
"NodePoolAutoscaling": {
|
||||
"id": "NodePoolAutoscaling",
|
||||
"type": "object",
|
||||
"description": "NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage.",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Is autoscaling enabled for this node pool."
|
||||
},
|
||||
"minNodeCount": {
|
||||
"type": "integer",
|
||||
"description": "Minimum number of nodes in the NodePool. Must be \u003e= 1 and \u003c= max_node_count.",
|
||||
"format": "int32"
|
||||
},
|
||||
"maxNodeCount": {
|
||||
"type": "integer",
|
||||
"description": "Maximum number of nodes in the NodePool. Must be \u003e= min_node_count. There has to enough quota to scale up the cluster.",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"NodeManagement": {
|
||||
"id": "NodeManagement",
|
||||
"type": "object",
|
||||
"description": "NodeManagement defines the set of node management services turned on for the node pool.",
|
||||
"properties": {
|
||||
"autoUpgrade": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the nodes will be automatically upgraded."
|
||||
},
|
||||
"upgradeOptions": {
|
||||
"$ref": "AutoUpgradeOptions",
|
||||
"description": "Specifies the Auto Upgrade knobs for the node pool."
|
||||
}
|
||||
}
|
||||
},
|
||||
"AutoUpgradeOptions": {
|
||||
"id": "AutoUpgradeOptions",
|
||||
"type": "object",
|
||||
"description": "AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed.",
|
||||
"properties": {
|
||||
"autoUpgradeStartTime": {
|
||||
"type": "string",
|
||||
"description": "[Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "[Output only] This field is set when upgrades are about to commence with the description of the upgrade."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -444,7 +542,8 @@
|
|||
"REPAIR_CLUSTER",
|
||||
"UPDATE_CLUSTER",
|
||||
"CREATE_NODE_POOL",
|
||||
"DELETE_NODE_POOL"
|
||||
"DELETE_NODE_POOL",
|
||||
"SET_NODE_POOL_MANAGEMENT"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
|
@ -454,7 +553,8 @@
|
|||
"STATUS_UNSPECIFIED",
|
||||
"PENDING",
|
||||
"RUNNING",
|
||||
"DONE"
|
||||
"DONE",
|
||||
"ABORTING"
|
||||
]
|
||||
},
|
||||
"detail": {
|
||||
|
@ -505,7 +605,22 @@
|
|||
},
|
||||
"desiredNodePoolId": {
|
||||
"type": "string",
|
||||
"description": "The node pool to be upgraded. This field is mandatory if the \"desired_node_version\" or \"desired_image_family\" is specified and there is more than one node pool on the cluster."
|
||||
"description": "The node pool to be upgraded. This field is mandatory if \"desired_node_version\", \"desired_image_family\" or \"desired_node_pool_autoscaling\" is specified and there is more than one node pool on the cluster."
|
||||
},
|
||||
"desiredImageType": {
|
||||
"type": "string",
|
||||
"description": "The desired image type for the node pool. NOTE: Set the \"desired_node_pool\" field as well."
|
||||
},
|
||||
"desiredNodePoolAutoscaling": {
|
||||
"$ref": "NodePoolAutoscaling",
|
||||
"description": "Autoscaler configuration for the node pool specified in desired_node_pool_id. If there is only one pool in the cluster and desired_node_pool_id is not provided then the change applies to that single node pool."
|
||||
},
|
||||
"desiredLocations": {
|
||||
"type": "array",
|
||||
"description": "The desired list of Google Compute Engine [locations](/compute/docs/zones#available) in which the cluster's nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed. This list must always include the cluster's primary zone.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"desiredMasterVersion": {
|
||||
"type": "string",
|
||||
|
@ -534,6 +649,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"CancelOperationRequest": {
|
||||
"id": "CancelOperationRequest",
|
||||
"type": "object",
|
||||
"description": "CancelOperationRequest cancels a single operation."
|
||||
},
|
||||
"Empty": {
|
||||
"id": "Empty",
|
||||
"type": "object",
|
||||
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`."
|
||||
},
|
||||
"ServerConfig": {
|
||||
"id": "ServerConfig",
|
||||
"type": "object",
|
||||
|
@ -550,13 +675,20 @@
|
|||
"type": "string"
|
||||
}
|
||||
},
|
||||
"defaultImageFamily": {
|
||||
"defaultImageType": {
|
||||
"type": "string",
|
||||
"description": "Default image family."
|
||||
"description": "Default image type."
|
||||
},
|
||||
"validImageFamilies": {
|
||||
"validImageTypes": {
|
||||
"type": "array",
|
||||
"description": "List of valid image families.",
|
||||
"description": "List of valid image types.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"validMasterVersions": {
|
||||
"type": "array",
|
||||
"description": "List of valid master versions.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
|
@ -587,6 +719,22 @@
|
|||
"description": "The node pool to create."
|
||||
}
|
||||
}
|
||||
},
|
||||
"RollbackNodePoolUpgradeRequest": {
|
||||
"id": "RollbackNodePoolUpgradeRequest",
|
||||
"type": "object",
|
||||
"description": "RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed."
|
||||
},
|
||||
"SetNodePoolManagementRequest": {
|
||||
"id": "SetNodePoolManagementRequest",
|
||||
"type": "object",
|
||||
"description": "SetNodePoolManagementRequest sets the node management properties of a node pool.",
|
||||
"properties": {
|
||||
"management": {
|
||||
"$ref": "NodeManagement",
|
||||
"description": "NodeManagement configuration for the node pool."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
|
@ -973,6 +1121,100 @@
|
|||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"rollback": {
|
||||
"id": "container.projects.zones.clusters.nodePools.rollback",
|
||||
"path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
|
||||
"httpMethod": "POST",
|
||||
"description": "Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.",
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"type": "string",
|
||||
"description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"clusterId": {
|
||||
"type": "string",
|
||||
"description": "The name of the cluster to rollback.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"nodePoolId": {
|
||||
"type": "string",
|
||||
"description": "The name of the node pool to rollback.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId",
|
||||
"zone",
|
||||
"clusterId",
|
||||
"nodePoolId"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "RollbackNodePoolUpgradeRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"setManagement": {
|
||||
"id": "container.projects.zones.clusters.nodePools.setManagement",
|
||||
"path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
|
||||
"httpMethod": "POST",
|
||||
"description": "Sets the NodeManagement options for a node pool.",
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"type": "string",
|
||||
"description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"clusterId": {
|
||||
"type": "string",
|
||||
"description": "The name of the cluster to update.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"nodePoolId": {
|
||||
"type": "string",
|
||||
"description": "The name of the node pool to update.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId",
|
||||
"zone",
|
||||
"clusterId",
|
||||
"nodePoolId"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "SetNodePoolManagementRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1046,6 +1288,46 @@
|
|||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"cancel": {
|
||||
"id": "container.projects.zones.operations.cancel",
|
||||
"path": "v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
|
||||
"httpMethod": "POST",
|
||||
"description": "Cancels the specified operation.",
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"type": "string",
|
||||
"description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the operation resides.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"operationId": {
|
||||
"type": "string",
|
||||
"description": "The server-assigned `name` of the operation.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId",
|
||||
"zone",
|
||||
"operationId"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "CancelOperationRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -73,9 +73,10 @@ func New(client *http.Client) (*Service, error) {
|
|||
}
|
||||
|
||||
type Service struct {
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
GoogleClientHeaderElement string // client header fragment, for Google use only
|
||||
|
||||
Changes *ChangesService
|
||||
|
||||
|
@ -93,6 +94,10 @@ func (s *Service) userAgent() string {
|
|||
return googleapi.UserAgent + " " + s.UserAgent
|
||||
}
|
||||
|
||||
func (s *Service) clientHeader() string {
|
||||
return gensupport.GoogleClientHeader("20170210", s.GoogleClientHeaderElement)
|
||||
}
|
||||
|
||||
func NewChangesService(s *Service) *ChangesService {
|
||||
rs := &ChangesService{s: s}
|
||||
return rs
|
||||
|
@ -588,6 +593,7 @@ func (c *ChangesCreateCall) doRequest(alt string) (*http.Response, error) {
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.change)
|
||||
if err != nil {
|
||||
|
@ -743,6 +749,7 @@ func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) {
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
|
@ -934,6 +941,7 @@ func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) {
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
|
@ -1122,6 +1130,7 @@ func (c *ManagedZonesCreateCall) doRequest(alt string) (*http.Response, error) {
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.managedzone)
|
||||
if err != nil {
|
||||
|
@ -1256,6 +1265,7 @@ func (c *ManagedZonesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/managedZones/{managedZone}")
|
||||
|
@ -1373,6 +1383,7 @@ func (c *ManagedZonesGetCall) doRequest(alt string) (*http.Response, error) {
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
|
@ -1545,6 +1556,7 @@ func (c *ManagedZonesListCall) doRequest(alt string) (*http.Response, error) {
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
|
@ -1722,6 +1734,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) {
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
|
@ -1896,6 +1909,7 @@ func (c *ResourceRecordSetsListCall) doRequest(alt string) (*http.Response, erro
|
|||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2017 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package gensupport
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// GoogleClientHeader returns the value to use for the x-goog-api-client
|
||||
// header, which is used internally by Google.
|
||||
func GoogleClientHeader(generatorVersion, clientElement string) string {
|
||||
elts := []string{"gl-go/" + strings.Replace(runtime.Version(), " ", "_", -1)}
|
||||
if clientElement != "" {
|
||||
elts = append(elts, clientElement)
|
||||
}
|
||||
elts = append(elts, fmt.Sprintf("gdcl/%s", generatorVersion))
|
||||
return strings.Join(elts, " ")
|
||||
}
|
|
@ -0,0 +1,57 @@
|
|||
// Copyright 2016 Google Inc. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package gensupport
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"math"
|
||||
)
|
||||
|
||||
// JSONFloat64 is a float64 that supports proper unmarshaling of special float
|
||||
// values in JSON, according to
|
||||
// https://developers.google.com/protocol-buffers/docs/proto3#json. Although
|
||||
// that is a proto-to-JSON spec, it applies to all Google APIs.
|
||||
//
|
||||
// The jsonpb package
|
||||
// (https://github.com/golang/protobuf/blob/master/jsonpb/jsonpb.go) has
|
||||
// similar functionality, but only for direct translation from proto messages
|
||||
// to JSON.
|
||||
type JSONFloat64 float64
|
||||
|
||||
func (f *JSONFloat64) UnmarshalJSON(data []byte) error {
|
||||
var ff float64
|
||||
if err := json.Unmarshal(data, &ff); err == nil {
|
||||
*f = JSONFloat64(ff)
|
||||
return nil
|
||||
}
|
||||
var s string
|
||||
if err := json.Unmarshal(data, &s); err == nil {
|
||||
switch s {
|
||||
case "NaN":
|
||||
ff = math.NaN()
|
||||
case "Infinity":
|
||||
ff = math.Inf(1)
|
||||
case "-Infinity":
|
||||
ff = math.Inf(-1)
|
||||
default:
|
||||
return fmt.Errorf("google.golang.org/api/internal: bad float string %q", s)
|
||||
}
|
||||
*f = JSONFloat64(ff)
|
||||
return nil
|
||||
}
|
||||
return errors.New("google.golang.org/api/internal: data not float or string")
|
||||
}
|
|
@ -1,3 +1,17 @@
|
|||
// Copyright 2017 Google Inc. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package gensupport
|
||||
|
||||
import (
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue