Update vendored dependencies
This includes github.com/kurin/blazer 0.2.0, which resolves #1291
This commit is contained in:
parent
ba23d24dd1
commit
61cb1cc6f8
1044 changed files with 203022 additions and 97709 deletions
161
vendor/google.golang.org/api/compute/v0.alpha/compute-api.json
generated
vendored
161
vendor/google.golang.org/api/compute/v0.alpha/compute-api.json
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/CwN9bOpaV-xhJ_YHqke_sIbhsB0\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/3cMXWrWKedeDcxyJugoWfBBTcik\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "compute:alpha",
|
||||
"name": "compute",
|
||||
"version": "alpha",
|
||||
"revision": "20170905",
|
||||
"revision": "20170908",
|
||||
"title": "Compute Engine API",
|
||||
"description": "Creates and runs virtual machines on Google Cloud Platform.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -504,7 +504,7 @@
|
|||
"properties": {
|
||||
"address": {
|
||||
"type": "string",
|
||||
"description": "The static external IP address represented by this resource."
|
||||
"description": "The static IP address represented by this resource."
|
||||
},
|
||||
"addressType": {
|
||||
"type": "string",
|
||||
|
@ -1941,6 +1941,10 @@
|
|||
"description": "Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.\n\nWhen the load balancing scheme is INTERNAL, this field is not used.",
|
||||
"format": "int32"
|
||||
},
|
||||
"appEngineBackend": {
|
||||
"$ref": "BackendServiceAppEngineBackend",
|
||||
"description": "Directs request to an App Engine app. cloudFunctionBackend and backends[] must be empty if this is set."
|
||||
},
|
||||
"backends": {
|
||||
"type": "array",
|
||||
"description": "The list of backends that serve this BackendService.",
|
||||
|
@ -1952,6 +1956,10 @@
|
|||
"$ref": "BackendServiceCdnPolicy",
|
||||
"description": "Cloud CDN configuration for this BackendService."
|
||||
},
|
||||
"cloudFunctionBackend": {
|
||||
"$ref": "BackendServiceCloudFunctionBackend",
|
||||
"description": "Directs request to a cloud function. appEngineBackend and backends[] must be empty if this is set."
|
||||
},
|
||||
"connectionDraining": {
|
||||
"$ref": "ConnectionDraining"
|
||||
},
|
||||
|
@ -2188,6 +2196,25 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"BackendServiceAppEngineBackend": {
|
||||
"id": "BackendServiceAppEngineBackend",
|
||||
"type": "object",
|
||||
"description": "Configuration of a App Engine backend.",
|
||||
"properties": {
|
||||
"appEngineService": {
|
||||
"type": "string",
|
||||
"description": "Optional. App Engine app service name."
|
||||
},
|
||||
"targetProject": {
|
||||
"type": "string",
|
||||
"description": "Required. Project ID of the project hosting the app. This is the project ID of this project. Reference to another project is not allowed."
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"description": "Optional. Version of App Engine app service. When empty, App Engine will do its normal traffic split."
|
||||
}
|
||||
}
|
||||
},
|
||||
"BackendServiceCdnPolicy": {
|
||||
"id": "BackendServiceCdnPolicy",
|
||||
"type": "object",
|
||||
|
@ -2211,6 +2238,21 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"BackendServiceCloudFunctionBackend": {
|
||||
"id": "BackendServiceCloudFunctionBackend",
|
||||
"type": "object",
|
||||
"description": "Configuration of a Cloud Function backend.",
|
||||
"properties": {
|
||||
"functionName": {
|
||||
"type": "string",
|
||||
"description": "Required. A cloud function name. Special value ?*? represents all cloud functions in the project."
|
||||
},
|
||||
"targetProject": {
|
||||
"type": "string",
|
||||
"description": "Required. Project ID of the project hosting the cloud function."
|
||||
}
|
||||
}
|
||||
},
|
||||
"BackendServiceFailoverPolicy": {
|
||||
"id": "BackendServiceFailoverPolicy",
|
||||
"type": "object",
|
||||
|
@ -4688,7 +4730,7 @@
|
|||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is supported. For newer Windows images, the server might also populate this property with the value WINDOWS to indicate that this is a Windows image. This value is purely informational and does not enable or disable any features.",
|
||||
"description": "The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is supported. For newer Windows images, the server might also populate this property with the value WINDOWS to indicate that this is a Windows image.",
|
||||
"enum": [
|
||||
"FEATURE_TYPE_UNSPECIFIED",
|
||||
"MULTI_IP_SUBNET",
|
||||
|
@ -6227,7 +6269,7 @@
|
|||
},
|
||||
"guestOsFeatures": {
|
||||
"type": "array",
|
||||
"description": "A list of features to enable on the guest OS. Applicable for bootable images only. Currently, only one feature can be enabled, VIRTIO_SCSI_MULTIQUEUE, which allows each virtual CPU to have its own queue. For Windows images, you can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.1621 or higher. Linux images with kernel versions 3.17 and higher will support VIRTIO_SCSI_MULTIQUEUE.\n\nFor new Windows images, the server might also populate this field with the value WINDOWS, to indicate that this is a Windows image. This value is purely informational and does not enable or disable any features.",
|
||||
"description": "A list of features to enable on the guest OS. Applicable for bootable images only. Currently, only one feature can be enabled, VIRTIO_SCSI_MULTIQUEUE, which allows each virtual CPU to have its own queue. For Windows images, you can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.1621 or higher. Linux images with kernel versions 3.17 and higher will support VIRTIO_SCSI_MULTIQUEUE.\n\nFor newer Windows images, the server might also populate this property with the value WINDOWS to indicate that this is a Windows image.",
|
||||
"items": {
|
||||
"$ref": "GuestOsFeature"
|
||||
}
|
||||
|
@ -15171,7 +15213,7 @@
|
|||
},
|
||||
"storageBytes": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] A size of the the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.",
|
||||
"description": "[Output Only] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.",
|
||||
"format": "int64"
|
||||
},
|
||||
"storageBytesStatus": {
|
||||
|
@ -29027,6 +29069,113 @@
|
|||
"https://www.googleapis.com/auth/compute",
|
||||
"https://www.googleapis.com/auth/compute.readonly"
|
||||
]
|
||||
},
|
||||
"getIamPolicy": {
|
||||
"id": "compute.licenseCodes.getIamPolicy",
|
||||
"path": "{project}/global/licenseCodes/{resource}/getIamPolicy",
|
||||
"httpMethod": "GET",
|
||||
"description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.",
|
||||
"parameters": {
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "Project ID for this request.",
|
||||
"required": true,
|
||||
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
"location": "path"
|
||||
},
|
||||
"resource": {
|
||||
"type": "string",
|
||||
"description": "Name of the resource for this request.",
|
||||
"required": true,
|
||||
"pattern": "[a-z0-9](?:[-a-z0-9_]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"resource"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Policy"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/compute",
|
||||
"https://www.googleapis.com/auth/compute.readonly"
|
||||
]
|
||||
},
|
||||
"setIamPolicy": {
|
||||
"id": "compute.licenseCodes.setIamPolicy",
|
||||
"path": "{project}/global/licenseCodes/{resource}/setIamPolicy",
|
||||
"httpMethod": "POST",
|
||||
"description": "Sets the access control policy on the specified resource. Replaces any existing policy.",
|
||||
"parameters": {
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "Project ID for this request.",
|
||||
"required": true,
|
||||
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
"location": "path"
|
||||
},
|
||||
"resource": {
|
||||
"type": "string",
|
||||
"description": "Name of the resource for this request.",
|
||||
"required": true,
|
||||
"pattern": "[a-z0-9](?:[-a-z0-9_]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"resource"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Policy"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Policy"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/compute"
|
||||
]
|
||||
},
|
||||
"testIamPermissions": {
|
||||
"id": "compute.licenseCodes.testIamPermissions",
|
||||
"path": "{project}/global/licenseCodes/{resource}/testIamPermissions",
|
||||
"httpMethod": "POST",
|
||||
"description": "Returns permissions that a caller has on the specified resource.",
|
||||
"parameters": {
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "Project ID for this request.",
|
||||
"required": true,
|
||||
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
"location": "path"
|
||||
},
|
||||
"resource": {
|
||||
"type": "string",
|
||||
"description": "Name of the resource for this request.",
|
||||
"required": true,
|
||||
"pattern": "(?:[-a-z0-9_]{0,62}[a-z0-9])?",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"resource"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "TestPermissionsRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "TestPermissionsResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/compute",
|
||||
"https://www.googleapis.com/auth/compute.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
542
vendor/google.golang.org/api/compute/v0.alpha/compute-gen.go
generated
vendored
542
vendor/google.golang.org/api/compute/v0.alpha/compute-gen.go
generated
vendored
|
@ -1409,7 +1409,7 @@ func (s *AccessConfig) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// Address: A reserved address resource.
|
||||
type Address struct {
|
||||
// Address: The static external IP address represented by this resource.
|
||||
// Address: The static IP address represented by this resource.
|
||||
Address string `json:"address,omitempty"`
|
||||
|
||||
// AddressType: The type of address to reserve. If unspecified, defaults
|
||||
|
@ -3771,12 +3771,20 @@ type BackendService struct {
|
|||
// When the load balancing scheme is INTERNAL, this field is not used.
|
||||
AffinityCookieTtlSec int64 `json:"affinityCookieTtlSec,omitempty"`
|
||||
|
||||
// AppEngineBackend: Directs request to an App Engine app.
|
||||
// cloudFunctionBackend and backends[] must be empty if this is set.
|
||||
AppEngineBackend *BackendServiceAppEngineBackend `json:"appEngineBackend,omitempty"`
|
||||
|
||||
// Backends: The list of backends that serve this BackendService.
|
||||
Backends []*Backend `json:"backends,omitempty"`
|
||||
|
||||
// CdnPolicy: Cloud CDN configuration for this BackendService.
|
||||
CdnPolicy *BackendServiceCdnPolicy `json:"cdnPolicy,omitempty"`
|
||||
|
||||
// CloudFunctionBackend: Directs request to a cloud function.
|
||||
// appEngineBackend and backends[] must be empty if this is set.
|
||||
CloudFunctionBackend *BackendServiceCloudFunctionBackend `json:"cloudFunctionBackend,omitempty"`
|
||||
|
||||
ConnectionDraining *ConnectionDraining `json:"connectionDraining,omitempty"`
|
||||
|
||||
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
|
||||
|
@ -4090,6 +4098,45 @@ func (s *BackendServiceAggregatedListWarningData) MarshalJSON() ([]byte, error)
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BackendServiceAppEngineBackend: Configuration of a App Engine
|
||||
// backend.
|
||||
type BackendServiceAppEngineBackend struct {
|
||||
// AppEngineService: Optional. App Engine app service name.
|
||||
AppEngineService string `json:"appEngineService,omitempty"`
|
||||
|
||||
// TargetProject: Required. Project ID of the project hosting the app.
|
||||
// This is the project ID of this project. Reference to another project
|
||||
// is not allowed.
|
||||
TargetProject string `json:"targetProject,omitempty"`
|
||||
|
||||
// Version: Optional. Version of App Engine app service. When empty, App
|
||||
// Engine will do its normal traffic split.
|
||||
Version string `json:"version,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AppEngineService") 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. "AppEngineService") 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 *BackendServiceAppEngineBackend) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BackendServiceAppEngineBackend
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BackendServiceCdnPolicy: Message containing Cloud CDN configuration
|
||||
// for a backend service.
|
||||
type BackendServiceCdnPolicy struct {
|
||||
|
@ -4134,6 +4181,40 @@ func (s *BackendServiceCdnPolicy) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BackendServiceCloudFunctionBackend: Configuration of a Cloud Function
|
||||
// backend.
|
||||
type BackendServiceCloudFunctionBackend struct {
|
||||
// FunctionName: Required. A cloud function name. Special value ?*?
|
||||
// represents all cloud functions in the project.
|
||||
FunctionName string `json:"functionName,omitempty"`
|
||||
|
||||
// TargetProject: Required. Project ID of the project hosting the cloud
|
||||
// function.
|
||||
TargetProject string `json:"targetProject,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "FunctionName") 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. "FunctionName") 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 *BackendServiceCloudFunctionBackend) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BackendServiceCloudFunctionBackend
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type BackendServiceFailoverPolicy struct {
|
||||
// DisableConnectionDrainOnFailover: On failover or failback, this field
|
||||
// indicates whether connection drain will be honored. Setting this to
|
||||
|
@ -8043,8 +8124,7 @@ type GuestOsFeature struct {
|
|||
// Type: The type of supported feature. Currently only
|
||||
// VIRTIO_SCSI_MULTIQUEUE is supported. For newer Windows images, the
|
||||
// server might also populate this property with the value WINDOWS to
|
||||
// indicate that this is a Windows image. This value is purely
|
||||
// informational and does not enable or disable any features.
|
||||
// indicate that this is a Windows image.
|
||||
//
|
||||
// Possible values:
|
||||
// "FEATURE_TYPE_UNSPECIFIED"
|
||||
|
@ -10276,10 +10356,9 @@ type Image struct {
|
|||
// higher. Linux images with kernel versions 3.17 and higher will
|
||||
// support VIRTIO_SCSI_MULTIQUEUE.
|
||||
//
|
||||
// For new Windows images, the server might also populate this field
|
||||
// with the value WINDOWS, to indicate that this is a Windows image.
|
||||
// This value is purely informational and does not enable or disable any
|
||||
// features.
|
||||
// For newer Windows images, the server might also populate this
|
||||
// property with the value WINDOWS to indicate that this is a Windows
|
||||
// image.
|
||||
GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,omitempty"`
|
||||
|
||||
// Id: [Output Only] The unique identifier for the resource. This
|
||||
|
@ -23698,7 +23777,7 @@ type Snapshot struct {
|
|||
// "UPLOADING"
|
||||
Status string `json:"status,omitempty"`
|
||||
|
||||
// StorageBytes: [Output Only] A size of the the storage used by the
|
||||
// StorageBytes: [Output Only] A size of the storage used by the
|
||||
// snapshot. As snapshots share storage, this number is expected to
|
||||
// change with snapshot creation/deletion.
|
||||
StorageBytes int64 `json:"storageBytes,omitempty,string"`
|
||||
|
@ -70661,6 +70740,453 @@ func (c *LicenseCodesGetCall) Do(opts ...googleapi.CallOption) (*LicenseCode, er
|
|||
|
||||
}
|
||||
|
||||
// method id "compute.licenseCodes.getIamPolicy":
|
||||
|
||||
type LicenseCodesGetIamPolicyCall struct {
|
||||
s *Service
|
||||
project string
|
||||
resource string
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// GetIamPolicy: Gets the access control policy for a resource. May be
|
||||
// empty if no such policy or resource exists.
|
||||
func (r *LicenseCodesService) GetIamPolicy(project string, resource string) *LicenseCodesGetIamPolicyCall {
|
||||
c := &LicenseCodesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
c.resource = resource
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *LicenseCodesGetIamPolicyCall) Fields(s ...googleapi.Field) *LicenseCodesGetIamPolicyCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// 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 (c *LicenseCodesGetIamPolicyCall) IfNoneMatch(entityTag string) *LicenseCodesGetIamPolicyCall {
|
||||
c.ifNoneMatch_ = entityTag
|
||||
return c
|
||||
}
|
||||
|
||||
// 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 (c *LicenseCodesGetIamPolicyCall) Context(ctx context.Context) *LicenseCodesGetIamPolicyCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *LicenseCodesGetIamPolicyCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *LicenseCodesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/licenseCodes/{resource}/getIamPolicy")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"project": c.project,
|
||||
"resource": c.resource,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "compute.licenseCodes.getIamPolicy" call.
|
||||
// Exactly one of *Policy or error will be non-nil. Any non-2xx status
|
||||
// code is an error. Response headers are in either
|
||||
// *Policy.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 (c *LicenseCodesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &Policy{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "compute.licenseCodes.getIamPolicy",
|
||||
// "parameterOrder": [
|
||||
// "project",
|
||||
// "resource"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "project": {
|
||||
// "description": "Project ID for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "resource": {
|
||||
// "description": "Name of the resource for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "[a-z0-9](?:[-a-z0-9_]{0,61}[a-z0-9])?",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{project}/global/licenseCodes/{resource}/getIamPolicy",
|
||||
// "response": {
|
||||
// "$ref": "Policy"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform",
|
||||
// "https://www.googleapis.com/auth/compute",
|
||||
// "https://www.googleapis.com/auth/compute.readonly"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "compute.licenseCodes.setIamPolicy":
|
||||
|
||||
type LicenseCodesSetIamPolicyCall struct {
|
||||
s *Service
|
||||
project string
|
||||
resource string
|
||||
policy *Policy
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// SetIamPolicy: Sets the access control policy on the specified
|
||||
// resource. Replaces any existing policy.
|
||||
func (r *LicenseCodesService) SetIamPolicy(project string, resource string, policy *Policy) *LicenseCodesSetIamPolicyCall {
|
||||
c := &LicenseCodesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
c.resource = resource
|
||||
c.policy = policy
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *LicenseCodesSetIamPolicyCall) Fields(s ...googleapi.Field) *LicenseCodesSetIamPolicyCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// 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 (c *LicenseCodesSetIamPolicyCall) Context(ctx context.Context) *LicenseCodesSetIamPolicyCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *LicenseCodesSetIamPolicyCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *LicenseCodesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.policy)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/licenseCodes/{resource}/setIamPolicy")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"project": c.project,
|
||||
"resource": c.resource,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "compute.licenseCodes.setIamPolicy" call.
|
||||
// Exactly one of *Policy or error will be non-nil. Any non-2xx status
|
||||
// code is an error. Response headers are in either
|
||||
// *Policy.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 (c *LicenseCodesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &Policy{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Sets the access control policy on the specified resource. Replaces any existing policy.",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "compute.licenseCodes.setIamPolicy",
|
||||
// "parameterOrder": [
|
||||
// "project",
|
||||
// "resource"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "project": {
|
||||
// "description": "Project ID for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "resource": {
|
||||
// "description": "Name of the resource for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "[a-z0-9](?:[-a-z0-9_]{0,61}[a-z0-9])?",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{project}/global/licenseCodes/{resource}/setIamPolicy",
|
||||
// "request": {
|
||||
// "$ref": "Policy"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "Policy"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform",
|
||||
// "https://www.googleapis.com/auth/compute"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "compute.licenseCodes.testIamPermissions":
|
||||
|
||||
type LicenseCodesTestIamPermissionsCall struct {
|
||||
s *Service
|
||||
project string
|
||||
resource string
|
||||
testpermissionsrequest *TestPermissionsRequest
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// TestIamPermissions: Returns permissions that a caller has on the
|
||||
// specified resource.
|
||||
func (r *LicenseCodesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *LicenseCodesTestIamPermissionsCall {
|
||||
c := &LicenseCodesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
c.resource = resource
|
||||
c.testpermissionsrequest = testpermissionsrequest
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *LicenseCodesTestIamPermissionsCall) Fields(s ...googleapi.Field) *LicenseCodesTestIamPermissionsCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// 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 (c *LicenseCodesTestIamPermissionsCall) Context(ctx context.Context) *LicenseCodesTestIamPermissionsCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *LicenseCodesTestIamPermissionsCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *LicenseCodesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.testpermissionsrequest)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/licenseCodes/{resource}/testIamPermissions")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"project": c.project,
|
||||
"resource": c.resource,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "compute.licenseCodes.testIamPermissions" call.
|
||||
// Exactly one of *TestPermissionsResponse or error will be non-nil. Any
|
||||
// non-2xx status code is an error. Response headers are in either
|
||||
// *TestPermissionsResponse.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 (c *LicenseCodesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &TestPermissionsResponse{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns permissions that a caller has on the specified resource.",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "compute.licenseCodes.testIamPermissions",
|
||||
// "parameterOrder": [
|
||||
// "project",
|
||||
// "resource"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "project": {
|
||||
// "description": "Project ID for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "resource": {
|
||||
// "description": "Name of the resource for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "(?:[-a-z0-9_]{0,62}[a-z0-9])?",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{project}/global/licenseCodes/{resource}/testIamPermissions",
|
||||
// "request": {
|
||||
// "$ref": "TestPermissionsRequest"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "TestPermissionsResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform",
|
||||
// "https://www.googleapis.com/auth/compute",
|
||||
// "https://www.googleapis.com/auth/compute.readonly"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "compute.licenses.delete":
|
||||
|
||||
type LicensesDeleteCall struct {
|
||||
|
|
195
vendor/google.golang.org/api/compute/v0.beta/compute-api.json
generated
vendored
195
vendor/google.golang.org/api/compute/v0.beta/compute-api.json
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/QIBUrC-C0KuVnsoUFunufep6MGE\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/2Jt9iILNSBvotCe8YWfswUcsXKc\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "compute:beta",
|
||||
"name": "compute",
|
||||
"version": "beta",
|
||||
"revision": "20170905",
|
||||
"revision": "20170908",
|
||||
"title": "Compute Engine API",
|
||||
"description": "Creates and runs virtual machines on Google Cloud Platform.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -454,6 +454,14 @@
|
|||
"type": "string",
|
||||
"description": "An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance."
|
||||
},
|
||||
"publicPtrDomainName": {
|
||||
"type": "string",
|
||||
"description": "The DNS domain name for the public PTR record. This field can only be set when the set_public_ptr field is enabled."
|
||||
},
|
||||
"setPublicPtr": {
|
||||
"type": "boolean",
|
||||
"description": "Specifies whether a public DNS ?PTR? record should be created to map the external IP address of the instance to a DNS domain name."
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "The type of configuration. The default and only option is ONE_TO_ONE_NAT.",
|
||||
|
@ -474,7 +482,7 @@
|
|||
"properties": {
|
||||
"address": {
|
||||
"type": "string",
|
||||
"description": "The static external IP address represented by this resource."
|
||||
"description": "The static IP address represented by this resource."
|
||||
},
|
||||
"addressType": {
|
||||
"type": "string",
|
||||
|
@ -4408,7 +4416,7 @@
|
|||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is supported. For newer Windows images, the server might also populate this property with the value WINDOWS to indicate that this is a Windows image. This value is purely informational and does not enable or disable any features.",
|
||||
"description": "The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is supported. For newer Windows images, the server might also populate this property with the value WINDOWS to indicate that this is a Windows image.",
|
||||
"enum": [
|
||||
"FEATURE_TYPE_UNSPECIFIED",
|
||||
"MULTI_IP_SUBNET",
|
||||
|
@ -5113,7 +5121,7 @@
|
|||
},
|
||||
"guestOsFeatures": {
|
||||
"type": "array",
|
||||
"description": "A list of features to enable on the guest OS. Applicable for bootable images only. Currently, only one feature can be enabled, VIRTIO_SCSI_MULTIQUEUE, which allows each virtual CPU to have its own queue. For Windows images, you can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.1621 or higher. Linux images with kernel versions 3.17 and higher will support VIRTIO_SCSI_MULTIQUEUE.\n\nFor new Windows images, the server might also populate this field with the value WINDOWS, to indicate that this is a Windows image. This value is purely informational and does not enable or disable any features.",
|
||||
"description": "A list of features to enable on the guest OS. Applicable for bootable images only. Currently, only one feature can be enabled, VIRTIO_SCSI_MULTIQUEUE, which allows each virtual CPU to have its own queue. For Windows images, you can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.1621 or higher. Linux images with kernel versions 3.17 and higher will support VIRTIO_SCSI_MULTIQUEUE.\n\nFor newer Windows images, the server might also populate this property with the value WINDOWS to indicate that this is a Windows image.",
|
||||
"items": {
|
||||
"$ref": "GuestOsFeature"
|
||||
}
|
||||
|
@ -9063,6 +9071,11 @@
|
|||
"$ref": "AliasIpRange"
|
||||
}
|
||||
},
|
||||
"fingerprint": {
|
||||
"type": "string",
|
||||
"description": "Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface.",
|
||||
"format": "byte"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] Type of the resource. Always compute#networkInterface for network interfaces.",
|
||||
|
@ -12126,7 +12139,7 @@
|
|||
},
|
||||
"storageBytes": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] A size of the the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.",
|
||||
"description": "[Output Only] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.",
|
||||
"format": "int64"
|
||||
},
|
||||
"storageBytesStatus": {
|
||||
|
@ -12390,6 +12403,10 @@
|
|||
"type": "object",
|
||||
"description": "A Subnetwork resource.",
|
||||
"properties": {
|
||||
"allowSubnetCidrRoutesOverlap": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this subnetwork can conflict with static routes. Setting this to true allows this subnetwork's primary and secondary ranges to conflict with routes that have already been configured on the corresponding network. Static routes will take precedence over the subnetwork route if the route prefix length is at least as large as the subnetwork prefix length.\n\nAlso, packets destined to IPs within subnetwork may contain private/sensitive data and are prevented from leaving the virtual network. Setting this field to true will disable this feature.\n\nThe default value is false and applies to all existing subnetworks and automatically created subnetworks.\n\nThis field cannot be set to true at resource creation time."
|
||||
},
|
||||
"creationTimestamp": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] Creation timestamp in RFC3339 text format."
|
||||
|
@ -12398,6 +12415,11 @@
|
|||
"type": "string",
|
||||
"description": "An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time."
|
||||
},
|
||||
"fingerprint": {
|
||||
"type": "string",
|
||||
"description": "Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork.",
|
||||
"format": "byte"
|
||||
},
|
||||
"gatewayAddress": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork. This field can be set only at resource creation time."
|
||||
|
@ -22977,6 +22999,118 @@
|
|||
"https://www.googleapis.com/auth/compute",
|
||||
"https://www.googleapis.com/auth/compute.readonly"
|
||||
]
|
||||
},
|
||||
"updateAccessConfig": {
|
||||
"id": "compute.instances.updateAccessConfig",
|
||||
"path": "{project}/zones/{zone}/instances/{instance}/updateAccessConfig",
|
||||
"httpMethod": "POST",
|
||||
"description": "Updates the specified access config from an instance's network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
|
||||
"parameters": {
|
||||
"instance": {
|
||||
"type": "string",
|
||||
"description": "The instance name for this request.",
|
||||
"required": true,
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
},
|
||||
"networkInterface": {
|
||||
"type": "string",
|
||||
"description": "The name of the network interface where the access config is attached.",
|
||||
"required": true,
|
||||
"location": "query"
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "Project ID for this request.",
|
||||
"required": true,
|
||||
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
"location": "path"
|
||||
},
|
||||
"requestId": {
|
||||
"type": "string",
|
||||
"description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).",
|
||||
"location": "query"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"description": "The name of the zone for this request.",
|
||||
"required": true,
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"zone",
|
||||
"instance",
|
||||
"networkInterface"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "AccessConfig"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/compute"
|
||||
]
|
||||
},
|
||||
"updateNetworkInterface": {
|
||||
"id": "compute.instances.updateNetworkInterface",
|
||||
"path": "{project}/zones/{zone}/instances/{instance}/updateNetworkInterface",
|
||||
"httpMethod": "PATCH",
|
||||
"description": "Updates an instance's network interface. This method follows PATCH semantics.",
|
||||
"parameters": {
|
||||
"instance": {
|
||||
"type": "string",
|
||||
"description": "The instance name for this request.",
|
||||
"required": true,
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
},
|
||||
"networkInterface": {
|
||||
"type": "string",
|
||||
"description": "The name of the network interface to update.",
|
||||
"required": true,
|
||||
"location": "query"
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "Project ID for this request.",
|
||||
"required": true,
|
||||
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
"location": "path"
|
||||
},
|
||||
"requestId": {
|
||||
"type": "string",
|
||||
"description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).",
|
||||
"location": "query"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"description": "The name of the zone for this request.",
|
||||
"required": true,
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"zone",
|
||||
"instance",
|
||||
"networkInterface"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "NetworkInterface"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/compute"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -28263,6 +28397,55 @@
|
|||
"https://www.googleapis.com/auth/compute.readonly"
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"id": "compute.subnetworks.patch",
|
||||
"path": "{project}/regions/{region}/subnetworks/{subnetwork}",
|
||||
"httpMethod": "PATCH",
|
||||
"description": "Patches the specified subnetwork with the data included in the request. Only the following fields within the subnetwork resource can be specified in the request: secondary_ip_range and allow_subnet_cidr_routes_overlap. It is also mandatory to specify the current fingeprint of the subnetwork resource being patched.",
|
||||
"parameters": {
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "Project ID for this request.",
|
||||
"required": true,
|
||||
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
"location": "path"
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "Name of the region scoping this request.",
|
||||
"required": true,
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
},
|
||||
"requestId": {
|
||||
"type": "string",
|
||||
"description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).",
|
||||
"location": "query"
|
||||
},
|
||||
"subnetwork": {
|
||||
"type": "string",
|
||||
"description": "Name of the Subnetwork resource to patch.",
|
||||
"required": true,
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"region",
|
||||
"subnetwork"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Subnetwork"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/compute"
|
||||
]
|
||||
},
|
||||
"setIamPolicy": {
|
||||
"id": "compute.subnetworks.setIamPolicy",
|
||||
"path": "{project}/regions/{region}/subnetworks/{resource}/setIamPolicy",
|
||||
|
|
646
vendor/google.golang.org/api/compute/v0.beta/compute-gen.go
generated
vendored
646
vendor/google.golang.org/api/compute/v0.beta/compute-gen.go
generated
vendored
|
@ -1247,6 +1247,15 @@ type AccessConfig struct {
|
|||
// live in the same region as the zone of the instance.
|
||||
NatIP string `json:"natIP,omitempty"`
|
||||
|
||||
// PublicPtrDomainName: The DNS domain name for the public PTR record.
|
||||
// This field can only be set when the set_public_ptr field is enabled.
|
||||
PublicPtrDomainName string `json:"publicPtrDomainName,omitempty"`
|
||||
|
||||
// SetPublicPtr: Specifies whether a public DNS ?PTR? record should be
|
||||
// created to map the external IP address of the instance to a DNS
|
||||
// domain name.
|
||||
SetPublicPtr bool `json:"setPublicPtr,omitempty"`
|
||||
|
||||
// Type: The type of configuration. The default and only option is
|
||||
// ONE_TO_ONE_NAT.
|
||||
//
|
||||
|
@ -1279,7 +1288,7 @@ func (s *AccessConfig) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// Address: A reserved address resource.
|
||||
type Address struct {
|
||||
// Address: The static external IP address represented by this resource.
|
||||
// Address: The static IP address represented by this resource.
|
||||
Address string `json:"address,omitempty"`
|
||||
|
||||
// AddressType: The type of address to reserve. If unspecified, defaults
|
||||
|
@ -7467,8 +7476,7 @@ type GuestOsFeature struct {
|
|||
// Type: The type of supported feature. Currently only
|
||||
// VIRTIO_SCSI_MULTIQUEUE is supported. For newer Windows images, the
|
||||
// server might also populate this property with the value WINDOWS to
|
||||
// indicate that this is a Windows image. This value is purely
|
||||
// informational and does not enable or disable any features.
|
||||
// indicate that this is a Windows image.
|
||||
//
|
||||
// Possible values:
|
||||
// "FEATURE_TYPE_UNSPECIFIED"
|
||||
|
@ -8476,10 +8484,9 @@ type Image struct {
|
|||
// higher. Linux images with kernel versions 3.17 and higher will
|
||||
// support VIRTIO_SCSI_MULTIQUEUE.
|
||||
//
|
||||
// For new Windows images, the server might also populate this field
|
||||
// with the value WINDOWS, to indicate that this is a Windows image.
|
||||
// This value is purely informational and does not enable or disable any
|
||||
// features.
|
||||
// For newer Windows images, the server might also populate this
|
||||
// property with the value WINDOWS to indicate that this is a Windows
|
||||
// image.
|
||||
GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,omitempty"`
|
||||
|
||||
// Id: [Output Only] The unique identifier for the resource. This
|
||||
|
@ -14438,6 +14445,12 @@ type NetworkInterface struct {
|
|||
// subnet-mode networks.
|
||||
AliasIpRanges []*AliasIpRange `json:"aliasIpRanges,omitempty"`
|
||||
|
||||
// Fingerprint: Fingerprint hash of contents stored in this network
|
||||
// interface. This field will be ignored when inserting an Instance or
|
||||
// adding a NetworkInterface. An up-to-date fingerprint must be provided
|
||||
// in order to update the NetworkInterface.
|
||||
Fingerprint string `json:"fingerprint,omitempty"`
|
||||
|
||||
// Kind: [Output Only] Type of the resource. Always
|
||||
// compute#networkInterface for network interfaces.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
@ -19088,7 +19101,7 @@ type Snapshot struct {
|
|||
// "UPLOADING"
|
||||
Status string `json:"status,omitempty"`
|
||||
|
||||
// StorageBytes: [Output Only] A size of the the storage used by the
|
||||
// StorageBytes: [Output Only] A size of the storage used by the
|
||||
// snapshot. As snapshots share storage, this number is expected to
|
||||
// change with snapshot creation/deletion.
|
||||
StorageBytes int64 `json:"storageBytes,omitempty,string"`
|
||||
|
@ -19499,6 +19512,23 @@ func (s *SslCertificateListWarningData) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// Subnetwork: A Subnetwork resource.
|
||||
type Subnetwork struct {
|
||||
// AllowSubnetCidrRoutesOverlap: Whether this subnetwork can conflict
|
||||
// with static routes. Setting this to true allows this subnetwork's
|
||||
// primary and secondary ranges to conflict with routes that have
|
||||
// already been configured on the corresponding network. Static routes
|
||||
// will take precedence over the subnetwork route if the route prefix
|
||||
// length is at least as large as the subnetwork prefix length.
|
||||
//
|
||||
// Also, packets destined to IPs within subnetwork may contain
|
||||
// private/sensitive data and are prevented from leaving the virtual
|
||||
// network. Setting this field to true will disable this feature.
|
||||
//
|
||||
// The default value is false and applies to all existing subnetworks
|
||||
// and automatically created subnetworks.
|
||||
//
|
||||
// This field cannot be set to true at resource creation time.
|
||||
AllowSubnetCidrRoutesOverlap bool `json:"allowSubnetCidrRoutesOverlap,omitempty"`
|
||||
|
||||
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
|
||||
// format.
|
||||
CreationTimestamp string `json:"creationTimestamp,omitempty"`
|
||||
|
@ -19508,6 +19538,12 @@ type Subnetwork struct {
|
|||
// resource creation time.
|
||||
Description string `json:"description,omitempty"`
|
||||
|
||||
// Fingerprint: Fingerprint of this resource. A hash of the contents
|
||||
// stored in this object. This field is used in optimistic locking. This
|
||||
// field will be ignored when inserting a Subnetwork. An up-to-date
|
||||
// fingerprint must be provided in order to update the Subnetwork.
|
||||
Fingerprint string `json:"fingerprint,omitempty"`
|
||||
|
||||
// GatewayAddress: [Output Only] The gateway address for default routes
|
||||
// to reach destination addresses outside this subnetwork. This field
|
||||
// can be set only at resource creation time.
|
||||
|
@ -19566,21 +19602,22 @@ type Subnetwork struct {
|
|||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CreationTimestamp")
|
||||
// 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 is a list of field names (e.g.
|
||||
// "AllowSubnetCidrRoutesOverlap") 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. "CreationTimestamp") 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 is a list of field names (e.g.
|
||||
// "AllowSubnetCidrRoutesOverlap") 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:"-"`
|
||||
}
|
||||
|
||||
|
@ -55146,6 +55183,388 @@ func (c *InstancesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*Tes
|
|||
|
||||
}
|
||||
|
||||
// method id "compute.instances.updateAccessConfig":
|
||||
|
||||
type InstancesUpdateAccessConfigCall struct {
|
||||
s *Service
|
||||
project string
|
||||
zone string
|
||||
instance string
|
||||
accessconfig *AccessConfig
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// UpdateAccessConfig: Updates the specified access config from an
|
||||
// instance's network interface with the data included in the request.
|
||||
// This method supports PATCH semantics and uses the JSON merge patch
|
||||
// format and processing rules.
|
||||
func (r *InstancesService) UpdateAccessConfig(project string, zone string, instance string, networkInterface string, accessconfig *AccessConfig) *InstancesUpdateAccessConfigCall {
|
||||
c := &InstancesUpdateAccessConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
c.zone = zone
|
||||
c.instance = instance
|
||||
c.urlParams_.Set("networkInterface", networkInterface)
|
||||
c.accessconfig = accessconfig
|
||||
return c
|
||||
}
|
||||
|
||||
// RequestId sets the optional parameter "requestId": An optional
|
||||
// request ID to identify requests. Specify a unique request ID so that
|
||||
// if you must retry your request, the server will know to ignore the
|
||||
// request if it has already been completed.
|
||||
//
|
||||
// For example, consider a situation where you make an initial request
|
||||
// and the request times out. If you make the request again with the
|
||||
// same request ID, the server can check if original operation with the
|
||||
// same request ID was received, and if so, will ignore the second
|
||||
// request. This prevents clients from accidentally creating duplicate
|
||||
// commitments.
|
||||
//
|
||||
// The request ID must be a valid UUID with the exception that zero UUID
|
||||
// is not supported (00000000-0000-0000-0000-000000000000).
|
||||
func (c *InstancesUpdateAccessConfigCall) RequestId(requestId string) *InstancesUpdateAccessConfigCall {
|
||||
c.urlParams_.Set("requestId", requestId)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *InstancesUpdateAccessConfigCall) Fields(s ...googleapi.Field) *InstancesUpdateAccessConfigCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// 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 (c *InstancesUpdateAccessConfigCall) Context(ctx context.Context) *InstancesUpdateAccessConfigCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *InstancesUpdateAccessConfigCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *InstancesUpdateAccessConfigCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.accessconfig)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instances/{instance}/updateAccessConfig")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"project": c.project,
|
||||
"zone": c.zone,
|
||||
"instance": c.instance,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "compute.instances.updateAccessConfig" 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 (c *InstancesUpdateAccessConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &Operation{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Updates the specified access config from an instance's network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "compute.instances.updateAccessConfig",
|
||||
// "parameterOrder": [
|
||||
// "project",
|
||||
// "zone",
|
||||
// "instance",
|
||||
// "networkInterface"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "instance": {
|
||||
// "description": "The instance name for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "networkInterface": {
|
||||
// "description": "The name of the network interface where the access config is attached.",
|
||||
// "location": "query",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "project": {
|
||||
// "description": "Project ID for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "requestId": {
|
||||
// "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "zone": {
|
||||
// "description": "The name of the zone for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{project}/zones/{zone}/instances/{instance}/updateAccessConfig",
|
||||
// "request": {
|
||||
// "$ref": "AccessConfig"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "Operation"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform",
|
||||
// "https://www.googleapis.com/auth/compute"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "compute.instances.updateNetworkInterface":
|
||||
|
||||
type InstancesUpdateNetworkInterfaceCall struct {
|
||||
s *Service
|
||||
project string
|
||||
zone string
|
||||
instance string
|
||||
networkinterface *NetworkInterface
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// UpdateNetworkInterface: Updates an instance's network interface. This
|
||||
// method follows PATCH semantics.
|
||||
func (r *InstancesService) UpdateNetworkInterface(project string, zone string, instance string, networkInterface string, networkinterface *NetworkInterface) *InstancesUpdateNetworkInterfaceCall {
|
||||
c := &InstancesUpdateNetworkInterfaceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
c.zone = zone
|
||||
c.instance = instance
|
||||
c.urlParams_.Set("networkInterface", networkInterface)
|
||||
c.networkinterface = networkinterface
|
||||
return c
|
||||
}
|
||||
|
||||
// RequestId sets the optional parameter "requestId": An optional
|
||||
// request ID to identify requests. Specify a unique request ID so that
|
||||
// if you must retry your request, the server will know to ignore the
|
||||
// request if it has already been completed.
|
||||
//
|
||||
// For example, consider a situation where you make an initial request
|
||||
// and the request times out. If you make the request again with the
|
||||
// same request ID, the server can check if original operation with the
|
||||
// same request ID was received, and if so, will ignore the second
|
||||
// request. This prevents clients from accidentally creating duplicate
|
||||
// commitments.
|
||||
//
|
||||
// The request ID must be a valid UUID with the exception that zero UUID
|
||||
// is not supported (00000000-0000-0000-0000-000000000000).
|
||||
func (c *InstancesUpdateNetworkInterfaceCall) RequestId(requestId string) *InstancesUpdateNetworkInterfaceCall {
|
||||
c.urlParams_.Set("requestId", requestId)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *InstancesUpdateNetworkInterfaceCall) Fields(s ...googleapi.Field) *InstancesUpdateNetworkInterfaceCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// 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 (c *InstancesUpdateNetworkInterfaceCall) Context(ctx context.Context) *InstancesUpdateNetworkInterfaceCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *InstancesUpdateNetworkInterfaceCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *InstancesUpdateNetworkInterfaceCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.networkinterface)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instances/{instance}/updateNetworkInterface")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("PATCH", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"project": c.project,
|
||||
"zone": c.zone,
|
||||
"instance": c.instance,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "compute.instances.updateNetworkInterface" 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 (c *InstancesUpdateNetworkInterfaceCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &Operation{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Updates an instance's network interface. This method follows PATCH semantics.",
|
||||
// "httpMethod": "PATCH",
|
||||
// "id": "compute.instances.updateNetworkInterface",
|
||||
// "parameterOrder": [
|
||||
// "project",
|
||||
// "zone",
|
||||
// "instance",
|
||||
// "networkInterface"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "instance": {
|
||||
// "description": "The instance name for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "networkInterface": {
|
||||
// "description": "The name of the network interface to update.",
|
||||
// "location": "query",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "project": {
|
||||
// "description": "Project ID for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "requestId": {
|
||||
// "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "zone": {
|
||||
// "description": "The name of the zone for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{project}/zones/{zone}/instances/{instance}/updateNetworkInterface",
|
||||
// "request": {
|
||||
// "$ref": "NetworkInterface"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "Operation"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform",
|
||||
// "https://www.googleapis.com/auth/compute"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "compute.interconnectAttachments.aggregatedList":
|
||||
|
||||
type InterconnectAttachmentsAggregatedListCall struct {
|
||||
|
@ -77404,6 +77823,191 @@ func (c *SubnetworksListCall) Pages(ctx context.Context, f func(*SubnetworkList)
|
|||
}
|
||||
}
|
||||
|
||||
// method id "compute.subnetworks.patch":
|
||||
|
||||
type SubnetworksPatchCall struct {
|
||||
s *Service
|
||||
project string
|
||||
region string
|
||||
subnetwork string
|
||||
subnetwork2 *Subnetwork
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Patch: Patches the specified subnetwork with the data included in the
|
||||
// request. Only the following fields within the subnetwork resource can
|
||||
// be specified in the request: secondary_ip_range and
|
||||
// allow_subnet_cidr_routes_overlap. It is also mandatory to specify the
|
||||
// current fingeprint of the subnetwork resource being patched.
|
||||
func (r *SubnetworksService) Patch(project string, region string, subnetwork string, subnetwork2 *Subnetwork) *SubnetworksPatchCall {
|
||||
c := &SubnetworksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
c.region = region
|
||||
c.subnetwork = subnetwork
|
||||
c.subnetwork2 = subnetwork2
|
||||
return c
|
||||
}
|
||||
|
||||
// RequestId sets the optional parameter "requestId": An optional
|
||||
// request ID to identify requests. Specify a unique request ID so that
|
||||
// if you must retry your request, the server will know to ignore the
|
||||
// request if it has already been completed.
|
||||
//
|
||||
// For example, consider a situation where you make an initial request
|
||||
// and the request times out. If you make the request again with the
|
||||
// same request ID, the server can check if original operation with the
|
||||
// same request ID was received, and if so, will ignore the second
|
||||
// request. This prevents clients from accidentally creating duplicate
|
||||
// commitments.
|
||||
//
|
||||
// The request ID must be a valid UUID with the exception that zero UUID
|
||||
// is not supported (00000000-0000-0000-0000-000000000000).
|
||||
func (c *SubnetworksPatchCall) RequestId(requestId string) *SubnetworksPatchCall {
|
||||
c.urlParams_.Set("requestId", requestId)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *SubnetworksPatchCall) Fields(s ...googleapi.Field) *SubnetworksPatchCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// 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 (c *SubnetworksPatchCall) Context(ctx context.Context) *SubnetworksPatchCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *SubnetworksPatchCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *SubnetworksPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.subnetwork2)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/regions/{region}/subnetworks/{subnetwork}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("PATCH", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"project": c.project,
|
||||
"region": c.region,
|
||||
"subnetwork": c.subnetwork,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "compute.subnetworks.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 (c *SubnetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &Operation{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Patches the specified subnetwork with the data included in the request. Only the following fields within the subnetwork resource can be specified in the request: secondary_ip_range and allow_subnet_cidr_routes_overlap. It is also mandatory to specify the current fingeprint of the subnetwork resource being patched.",
|
||||
// "httpMethod": "PATCH",
|
||||
// "id": "compute.subnetworks.patch",
|
||||
// "parameterOrder": [
|
||||
// "project",
|
||||
// "region",
|
||||
// "subnetwork"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "project": {
|
||||
// "description": "Project ID for this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "region": {
|
||||
// "description": "Name of the region scoping this request.",
|
||||
// "location": "path",
|
||||
// "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "requestId": {
|
||||
// "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "subnetwork": {
|
||||
// "description": "Name of the Subnetwork resource to patch.",
|
||||
// "location": "path",
|
||||
// "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{project}/regions/{region}/subnetworks/{subnetwork}",
|
||||
// "request": {
|
||||
// "$ref": "Subnetwork"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "Operation"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform",
|
||||
// "https://www.googleapis.com/auth/compute"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "compute.subnetworks.setIamPolicy":
|
||||
|
||||
type SubnetworksSetIamPolicyCall struct {
|
||||
|
|
26
vendor/google.golang.org/api/compute/v1/compute-api.json
generated
vendored
26
vendor/google.golang.org/api/compute/v1/compute-api.json
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/bvUbOBPnfuX4gDZ5aBr7PZU4ZJM\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/cngOjaowRI92cKIanqfdVBHzE7E\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "compute:v1",
|
||||
"name": "compute",
|
||||
"version": "v1",
|
||||
"revision": "20170905",
|
||||
"revision": "20170908",
|
||||
"title": "Compute Engine API",
|
||||
"description": "Creates and runs virtual machines on Google Cloud Platform.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -20,7 +20,7 @@
|
|||
"basePath": "/compute/v1/projects/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "compute/v1/projects/",
|
||||
"batchPath": "batch",
|
||||
"batchPath": "batch/compute/v1",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
|
@ -336,7 +336,7 @@
|
|||
"properties": {
|
||||
"address": {
|
||||
"type": "string",
|
||||
"description": "The static external IP address represented by this resource."
|
||||
"description": "The static IP address represented by this resource."
|
||||
},
|
||||
"creationTimestamp": {
|
||||
"type": "string",
|
||||
|
@ -2805,7 +2805,7 @@
|
|||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is supported. For newer Windows images, the server might also populate this property with the value WINDOWS to indicate that this is a Windows image. This value is purely informational and does not enable or disable any features.",
|
||||
"description": "The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is supported. For newer Windows images, the server might also populate this property with the value WINDOWS to indicate that this is a Windows image.",
|
||||
"enum": [
|
||||
"FEATURE_TYPE_UNSPECIFIED",
|
||||
"VIRTIO_SCSI_MULTIQUEUE",
|
||||
|
@ -3296,7 +3296,7 @@
|
|||
},
|
||||
"guestOsFeatures": {
|
||||
"type": "array",
|
||||
"description": "A list of features to enable on the guest OS. Applicable for bootable images only. Currently, only one feature can be enabled, VIRTIO_SCSI_MULTIQUEUE, which allows each virtual CPU to have its own queue. For Windows images, you can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.1621 or higher. Linux images with kernel versions 3.17 and higher will support VIRTIO_SCSI_MULTIQUEUE.\n\nFor new Windows images, the server might also populate this field with the value WINDOWS, to indicate that this is a Windows image. This value is purely informational and does not enable or disable any features.",
|
||||
"description": "A list of features to enable on the guest OS. Applicable for bootable images only. Currently, only one feature can be enabled, VIRTIO_SCSI_MULTIQUEUE, which allows each virtual CPU to have its own queue. For Windows images, you can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.1621 or higher. Linux images with kernel versions 3.17 and higher will support VIRTIO_SCSI_MULTIQUEUE.\n\nFor newer Windows images, the server might also populate this property with the value WINDOWS to indicate that this is a Windows image.",
|
||||
"items": {
|
||||
"$ref": "GuestOsFeature"
|
||||
}
|
||||
|
@ -3390,6 +3390,18 @@
|
|||
"type": "string",
|
||||
"description": "The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name."
|
||||
},
|
||||
"sourceImage": {
|
||||
"type": "string",
|
||||
"description": "URL of the source image used to create this image. This can be a full or valid partial URL. You must provide exactly one of: \n- this property, or \n- the rawDisk.source property, or \n- the sourceDisk property in order to create an image."
|
||||
},
|
||||
"sourceImageEncryptionKey": {
|
||||
"$ref": "CustomerEncryptionKey",
|
||||
"description": "The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key."
|
||||
},
|
||||
"sourceImageId": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] The ID value of the image used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given image name."
|
||||
},
|
||||
"sourceType": {
|
||||
"type": "string",
|
||||
"description": "The type of the image used to create this disk. The default and only value is RAW",
|
||||
|
@ -7117,7 +7129,7 @@
|
|||
},
|
||||
"storageBytes": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] A size of the the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.",
|
||||
"description": "[Output Only] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.",
|
||||
"format": "int64"
|
||||
},
|
||||
"storageBytesStatus": {
|
||||
|
|
32
vendor/google.golang.org/api/compute/v1/compute-gen.go
generated
vendored
32
vendor/google.golang.org/api/compute/v1/compute-gen.go
generated
vendored
|
@ -1033,7 +1033,7 @@ func (s *AccessConfig) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// Address: A reserved address resource.
|
||||
type Address struct {
|
||||
// Address: The static external IP address represented by this resource.
|
||||
// Address: The static IP address represented by this resource.
|
||||
Address string `json:"address,omitempty"`
|
||||
|
||||
// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
|
||||
|
@ -5049,8 +5049,7 @@ type GuestOsFeature struct {
|
|||
// Type: The type of supported feature. Currently only
|
||||
// VIRTIO_SCSI_MULTIQUEUE is supported. For newer Windows images, the
|
||||
// server might also populate this property with the value WINDOWS to
|
||||
// indicate that this is a Windows image. This value is purely
|
||||
// informational and does not enable or disable any features.
|
||||
// indicate that this is a Windows image.
|
||||
//
|
||||
// Possible values:
|
||||
// "FEATURE_TYPE_UNSPECIFIED"
|
||||
|
@ -5758,10 +5757,9 @@ type Image struct {
|
|||
// higher. Linux images with kernel versions 3.17 and higher will
|
||||
// support VIRTIO_SCSI_MULTIQUEUE.
|
||||
//
|
||||
// For new Windows images, the server might also populate this field
|
||||
// with the value WINDOWS, to indicate that this is a Windows image.
|
||||
// This value is purely informational and does not enable or disable any
|
||||
// features.
|
||||
// For newer Windows images, the server might also populate this
|
||||
// property with the value WINDOWS to indicate that this is a Windows
|
||||
// image.
|
||||
GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,omitempty"`
|
||||
|
||||
// Id: [Output Only] The unique identifier for the resource. This
|
||||
|
@ -5840,6 +5838,24 @@ type Image struct {
|
|||
// the current or a previous instance of a given disk name.
|
||||
SourceDiskId string `json:"sourceDiskId,omitempty"`
|
||||
|
||||
// SourceImage: URL of the source image used to create this image. This
|
||||
// can be a full or valid partial URL. You must provide exactly one of:
|
||||
//
|
||||
// - this property, or
|
||||
// - the rawDisk.source property, or
|
||||
// - the sourceDisk property in order to create an image.
|
||||
SourceImage string `json:"sourceImage,omitempty"`
|
||||
|
||||
// SourceImageEncryptionKey: The customer-supplied encryption key of the
|
||||
// source image. Required if the source image is protected by a
|
||||
// customer-supplied encryption key.
|
||||
SourceImageEncryptionKey *CustomerEncryptionKey `json:"sourceImageEncryptionKey,omitempty"`
|
||||
|
||||
// SourceImageId: [Output Only] The ID value of the image used to create
|
||||
// this image. This value may be used to determine whether the image was
|
||||
// taken from the current or a previous instance of a given image name.
|
||||
SourceImageId string `json:"sourceImageId,omitempty"`
|
||||
|
||||
// SourceType: The type of the image used to create this disk. The
|
||||
// default and only value is RAW
|
||||
//
|
||||
|
@ -11638,7 +11654,7 @@ type Snapshot struct {
|
|||
// "UPLOADING"
|
||||
Status string `json:"status,omitempty"`
|
||||
|
||||
// StorageBytes: [Output Only] A size of the the storage used by the
|
||||
// StorageBytes: [Output Only] A size of the storage used by the
|
||||
// snapshot. As snapshots share storage, this number is expected to
|
||||
// change with snapshot creation/deletion.
|
||||
StorageBytes int64 `json:"storageBytes,omitempty,string"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue