diff --git a/androidenterprise/v1/androidenterprise-api.json b/androidenterprise/v1/androidenterprise-api.json index a8557f9daa1..95508ad4275 100644 --- a/androidenterprise/v1/androidenterprise-api.json +++ b/androidenterprise/v1/androidenterprise-api.json @@ -1,12 +1,12 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/TAGoQX581k0pUlJRReLGRYb2z5U\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/T8xjS8-LAPJJ1wXBIGC7t3Ehz9c\"", "discoveryVersion": "v1", "id": "androidenterprise:v1", "name": "androidenterprise", "canonicalName": "Android Enterprise", "version": "v1", - "revision": "20150303", + "revision": "20150715", "title": "Google Play EMM API", "description": "Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android for Work users.", "ownerDomain": "google.com", @@ -15,6 +15,7 @@ "x16": "https://www.google.com/images/icons/product/android-16.png", "x32": "https://www.google.com/images/icons/product/android-32.png" }, + "documentationLink": "https://developers.google.com/play/enterprise", "protocol": "rest", "baseUrl": "https://www.googleapis.com/androidenterprise/v1/", "basePath": "/androidenterprise/v1/", @@ -165,16 +166,16 @@ "AppVersion": { "id": "AppVersion", "type": "object", - "description": "App version represents a single APK version.", + "description": "This represents a single version of the app.", "properties": { "versionCode": { "type": "integer", - "description": "Unique increasing identifier for the apk version.", + "description": "Unique increasing identifier for the app version.", "format": "int32" }, "versionString": { "type": "string", - "description": "The string used in the Play Store by the app developer to identify a version of an app. The string is not necessarily unique or localized (e.g. \"1.4\")." + "description": "The string used in the Play Store by the app developer to identify the version. The string is not necessarily unique or localized (for example, the string could be \"1.4\")." } } }, @@ -436,7 +437,7 @@ "GroupLicense": { "id": "GroupLicense", "type": "object", - "description": "A group license object indicates a product that an enterprise admin has approved for use in the enterprise. The product may be free or paid. For free products, a group license object is created in these cases: if the enterprise admin approves a product in Google Play, if the product is added to a collection, or if an entitlement for the product is created for a user via the API. For paid products, a group license object is only created as part of the first bulk purchase of that product in Google Play done by the enterprise admin.\n\nThe API can be used to query group licenses; the available information includes the total number of licenses purchased (for paid products) and the total number of licenses that have been provisioned, i.e. the total number of user entitlements in existence for the product.\n\nGroup license objects are never deleted; if e.g. a free app is added to a collection and then removed, the group license will remain, allowing to keep track of any remaining entitlements. An enterprise admin may indicate they are no longer interested in the group license by marking it as unapproved in Google Play.", + "description": "A group license object indicates a product that an enterprise admin has approved for use in the enterprise. The product may be free or paid. For free products, a group license object is created in these cases: if the enterprise admin approves a product in Google Play, if the product is added to a collection, or if an entitlement for the product is created for a user via the API. For paid products, a group license object is only created as part of the first bulk purchase of that product in Google Play by the enterprise admin.\n\nThe API can be used to query group licenses; the available information includes the total number of licenses purchased (for paid products) and the total number of licenses that have been provisioned, that is, the total number of user entitlements in existence for the product.\n\nGroup license objects are never deleted. If, for example, a free app is added to a collection and then removed, the group license will remain, allowing the enterprise admin to keep track of any remaining entitlements. An enterprise admin may indicate they are no longer interested in the group license by marking it as unapproved in Google Play.", "properties": { "acquisitionKind": { "type": "string", @@ -580,7 +581,7 @@ "properties": { "appVersion": { "type": "array", - "description": "List of app versions available for this product. The returned list contains only public versions. E.g. alpha, beta or canary versions will not be included.", + "description": "App versions currently available for this product. The returned list contains only public versions. Alpha and beta versions are not included.", "items": { "$ref": "AppVersion" } @@ -595,7 +596,7 @@ }, "distributionChannel": { "type": "string", - "description": "How and to whom the package is made available." + "description": "How and to whom the package is made available. The value publicGoogleHosted means that the package is available through the Play Store and not restricted to a specific enterprise. The value privateGoogleHosted means that the package is a private app (restricted to an enterprise) but hosted by Google. The value privateSelfHosted means that the package is a private app (restricted to an enterprise) and is privately hosted." }, "iconUrl": { "type": "string", @@ -608,7 +609,7 @@ }, "productId": { "type": "string", - "description": "A string of the form \"app:\n\" - e.g. \"app:com.google.android.gm\" represents the GMail app." + "description": "A string of the form app:\n. For example, app:com.google.android.gm represents the Gmail app." }, "requiresContainerApp": { "type": "boolean", @@ -672,7 +673,8 @@ "type": "object", "properties": { "approvalUrlInfo": { - "$ref": "ApprovalUrlInfo" + "$ref": "ApprovalUrlInfo", + "description": "The approval URL that was shown to the user. Only the permissions shown to the user with that URL will be accepted, which may not be the product's entire set of permissions. For example, the URL may only display new permissions from an update after the product was approved, or not include new permissions if the product was updated since the URL was generated." } } }, @@ -682,7 +684,7 @@ "properties": { "url": { "type": "string", - "description": "A iframe-able URL that displays a product's permissions (if any). This URL can be used to approve the product only once and for a limited time (1 hour), using the Products.approve call. If the product is not currently approved and has no permissions, this URL will point to an empty page. If the product is currently approved and all of its permissions (if any) are also approved, this field will not be populated." + "description": "A URL that can be rendered in an iframe to display the permissions (if any) of a product. This URL can be used to approve the product only once and only within 24 hours of being generated, using the Products.approve call. If the product is currently unapproved and has no permissions, this URL will point to an empty page. If the product is currently approved, a URL will only be generated if that product has added permissions since it was last approved, and the URL will only display those new permissions that have not yet been accepted." } } }, @@ -1998,7 +2000,7 @@ "id": "androidenterprise.products.generateApprovalUrl", "path": "enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl", "httpMethod": "POST", - "description": "Generates a URL that can be used to display an iframe to view the product's permissions (if any) and approve the product. This URL can be used to approve the product for a limited time (currently 1 hour) using the Products.approve call.", + "description": "Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product.\n\nAdmins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day.", "parameters": { "enterpriseId": { "type": "string", @@ -2008,7 +2010,7 @@ }, "languageCode": { "type": "string", - "description": "The language code that will be used for permission names and descriptions in the returned iframe.", + "description": "The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance \"en-US\".", "location": "query" }, "productId": { diff --git a/androidenterprise/v1/androidenterprise-gen.go b/androidenterprise/v1/androidenterprise-gen.go index ede723e117c..3408922ba06 100644 --- a/androidenterprise/v1/androidenterprise-gen.go +++ b/androidenterprise/v1/androidenterprise-gen.go @@ -1,5 +1,7 @@ // Package androidenterprise provides access to the Google Play EMM API. // +// See https://developers.google.com/play/enterprise +// // Usage example: // // import "google.golang.org/api/androidenterprise/v1" @@ -252,12 +254,12 @@ type AppRestrictionsSchemaRestrictionRestrictionValue struct { } type AppVersion struct { - // VersionCode: Unique increasing identifier for the apk version. + // VersionCode: Unique increasing identifier for the app version. VersionCode int64 `json:"versionCode,omitempty"` // VersionString: The string used in the Play Store by the app developer - // to identify a version of an app. The string is not necessarily unique - // or localized (e.g. "1.4"). + // to identify the version. The string is not necessarily unique or + // localized (for example, the string could be "1.4"). VersionString string `json:"versionString,omitempty"` } @@ -516,9 +518,9 @@ type Permission struct { } type Product struct { - // AppVersion: List of app versions available for this product. The - // returned list contains only public versions. E.g. alpha, beta or - // canary versions will not be included. + // AppVersion: App versions currently available for this product. The + // returned list contains only public versions. Alpha and beta versions + // are not included. AppVersion []*AppVersion `json:"appVersion,omitempty"` // AuthorName: The name of the author of the product (e.g. the app @@ -530,6 +532,12 @@ type Product struct { DetailsUrl string `json:"detailsUrl,omitempty"` // DistributionChannel: How and to whom the package is made available. + // The value publicGoogleHosted means that the package is available + // through the Play Store and not restricted to a specific enterprise. + // The value privateGoogleHosted means that the package is a private app + // (restricted to an enterprise) but hosted by Google. The value + // privateSelfHosted means that the package is a private app (restricted + // to an enterprise) and is privately hosted. DistributionChannel string `json:"distributionChannel,omitempty"` // IconUrl: A link to an image that can be used as an icon for the @@ -540,8 +548,8 @@ type Product struct { // string "androidenterprise#product". Kind string `json:"kind,omitempty"` - // ProductId: A string of the form "app: - // " - e.g. "app:com.google.android.gm" represents the GMail app. + // ProductId: A string of the form app: + // . For example, app:com.google.android.gm represents the Gmail app. ProductId string `json:"productId,omitempty"` // RequiresContainerApp: Whether this app can only be installed on @@ -578,17 +586,25 @@ type ProductPermissions struct { } type ProductsApproveRequest struct { + // ApprovalUrlInfo: The approval URL that was shown to the user. Only + // the permissions shown to the user with that URL will be accepted, + // which may not be the product's entire set of permissions. For + // example, the URL may only display new permissions from an update + // after the product was approved, or not include new permissions if the + // product was updated since the URL was generated. ApprovalUrlInfo *ApprovalUrlInfo `json:"approvalUrlInfo,omitempty"` } type ProductsGenerateApprovalUrlResponse struct { - // Url: A iframe-able URL that displays a product's permissions (if - // any). This URL can be used to approve the product only once and for a - // limited time (1 hour), using the Products.approve call. If the - // product is not currently approved and has no permissions, this URL - // will point to an empty page. If the product is currently approved and - // all of its permissions (if any) are also approved, this field will - // not be populated. + // Url: A URL that can be rendered in an iframe to display the + // permissions (if any) of a product. This URL can be used to approve + // the product only once and only within 24 hours of being generated, + // using the Products.approve call. If the product is currently + // unapproved and has no permissions, this URL will point to an empty + // page. If the product is currently approved, a URL will only be + // generated if that product has added permissions since it was last + // approved, and the URL will only display those new permissions that + // have not yet been accepted. Url string `json:"url,omitempty"` } @@ -4100,10 +4116,17 @@ type ProductsGenerateApprovalUrlCall struct { opt_ map[string]interface{} } -// GenerateApprovalUrl: Generates a URL that can be used to display an -// iframe to view the product's permissions (if any) and approve the -// product. This URL can be used to approve the product for a limited -// time (currently 1 hour) using the Products.approve call. +// GenerateApprovalUrl: Generates a URL that can be rendered in an +// iframe to display the permissions (if any) of a product. An +// enterprise admin must view these permissions and accept them on +// behalf of their organization in order to approve that +// product. +// +// Admins should accept the displayed permissions by interacting with a +// separate UI element in the EMM console, which in turn should trigger +// the use of this URL as the approvalUrlInfo.approvalUrl property in a +// Products.approve call to approve the product. This URL can only be +// used to display permissions for up to 1 day. func (r *ProductsService) GenerateApprovalUrl(enterpriseId string, productId string) *ProductsGenerateApprovalUrlCall { c := &ProductsGenerateApprovalUrlCall{s: r.s, opt_: make(map[string]interface{})} c.enterpriseId = enterpriseId @@ -4111,9 +4134,9 @@ func (r *ProductsService) GenerateApprovalUrl(enterpriseId string, productId str return c } -// LanguageCode sets the optional parameter "languageCode": The language -// code that will be used for permission names and descriptions in the -// returned iframe. +// LanguageCode sets the optional parameter "languageCode": The BCP 47 +// language code used for permission names and descriptions in the +// returned iframe, for instance "en-US". func (c *ProductsGenerateApprovalUrlCall) LanguageCode(languageCode string) *ProductsGenerateApprovalUrlCall { c.opt_["languageCode"] = languageCode return c @@ -4159,7 +4182,7 @@ func (c *ProductsGenerateApprovalUrlCall) Do() (*ProductsGenerateApprovalUrlResp } return ret, nil // { - // "description": "Generates a URL that can be used to display an iframe to view the product's permissions (if any) and approve the product. This URL can be used to approve the product for a limited time (currently 1 hour) using the Products.approve call.", + // "description": "Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product.\n\nAdmins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day.", // "httpMethod": "POST", // "id": "androidenterprise.products.generateApprovalUrl", // "parameterOrder": [ @@ -4174,7 +4197,7 @@ func (c *ProductsGenerateApprovalUrlCall) Do() (*ProductsGenerateApprovalUrlResp // "type": "string" // }, // "languageCode": { - // "description": "The language code that will be used for permission names and descriptions in the returned iframe.", + // "description": "The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance \"en-US\".", // "location": "query", // "type": "string" // }, diff --git a/api-list.json b/api-list.json index 4b03b449e97..a2608e055b8 100644 --- a/api-list.json +++ b/api-list.json @@ -242,6 +242,7 @@ "x16": "https://www.google.com/images/icons/product/android-16.png", "x32": "https://www.google.com/images/icons/product/android-32.png" }, + "documentationLink": "https://developers.google.com/play/enterprise", "preferred": true }, { @@ -1123,6 +1124,22 @@ "documentationLink": "https://developers.google.com/google-apps/groups-settings/get_started", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "appengine:v1beta4", + "name": "appengine", + "version": "v1beta4", + "title": "Google App Engine Admin API", + "description": "The App Engine Admin API enables developers to provision and manage their App Engine applications.", + "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/appengine/v1beta4/rest", + "discoveryLink": "./apis/appengine/v1beta4/rest", + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "documentationLink": "https://developers.google.com/appengine/", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "classroom:v1", @@ -1161,7 +1178,7 @@ "name": "cloudresourcemanager", "version": "v1beta1", "title": "Google Cloud Resource Manager API", - "description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating of project metadata, including IAM policies, and will shortly provide the same for other high-level entities (e.g. customers and resource groups). Longer term, we expect the cloudresourcemanager API to encompass other Cloud resources as well.", + "description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating of project metadata.", "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/cloudresourcemanager/v1beta1/rest", "discoveryLink": "./apis/cloudresourcemanager/v1beta1/rest", "icons": { @@ -1219,6 +1236,22 @@ "documentationLink": "", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "partners:v2", + "name": "partners", + "version": "v2", + "title": "Google Partners API", + "description": "Lets advertisers search certified companies and create contact leads with them, and also audits the usage of clients.", + "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/partners/v2/rest", + "discoveryLink": "./apis/partners/v2/rest", + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "documentationLink": "https://developers.google.com/partners/", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "playmoviespartner:v1", diff --git a/appengine/v1beta4/appengine-api.json b/appengine/v1beta4/appengine-api.json new file mode 100644 index 00000000000..2fc972b9504 --- /dev/null +++ b/appengine/v1beta4/appengine-api.json @@ -0,0 +1,1488 @@ +{ + "kind": "discovery#restDescription", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/62qeP6JNrNNbKIoC3qXHjPCCN2Q\"", + "discoveryVersion": "v1", + "id": "appengine:v1beta4", + "name": "appengine", + "version": "v1beta4", + "revision": "20150602", + "title": "Google App Engine Admin API", + "description": "The App Engine Admin API enables developers to provision and manage their App Engine applications.", + "ownerDomain": "google.com", + "ownerName": "Google", + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "documentationLink": "https://developers.google.com/appengine/", + "protocol": "rest", + "baseUrl": "https://appengine.googleapis.com/", + "basePath": "", + "rootUrl": "https://appengine.googleapis.com/", + "servicePath": "", + "batchPath": "batch", + "parameters": { + "access_token": { + "type": "string", + "description": "OAuth access token.", + "location": "query" + }, + "alt": { + "type": "string", + "description": "Data format for response.", + "default": "json", + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query" + }, + "bearer_token": { + "type": "string", + "description": "OAuth bearer token.", + "location": "query" + }, + "callback": { + "type": "string", + "description": "JSONP", + "location": "query" + }, + "fields": { + "type": "string", + "description": "Selector specifying which fields to include in a partial response.", + "location": "query" + }, + "key": { + "type": "string", + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query" + }, + "oauth_token": { + "type": "string", + "description": "OAuth 2.0 token for the current user.", + "location": "query" + }, + "pp": { + "type": "boolean", + "description": "Pretty-print response.", + "default": "true", + "location": "query" + }, + "prettyPrint": { + "type": "boolean", + "description": "Returns response with indentations and line breaks.", + "default": "true", + "location": "query" + }, + "quotaUser": { + "type": "string", + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query" + }, + "upload_protocol": { + "type": "string", + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query" + }, + "uploadType": { + "type": "string", + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query" + }, + "$.xgafv": { + "type": "string", + "description": "V1 error format.", + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query" + } + }, + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "View and manage your data across Google Cloud Platform services" + } + } + } + }, + "schemas": { + "Application": { + "id": "Application", + "type": "object", + "description": "An Application contains the top-level configuration of an App Engine application.", + "properties": { + "name": { + "type": "string", + "description": "The full path to the application in the API. Example: \"apps/myapp\". @OutputOnly" + }, + "id": { + "type": "string", + "description": "The relative name/path of the application. Example: \"myapp\". @OutputOnly" + }, + "dispatchRules": { + "type": "array", + "description": "HTTP path dispatch rules for requests to the app that do not explicitly target a module or version. The rules are order-dependent.", + "items": { + "$ref": "UrlDispatchRule" + } + }, + "location": { + "type": "string", + "description": "The location from which the application will be run. Choices are \"us\" for United States and \"eu\" for European Union. Application instances will run out of data centers in the chosen location and all of the application's End User Content will be stored at rest in the chosen location. The default is \"us\"." + }, + "codeBucket": { + "type": "string", + "description": "A Google Cloud Storage bucket which can be used for storing files associated with an application. This bucket is associated with the application and can be used by the gcloud deployment commands. @OutputOnly" + } + } + }, + "UrlDispatchRule": { + "id": "UrlDispatchRule", + "type": "object", + "description": "Rules to match an HTTP request and dispatch that request to a module.", + "properties": { + "domain": { + "type": "string", + "description": "The domain name to match on. Supports '*' (glob) wildcarding on the left-hand side of a '.'. If empty, all domains will be matched (the same as '*')." + }, + "path": { + "type": "string", + "description": "The pathname within the host. This must start with a '/'. A single '*' (glob) can be included at the end of the path. The sum of the lengths of the domain and path may not exceed 100 characters." + }, + "module": { + "type": "string", + "description": "The resource id of a Module in this application that should service the matched request. The Module must already exist. Example: \"default\"." + } + } + }, + "Version": { + "id": "Version", + "type": "object", + "description": "A Version is a specific set of source code and configuration files deployed to a module.", + "properties": { + "name": { + "type": "string", + "description": "The full path to the Version resource in the API. Example: \"apps/myapp/modules/default/versions/v1\". @OutputOnly" + }, + "id": { + "type": "string", + "description": "The relative name/path of the Version within the module. Example: \"v1\"" + }, + "automaticScaling": { + "$ref": "AutomaticScaling", + "description": "Automatic scaling is the scaling policy that App Engine has used since its inception. It is based on request rate, response latencies, and other application metrics." + }, + "basicScaling": { + "$ref": "BasicScaling", + "description": "A module with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity." + }, + "manualScaling": { + "$ref": "ManualScaling", + "description": "A module with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time." + }, + "inboundServices": { + "type": "array", + "description": "Before an application can receive email or XMPP messages, the application must be configured to enable the service.", + "enumDescriptions": [ + "Not specified.", + "Allows an application to receive mail.", + "Allows an application receive email bound notifications.", + "Allows an application to receive error stanzas.", + "Allows an application to receive instant messages.", + "Allows an application to receive user subscription POSTs.", + "Allows an application to receive a user's chat presence.", + "Registers an application for notifications when a client connects or disconnects from a channel.", + "Enables warmup requests." + ], + "items": { + "type": "string", + "enum": [ + "INBOUND_SERVICE_UNSPECIFIED", + "INBOUND_SERVICE_MAIL", + "INBOUND_SERVICE_MAIL_BOUNCE", + "INBOUND_SERVICE_XMPP_ERROR", + "INBOUND_SERVICE_XMPP_MESSAGE", + "INBOUND_SERVICE_XMPP_SUBSCRIBE", + "INBOUND_SERVICE_XMPP_PRESENCE", + "INBOUND_SERVICE_CHANNEL_PRESENCE", + "INBOUND_SERVICE_WARMUP" + ] + } + }, + "instanceClass": { + "type": "string", + "description": "The frontend instance class to use to run this app. Valid values are `[F1, F2, F4, F4_1G]`." + }, + "network": { + "$ref": "Network", + "description": "Used to specify extra network settings (for VM runtimes only)." + }, + "resources": { + "$ref": "Resources", + "description": "Used to specify how many machine resources an app version needs (for VM runtimes only)." + }, + "runtime": { + "type": "string", + "description": "The desired runtime. Values can include python27, java7, go, etc." + }, + "threadsafe": { + "type": "boolean", + "description": "If true, multiple requests can be dispatched to the app at once." + }, + "vm": { + "type": "boolean", + "description": "Whether to deploy this app in a VM container." + }, + "betaSettings": { + "type": "object", + "description": "Beta settings supplied to the application via metadata.", + "additionalProperties": { + "type": "string" + } + }, + "handlers": { + "type": "array", + "description": "An ordered list of URL Matching patterns that should be applied to incoming requests. The first matching URL consumes the request, and subsequent handlers are not attempted. Only returned in `GET` requests if `view=FULL` is set. May only be set on create requests; once created, is immutable.", + "items": { + "$ref": "UrlMap" + } + }, + "errorHandlers": { + "type": "array", + "description": "Custom static error pages instead of these generic error pages, (limit 10 KB/page) Only returned in `GET` requests if `view=FULL` is set. May only be set on create requests; once created, is immutable.", + "items": { + "$ref": "ErrorHandler" + } + }, + "libraries": { + "type": "array", + "description": "Configuration for Python runtime third-party libraries required by the application. Only returned in `GET` requests if `view=FULL` is set. May only be set on create requests; once created, is immutable.", + "items": { + "$ref": "Library" + } + }, + "apiConfig": { + "$ref": "ApiConfigHandler", + "description": "Serving configuration for Google Cloud Endpoints. Only returned in `GET` requests if `view=FULL` is set. May only be set on create requests; once created, is immutable." + }, + "envVariables": { + "type": "object", + "description": "Environment variables made available to the application. Only returned in `GET` requests if `view=FULL` is set. May only be set on create requests; once created, is immutable.", + "additionalProperties": { + "type": "string" + } + }, + "defaultExpiration": { + "type": "string", + "description": "The length of time a static file served by a static file handler ought to be cached by web proxies and browsers, if the handler does not specify its own expiration. Only returned in `GET` requests if `view=FULL` is set. May only be set on create requests; once created, is immutable." + }, + "healthCheck": { + "$ref": "HealthCheck", + "description": "Configure health checking for the VM instances. Unhealthy VM instances will be stopped and replaced with new instances. Only returned in `GET` requests if `view=FULL` is set. May only be set on create requests; once created, is immutable." + }, + "nobuildFilesRegex": { + "type": "string", + "description": "Go only. Files that match this pattern will not be built into the app. May only be set on create requests." + }, + "deployment": { + "$ref": "Deployment", + "description": "Code and application artifacts that make up this version. Only returned in `GET` requests if `view=FULL` is set. May only be set on create requests; once created, is immutable." + } + } + }, + "AutomaticScaling": { + "id": "AutomaticScaling", + "type": "object", + "description": "Automatic scaling is the scaling policy that App Engine has used since its inception. It is based on request rate, response latencies, and other application metrics.", + "properties": { + "coolDownPeriod": { + "type": "string", + "description": "The amount of time that the [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait between changes to the number of virtual machines. Applies only to the VM runtime." + }, + "cpuUtilization": { + "$ref": "CpuUtilization", + "description": "Target scaling by CPU usage." + }, + "maxConcurrentRequests": { + "type": "integer", + "description": "The number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance. Default value is chosen based on the runtime.", + "format": "int32" + }, + "maxIdleInstances": { + "type": "integer", + "description": "The maximum number of idle instances that App Engine should maintain for this version.", + "format": "int32" + }, + "maxTotalInstances": { + "type": "integer", + "description": "Max number of instances that App Engine should start to handle requests.", + "format": "int32" + }, + "maxPendingLatency": { + "type": "string", + "description": "The maximum amount of time that App Engine should allow a request to wait in the pending queue before starting a new instance to handle it." + }, + "minIdleInstances": { + "type": "integer", + "description": "The minimum number of idle instances that App Engine should maintain for this version. Only applies to the default version of a module, since other versions are not expected to receive significant traffic.", + "format": "int32" + }, + "minTotalInstances": { + "type": "integer", + "description": "Minimum number of instances that App Engine should maintain.", + "format": "int32" + }, + "minPendingLatency": { + "type": "string", + "description": "The minimum amount of time that App Engine should allow a request to wait in the pending queue before starting a new instance to handle it." + } + } + }, + "CpuUtilization": { + "id": "CpuUtilization", + "type": "object", + "description": "Target scaling by CPU usage.", + "properties": { + "aggregationWindowLength": { + "type": "string", + "description": "The period of time over which CPU utilization is calculated." + }, + "targetUtilization": { + "type": "number", + "description": "Target (0-1) CPU utilization ratio to maintain when scaling.", + "format": "double" + } + } + }, + "BasicScaling": { + "id": "BasicScaling", + "type": "object", + "description": "A module with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.", + "properties": { + "idleTimeout": { + "type": "string", + "description": "The instance will be shut down this amount of time after receiving its last request." + }, + "maxInstances": { + "type": "integer", + "description": "The maximum number of instances for App Engine to create for this version.", + "format": "int32" + } + } + }, + "ManualScaling": { + "id": "ManualScaling", + "type": "object", + "description": "A module with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.", + "properties": { + "instances": { + "type": "integer", + "description": "The number of instances to assign to the module at the start. This number can later be altered by using the [Modules API](https://cloud.google.com/appengine/docs/python/modules/functions) `set_num_instances()` function.", + "format": "int32" + } + } + }, + "Network": { + "id": "Network", + "type": "object", + "description": "Used to specify extra network settings (for VM runtimes only).", + "properties": { + "forwardedPorts": { + "type": "array", + "description": "A list of ports (or port pairs) to forward from the VM into the app container.", + "items": { + "type": "string" + } + }, + "instanceTag": { + "type": "string", + "description": "A tag to apply to the VM instance during creation." + }, + "name": { + "type": "string", + "description": "The Google Compute Engine network where the VMs will be created. If not specified, or empty, the network named 'default' will be used. (The short name should be specified, not the resource path.)" + } + } + }, + "Resources": { + "id": "Resources", + "type": "object", + "description": "Used to specify how many machine resources an app version needs.", + "properties": { + "cpu": { + "type": "number", + "description": "How many CPU cores an app version needs.", + "format": "double" + }, + "diskGb": { + "type": "number", + "description": "How much disk size, in GB, an app version needs.", + "format": "double" + }, + "memoryGb": { + "type": "number", + "description": "How much memory, in GB, an app version needs.", + "format": "double" + } + } + }, + "UrlMap": { + "id": "UrlMap", + "type": "object", + "description": "A URL pattern and description of how it should be handled. App Engine can handle URLs by executing application code, or by serving static files uploaded with the code, such as images, CSS or JavaScript.", + "properties": { + "urlRegex": { + "type": "string", + "description": "A URL prefix. This value uses regular expression syntax (and so regexp special characters must be escaped), but it should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path. This is always required." + }, + "staticFiles": { + "$ref": "StaticFilesHandler", + "description": "Returns the contents of a file, such as an image, as the response." + }, + "staticDirectory": { + "$ref": "StaticDirectoryHandler", + "description": "Serves the entire contents of a directory as static files. This attribute is deprecated. You can mimic the behavior of static directories using static files." + }, + "script": { + "$ref": "ScriptHandler", + "description": "Executes a script to handle the request that matches the URL pattern." + }, + "apiEndpoint": { + "$ref": "ApiEndpointHandler", + "description": "Use API Endpoints to handle requests." + }, + "securityLevel": { + "type": "string", + "description": "Configures whether security (HTTPS) should be enforced for this URL.", + "enum": [ + "SECURE_UNSPECIFIED", + "SECURE_DEFAULT", + "SECURE_NEVER", + "SECURE_OPTIONAL", + "SECURE_ALWAYS" + ] + }, + "login": { + "type": "string", + "description": "What level of login is required to access this resource.", + "enum": [ + "LOGIN_UNSPECIFIED", + "LOGIN_OPTIONAL", + "LOGIN_ADMIN", + "LOGIN_REQUIRED" + ] + }, + "authFailAction": { + "type": "string", + "description": "For users not logged in, how to handle access to resources with required login. Defaults to \"redirect\".", + "enum": [ + "AUTH_FAIL_ACTION_UNSPECIFIED", + "AUTH_FAIL_ACTION_REDIRECT", + "AUTH_FAIL_ACTION_UNAUTHORIZED" + ] + }, + "redirectHttpResponseCode": { + "type": "string", + "description": "`30x` code to use when performing redirects for the `secure` field. A `302` is used by default.", + "enum": [ + "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED", + "REDIRECT_HTTP_RESPONSE_CODE_301", + "REDIRECT_HTTP_RESPONSE_CODE_302", + "REDIRECT_HTTP_RESPONSE_CODE_303", + "REDIRECT_HTTP_RESPONSE_CODE_307" + ] + } + } + }, + "StaticFilesHandler": { + "id": "StaticFilesHandler", + "type": "object", + "description": "Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them.", + "properties": { + "path": { + "type": "string", + "description": "The path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern." + }, + "uploadPathRegex": { + "type": "string", + "description": "A regular expression that matches the file paths for all files that will be referenced by this handler." + }, + "httpHeaders": { + "type": "object", + "description": "HTTP headers to use for all responses from these URLs.", + "additionalProperties": { + "type": "string" + } + }, + "mimeType": { + "type": "string", + "description": "If specified, all files served by this handler will be served using the specified MIME type. If not specified, the MIME type for a file will be derived from the file's filename extension." + }, + "expiration": { + "type": "string", + "description": "The length of time a static file served by this handler ought to be cached by web proxies and browsers." + }, + "requireMatchingFile": { + "type": "boolean", + "description": "If true, this [UrlMap][google.appengine.v1beta4.UrlMap] entry does not match the request unless the file referenced by the handler also exists. If no such file exists, processing will continue with the next [UrlMap][google.appengine.v1beta4.UrlMap] that matches the requested URL." + }, + "applicationReadable": { + "type": "boolean", + "description": "By default, files declared in static file handlers are uploaded as static data and are only served to end users, they cannot be read by an application. If this field is set to true, the files are also uploaded as code data so your application can read them. Both uploads are charged against your code and static data storage resource quotas." + } + } + }, + "StaticDirectoryHandler": { + "id": "StaticDirectoryHandler", + "type": "object", + "description": "Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static directory handlers make it easy to serve the entire contents of a directory as static files.", + "properties": { + "directory": { + "type": "string", + "description": "The path to the directory containing the static files, from the application root directory. Everything after the end of the matched url pattern is appended to static_dir to form the full path to the requested file." + }, + "httpHeaders": { + "type": "object", + "description": "HTTP headers to use for all responses from these URLs.", + "additionalProperties": { + "type": "string" + } + }, + "mimeType": { + "type": "string", + "description": "If specified, all files served by this handler will be served using the specified MIME type. If not specified, the MIME type for a file will be derived from the file's filename extension." + }, + "expiration": { + "type": "string", + "description": "The length of time a static file served by this handler ought to be cached by web proxies and browsers." + }, + "requireMatchingFile": { + "type": "boolean", + "description": "If true, this UrlMap entry does not match the request unless the file referenced by the handler also exists. If no such file exists, processing will continue with the next UrlMap that matches the requested URL." + }, + "applicationReadable": { + "type": "boolean", + "description": "By default, files declared in static file handlers are uploaded as static data and are only served to end users, they cannot be read by an application. If this field is set to true, the files are also uploaded as code data so your application can read them. Both uploads are charged against your code and static data storage resource quotas." + } + } + }, + "ScriptHandler": { + "id": "ScriptHandler", + "type": "object", + "description": "Executes a script to handle the request that matches the URL pattern.", + "properties": { + "scriptPath": { + "type": "string", + "description": "Specifies the path to the script from the application root directory." + } + } + }, + "ApiEndpointHandler": { + "id": "ApiEndpointHandler", + "type": "object", + "description": "Use Google Cloud Endpoints to handle requests.", + "properties": { + "scriptPath": { + "type": "string", + "description": "Specifies the path to the script from the application root directory." + } + } + }, + "ErrorHandler": { + "id": "ErrorHandler", + "type": "object", + "description": "A custom static error page to be served when an error occurs.", + "properties": { + "errorCode": { + "type": "string", + "description": "The error condition this handler applies to.", + "enum": [ + "ERROR_CODE_UNSPECIFIED", + "ERROR_CODE_DEFAULT", + "ERROR_CODE_OVER_QUOTA", + "ERROR_CODE_DOS_API_DENIAL", + "ERROR_CODE_TIMEOUT" + ] + }, + "staticFile": { + "type": "string", + "description": "Static file content to be served for this error." + }, + "mimeType": { + "type": "string", + "description": "MIME type of file. If unspecified, \"text/html\" is assumed." + } + } + }, + "Library": { + "id": "Library", + "type": "object", + "description": "A Python runtime third-party library required by the application.", + "properties": { + "name": { + "type": "string", + "description": "The name of the library, e.g. \"PIL\" or \"django\"." + }, + "version": { + "type": "string", + "description": "The version of the library to select, or \"latest\"." + } + } + }, + "ApiConfigHandler": { + "id": "ApiConfigHandler", + "type": "object", + "description": "API Serving configuration for Cloud Endpoints.", + "properties": { + "authFailAction": { + "type": "string", + "description": "For users not logged in, how to handle access to resources with required login. Defaults to \"redirect\".", + "enum": [ + "AUTH_FAIL_ACTION_UNSPECIFIED", + "AUTH_FAIL_ACTION_REDIRECT", + "AUTH_FAIL_ACTION_UNAUTHORIZED" + ] + }, + "login": { + "type": "string", + "description": "What level of login is required to access this resource. Default is \"optional\".", + "enum": [ + "LOGIN_UNSPECIFIED", + "LOGIN_OPTIONAL", + "LOGIN_ADMIN", + "LOGIN_REQUIRED" + ] + }, + "script": { + "type": "string", + "description": "Specifies the path to the script from the application root directory." + }, + "securityLevel": { + "type": "string", + "description": "Configures whether security (HTTPS) should be enforced for this URL.", + "enum": [ + "SECURE_UNSPECIFIED", + "SECURE_DEFAULT", + "SECURE_NEVER", + "SECURE_OPTIONAL", + "SECURE_ALWAYS" + ] + }, + "url": { + "type": "string", + "description": "URL to serve the endpoint at." + } + } + }, + "HealthCheck": { + "id": "HealthCheck", + "type": "object", + "description": "Configure health checking for the VM instances. Unhealthy VM instances will be killed and replaced with new instances.", + "properties": { + "disableHealthCheck": { + "type": "boolean", + "description": "Whether to explicitly disable health checks for this instance." + }, + "host": { + "type": "string", + "description": "The host header to send when performing an HTTP health check (e.g. myapp.appspot.com)" + }, + "healthyThreshold": { + "type": "integer", + "description": "The number of consecutive successful health checks before receiving traffic.", + "format": "uint32" + }, + "unhealthyThreshold": { + "type": "integer", + "description": "The number of consecutive failed health checks before removing traffic.", + "format": "uint32" + }, + "restartThreshold": { + "type": "integer", + "description": "The number of consecutive failed health checks before an instance is restarted.", + "format": "uint32" + }, + "checkInterval": { + "type": "string", + "description": "The interval between health checks." + }, + "timeout": { + "type": "string", + "description": "The amount of time before the health check is considered failed." + } + } + }, + "Deployment": { + "id": "Deployment", + "type": "object", + "description": "Code and application artifacts used to deploy a version to App Engine.", + "properties": { + "files": { + "type": "object", + "description": "A manifest of files stored in Google Cloud Storage which should be included as part of this application. All files must be readable using the credentials supplied with this call.", + "additionalProperties": { + "$ref": "FileInfo" + } + }, + "container": { + "$ref": "ContainerInfo", + "description": "If supplied, a docker (container) image which should be used to start the application. Only applicable to the 'vm' runtime." + }, + "sourceReferences": { + "type": "array", + "description": "The origin of the source code for this deployment. There can be more than one source reference per Version if source code is distributed among multiple repositories.", + "items": { + "$ref": "SourceReference" + } + } + } + }, + "FileInfo": { + "id": "FileInfo", + "type": "object", + "description": "A single source file which is part of the application to be deployed.", + "properties": { + "sourceUrl": { + "type": "string", + "description": "The URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage." + }, + "sha1Sum": { + "type": "string", + "description": "The SHA1 (160 bits) hash of the file in hex." + }, + "mimeType": { + "type": "string", + "description": "The MIME type of the file; if unspecified, the value from Google Cloud Storage will be used." + } + } + }, + "ContainerInfo": { + "id": "ContainerInfo", + "type": "object", + "description": "A Docker (container) image which should be used to start the application.", + "properties": { + "image": { + "type": "string", + "description": "Reference to a hosted container image. Must be a URI to a resource in a Docker repository. Must be fully qualified, including tag or digest. e.g. gcr.io/my-project/image:tag or gcr.io/my-project/image@digest" + }, + "sha256": { + "type": "string", + "description": "The SHA256 hash of the image in hex." + } + } + }, + "SourceReference": { + "id": "SourceReference", + "type": "object", + "description": "A reference to a particular snapshot of the source tree used to build and deploy the application.", + "properties": { + "repository": { + "type": "string", + "description": "Optional. A URI string identifying the repository. Example: \"https://source.developers.google.com/p/app-123/r/default\"" + }, + "revisionId": { + "type": "string", + "description": "The canonical (and persistent) identifier of the deployed revision, i.e. any kind of aliases including tags or branch names are not allowed. Example (git): \"2198322f89e0bb2e25021667c2ed489d1fd34e6b\"" + } + } + }, + "Operation": { + "id": "Operation", + "type": "object", + "description": "This resource represents a long-running operation that is the result of a network API call.", + "properties": { + "name": { + "type": "string", + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping above, the `name` should have the format of `operations/some/unique/name`." + }, + "metadata": { + "type": "object", + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "additionalProperties": { + "type": "any", + "description": "Properties of the object. Contains field @ype with type URL." + } + }, + "done": { + "type": "boolean", + "description": "If the value is `false`, it means the operation is still in progress. If true, the operation is completed and the `result` is available." + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure." + }, + "response": { + "type": "object", + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "additionalProperties": { + "type": "any", + "description": "Properties of the object. Contains field @ype with type URL." + } + } + } + }, + "Status": { + "id": "Status", + "type": "object", + "description": "The `Status` defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). The error model is designed to be: - Simple to use and understand for most users. - Flexible enough to meet unexpected needs. # Overview The `Status` message contains 3 pieces of data: error code, error message, and error details. The error code should be an enum value of [google.rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, it can be sent in the error details or localized by the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` which can be used for common error conditions. # Language mapping The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` message can be used in a variety of environments - either with or without APIs - to provide consistent developer experience across different environments. Example uses of this error model include: - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response. - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons.", + "properties": { + "code": { + "type": "integer", + "description": "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].", + "format": "int32" + }, + "message": { + "type": "string", + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client." + }, + "details": { + "type": "array", + "description": "A list of messages that carry the error details. There will be a common set of message types for APIs to use.", + "items": { + "type": "object", + "additionalProperties": { + "type": "any", + "description": "Properties of the object. Contains field @ype with type URL." + } + } + } + } + }, + "ListVersionsResponse": { + "id": "ListVersionsResponse", + "type": "object", + "description": "Response message for `Versions.ListVersions`.", + "properties": { + "versions": { + "type": "array", + "description": "The versions belonging to the requested application module.", + "items": { + "$ref": "Version" + } + }, + "nextPageToken": { + "type": "string", + "description": "Continuation token for fetching the next page of results." + } + } + }, + "Module": { + "id": "Module", + "type": "object", + "description": "A module is a component of an application that provides a single service or configuration. A module has a collection of versions that define a specific set of code used to implement the functionality of that module.", + "properties": { + "name": { + "type": "string", + "description": "The full path to the Module resource in the API. Example: \"apps/myapp/modules/default\" @OutputOnly" + }, + "id": { + "type": "string", + "description": "The relative name/path of the module within the application. Example: \"default\" @OutputOnly" + }, + "split": { + "$ref": "TrafficSplit", + "description": "A mapping that defines fractional HTTP traffic diversion to different versions within the module." + } + } + }, + "TrafficSplit": { + "id": "TrafficSplit", + "type": "object", + "description": "Configuration for traffic splitting for versions within a single module. Traffic splitting allows traffic directed to the module to be assigned to one of several versions in a fractional way, enabling experiments and canarying new builds, for example.", + "properties": { + "shardBy": { + "type": "string", + "description": "Which mechanism should be used as a selector when choosing a version to send a request to. The traffic selection algorithm will be stable for either type until allocations are changed.", + "enum": [ + "UNSPECIFIED", + "COOKIE", + "IP" + ] + }, + "allocations": { + "type": "object", + "description": "Mapping from module version IDs within the module to fractional (0.000, 1] allocations of traffic for that version. Each version may only be specified once, but some versions in the module may not have any traffic allocation. Modules that have traffic allocated in this field may not be deleted until the module is deleted, or their traffic allocation is removed. Allocations must sum to 1. Supports precision up to two decimal places for IP-based splits and up to three decimal places for cookie-based splits.", + "additionalProperties": { + "type": "number", + "format": "double" + } + } + } + }, + "ListModulesResponse": { + "id": "ListModulesResponse", + "type": "object", + "description": "Response message for `Modules.ListModules`.", + "properties": { + "modules": { + "type": "array", + "description": "The modules belonging to the requested application.", + "items": { + "$ref": "Module" + } + }, + "nextPageToken": { + "type": "string", + "description": "Continuation token for fetching the next page of results." + } + } + }, + "ListOperationsResponse": { + "id": "ListOperationsResponse", + "type": "object", + "description": "The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].", + "properties": { + "operations": { + "type": "array", + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + } + }, + "nextPageToken": { + "type": "string", + "description": "The standard List next-page token." + } + } + }, + "OperationMetadata": { + "id": "OperationMetadata", + "type": "object", + "description": "Metadata for the given [google.longrunning.Operation][google.longrunning.Operation].", + "properties": { + "operationType": { + "type": "string", + "description": "The type of the operation, e.g. 'deployment'. @OutputOnly" + }, + "insertTime": { + "type": "string", + "description": "Timestamp that this operation was received. @OutputOnly" + }, + "endTime": { + "type": "string", + "description": "Timestamp that this operation was completed. (Not present if the operation is still in progress.) @OutputOnly" + }, + "user": { + "type": "string", + "description": "The user who requested this operation. @OutputOnly" + } + } + }, + "Type": { + "id": "Type", + "type": "object", + "description": "A light-weight descriptor for a proto message type.", + "properties": { + "name": { + "type": "string", + "description": "The fully qualified message name." + }, + "fields": { + "type": "array", + "description": "The list of fields.", + "items": { + "$ref": "Field" + } + }, + "oneofs": { + "type": "array", + "description": "The list of oneof definitions. The list of oneofs declared in this Type", + "items": { + "type": "string" + } + }, + "options": { + "type": "array", + "description": "The proto options.", + "items": { + "$ref": "Option" + } + }, + "sourceContext": { + "$ref": "SourceContext", + "description": "The source context." + }, + "syntax": { + "type": "string", + "description": "The source syntax.", + "enum": [ + "SYNTAX_PROTO2", + "SYNTAX_PROTO3" + ] + } + } + }, + "Field": { + "id": "Field", + "type": "object", + "description": "Field represents a single field of a message type.", + "properties": { + "kind": { + "type": "string", + "description": "The field kind.", + "enum": [ + "TYPE_UNKNOWN", + "TYPE_DOUBLE", + "TYPE_FLOAT", + "TYPE_INT64", + "TYPE_UINT64", + "TYPE_INT32", + "TYPE_FIXED64", + "TYPE_FIXED32", + "TYPE_BOOL", + "TYPE_STRING", + "TYPE_GROUP", + "TYPE_MESSAGE", + "TYPE_BYTES", + "TYPE_UINT32", + "TYPE_ENUM", + "TYPE_SFIXED32", + "TYPE_SFIXED64", + "TYPE_SINT32", + "TYPE_SINT64" + ] + }, + "cardinality": { + "type": "string", + "description": "The field cardinality, i.e. optional/required/repeated.", + "enum": [ + "CARDINALITY_UNKNOWN", + "CARDINALITY_OPTIONAL", + "CARDINALITY_REQUIRED", + "CARDINALITY_REPEATED" + ] + }, + "number": { + "type": "integer", + "description": "The proto field number.", + "format": "int32" + }, + "name": { + "type": "string", + "description": "The field name." + }, + "typeUrl": { + "type": "string", + "description": "The type URL (without the scheme) when the type is MESSAGE or ENUM, such as `type.googleapis.com/google.protobuf.Empty`." + }, + "oneofIndex": { + "type": "integer", + "description": "Index in Type.oneofs. Starts at 1. Zero means no oneof mapping.", + "format": "int32" + }, + "packed": { + "type": "boolean", + "description": "Whether to use alternative packed wire representation." + }, + "options": { + "type": "array", + "description": "The proto options.", + "items": { + "$ref": "Option" + } + }, + "jsonName": { + "type": "string", + "description": "The JSON name for this field." + } + } + }, + "Option": { + "id": "Option", + "type": "object", + "description": "Proto option attached to messages/fields/enums etc.", + "properties": { + "name": { + "type": "string", + "description": "Proto option name." + }, + "value": { + "type": "object", + "description": "Proto option value.", + "additionalProperties": { + "type": "any", + "description": "Properties of the object. Contains field @ype with type URL." + } + } + } + }, + "SourceContext": { + "id": "SourceContext", + "type": "object", + "description": "`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.", + "properties": { + "fileName": { + "type": "string", + "description": "The path-qualified name of the .proto file that contained the associated protobuf element. For example: `\"google/protobuf/source.proto\"`." + } + } + } + }, + "resources": { + "apps": { + "methods": { + "get": { + "id": "appengine.apps.get", + "path": "v1beta4/{+name}", + "httpMethod": "GET", + "description": "Gets information about an application.", + "parameters": { + "name": { + "type": "string", + "description": "Name of the application to get. For example: \"apps/myapp\".", + "required": true, + "pattern": "^apps/[^/]*$", + "location": "path" + }, + "ensureResourcesExist": { + "type": "boolean", + "description": "Certain resources associated with an application are created on-demand. Controls whether these resources should be created when performing the `GET` operation. If specified and any resources cloud not be created, the request will fail with an error code.", + "location": "query" + } + }, + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "Application" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "modules": { + "methods": { + "delete": { + "id": "appengine.apps.modules.delete", + "path": "v1beta4/{+name}", + "httpMethod": "DELETE", + "description": "Deletes a module and all enclosed versions.", + "parameters": { + "name": { + "type": "string", + "description": "Name of the resource requested. For example: \"apps/myapp/modules/default\".", + "required": true, + "pattern": "^apps/[^/]*/modules/[^/]*$", + "location": "path" + } + }, + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "id": "appengine.apps.modules.get", + "path": "v1beta4/{+name}", + "httpMethod": "GET", + "description": "Gets the current configuration of the module.", + "parameters": { + "name": { + "type": "string", + "description": "Name of the resource requested. For example: \"/apps/myapp/modules/default\".", + "required": true, + "pattern": "^apps/[^/]*/modules/[^/]*$", + "location": "path" + } + }, + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "Module" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "id": "appengine.apps.modules.list", + "path": "v1beta4/{+name}/modules", + "httpMethod": "GET", + "description": "Lists all the modules in the application.", + "parameters": { + "name": { + "type": "string", + "description": "Name of the resource requested. For example: \"/apps/myapp\".", + "required": true, + "pattern": "^apps/[^/]*$", + "location": "path" + }, + "pageSize": { + "type": "integer", + "description": "Maximum results to return per page.", + "format": "int32", + "location": "query" + }, + "pageToken": { + "type": "string", + "description": "Continuation token for fetching the next page of results.", + "location": "query" + } + }, + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "ListModulesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "id": "appengine.apps.modules.patch", + "path": "v1beta4/{+name}", + "httpMethod": "PATCH", + "description": "Updates the configuration of the specified module.", + "parameters": { + "name": { + "type": "string", + "description": "Name of the resource to update. For example: \"apps/myapp/modules/default\".", + "required": true, + "pattern": "^apps/[^/]*/modules/[^/]*$", + "location": "path" + }, + "mask": { + "type": "string", + "description": "Standard field mask for the set of fields to be updated.", + "location": "query" + }, + "migrateTraffic": { + "type": "boolean", + "description": "Whether to use Traffic Migration to shift traffic gradually. Traffic can only be migrated from a single version to another single version.", + "location": "query" + } + }, + "parameterOrder": [ + "name" + ], + "request": { + "$ref": "Module" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "versions": { + "methods": { + "create": { + "id": "appengine.apps.modules.versions.create", + "path": "v1beta4/{+name}/versions", + "httpMethod": "POST", + "description": "Deploys new code and resource files to a version.", + "parameters": { + "name": { + "type": "string", + "description": "Name of the resource to update. For example: \"apps/myapp/modules/default\".", + "required": true, + "pattern": "^apps/[^/]*/modules/[^/]*$", + "location": "path" + } + }, + "parameterOrder": [ + "name" + ], + "request": { + "$ref": "Version" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "id": "appengine.apps.modules.versions.delete", + "path": "v1beta4/{+name}", + "httpMethod": "DELETE", + "description": "Deletes an existing version.", + "parameters": { + "name": { + "type": "string", + "description": "Name of the resource requested. For example: \"apps/myapp/modules/default/versions/v1\".", + "required": true, + "pattern": "^apps/[^/]*/modules/[^/]*/versions/[^/]*$", + "location": "path" + } + }, + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "id": "appengine.apps.modules.versions.get", + "path": "v1beta4/{+name}", + "httpMethod": "GET", + "description": "Gets application deployment information.", + "parameters": { + "name": { + "type": "string", + "description": "Name of the resource requested. For example: \"apps/myapp/modules/default/versions/v1\".", + "required": true, + "pattern": "^apps/[^/]*/modules/[^/]*/versions/[^/]*$", + "location": "path" + }, + "view": { + "type": "string", + "description": "Controls the set of fields returned in the `Get` response.", + "enum": [ + "BASIC", + "FULL" + ], + "location": "query" + } + }, + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "Version" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "id": "appengine.apps.modules.versions.list", + "path": "v1beta4/{+name}/versions", + "httpMethod": "GET", + "description": "Lists the versions of a module.", + "parameters": { + "name": { + "type": "string", + "description": "Name of the resource requested. For example: \"apps/myapp/modules/default\".", + "required": true, + "pattern": "^apps/[^/]*/modules/[^/]*$", + "location": "path" + }, + "view": { + "type": "string", + "description": "Controls the set of fields returned in the `List` response.", + "enum": [ + "BASIC", + "FULL" + ], + "location": "query" + }, + "pageSize": { + "type": "integer", + "description": "Maximum results to return per page.", + "format": "int32", + "location": "query" + }, + "pageToken": { + "type": "string", + "description": "Continuation token for fetching the next page of results.", + "location": "query" + } + }, + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "ListVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "operations": { + "methods": { + "get": { + "id": "appengine.apps.operations.get", + "path": "v1beta4/{+name}", + "httpMethod": "GET", + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "parameters": { + "name": { + "type": "string", + "description": "The name of the operation resource.", + "required": true, + "pattern": "^apps/[^/]*/operations/[^/]*$", + "location": "path" + } + }, + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "id": "appengine.apps.operations.list", + "path": "v1beta4/{+name}/operations", + "httpMethod": "GET", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding below allows API services to override the binding to use different resource name schemes, such as `users/*/operations`.", + "parameters": { + "name": { + "type": "string", + "description": "The name of the operation collection.", + "required": true, + "pattern": "^apps/[^/]*$", + "location": "path" + }, + "filter": { + "type": "string", + "description": "The standard List filter.", + "location": "query" + }, + "pageSize": { + "type": "integer", + "description": "The standard List page size.", + "format": "int32", + "location": "query" + }, + "pageToken": { + "type": "string", + "description": "The standard List page token.", + "location": "query" + } + }, + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } +} diff --git a/appengine/v1beta4/appengine-gen.go b/appengine/v1beta4/appengine-gen.go new file mode 100644 index 00000000000..468fea2e9a8 --- /dev/null +++ b/appengine/v1beta4/appengine-gen.go @@ -0,0 +1,1978 @@ +// Package appengine provides access to the Google App Engine Admin API. +// +// See https://developers.google.com/appengine/ +// +// Usage example: +// +// import "google.golang.org/api/appengine/v1beta4" +// ... +// appengineService, err := appengine.New(oauthHttpClient) +package appengine + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "golang.org/x/net/context" + "google.golang.org/api/googleapi" + "io" + "net/http" + "net/url" + "strconv" + "strings" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Background + +const apiId = "appengine:v1beta4" +const apiName = "appengine" +const apiVersion = "v1beta4" +const basePath = "https://appengine.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // View and manage your data across Google Cloud Platform services + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Apps = NewAppsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Apps *AppsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewAppsService(s *Service) *AppsService { + rs := &AppsService{s: s} + rs.Modules = NewAppsModulesService(s) + rs.Operations = NewAppsOperationsService(s) + return rs +} + +type AppsService struct { + s *Service + + Modules *AppsModulesService + + Operations *AppsOperationsService +} + +func NewAppsModulesService(s *Service) *AppsModulesService { + rs := &AppsModulesService{s: s} + rs.Versions = NewAppsModulesVersionsService(s) + return rs +} + +type AppsModulesService struct { + s *Service + + Versions *AppsModulesVersionsService +} + +func NewAppsModulesVersionsService(s *Service) *AppsModulesVersionsService { + rs := &AppsModulesVersionsService{s: s} + return rs +} + +type AppsModulesVersionsService struct { + s *Service +} + +func NewAppsOperationsService(s *Service) *AppsOperationsService { + rs := &AppsOperationsService{s: s} + return rs +} + +type AppsOperationsService struct { + s *Service +} + +type ApiConfigHandler struct { + // AuthFailAction: For users not logged in, how to handle access to + // resources with required login. Defaults to "redirect". + // + // Possible values: + // "AUTH_FAIL_ACTION_UNSPECIFIED" + // "AUTH_FAIL_ACTION_REDIRECT" + // "AUTH_FAIL_ACTION_UNAUTHORIZED" + AuthFailAction string `json:"authFailAction,omitempty"` + + // Login: What level of login is required to access this resource. + // Default is "optional". + // + // Possible values: + // "LOGIN_UNSPECIFIED" + // "LOGIN_OPTIONAL" + // "LOGIN_ADMIN" + // "LOGIN_REQUIRED" + Login string `json:"login,omitempty"` + + // Script: Specifies the path to the script from the application root + // directory. + Script string `json:"script,omitempty"` + + // SecurityLevel: Configures whether security (HTTPS) should be enforced + // for this URL. + // + // Possible values: + // "SECURE_UNSPECIFIED" + // "SECURE_DEFAULT" + // "SECURE_NEVER" + // "SECURE_OPTIONAL" + // "SECURE_ALWAYS" + SecurityLevel string `json:"securityLevel,omitempty"` + + // Url: URL to serve the endpoint at. + Url string `json:"url,omitempty"` +} + +type ApiEndpointHandler struct { + // ScriptPath: Specifies the path to the script from the application + // root directory. + ScriptPath string `json:"scriptPath,omitempty"` +} + +type Application struct { + // CodeBucket: A Google Cloud Storage bucket which can be used for + // storing files associated with an application. This bucket is + // associated with the application and can be used by the gcloud + // deployment commands. @OutputOnly + CodeBucket string `json:"codeBucket,omitempty"` + + // DispatchRules: HTTP path dispatch rules for requests to the app that + // do not explicitly target a module or version. The rules are + // order-dependent. + DispatchRules []*UrlDispatchRule `json:"dispatchRules,omitempty"` + + // Id: The relative name/path of the application. Example: "myapp". + // @OutputOnly + Id string `json:"id,omitempty"` + + // Location: The location from which the application will be run. + // Choices are "us" for United States and "eu" for European Union. + // Application instances will run out of data centers in the chosen + // location and all of the application's End User Content will be stored + // at rest in the chosen location. The default is "us". + Location string `json:"location,omitempty"` + + // Name: The full path to the application in the API. Example: + // "apps/myapp". @OutputOnly + Name string `json:"name,omitempty"` +} + +type AutomaticScaling struct { + // CoolDownPeriod: The amount of time that the + // [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) + // should wait between changes to the number of virtual machines. + // Applies only to the VM runtime. + CoolDownPeriod string `json:"coolDownPeriod,omitempty"` + + // CpuUtilization: Target scaling by CPU usage. + CpuUtilization *CpuUtilization `json:"cpuUtilization,omitempty"` + + // MaxConcurrentRequests: The number of concurrent requests an automatic + // scaling instance can accept before the scheduler spawns a new + // instance. Default value is chosen based on the runtime. + MaxConcurrentRequests int64 `json:"maxConcurrentRequests,omitempty"` + + // MaxIdleInstances: The maximum number of idle instances that App + // Engine should maintain for this version. + MaxIdleInstances int64 `json:"maxIdleInstances,omitempty"` + + // MaxPendingLatency: The maximum amount of time that App Engine should + // allow a request to wait in the pending queue before starting a new + // instance to handle it. + MaxPendingLatency string `json:"maxPendingLatency,omitempty"` + + // MaxTotalInstances: Max number of instances that App Engine should + // start to handle requests. + MaxTotalInstances int64 `json:"maxTotalInstances,omitempty"` + + // MinIdleInstances: The minimum number of idle instances that App + // Engine should maintain for this version. Only applies to the default + // version of a module, since other versions are not expected to receive + // significant traffic. + MinIdleInstances int64 `json:"minIdleInstances,omitempty"` + + // MinPendingLatency: The minimum amount of time that App Engine should + // allow a request to wait in the pending queue before starting a new + // instance to handle it. + MinPendingLatency string `json:"minPendingLatency,omitempty"` + + // MinTotalInstances: Minimum number of instances that App Engine should + // maintain. + MinTotalInstances int64 `json:"minTotalInstances,omitempty"` +} + +type BasicScaling struct { + // IdleTimeout: The instance will be shut down this amount of time after + // receiving its last request. + IdleTimeout string `json:"idleTimeout,omitempty"` + + // MaxInstances: The maximum number of instances for App Engine to + // create for this version. + MaxInstances int64 `json:"maxInstances,omitempty"` +} + +type ContainerInfo struct { + // Image: Reference to a hosted container image. Must be a URI to a + // resource in a Docker repository. Must be fully qualified, including + // tag or digest. e.g. gcr.io/my-project/image:tag or + // gcr.io/my-project/image@digest + Image string `json:"image,omitempty"` + + // Sha256: The SHA256 hash of the image in hex. + Sha256 string `json:"sha256,omitempty"` +} + +type CpuUtilization struct { + // AggregationWindowLength: The period of time over which CPU + // utilization is calculated. + AggregationWindowLength string `json:"aggregationWindowLength,omitempty"` + + // TargetUtilization: Target (0-1) CPU utilization ratio to maintain + // when scaling. + TargetUtilization float64 `json:"targetUtilization,omitempty"` +} + +type Deployment struct { + // Container: If supplied, a docker (container) image which should be + // used to start the application. Only applicable to the 'vm' runtime. + Container *ContainerInfo `json:"container,omitempty"` + + // Files: A manifest of files stored in Google Cloud Storage which + // should be included as part of this application. All files must be + // readable using the credentials supplied with this call. + Files map[string]FileInfo `json:"files,omitempty"` + + // SourceReferences: The origin of the source code for this deployment. + // There can be more than one source reference per Version if source + // code is distributed among multiple repositories. + SourceReferences []*SourceReference `json:"sourceReferences,omitempty"` +} + +type ErrorHandler struct { + // ErrorCode: The error condition this handler applies to. + // + // Possible values: + // "ERROR_CODE_UNSPECIFIED" + // "ERROR_CODE_DEFAULT" + // "ERROR_CODE_OVER_QUOTA" + // "ERROR_CODE_DOS_API_DENIAL" + // "ERROR_CODE_TIMEOUT" + ErrorCode string `json:"errorCode,omitempty"` + + // MimeType: MIME type of file. If unspecified, "text/html" is assumed. + MimeType string `json:"mimeType,omitempty"` + + // StaticFile: Static file content to be served for this error. + StaticFile string `json:"staticFile,omitempty"` +} + +type Field struct { + // Cardinality: The field cardinality, i.e. optional/required/repeated. + // + // Possible values: + // "CARDINALITY_UNKNOWN" + // "CARDINALITY_OPTIONAL" + // "CARDINALITY_REQUIRED" + // "CARDINALITY_REPEATED" + Cardinality string `json:"cardinality,omitempty"` + + // JsonName: The JSON name for this field. + JsonName string `json:"jsonName,omitempty"` + + // Kind: The field kind. + // + // Possible values: + // "TYPE_UNKNOWN" + // "TYPE_DOUBLE" + // "TYPE_FLOAT" + // "TYPE_INT64" + // "TYPE_UINT64" + // "TYPE_INT32" + // "TYPE_FIXED64" + // "TYPE_FIXED32" + // "TYPE_BOOL" + // "TYPE_STRING" + // "TYPE_GROUP" + // "TYPE_MESSAGE" + // "TYPE_BYTES" + // "TYPE_UINT32" + // "TYPE_ENUM" + // "TYPE_SFIXED32" + // "TYPE_SFIXED64" + // "TYPE_SINT32" + // "TYPE_SINT64" + Kind string `json:"kind,omitempty"` + + // Name: The field name. + Name string `json:"name,omitempty"` + + // Number: The proto field number. + Number int64 `json:"number,omitempty"` + + // OneofIndex: Index in Type.oneofs. Starts at 1. Zero means no oneof + // mapping. + OneofIndex int64 `json:"oneofIndex,omitempty"` + + // Options: The proto options. + Options []*Option `json:"options,omitempty"` + + // Packed: Whether to use alternative packed wire representation. + Packed bool `json:"packed,omitempty"` + + // TypeUrl: The type URL (without the scheme) when the type is MESSAGE + // or ENUM, such as `type.googleapis.com/google.protobuf.Empty`. + TypeUrl string `json:"typeUrl,omitempty"` +} + +type FileInfo struct { + // MimeType: The MIME type of the file; if unspecified, the value from + // Google Cloud Storage will be used. + MimeType string `json:"mimeType,omitempty"` + + // Sha1Sum: The SHA1 (160 bits) hash of the file in hex. + Sha1Sum string `json:"sha1Sum,omitempty"` + + // SourceUrl: The URL source to use to fetch this file. Must be a URL to + // a resource in Google Cloud Storage. + SourceUrl string `json:"sourceUrl,omitempty"` +} + +type HealthCheck struct { + // CheckInterval: The interval between health checks. + CheckInterval string `json:"checkInterval,omitempty"` + + // DisableHealthCheck: Whether to explicitly disable health checks for + // this instance. + DisableHealthCheck bool `json:"disableHealthCheck,omitempty"` + + // HealthyThreshold: The number of consecutive successful health checks + // before receiving traffic. + HealthyThreshold int64 `json:"healthyThreshold,omitempty"` + + // Host: The host header to send when performing an HTTP health check + // (e.g. myapp.appspot.com) + Host string `json:"host,omitempty"` + + // RestartThreshold: The number of consecutive failed health checks + // before an instance is restarted. + RestartThreshold int64 `json:"restartThreshold,omitempty"` + + // Timeout: The amount of time before the health check is considered + // failed. + Timeout string `json:"timeout,omitempty"` + + // UnhealthyThreshold: The number of consecutive failed health checks + // before removing traffic. + UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"` +} + +type Library struct { + // Name: The name of the library, e.g. "PIL" or "django". + Name string `json:"name,omitempty"` + + // Version: The version of the library to select, or "latest". + Version string `json:"version,omitempty"` +} + +type ListModulesResponse struct { + // Modules: The modules belonging to the requested application. + Modules []*Module `json:"modules,omitempty"` + + // NextPageToken: Continuation token for fetching the next page of + // results. + NextPageToken string `json:"nextPageToken,omitempty"` +} + +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` +} + +type ListVersionsResponse struct { + // NextPageToken: Continuation token for fetching the next page of + // results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Versions: The versions belonging to the requested application module. + Versions []*Version `json:"versions,omitempty"` +} + +type ManualScaling struct { + // Instances: The number of instances to assign to the module at the + // start. This number can later be altered by using the [Modules + // API](https://cloud.google.com/appengine/docs/python/modules/functions) + // `set_num_instances()` function. + Instances int64 `json:"instances,omitempty"` +} + +type Module struct { + // Id: The relative name/path of the module within the application. + // Example: "default" @OutputOnly + Id string `json:"id,omitempty"` + + // Name: The full path to the Module resource in the API. Example: + // "apps/myapp/modules/default" @OutputOnly + Name string `json:"name,omitempty"` + + // Split: A mapping that defines fractional HTTP traffic diversion to + // different versions within the module. + Split *TrafficSplit `json:"split,omitempty"` +} + +type Network struct { + // ForwardedPorts: A list of ports (or port pairs) to forward from the + // VM into the app container. + ForwardedPorts []string `json:"forwardedPorts,omitempty"` + + // InstanceTag: A tag to apply to the VM instance during creation. + InstanceTag string `json:"instanceTag,omitempty"` + + // Name: The Google Compute Engine network where the VMs will be + // created. If not specified, or empty, the network named 'default' will + // be used. (The short name should be specified, not the resource path.) + Name string `json:"name,omitempty"` +} + +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If true, the operation is completed and the `result` is + // available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata OperationMetadata `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping above, the `name` should have the format of + // `operations/some/unique/name`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response OperationResponse `json:"response,omitempty"` +} + +type OperationMetadata interface{} + +type OperationResponse interface{} + +type OperationMetadata1 struct { + // EndTime: Timestamp that this operation was completed. (Not present if + // the operation is still in progress.) @OutputOnly + EndTime string `json:"endTime,omitempty"` + + // InsertTime: Timestamp that this operation was received. @OutputOnly + InsertTime string `json:"insertTime,omitempty"` + + // OperationType: The type of the operation, e.g. 'deployment'. + // @OutputOnly + OperationType string `json:"operationType,omitempty"` + + // User: The user who requested this operation. @OutputOnly + User string `json:"user,omitempty"` +} + +type Option struct { + // Name: Proto option name. + Name string `json:"name,omitempty"` + + // Value: Proto option value. + Value OptionValue `json:"value,omitempty"` +} + +type OptionValue interface{} + +type Resources struct { + // Cpu: How many CPU cores an app version needs. + Cpu float64 `json:"cpu,omitempty"` + + // DiskGb: How much disk size, in GB, an app version needs. + DiskGb float64 `json:"diskGb,omitempty"` + + // MemoryGb: How much memory, in GB, an app version needs. + MemoryGb float64 `json:"memoryGb,omitempty"` +} + +type ScriptHandler struct { + // ScriptPath: Specifies the path to the script from the application + // root directory. + ScriptPath string `json:"scriptPath,omitempty"` +} + +type SourceContext struct { + // FileName: The path-qualified name of the .proto file that contained + // the associated protobuf element. For example: + // "google/protobuf/source.proto". + FileName string `json:"fileName,omitempty"` +} + +type SourceReference struct { + // Repository: Optional. A URI string identifying the repository. + // Example: "https://source.developers.google.com/p/app-123/r/default" + Repository string `json:"repository,omitempty"` + + // RevisionId: The canonical (and persistent) identifier of the deployed + // revision, i.e. any kind of aliases including tags or branch names are + // not allowed. Example (git): + // "2198322f89e0bb2e25021667c2ed489d1fd34e6b" + RevisionId string `json:"revisionId,omitempty"` +} + +type StaticDirectoryHandler struct { + // ApplicationReadable: By default, files declared in static file + // handlers are uploaded as static data and are only served to end + // users, they cannot be read by an application. If this field is set to + // true, the files are also uploaded as code data so your application + // can read them. Both uploads are charged against your code and static + // data storage resource quotas. + ApplicationReadable bool `json:"applicationReadable,omitempty"` + + // Directory: The path to the directory containing the static files, + // from the application root directory. Everything after the end of the + // matched url pattern is appended to static_dir to form the full path + // to the requested file. + Directory string `json:"directory,omitempty"` + + // Expiration: The length of time a static file served by this handler + // ought to be cached by web proxies and browsers. + Expiration string `json:"expiration,omitempty"` + + // HttpHeaders: HTTP headers to use for all responses from these URLs. + HttpHeaders map[string]string `json:"httpHeaders,omitempty"` + + // MimeType: If specified, all files served by this handler will be + // served using the specified MIME type. If not specified, the MIME type + // for a file will be derived from the file's filename extension. + MimeType string `json:"mimeType,omitempty"` + + // RequireMatchingFile: If true, this UrlMap entry does not match the + // request unless the file referenced by the handler also exists. If no + // such file exists, processing will continue with the next UrlMap that + // matches the requested URL. + RequireMatchingFile bool `json:"requireMatchingFile,omitempty"` +} + +type StaticFilesHandler struct { + // ApplicationReadable: By default, files declared in static file + // handlers are uploaded as static data and are only served to end + // users, they cannot be read by an application. If this field is set to + // true, the files are also uploaded as code data so your application + // can read them. Both uploads are charged against your code and static + // data storage resource quotas. + ApplicationReadable bool `json:"applicationReadable,omitempty"` + + // Expiration: The length of time a static file served by this handler + // ought to be cached by web proxies and browsers. + Expiration string `json:"expiration,omitempty"` + + // HttpHeaders: HTTP headers to use for all responses from these URLs. + HttpHeaders map[string]string `json:"httpHeaders,omitempty"` + + // MimeType: If specified, all files served by this handler will be + // served using the specified MIME type. If not specified, the MIME type + // for a file will be derived from the file's filename extension. + MimeType string `json:"mimeType,omitempty"` + + // Path: The path to the static files matched by the URL pattern, from + // the application root directory. The path can refer to text matched in + // groupings in the URL pattern. + Path string `json:"path,omitempty"` + + // RequireMatchingFile: If true, this + // [UrlMap][google.appengine.v1beta4.UrlMap] entry does not match the + // request unless the file referenced by the handler also exists. If no + // such file exists, processing will continue with the next + // [UrlMap][google.appengine.v1beta4.UrlMap] that matches the requested + // URL. + RequireMatchingFile bool `json:"requireMatchingFile,omitempty"` + + // UploadPathRegex: A regular expression that matches the file paths for + // all files that will be referenced by this handler. + UploadPathRegex string `json:"uploadPathRegex,omitempty"` +} + +type Status struct { + // Code: The status code, which should be an enum value of + // [google.rpc.Code][google.rpc.Code]. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There will + // be a common set of message types for APIs to use. + Details []StatusDetails `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the [google.rpc.Status.details][google.rpc.Status.details] field, + // or localized by the client. + Message string `json:"message,omitempty"` +} + +type StatusDetails interface{} + +type TrafficSplit struct { + // Allocations: Mapping from module version IDs within the module to + // fractional (0.000, 1] allocations of traffic for that version. Each + // version may only be specified once, but some versions in the module + // may not have any traffic allocation. Modules that have traffic + // allocated in this field may not be deleted until the module is + // deleted, or their traffic allocation is removed. Allocations must sum + // to 1. Supports precision up to two decimal places for IP-based splits + // and up to three decimal places for cookie-based splits. + Allocations *TrafficSplitAllocations `json:"allocations,omitempty"` + + // ShardBy: Which mechanism should be used as a selector when choosing a + // version to send a request to. The traffic selection algorithm will be + // stable for either type until allocations are changed. + // + // Possible values: + // "UNSPECIFIED" + // "COOKIE" + // "IP" + ShardBy string `json:"shardBy,omitempty"` +} + +type TrafficSplitAllocations struct { +} + +type Type struct { + // Fields: The list of fields. + Fields []*Field `json:"fields,omitempty"` + + // Name: The fully qualified message name. + Name string `json:"name,omitempty"` + + // Oneofs: The list of oneof definitions. The list of oneofs declared in + // this Type + Oneofs []string `json:"oneofs,omitempty"` + + // Options: The proto options. + Options []*Option `json:"options,omitempty"` + + // SourceContext: The source context. + SourceContext *SourceContext `json:"sourceContext,omitempty"` + + // Syntax: The source syntax. + // + // Possible values: + // "SYNTAX_PROTO2" + // "SYNTAX_PROTO3" + Syntax string `json:"syntax,omitempty"` +} + +type UrlDispatchRule struct { + // Domain: The domain name to match on. Supports '*' (glob) wildcarding + // on the left-hand side of a '.'. If empty, all domains will be matched + // (the same as '*'). + Domain string `json:"domain,omitempty"` + + // Module: The resource id of a Module in this application that should + // service the matched request. The Module must already exist. Example: + // "default". + Module string `json:"module,omitempty"` + + // Path: The pathname within the host. This must start with a '/'. A + // single '*' (glob) can be included at the end of the path. The sum of + // the lengths of the domain and path may not exceed 100 characters. + Path string `json:"path,omitempty"` +} + +type UrlMap struct { + // ApiEndpoint: Use API Endpoints to handle requests. + ApiEndpoint *ApiEndpointHandler `json:"apiEndpoint,omitempty"` + + // AuthFailAction: For users not logged in, how to handle access to + // resources with required login. Defaults to "redirect". + // + // Possible values: + // "AUTH_FAIL_ACTION_UNSPECIFIED" + // "AUTH_FAIL_ACTION_REDIRECT" + // "AUTH_FAIL_ACTION_UNAUTHORIZED" + AuthFailAction string `json:"authFailAction,omitempty"` + + // Login: What level of login is required to access this resource. + // + // Possible values: + // "LOGIN_UNSPECIFIED" + // "LOGIN_OPTIONAL" + // "LOGIN_ADMIN" + // "LOGIN_REQUIRED" + Login string `json:"login,omitempty"` + + // RedirectHttpResponseCode: `30x` code to use when performing redirects + // for the `secure` field. A `302` is used by default. + // + // Possible values: + // "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" + // "REDIRECT_HTTP_RESPONSE_CODE_301" + // "REDIRECT_HTTP_RESPONSE_CODE_302" + // "REDIRECT_HTTP_RESPONSE_CODE_303" + // "REDIRECT_HTTP_RESPONSE_CODE_307" + RedirectHttpResponseCode string `json:"redirectHttpResponseCode,omitempty"` + + // Script: Executes a script to handle the request that matches the URL + // pattern. + Script *ScriptHandler `json:"script,omitempty"` + + // SecurityLevel: Configures whether security (HTTPS) should be enforced + // for this URL. + // + // Possible values: + // "SECURE_UNSPECIFIED" + // "SECURE_DEFAULT" + // "SECURE_NEVER" + // "SECURE_OPTIONAL" + // "SECURE_ALWAYS" + SecurityLevel string `json:"securityLevel,omitempty"` + + // StaticDirectory: Serves the entire contents of a directory as static + // files. This attribute is deprecated. You can mimic the behavior of + // static directories using static files. + StaticDirectory *StaticDirectoryHandler `json:"staticDirectory,omitempty"` + + // StaticFiles: Returns the contents of a file, such as an image, as the + // response. + StaticFiles *StaticFilesHandler `json:"staticFiles,omitempty"` + + // UrlRegex: A URL prefix. This value uses regular expression syntax + // (and so regexp special characters must be escaped), but it should not + // contain groupings. All URLs that begin with this prefix are handled + // by this handler, using the portion of the URL after the prefix as + // part of the file path. This is always required. + UrlRegex string `json:"urlRegex,omitempty"` +} + +type Version struct { + // ApiConfig: Serving configuration for Google Cloud Endpoints. Only + // returned in `GET` requests if `view=FULL` is set. May only be set on + // create requests; once created, is immutable. + ApiConfig *ApiConfigHandler `json:"apiConfig,omitempty"` + + // AutomaticScaling: Automatic scaling is the scaling policy that App + // Engine has used since its inception. It is based on request rate, + // response latencies, and other application metrics. + AutomaticScaling *AutomaticScaling `json:"automaticScaling,omitempty"` + + // BasicScaling: A module with basic scaling will create an instance + // when the application receives a request. The instance will be turned + // down when the app becomes idle. Basic scaling is ideal for work that + // is intermittent or driven by user activity. + BasicScaling *BasicScaling `json:"basicScaling,omitempty"` + + // BetaSettings: Beta settings supplied to the application via metadata. + BetaSettings map[string]string `json:"betaSettings,omitempty"` + + // DefaultExpiration: The length of time a static file served by a + // static file handler ought to be cached by web proxies and browsers, + // if the handler does not specify its own expiration. Only returned in + // `GET` requests if `view=FULL` is set. May only be set on create + // requests; once created, is immutable. + DefaultExpiration string `json:"defaultExpiration,omitempty"` + + // Deployment: Code and application artifacts that make up this version. + // Only returned in `GET` requests if `view=FULL` is set. May only be + // set on create requests; once created, is immutable. + Deployment *Deployment `json:"deployment,omitempty"` + + // EnvVariables: Environment variables made available to the + // application. Only returned in `GET` requests if `view=FULL` is set. + // May only be set on create requests; once created, is immutable. + EnvVariables map[string]string `json:"envVariables,omitempty"` + + // ErrorHandlers: Custom static error pages instead of these generic + // error pages, (limit 10 KB/page) Only returned in `GET` requests if + // `view=FULL` is set. May only be set on create requests; once created, + // is immutable. + ErrorHandlers []*ErrorHandler `json:"errorHandlers,omitempty"` + + // Handlers: An ordered list of URL Matching patterns that should be + // applied to incoming requests. The first matching URL consumes the + // request, and subsequent handlers are not attempted. Only returned in + // `GET` requests if `view=FULL` is set. May only be set on create + // requests; once created, is immutable. + Handlers []*UrlMap `json:"handlers,omitempty"` + + // HealthCheck: Configure health checking for the VM instances. + // Unhealthy VM instances will be stopped and replaced with new + // instances. Only returned in `GET` requests if `view=FULL` is set. May + // only be set on create requests; once created, is immutable. + HealthCheck *HealthCheck `json:"healthCheck,omitempty"` + + // Id: The relative name/path of the Version within the module. Example: + // "v1" + Id string `json:"id,omitempty"` + + // InboundServices: Before an application can receive email or XMPP + // messages, the application must be configured to enable the service. + InboundServices []string `json:"inboundServices,omitempty"` + + // InstanceClass: The frontend instance class to use to run this app. + // Valid values are `[F1, F2, F4, F4_1G]`. + InstanceClass string `json:"instanceClass,omitempty"` + + // Libraries: Configuration for Python runtime third-party libraries + // required by the application. Only returned in `GET` requests if + // `view=FULL` is set. May only be set on create requests; once created, + // is immutable. + Libraries []*Library `json:"libraries,omitempty"` + + // ManualScaling: A module with manual scaling runs continuously, + // allowing you to perform complex initialization and rely on the state + // of its memory over time. + ManualScaling *ManualScaling `json:"manualScaling,omitempty"` + + // Name: The full path to the Version resource in the API. Example: + // "apps/myapp/modules/default/versions/v1". @OutputOnly + Name string `json:"name,omitempty"` + + // Network: Used to specify extra network settings (for VM runtimes + // only). + Network *Network `json:"network,omitempty"` + + // NobuildFilesRegex: Go only. Files that match this pattern will not be + // built into the app. May only be set on create requests. + NobuildFilesRegex string `json:"nobuildFilesRegex,omitempty"` + + // Resources: Used to specify how many machine resources an app version + // needs (for VM runtimes only). + Resources *Resources `json:"resources,omitempty"` + + // Runtime: The desired runtime. Values can include python27, java7, go, + // etc. + Runtime string `json:"runtime,omitempty"` + + // Threadsafe: If true, multiple requests can be dispatched to the app + // at once. + Threadsafe bool `json:"threadsafe,omitempty"` + + // Vm: Whether to deploy this app in a VM container. + Vm bool `json:"vm,omitempty"` +} + +// method id "appengine.apps.get": + +type AppsGetCall struct { + s *Service + name string + opt_ map[string]interface{} +} + +// Get: Gets information about an application. +func (r *AppsService) Get(name string) *AppsGetCall { + c := &AppsGetCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + return c +} + +// EnsureResourcesExist sets the optional parameter +// "ensureResourcesExist": Certain resources associated with an +// application are created on-demand. Controls whether these resources +// should be created when performing the `GET` operation. If specified +// and any resources cloud not be created, the request will fail with an +// error code. +func (c *AppsGetCall) EnsureResourcesExist(ensureResourcesExist bool) *AppsGetCall { + c.opt_["ensureResourcesExist"] = ensureResourcesExist + 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 *AppsGetCall) Fields(s ...googleapi.Field) *AppsGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *AppsGetCall) Do() (*Application, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["ensureResourcesExist"]; ok { + params.Set("ensureResourcesExist", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/{+name}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Application + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about an application.", + // "httpMethod": "GET", + // "id": "appengine.apps.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "ensureResourcesExist": { + // "description": "Certain resources associated with an application are created on-demand. Controls whether these resources should be created when performing the `GET` operation. If specified and any resources cloud not be created, the request will fail with an error code.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Name of the application to get. For example: \"apps/myapp\".", + // "location": "path", + // "pattern": "^apps/[^/]*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta4/{+name}", + // "response": { + // "$ref": "Application" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "appengine.apps.modules.delete": + +type AppsModulesDeleteCall struct { + s *Service + name string + opt_ map[string]interface{} +} + +// Delete: Deletes a module and all enclosed versions. +func (r *AppsModulesService) Delete(name string) *AppsModulesDeleteCall { + c := &AppsModulesDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + 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 *AppsModulesDeleteCall) Fields(s ...googleapi.Field) *AppsModulesDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *AppsModulesDeleteCall) Do() (*Operation, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/{+name}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a module and all enclosed versions.", + // "httpMethod": "DELETE", + // "id": "appengine.apps.modules.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the resource requested. For example: \"apps/myapp/modules/default\".", + // "location": "path", + // "pattern": "^apps/[^/]*/modules/[^/]*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta4/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "appengine.apps.modules.get": + +type AppsModulesGetCall struct { + s *Service + name string + opt_ map[string]interface{} +} + +// Get: Gets the current configuration of the module. +func (r *AppsModulesService) Get(name string) *AppsModulesGetCall { + c := &AppsModulesGetCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + 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 *AppsModulesGetCall) Fields(s ...googleapi.Field) *AppsModulesGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *AppsModulesGetCall) Do() (*Module, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/{+name}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Module + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the current configuration of the module.", + // "httpMethod": "GET", + // "id": "appengine.apps.modules.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the resource requested. For example: \"/apps/myapp/modules/default\".", + // "location": "path", + // "pattern": "^apps/[^/]*/modules/[^/]*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta4/{+name}", + // "response": { + // "$ref": "Module" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "appengine.apps.modules.list": + +type AppsModulesListCall struct { + s *Service + name string + opt_ map[string]interface{} +} + +// List: Lists all the modules in the application. +func (r *AppsModulesService) List(name string) *AppsModulesListCall { + c := &AppsModulesListCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum results to +// return per page. +func (c *AppsModulesListCall) PageSize(pageSize int64) *AppsModulesListCall { + c.opt_["pageSize"] = pageSize + return c +} + +// PageToken sets the optional parameter "pageToken": Continuation token +// for fetching the next page of results. +func (c *AppsModulesListCall) PageToken(pageToken string) *AppsModulesListCall { + c.opt_["pageToken"] = pageToken + 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 *AppsModulesListCall) Fields(s ...googleapi.Field) *AppsModulesListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *AppsModulesListCall) Do() (*ListModulesResponse, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["pageSize"]; ok { + params.Set("pageSize", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/{+name}/modules") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ListModulesResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all the modules in the application.", + // "httpMethod": "GET", + // "id": "appengine.apps.modules.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the resource requested. For example: \"/apps/myapp\".", + // "location": "path", + // "pattern": "^apps/[^/]*$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "Maximum results to return per page.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Continuation token for fetching the next page of results.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta4/{+name}/modules", + // "response": { + // "$ref": "ListModulesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "appengine.apps.modules.patch": + +type AppsModulesPatchCall struct { + s *Service + name string + module *Module + opt_ map[string]interface{} +} + +// Patch: Updates the configuration of the specified module. +func (r *AppsModulesService) Patch(name string, module *Module) *AppsModulesPatchCall { + c := &AppsModulesPatchCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + c.module = module + return c +} + +// Mask sets the optional parameter "mask": Standard field mask for the +// set of fields to be updated. +func (c *AppsModulesPatchCall) Mask(mask string) *AppsModulesPatchCall { + c.opt_["mask"] = mask + return c +} + +// MigrateTraffic sets the optional parameter "migrateTraffic": Whether +// to use Traffic Migration to shift traffic gradually. Traffic can only +// be migrated from a single version to another single version. +func (c *AppsModulesPatchCall) MigrateTraffic(migrateTraffic bool) *AppsModulesPatchCall { + c.opt_["migrateTraffic"] = migrateTraffic + 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 *AppsModulesPatchCall) Fields(s ...googleapi.Field) *AppsModulesPatchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *AppsModulesPatchCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.module) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["mask"]; ok { + params.Set("mask", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["migrateTraffic"]; ok { + params.Set("migrateTraffic", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/{+name}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("PATCH", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the configuration of the specified module.", + // "httpMethod": "PATCH", + // "id": "appengine.apps.modules.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "mask": { + // "description": "Standard field mask for the set of fields to be updated.", + // "location": "query", + // "type": "string" + // }, + // "migrateTraffic": { + // "description": "Whether to use Traffic Migration to shift traffic gradually. Traffic can only be migrated from a single version to another single version.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Name of the resource to update. For example: \"apps/myapp/modules/default\".", + // "location": "path", + // "pattern": "^apps/[^/]*/modules/[^/]*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta4/{+name}", + // "request": { + // "$ref": "Module" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "appengine.apps.modules.versions.create": + +type AppsModulesVersionsCreateCall struct { + s *Service + name string + version *Version + opt_ map[string]interface{} +} + +// Create: Deploys new code and resource files to a version. +func (r *AppsModulesVersionsService) Create(name string, version *Version) *AppsModulesVersionsCreateCall { + c := &AppsModulesVersionsCreateCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + c.version = version + 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 *AppsModulesVersionsCreateCall) Fields(s ...googleapi.Field) *AppsModulesVersionsCreateCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *AppsModulesVersionsCreateCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.version) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/{+name}/versions") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deploys new code and resource files to a version.", + // "httpMethod": "POST", + // "id": "appengine.apps.modules.versions.create", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the resource to update. For example: \"apps/myapp/modules/default\".", + // "location": "path", + // "pattern": "^apps/[^/]*/modules/[^/]*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta4/{+name}/versions", + // "request": { + // "$ref": "Version" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "appengine.apps.modules.versions.delete": + +type AppsModulesVersionsDeleteCall struct { + s *Service + name string + opt_ map[string]interface{} +} + +// Delete: Deletes an existing version. +func (r *AppsModulesVersionsService) Delete(name string) *AppsModulesVersionsDeleteCall { + c := &AppsModulesVersionsDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + 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 *AppsModulesVersionsDeleteCall) Fields(s ...googleapi.Field) *AppsModulesVersionsDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *AppsModulesVersionsDeleteCall) Do() (*Operation, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/{+name}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes an existing version.", + // "httpMethod": "DELETE", + // "id": "appengine.apps.modules.versions.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the resource requested. For example: \"apps/myapp/modules/default/versions/v1\".", + // "location": "path", + // "pattern": "^apps/[^/]*/modules/[^/]*/versions/[^/]*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta4/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "appengine.apps.modules.versions.get": + +type AppsModulesVersionsGetCall struct { + s *Service + name string + opt_ map[string]interface{} +} + +// Get: Gets application deployment information. +func (r *AppsModulesVersionsService) Get(name string) *AppsModulesVersionsGetCall { + c := &AppsModulesVersionsGetCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + return c +} + +// View sets the optional parameter "view": Controls the set of fields +// returned in the `Get` response. +// +// Possible values: +// "BASIC" +// "FULL" +func (c *AppsModulesVersionsGetCall) View(view string) *AppsModulesVersionsGetCall { + c.opt_["view"] = view + 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 *AppsModulesVersionsGetCall) Fields(s ...googleapi.Field) *AppsModulesVersionsGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *AppsModulesVersionsGetCall) Do() (*Version, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["view"]; ok { + params.Set("view", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/{+name}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Version + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets application deployment information.", + // "httpMethod": "GET", + // "id": "appengine.apps.modules.versions.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the resource requested. For example: \"apps/myapp/modules/default/versions/v1\".", + // "location": "path", + // "pattern": "^apps/[^/]*/modules/[^/]*/versions/[^/]*$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "Controls the set of fields returned in the `Get` response.", + // "enum": [ + // "BASIC", + // "FULL" + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta4/{+name}", + // "response": { + // "$ref": "Version" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "appengine.apps.modules.versions.list": + +type AppsModulesVersionsListCall struct { + s *Service + name string + opt_ map[string]interface{} +} + +// List: Lists the versions of a module. +func (r *AppsModulesVersionsService) List(name string) *AppsModulesVersionsListCall { + c := &AppsModulesVersionsListCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum results to +// return per page. +func (c *AppsModulesVersionsListCall) PageSize(pageSize int64) *AppsModulesVersionsListCall { + c.opt_["pageSize"] = pageSize + return c +} + +// PageToken sets the optional parameter "pageToken": Continuation token +// for fetching the next page of results. +func (c *AppsModulesVersionsListCall) PageToken(pageToken string) *AppsModulesVersionsListCall { + c.opt_["pageToken"] = pageToken + return c +} + +// View sets the optional parameter "view": Controls the set of fields +// returned in the `List` response. +// +// Possible values: +// "BASIC" +// "FULL" +func (c *AppsModulesVersionsListCall) View(view string) *AppsModulesVersionsListCall { + c.opt_["view"] = view + 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 *AppsModulesVersionsListCall) Fields(s ...googleapi.Field) *AppsModulesVersionsListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *AppsModulesVersionsListCall) Do() (*ListVersionsResponse, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["pageSize"]; ok { + params.Set("pageSize", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["view"]; ok { + params.Set("view", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/{+name}/versions") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ListVersionsResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the versions of a module.", + // "httpMethod": "GET", + // "id": "appengine.apps.modules.versions.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the resource requested. For example: \"apps/myapp/modules/default\".", + // "location": "path", + // "pattern": "^apps/[^/]*/modules/[^/]*$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "Maximum results to return per page.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Continuation token for fetching the next page of results.", + // "location": "query", + // "type": "string" + // }, + // "view": { + // "description": "Controls the set of fields returned in the `List` response.", + // "enum": [ + // "BASIC", + // "FULL" + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta4/{+name}/versions", + // "response": { + // "$ref": "ListVersionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "appengine.apps.operations.get": + +type AppsOperationsGetCall struct { + s *Service + name string + opt_ map[string]interface{} +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +func (r *AppsOperationsService) Get(name string) *AppsOperationsGetCall { + c := &AppsOperationsGetCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + 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 *AppsOperationsGetCall) Fields(s ...googleapi.Field) *AppsOperationsGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *AppsOperationsGetCall) Do() (*Operation, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/{+name}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "httpMethod": "GET", + // "id": "appengine.apps.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^apps/[^/]*/operations/[^/]*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta4/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "appengine.apps.operations.list": + +type AppsOperationsListCall struct { + s *Service + name string + opt_ map[string]interface{} +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding below allows API services +// to override the binding to use different resource name schemes, such +// as `users/*/operations`. +func (r *AppsOperationsService) List(name string) *AppsOperationsListCall { + c := &AppsOperationsListCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard List +// filter. +func (c *AppsOperationsListCall) Filter(filter string) *AppsOperationsListCall { + c.opt_["filter"] = filter + return c +} + +// PageSize sets the optional parameter "pageSize": The standard List +// page size. +func (c *AppsOperationsListCall) PageSize(pageSize int64) *AppsOperationsListCall { + c.opt_["pageSize"] = pageSize + return c +} + +// PageToken sets the optional parameter "pageToken": The standard List +// page token. +func (c *AppsOperationsListCall) PageToken(pageToken string) *AppsOperationsListCall { + c.opt_["pageToken"] = pageToken + 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 *AppsOperationsListCall) Fields(s ...googleapi.Field) *AppsOperationsListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *AppsOperationsListCall) Do() (*ListOperationsResponse, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageSize"]; ok { + params.Set("pageSize", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/{+name}/operations") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ListOperationsResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding below allows API services to override the binding to use different resource name schemes, such as `users/*/operations`.", + // "httpMethod": "GET", + // "id": "appengine.apps.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard List filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation collection.", + // "location": "path", + // "pattern": "^apps/[^/]*$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard List page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard List page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta4/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/audit/v1/audit-api.json b/audit/v1/audit-api.json deleted file mode 100644 index d7e3af16e0b..00000000000 --- a/audit/v1/audit-api.json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "kind": "discovery#restDescription", - "etag": "\"FrPV2U6xXFUq8eRv_PO3IoAURkc/WETM6oPOB_u6tVJCuBP1DDIWlEg\"", - "discoveryVersion": "v1", - "id": "audit:v1", - "name": "audit", - "version": "v1", - "revision": "20130108", - "title": "Enterprise Audit API", - "description": "Lets you access user activities in your enterprise made through various applications.", - "ownerDomain": "google.com", - "ownerName": "Google", - "icons": { - "x16": "http://www.google.com/images/icons/product/search-16.gif", - "x32": "http://www.google.com/images/icons/product/search-32.gif" - }, - "documentationLink": "https://developers.google.com/google-apps/admin-audit/get_started", - "protocol": "rest", - "baseUrl": "https://www.googleapis.com/apps/reporting/audit/v1/", - "basePath": "/apps/reporting/audit/v1/", - "rootUrl": "https://www.googleapis.com/", - "servicePath": "apps/reporting/audit/v1/", - "batchPath": "batch", - "parameters": { - "alt": { - "type": "string", - "description": "Data format for the response.", - "default": "json", - "enum": [ - "atom", - "json" - ], - "enumDescriptions": [ - "Responses with Content-Type of application/atom+xml", - "Responses with Content-Type of application/json" - ], - "location": "query" - }, - "fields": { - "type": "string", - "description": "Selector specifying which fields to include in a partial response.", - "location": "query" - }, - "key": { - "type": "string", - "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", - "location": "query" - }, - "oauth_token": { - "type": "string", - "description": "OAuth 2.0 token for the current user.", - "location": "query" - }, - "prettyPrint": { - "type": "boolean", - "description": "Returns response with indentations and line breaks.", - "default": "true", - "location": "query" - }, - "quotaUser": { - "type": "string", - "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.", - "location": "query" - }, - "userIp": { - "type": "string", - "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.", - "location": "query" - } - }, - "schemas": { - "Activities": { - "id": "Activities", - "type": "object", - "properties": { - "items": { - "type": "array", - "description": "Each record in read response.", - "items": { - "$ref": "Activity" - } - }, - "kind": { - "type": "string", - "description": "Kind of list response this is.", - "default": "audit#activities" - }, - "next": { - "type": "string", - "description": "Next page URL." - } - } - }, - "Activity": { - "id": "Activity", - "type": "object", - "properties": { - "actor": { - "type": "object", - "description": "User doing the action.", - "properties": { - "applicationId": { - "type": "string", - "description": "ID of application which interacted on behalf of the user.", - "format": "int64" - }, - "callerType": { - "type": "string", - "description": "User or OAuth 2LO request." - }, - "email": { - "type": "string", - "description": "Email address of the user." - }, - "key": { - "type": "string", - "description": "For OAuth 2LO API requests, consumer_key of the requestor." - } - } - }, - "events": { - "type": "array", - "description": "Activity events.", - "items": { - "type": "object", - "properties": { - "eventType": { - "type": "string", - "description": "Type of event." - }, - "name": { - "type": "string", - "description": "Name of event." - }, - "parameters": { - "type": "array", - "description": "Event parameters.", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Name of the parameter." - }, - "value": { - "type": "string", - "description": "Value of the parameter." - } - } - } - } - } - } - }, - "id": { - "type": "object", - "description": "Unique identifier for each activity record.", - "properties": { - "applicationId": { - "type": "string", - "description": "Application ID of the source application.", - "format": "int64" - }, - "customerId": { - "type": "string", - "description": "Obfuscated customer ID of the source customer." - }, - "time": { - "type": "string", - "description": "Time of occurrence of the activity.", - "format": "date-time" - }, - "uniqQualifier": { - "type": "string", - "description": "Unique qualifier if multiple events have the same time.", - "format": "int64" - } - } - }, - "ipAddress": { - "type": "string", - "description": "IP Address of the user doing the action." - }, - "kind": { - "type": "string", - "description": "Kind of resource this is.", - "default": "audit#activity" - }, - "ownerDomain": { - "type": "string", - "description": "Domain of source customer." - } - } - } - }, - "resources": { - "activities": { - "methods": { - "list": { - "id": "audit.activities.list", - "path": "{customerId}/{applicationId}", - "httpMethod": "GET", - "description": "Retrieves a list of activities for a specific customer and application.", - "parameters": { - "actorApplicationId": { - "type": "string", - "description": "Application ID of the application which interacted on behalf of the user while performing the event.", - "format": "int64", - "location": "query" - }, - "actorEmail": { - "type": "string", - "description": "Email address of the user who performed the action.", - "location": "query" - }, - "actorIpAddress": { - "type": "string", - "description": "IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.", - "location": "query" - }, - "applicationId": { - "type": "string", - "description": "Application ID of the application on which the event was performed.", - "required": true, - "format": "int64", - "location": "path" - }, - "caller": { - "type": "string", - "description": "Type of the caller.", - "enum": [ - "application_owner", - "customer" - ], - "enumDescriptions": [ - "Caller is an application owner.", - "Caller is a customer." - ], - "location": "query" - }, - "continuationToken": { - "type": "string", - "description": "Next page URL.", - "location": "query" - }, - "customerId": { - "type": "string", - "description": "Represents the customer who is the owner of target object on which action was performed.", - "required": true, - "pattern": "C.+", - "location": "path" - }, - "endTime": { - "type": "string", - "description": "Return events which occured at or before this time.", - "location": "query" - }, - "eventName": { - "type": "string", - "description": "Name of the event being queried.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Number of activity records to be shown in each page.", - "format": "int32", - "minimum": "1", - "maximum": "1000", - "location": "query" - }, - "startTime": { - "type": "string", - "description": "Return events which occured at or after this time.", - "location": "query" - } - }, - "parameterOrder": [ - "customerId", - "applicationId" - ], - "response": { - "$ref": "Activities" - } - } - } - } - } -} diff --git a/audit/v1/audit-gen.go b/audit/v1/audit-gen.go deleted file mode 100644 index b5034cde4ac..00000000000 --- a/audit/v1/audit-gen.go +++ /dev/null @@ -1,393 +0,0 @@ -// Package audit provides access to the Enterprise Audit API. -// -// See https://developers.google.com/google-apps/admin-audit/get_started -// -// Usage example: -// -// import "google.golang.org/api/audit/v1" -// ... -// auditService, err := audit.New(oauthHttpClient) -package audit - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "golang.org/x/net/context" - "google.golang.org/api/googleapi" - "io" - "net/http" - "net/url" - "strconv" - "strings" -) - -// Always reference these packages, just in case the auto-generated code -// below doesn't. -var _ = bytes.NewBuffer -var _ = strconv.Itoa -var _ = fmt.Sprintf -var _ = json.NewDecoder -var _ = io.Copy -var _ = url.Parse -var _ = googleapi.Version -var _ = errors.New -var _ = strings.Replace -var _ = context.Background - -const apiId = "audit:v1" -const apiName = "audit" -const apiVersion = "v1" -const basePath = "https://www.googleapis.com/apps/reporting/audit/v1/" - -func New(client *http.Client) (*Service, error) { - if client == nil { - return nil, errors.New("client is nil") - } - s := &Service{client: client, BasePath: basePath} - s.Activities = NewActivitiesService(s) - return s, nil -} - -type Service struct { - client *http.Client - BasePath string // API endpoint base URL - UserAgent string // optional additional User-Agent fragment - - Activities *ActivitiesService -} - -func (s *Service) userAgent() string { - if s.UserAgent == "" { - return googleapi.UserAgent - } - return googleapi.UserAgent + " " + s.UserAgent -} - -func NewActivitiesService(s *Service) *ActivitiesService { - rs := &ActivitiesService{s: s} - return rs -} - -type ActivitiesService struct { - s *Service -} - -type Activities struct { - // Items: Each record in read response. - Items []*Activity `json:"items,omitempty"` - - // Kind: Kind of list response this is. - Kind string `json:"kind,omitempty"` - - // Next: Next page URL. - Next string `json:"next,omitempty"` -} - -type Activity struct { - // Actor: User doing the action. - Actor *ActivityActor `json:"actor,omitempty"` - - // Events: Activity events. - Events []*ActivityEvents `json:"events,omitempty"` - - // Id: Unique identifier for each activity record. - Id *ActivityId `json:"id,omitempty"` - - // IpAddress: IP Address of the user doing the action. - IpAddress string `json:"ipAddress,omitempty"` - - // Kind: Kind of resource this is. - Kind string `json:"kind,omitempty"` - - // OwnerDomain: Domain of source customer. - OwnerDomain string `json:"ownerDomain,omitempty"` -} - -type ActivityActor struct { - // ApplicationId: ID of application which interacted on behalf of the - // user. - ApplicationId int64 `json:"applicationId,omitempty,string"` - - // CallerType: User or OAuth 2LO request. - CallerType string `json:"callerType,omitempty"` - - // Email: Email address of the user. - Email string `json:"email,omitempty"` - - // Key: For OAuth 2LO API requests, consumer_key of the requestor. - Key string `json:"key,omitempty"` -} - -type ActivityEvents struct { - // EventType: Type of event. - EventType string `json:"eventType,omitempty"` - - // Name: Name of event. - Name string `json:"name,omitempty"` - - // Parameters: Event parameters. - Parameters []*ActivityEventsParameters `json:"parameters,omitempty"` -} - -type ActivityEventsParameters struct { - // Name: Name of the parameter. - Name string `json:"name,omitempty"` - - // Value: Value of the parameter. - Value string `json:"value,omitempty"` -} - -type ActivityId struct { - // ApplicationId: Application ID of the source application. - ApplicationId int64 `json:"applicationId,omitempty,string"` - - // CustomerId: Obfuscated customer ID of the source customer. - CustomerId string `json:"customerId,omitempty"` - - // Time: Time of occurrence of the activity. - Time string `json:"time,omitempty"` - - // UniqQualifier: Unique qualifier if multiple events have the same - // time. - UniqQualifier int64 `json:"uniqQualifier,omitempty,string"` -} - -// method id "audit.activities.list": - -type ActivitiesListCall struct { - s *Service - customerId string - applicationId int64 - opt_ map[string]interface{} -} - -// List: Retrieves a list of activities for a specific customer and -// application. -func (r *ActivitiesService) List(customerId string, applicationId int64) *ActivitiesListCall { - c := &ActivitiesListCall{s: r.s, opt_: make(map[string]interface{})} - c.customerId = customerId - c.applicationId = applicationId - return c -} - -// ActorApplicationId sets the optional parameter "actorApplicationId": -// Application ID of the application which interacted on behalf of the -// user while performing the event. -func (c *ActivitiesListCall) ActorApplicationId(actorApplicationId int64) *ActivitiesListCall { - c.opt_["actorApplicationId"] = actorApplicationId - return c -} - -// ActorEmail sets the optional parameter "actorEmail": Email address of -// the user who performed the action. -func (c *ActivitiesListCall) ActorEmail(actorEmail string) *ActivitiesListCall { - c.opt_["actorEmail"] = actorEmail - return c -} - -// ActorIpAddress sets the optional parameter "actorIpAddress": IP -// Address of host where the event was performed. Supports both IPv4 and -// IPv6 addresses. -func (c *ActivitiesListCall) ActorIpAddress(actorIpAddress string) *ActivitiesListCall { - c.opt_["actorIpAddress"] = actorIpAddress - return c -} - -// Caller sets the optional parameter "caller": Type of the caller. -// -// Possible values: -// "application_owner" - Caller is an application owner. -// "customer" - Caller is a customer. -func (c *ActivitiesListCall) Caller(caller string) *ActivitiesListCall { - c.opt_["caller"] = caller - return c -} - -// ContinuationToken sets the optional parameter "continuationToken": -// Next page URL. -func (c *ActivitiesListCall) ContinuationToken(continuationToken string) *ActivitiesListCall { - c.opt_["continuationToken"] = continuationToken - return c -} - -// EndTime sets the optional parameter "endTime": Return events which -// occured at or before this time. -func (c *ActivitiesListCall) EndTime(endTime string) *ActivitiesListCall { - c.opt_["endTime"] = endTime - return c -} - -// EventName sets the optional parameter "eventName": Name of the event -// being queried. -func (c *ActivitiesListCall) EventName(eventName string) *ActivitiesListCall { - c.opt_["eventName"] = eventName - return c -} - -// MaxResults sets the optional parameter "maxResults": Number of -// activity records to be shown in each page. -func (c *ActivitiesListCall) MaxResults(maxResults int64) *ActivitiesListCall { - c.opt_["maxResults"] = maxResults - return c -} - -// StartTime sets the optional parameter "startTime": Return events -// which occured at or after this time. -func (c *ActivitiesListCall) StartTime(startTime string) *ActivitiesListCall { - c.opt_["startTime"] = startTime - 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 *ActivitiesListCall) Fields(s ...googleapi.Field) *ActivitiesListCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *ActivitiesListCall) Do() (*Activities, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["actorApplicationId"]; ok { - params.Set("actorApplicationId", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["actorEmail"]; ok { - params.Set("actorEmail", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["actorIpAddress"]; ok { - params.Set("actorIpAddress", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["caller"]; ok { - params.Set("caller", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["continuationToken"]; ok { - params.Set("continuationToken", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["endTime"]; ok { - params.Set("endTime", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["eventName"]; ok { - params.Set("eventName", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["maxResults"]; ok { - params.Set("maxResults", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["startTime"]; ok { - params.Set("startTime", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "{customerId}/{applicationId}") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "customerId": c.customerId, - "applicationId": strconv.FormatInt(c.applicationId, 10), - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *Activities - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Retrieves a list of activities for a specific customer and application.", - // "httpMethod": "GET", - // "id": "audit.activities.list", - // "parameterOrder": [ - // "customerId", - // "applicationId" - // ], - // "parameters": { - // "actorApplicationId": { - // "description": "Application ID of the application which interacted on behalf of the user while performing the event.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "actorEmail": { - // "description": "Email address of the user who performed the action.", - // "location": "query", - // "type": "string" - // }, - // "actorIpAddress": { - // "description": "IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.", - // "location": "query", - // "type": "string" - // }, - // "applicationId": { - // "description": "Application ID of the application on which the event was performed.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "caller": { - // "description": "Type of the caller.", - // "enum": [ - // "application_owner", - // "customer" - // ], - // "enumDescriptions": [ - // "Caller is an application owner.", - // "Caller is a customer." - // ], - // "location": "query", - // "type": "string" - // }, - // "continuationToken": { - // "description": "Next page URL.", - // "location": "query", - // "type": "string" - // }, - // "customerId": { - // "description": "Represents the customer who is the owner of target object on which action was performed.", - // "location": "path", - // "pattern": "C.+", - // "required": true, - // "type": "string" - // }, - // "endTime": { - // "description": "Return events which occured at or before this time.", - // "location": "query", - // "type": "string" - // }, - // "eventName": { - // "description": "Name of the event being queried.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "description": "Number of activity records to be shown in each page.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "1", - // "type": "integer" - // }, - // "startTime": { - // "description": "Return events which occured at or after this time.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{customerId}/{applicationId}", - // "response": { - // "$ref": "Activities" - // } - // } - -} diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index 4181dc176a4..339144b938d 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -1,11 +1,11 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/6_j3-L3xDTpJRP-qmfT7ZpU_5Bg\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/NtZ5jtkXTc_PcGwBbw5OcARIHbE\"", "discoveryVersion": "v1", "id": "bigquery:v2", "name": "bigquery", "version": "v2", - "revision": "20150626", + "revision": "20150710", "title": "BigQuery API", "description": "A data platform for customers to create, manage, share and query data.", "ownerDomain": "google.com", @@ -678,6 +678,13 @@ "description": "[Optional] Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is only available when a query does not have a destination table specified. The default value is true.", "default": "true" }, + "userDefinedFunctionResources": { + "type": "array", + "description": "[Experimental] Describes user-defined function resources used in the query.", + "items": { + "$ref": "UserDefinedFunctionResource" + } + }, "writeDisposition": { "type": "string", "description": "[Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion." @@ -1414,6 +1421,20 @@ } } }, + "UserDefinedFunctionResource": { + "id": "UserDefinedFunctionResource", + "type": "object", + "properties": { + "inlineCode": { + "type": "string", + "description": "[Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same code." + }, + "resourceUri": { + "type": "string", + "description": "[Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path)." + } + } + }, "ViewDefinition": { "id": "ViewDefinition", "type": "object", @@ -1730,7 +1751,7 @@ }, "timeoutMs": { "type": "integer", - "description": "How long to wait for the query to complete, in milliseconds, before returning. Default is to return immediately. If the timeout passes before the job completes, the request will fail with a TIMEOUT error", + "description": "How long to wait for the query to complete, in milliseconds, before returning. Default is 10 seconds. If the timeout passes before the job completes, the 'jobComplete' field in the response will be false", "format": "uint32", "location": "query" } diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index 5bac21a37af..35481491abd 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -738,6 +738,10 @@ type JobConfigurationQuery struct { // Default: true UseQueryCache *bool `json:"useQueryCache,omitempty"` + // UserDefinedFunctionResources: [Experimental] Describes user-defined + // function resources used in the query. + UserDefinedFunctionResources []*UserDefinedFunctionResource `json:"userDefinedFunctionResources,omitempty"` + // WriteDisposition: [Optional] Specifies the action that occurs if the // destination table already exists. The following values are supported: // WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the @@ -1269,6 +1273,17 @@ type TableSchema struct { Fields []*TableFieldSchema `json:"fields,omitempty"` } +type UserDefinedFunctionResource struct { + // InlineCode: [Pick one] An inline resource that contains code for a + // user-defined function (UDF). Providing a inline code resource is + // equivalent to providing a URI for a file containing the same code. + InlineCode string `json:"inlineCode,omitempty"` + + // ResourceUri: [Pick one] A code resource to load from a Google Cloud + // Storage URI (gs://bucket/path). + ResourceUri string `json:"resourceUri,omitempty"` +} + type ViewDefinition struct { // Query: [Required] A query that BigQuery executes when the view is // referenced. @@ -2092,8 +2107,8 @@ func (c *JobsGetQueryResultsCall) StartIndex(startIndex uint64) *JobsGetQueryRes // TimeoutMs sets the optional parameter "timeoutMs": How long to wait // for the query to complete, in milliseconds, before returning. Default -// is to return immediately. If the timeout passes before the job -// completes, the request will fail with a TIMEOUT error +// is 10 seconds. If the timeout passes before the job completes, the +// 'jobComplete' field in the response will be false func (c *JobsGetQueryResultsCall) TimeoutMs(timeoutMs int64) *JobsGetQueryResultsCall { c.opt_["timeoutMs"] = timeoutMs return c @@ -2186,7 +2201,7 @@ func (c *JobsGetQueryResultsCall) Do() (*GetQueryResultsResponse, error) { // "type": "string" // }, // "timeoutMs": { - // "description": "How long to wait for the query to complete, in milliseconds, before returning. Default is to return immediately. If the timeout passes before the job completes, the request will fail with a TIMEOUT error", + // "description": "How long to wait for the query to complete, in milliseconds, before returning. Default is 10 seconds. If the timeout passes before the job completes, the 'jobComplete' field in the response will be false", // "format": "uint32", // "location": "query", // "type": "integer" diff --git a/calendar/v3/calendar-api.json b/calendar/v3/calendar-api.json index d20458ce588..2511b50d2e9 100644 --- a/calendar/v3/calendar-api.json +++ b/calendar/v3/calendar-api.json @@ -1,11 +1,11 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/gZ3dylzm2EVgH6aR8x8XhHMIdxI\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/Q6nML2uOaQkQKvKr3TU7gVCU4MU\"", "discoveryVersion": "v1", "id": "calendar:v3", "name": "calendar", "version": "v3", - "revision": "20150623", + "revision": "20150701", "title": "Calendar API", "description": "Lets you manipulate events and other calendar data.", "ownerDomain": "google.com", @@ -788,6 +788,10 @@ "id": "EventAttachment", "type": "object", "properties": { + "fileId": { + "type": "string", + "description": "ID of the attached file. Read-only.\nE.g. for Google Drive files this is the ID of the corresponding Files resource entry in the Drive API." + }, "fileUrl": { "type": "string", "description": "URL link to the attachment.\nFor adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.", diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index d87a07e16f7..21919182fd8 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -749,6 +749,11 @@ type EventSource struct { } type EventAttachment struct { + // FileId: ID of the attached file. Read-only. + // E.g. for Google Drive files this is the ID of the corresponding Files + // resource entry in the Drive API. + FileId string `json:"fileId,omitempty"` + // FileUrl: URL link to the attachment. // For adding Google Drive file attachments use the same format as in // alternateLink property of the Files resource in the Drive API. diff --git a/civicinfo/v2/civicinfo-api.json b/civicinfo/v2/civicinfo-api.json index f3dff30963e..ea2caa65695 100644 --- a/civicinfo/v2/civicinfo-api.json +++ b/civicinfo/v2/civicinfo-api.json @@ -1,12 +1,12 @@ { "kind": "discovery#restDescription", - "etag": "\"l66ggWbucbkBw9Lpos72oziyefE/EeZdKz92LCL9J1uCQTeAts36EP0\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/79Y1HrgSgdJCTf1b4Qz0Z9zJqHE\"", "discoveryVersion": "v1", "id": "civicinfo:v2", "name": "civicinfo", "canonicalName": "Civic Info", "version": "v2", - "revision": "20141023", + "revision": "20150707", "title": "Google Civic Information API", "description": "An API for accessing civic information.", "ownerDomain": "google.com", @@ -275,10 +275,41 @@ "type": "string", "description": "If this is a partisan election, the name of the party it is for." }, + "referendumBallotResponses": { + "type": "array", + "description": "The set of ballot responses for the referendum. A ballot response represents a line on the ballot. Common examples might include \"yes\" or \"no\" for referenda, or a judge's name for a retention contest. This field is only populated for contests of type 'Referendum'.", + "items": { + "type": "string" + } + }, + "referendumBrief": { + "type": "string", + "description": "Specifies a short summary of the referendum that is on the ballot below the title but above the text. This field is only populated for contests of type 'Referendum'." + }, + "referendumConStatement": { + "type": "string", + "description": "A statement in opposition to the referendum. It does not necessarily appear on the ballot. This field is only populated for contests of type 'Referendum'." + }, + "referendumEffectOfAbstain": { + "type": "string", + "description": "Specifies what effect abstaining (not voting) on the proposition will have (i.e. whether abstaining is considered a vote against it). This field is only populated for contests of type 'Referendum'." + }, + "referendumPassageThreshold": { + "type": "string", + "description": "The threshold of votes that the referendum needs in order to pass, e.g. \"two-thirds\". This field is only populated for contests of type 'Referendum'." + }, + "referendumProStatement": { + "type": "string", + "description": "A statement in favor of the referendum. It does not necessarily appear on the ballot. This field is only populated for contests of type 'Referendum'." + }, "referendumSubtitle": { "type": "string", "description": "A brief description of the referendum. This field is only populated for contests of type 'Referendum'." }, + "referendumText": { + "type": "string", + "description": "The full text of the referendum. This field is only populated for contests of type 'Referendum'." + }, "referendumTitle": { "type": "string", "description": "The title of the referendum (e.g. 'Proposition 42'). This field is only populated for contests of type 'Referendum'." @@ -757,6 +788,10 @@ "description": "Identifies what kind of resource this is. Value: the fixed string \"civicinfo#voterInfoResponse\".", "default": "civicinfo#voterInfoResponse" }, + "mailOnly": { + "type": "boolean", + "description": "Specifies whether voters in the precinct vote only by mailing their ballots (with the possible option of dropping off their ballots as well)." + }, "normalizedInput": { "$ref": "SimpleAddressType", "description": "The normalized version of the requested address" diff --git a/civicinfo/v2/civicinfo-gen.go b/civicinfo/v2/civicinfo-gen.go index e44f26a1a05..3455043ae25 100644 --- a/civicinfo/v2/civicinfo-gen.go +++ b/civicinfo/v2/civicinfo-gen.go @@ -254,10 +254,47 @@ type Contest struct { // it is for. PrimaryParty string `json:"primaryParty,omitempty"` + // ReferendumBallotResponses: The set of ballot responses for the + // referendum. A ballot response represents a line on the ballot. Common + // examples might include "yes" or "no" for referenda, or a judge's name + // for a retention contest. This field is only populated for contests of + // type 'Referendum'. + ReferendumBallotResponses []string `json:"referendumBallotResponses,omitempty"` + + // ReferendumBrief: Specifies a short summary of the referendum that is + // on the ballot below the title but above the text. This field is only + // populated for contests of type 'Referendum'. + ReferendumBrief string `json:"referendumBrief,omitempty"` + + // ReferendumConStatement: A statement in opposition to the referendum. + // It does not necessarily appear on the ballot. This field is only + // populated for contests of type 'Referendum'. + ReferendumConStatement string `json:"referendumConStatement,omitempty"` + + // ReferendumEffectOfAbstain: Specifies what effect abstaining (not + // voting) on the proposition will have (i.e. whether abstaining is + // considered a vote against it). This field is only populated for + // contests of type 'Referendum'. + ReferendumEffectOfAbstain string `json:"referendumEffectOfAbstain,omitempty"` + + // ReferendumPassageThreshold: The threshold of votes that the + // referendum needs in order to pass, e.g. "two-thirds". This field is + // only populated for contests of type 'Referendum'. + ReferendumPassageThreshold string `json:"referendumPassageThreshold,omitempty"` + + // ReferendumProStatement: A statement in favor of the referendum. It + // does not necessarily appear on the ballot. This field is only + // populated for contests of type 'Referendum'. + ReferendumProStatement string `json:"referendumProStatement,omitempty"` + // ReferendumSubtitle: A brief description of the referendum. This field // is only populated for contests of type 'Referendum'. ReferendumSubtitle string `json:"referendumSubtitle,omitempty"` + // ReferendumText: The full text of the referendum. This field is only + // populated for contests of type 'Referendum'. + ReferendumText string `json:"referendumText,omitempty"` + // ReferendumTitle: The title of the referendum (e.g. 'Proposition 42'). // This field is only populated for contests of type 'Referendum'. ReferendumTitle string `json:"referendumTitle,omitempty"` @@ -569,6 +606,11 @@ type VoterInfoResponse struct { // string "civicinfo#voterInfoResponse". Kind string `json:"kind,omitempty"` + // MailOnly: Specifies whether voters in the precinct vote only by + // mailing their ballots (with the possible option of dropping off their + // ballots as well). + MailOnly bool `json:"mailOnly,omitempty"` + // NormalizedInput: The normalized version of the requested address NormalizedInput *SimpleAddressType `json:"normalizedInput,omitempty"` diff --git a/cloudmonitoring/v2beta2/cloudmonitoring-api.json b/cloudmonitoring/v2beta2/cloudmonitoring-api.json index 2dffdacac85..c6b2d23a741 100644 --- a/cloudmonitoring/v2beta2/cloudmonitoring-api.json +++ b/cloudmonitoring/v2beta2/cloudmonitoring-api.json @@ -1,12 +1,12 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/ohXSSrYD9FZjeoH2DkcOPP70lbc\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/avMl03W4ktR_Q7PS4O3ogtyT8Dc\"", "discoveryVersion": "v1", "id": "cloudmonitoring:v2beta2", "name": "cloudmonitoring", "canonicalName": "Cloud Monitoring", "version": "v2beta2", - "revision": "20150305", + "revision": "20150713", "title": "Cloud Monitoring API", "description": "API for accessing Google Cloud and API monitoring data.", "ownerDomain": "google.com", @@ -70,6 +70,9 @@ "auth": { "oauth2": { "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "View and manage your data across Google Cloud Platform services" + }, "https://www.googleapis.com/auth/monitoring": { "description": "View and write monitoring data for all of your Google and third-party Cloud and API projects" } @@ -522,6 +525,7 @@ "$ref": "MetricDescriptor" }, "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/monitoring" ] }, @@ -552,6 +556,7 @@ "$ref": "DeleteMetricDescriptorResponse" }, "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/monitoring" ] }, @@ -597,6 +602,7 @@ "$ref": "ListMetricDescriptorsResponse" }, "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/monitoring" ] } @@ -696,6 +702,7 @@ "$ref": "ListTimeseriesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/monitoring" ] }, @@ -722,6 +729,7 @@ "$ref": "WriteTimeseriesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/monitoring" ] } @@ -821,6 +829,7 @@ "$ref": "ListTimeseriesDescriptorsResponse" }, "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/monitoring" ] } diff --git a/cloudmonitoring/v2beta2/cloudmonitoring-gen.go b/cloudmonitoring/v2beta2/cloudmonitoring-gen.go index 4466e133b42..0ef8dfceb53 100644 --- a/cloudmonitoring/v2beta2/cloudmonitoring-gen.go +++ b/cloudmonitoring/v2beta2/cloudmonitoring-gen.go @@ -43,6 +43,9 @@ const basePath = "https://www.googleapis.com/cloudmonitoring/v2beta2/projects/" // OAuth2 scopes used by this API. const ( + // View and manage your data across Google Cloud Platform services + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" + // View and write monitoring data for all of your Google and third-party // Cloud and API projects MonitoringScope = "https://www.googleapis.com/auth/monitoring" @@ -442,6 +445,7 @@ func (c *MetricDescriptorsCreateCall) Do() (*MetricDescriptor, error) { // "$ref": "MetricDescriptor" // }, // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/monitoring" // ] // } @@ -528,6 +532,7 @@ func (c *MetricDescriptorsDeleteCall) Do() (*DeleteMetricDescriptorResponse, err // "$ref": "DeleteMetricDescriptorResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/monitoring" // ] // } @@ -669,6 +674,7 @@ func (c *MetricDescriptorsListCall) Do() (*ListMetricDescriptorsResponse, error) // "$ref": "ListMetricDescriptorsResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/monitoring" // ] // } @@ -937,6 +943,7 @@ func (c *TimeseriesListCall) Do() (*ListTimeseriesResponse, error) { // "$ref": "ListTimeseriesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/monitoring" // ] // } @@ -1031,6 +1038,7 @@ func (c *TimeseriesWriteCall) Do() (*WriteTimeseriesResponse, error) { // "$ref": "WriteTimeseriesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/monitoring" // ] // } @@ -1300,6 +1308,7 @@ func (c *TimeseriesDescriptorsListCall) Do() (*ListTimeseriesDescriptorsResponse // "$ref": "ListTimeseriesDescriptorsResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/monitoring" // ] // } diff --git a/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json b/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json index 7b3d29959b4..dbd325927e0 100644 --- a/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json @@ -1,13 +1,13 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/Kw6n-qAgUnPZR8Gtqry3vxhHFsg\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/F20Fq1R-EfWlPIiQW_XhJNP4UeM\"", "discoveryVersion": "v1", "id": "cloudresourcemanager:v1beta1", "name": "cloudresourcemanager", "version": "v1beta1", - "revision": "20150603", + "revision": "20150711", "title": "Google Cloud Resource Manager API", - "description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating of project metadata, including IAM policies, and will shortly provide the same for other high-level entities (e.g. customers and resource groups). Longer term, we expect the cloudresourcemanager API to encompass other Cloud resources as well.", + "description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating of project metadata.", "ownerDomain": "google.com", "ownerName": "Google", "icons": { @@ -113,16 +113,16 @@ "Project": { "id": "Project", "type": "object", - "description": "A Project is a high-level Google Cloud Platform entity. It is a container for ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources. Projects are subordinate to Customers.", + "description": "A Project is a high-level Google Cloud Platform entity. It is a container for ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources.", "properties": { "projectNumber": { "type": "string", - "description": "The number uniquely identifying the project. Example: 415104041262. Read-only.", + "description": "The number uniquely identifying the project. Example: 415104041262 Read-only.", "format": "int64" }, "projectId": { "type": "string", - "description": "The unique, user-assigned id of the project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: \"tokyo-rain-123\" Read-only after creation." + "description": "The unique, user-assigned ID of the project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: tokyo-rain-123 Read-only after creation." }, "lifecycleState": { "type": "string", @@ -136,7 +136,7 @@ }, "name": { "type": "string", - "description": "The user-assigned name of the project. This field is optional and can remain unset. Allowed characters are: lower- and upper-case letters, numbers, hyphen, single-quote, double-quotes, space, and exclamation point. Example: \"My Project\" Read-write." + "description": "The user-assigned name of the project. This field is optional and can remain unset. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: My Project Read-write." }, "createTime": { "type": "string", @@ -144,7 +144,7 @@ }, "labels": { "type": "object", - "description": "The labels associated with this project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?. No more than 256 labels can be associated with a given resource. Note that additional character may be included in labels in the future. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: \"environment\" : \"dev\" Read-write.", + "description": "The labels associated with this project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: \\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?. Label values must be between 0 and 63 characters long and must conform to the regular expression (\\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?)?. No more than 256 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: \"environment\" : \"dev\" Read-write.", "additionalProperties": { "type": "string" } @@ -154,7 +154,7 @@ "ListProjectsResponse": { "id": "ListProjectsResponse", "type": "object", - "description": "A page of the response received from the [ListProjects][cloudresourcemanager.projects.v1beta1.Projects.ListProjects] method. A paginated response where more pages are available has `next_page_token` set. This token can be used in a subsequent request to retrieve the next request page.", + "description": "A page of the response received from the [ListProjects][google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects] method. A paginated response where more pages are available has `next_page_token` set. This token can be used in a subsequent request to retrieve the next request page.", "properties": { "projects": { "type": "array", @@ -172,7 +172,7 @@ "Empty": { "id": "Empty", "type": "object", - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }" + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`." } }, "resources": { @@ -212,7 +212,7 @@ }, "filter": { "type": "string", - "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: name id labels. where is a the name of a label Examples: name:* ==\u003e The project has a name. name:Howl ==\u003e The project’s name is `Howl` or 'howl'. name:HOWL ==\u003e Equivalent to above. NAME:howl ==\u003e Equivalent to above. labels.color:* ==\u003e The project has the label \"color\". labels.color:red ==\u003e The project’s label `color` has the value `red`. labels.color:red label.size:big ==\u003e The project's label `color` has the value `red` and its label `size` has the value `big`. Optional.", + "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: + `name` + `id` + labels.key where *key* is the name of a label Some examples of using labels as filters: |Filter|Description| |------|-----------| |name:*|The project has a name.| |name:Howl|The project's name is `Howl` or `howl`.| |name:HOWL|Equivalent to above.| |NAME:howl|Equivalent to above.| |labels.color:*|The project has the label `color`.| |labels.color:red|The project's label `color` has the value `red`.| |labels.color:red label.size:big|The project's label `color` has the value `red` and its label `size` has the value `big`. Optional.", "location": "query" } }, @@ -276,7 +276,7 @@ "id": "cloudresourcemanager.projects.delete", "path": "v1beta1/projects/{projectId}", "httpMethod": "DELETE", - "description": "Marks the project identified by the specified `project_id` (for example, `my-project-123`) for deletion. This method will only affect the project if it has a lifecycle state of [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] when this method is called. Otherwise this method does nothing (since all other states are phases of deletion). This method changes the project's lifecycle state from [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] to [DELETE_REQUESTED] [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED]. The deletion starts at an unspecified time, at which point the lifecycle state changes to [DELETE_IN_PROGRESS] [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRESS]. Until the deletion completes, you can check the lifecycle state checked by retrieving the project with [GetProject] [cloudresourcemanager.projects.v1beta2.Projects.GetProject], and the project remains visible to [ListProjects] [cloudresourcemanager.projects.v1beta2.Projects.ListProjects]. However, you cannot update the project. After the deletion completes, the project is not retrievable by the [GetProject] [cloudresourcemanager.projects.v1beta2.Projects.GetProject] and [ListProjects] [cloudresourcemanager.projects.v1beta2.Projects.ListProjects] methods. The caller must have modify permissions for this project.", + "description": "Marks the project identified by the specified `project_id` (for example, `my-project-123`) for deletion. This method will only affect the project if the following criteria are met: + The project does not have a billing account associated with it. + The project has a lifecycle state of [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]. This method changes the project's lifecycle state from [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE] to [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_REQUESTED]. The deletion starts at an unspecified time, at which point the lifecycle state changes to [DELETE_IN_PROGRESS] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS]. Until the deletion completes, you can check the lifecycle state checked by retrieving the project with [GetProject] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject], and the project remains visible to [ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects]. However, you cannot update the project. After the deletion completes, the project is not retrievable by the [GetProject] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject] and [ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects] methods. The caller must have modify permissions for this project.", "parameters": { "projectId": { "type": "string", @@ -299,7 +299,7 @@ "id": "cloudresourcemanager.projects.undelete", "path": "v1beta1/projects/{projectId}:undelete", "httpMethod": "POST", - "description": "Restores the project identified by the specified `project_id` (for example, `my-project-123`). You can only use this method for a project that has a lifecycle state of [DELETE_REQUESTED] [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated by a lifecycle state of [DELETE_IN_PROGRESS] [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRESS], the project cannot be restored. The caller must have modify permissions for this project.", + "description": "Restores the project identified by the specified `project_id` (for example, `my-project-123`). You can only use this method for a project that has a lifecycle state of [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], the project cannot be restored. The caller must have modify permissions for this project.", "parameters": { "projectId": { "type": "string", diff --git a/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go b/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go index 1752ea4fcbe..e5d615e9028 100644 --- a/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go @@ -105,13 +105,12 @@ type Project struct { // Labels: The labels associated with this project. Label keys must be // between 1 and 63 characters long and must conform to the following - // regular expression: [a-z]([-a-z0-9]*[a-z0-9])?. Label values must be - // between 0 and 63 characters long and must conform to the regular - // expression ([a-z]([-a-z0-9]*[a-z0-9])?)?. No more than 256 labels can - // be associated with a given resource. Note that additional character - // may be included in labels in the future. Clients should store labels - // in a representation such as JSON that does not depend on specific - // characters being disallowed. Example: "environment" : "dev" + // regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. Label values + // must be between 0 and 63 characters long and must conform to the + // regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. No more than + // 256 labels can be associated with a given resource. Clients should + // store labels in a representation such as JSON that does not depend on + // specific characters being disallowed. Example: "environment" : "dev" // Read-write. Labels map[string]string `json:"labels,omitempty"` @@ -125,19 +124,19 @@ type Project struct { LifecycleState string `json:"lifecycleState,omitempty"` // Name: The user-assigned name of the project. This field is optional - // and can remain unset. Allowed characters are: lower- and upper-case - // letters, numbers, hyphen, single-quote, double-quotes, space, and - // exclamation point. Example: "My Project" Read-write. + // and can remain unset. Allowed characters are: lowercase and uppercase + // letters, numbers, hyphen, single-quote, double-quote, space, and + // exclamation point. Example: My Project Read-write. Name string `json:"name,omitempty"` - // ProjectId: The unique, user-assigned id of the project. It must be 6 + // ProjectId: The unique, user-assigned ID of the project. It must be 6 // to 30 lowercase letters, digits, or hyphens. It must start with a - // letter. Trailing hyphens are prohibited. Example: "tokyo-rain-123" + // letter. Trailing hyphens are prohibited. Example: tokyo-rain-123 // Read-only after creation. ProjectId string `json:"projectId,omitempty"` // ProjectNumber: The number uniquely identifying the project. Example: - // 415104041262. Read-only. + // 415104041262 Read-only. ProjectNumber int64 `json:"projectNumber,omitempty,string"` } @@ -227,28 +226,29 @@ type ProjectsDeleteCall struct { // Delete: Marks the project identified by the specified `project_id` // (for example, `my-project-123`) for deletion. This method will only -// affect the project if it has a lifecycle state of -// [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] -// when this method is called. Otherwise this method does nothing (since -// all other states are phases of deletion). This method changes the -// project's lifecycle state from -// [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] -// to [DELETE_REQUESTED] -// [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED -// ]. The deletion starts at an unspecified time, at which point the -// lifecycle state changes to [DELETE_IN_PROGRESS] -// [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRE -// SS]. Until the deletion completes, you can check the lifecycle state -// checked by retrieving the project with [GetProject] -// [cloudresourcemanager.projects.v1beta2.Projects.GetProject], and the -// project remains visible to [ListProjects] -// [cloudresourcemanager.projects.v1beta2.Projects.ListProjects]. -// However, you cannot update the project. After the deletion completes, -// the project is not retrievable by the [GetProject] -// [cloudresourcemanager.projects.v1beta2.Projects.GetProject] and -// [ListProjects] -// [cloudresourcemanager.projects.v1beta2.Projects.ListProjects] -// methods. The caller must have modify permissions for this project. +// affect the project if the following criteria are met: + The project +// does not have a billing account associated with it. + The project has +// a lifecycle state of +// [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.A +// CTIVE]. This method changes the project's lifecycle state from +// [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.A +// CTIVE] to [DELETE_REQUESTED] +// [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_RE +// QUESTED]. The deletion starts at an unspecified time, at which point +// the lifecycle state changes to [DELETE_IN_PROGRESS] +// [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN +// _PROGRESS]. Until the deletion completes, you can check the lifecycle +// state checked by retrieving the project with [GetProject] +// [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetPro +// ject], and the project remains visible to [ListProjects] +// [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListPr +// ojects]. However, you cannot update the project. After the deletion +// completes, the project is not retrievable by the [GetProject] +// [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetPro +// ject] and [ListProjects] +// [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListPr +// ojects] methods. The caller must have modify permissions for this +// project. func (r *ProjectsService) Delete(projectId string) *ProjectsDeleteCall { c := &ProjectsDeleteCall{s: r.s, opt_: make(map[string]interface{})} c.projectId = projectId @@ -291,7 +291,7 @@ func (c *ProjectsDeleteCall) Do() (*Empty, error) { } return ret, nil // { - // "description": "Marks the project identified by the specified `project_id` (for example, `my-project-123`) for deletion. This method will only affect the project if it has a lifecycle state of [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] when this method is called. Otherwise this method does nothing (since all other states are phases of deletion). This method changes the project's lifecycle state from [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] to [DELETE_REQUESTED] [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED]. The deletion starts at an unspecified time, at which point the lifecycle state changes to [DELETE_IN_PROGRESS] [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRESS]. Until the deletion completes, you can check the lifecycle state checked by retrieving the project with [GetProject] [cloudresourcemanager.projects.v1beta2.Projects.GetProject], and the project remains visible to [ListProjects] [cloudresourcemanager.projects.v1beta2.Projects.ListProjects]. However, you cannot update the project. After the deletion completes, the project is not retrievable by the [GetProject] [cloudresourcemanager.projects.v1beta2.Projects.GetProject] and [ListProjects] [cloudresourcemanager.projects.v1beta2.Projects.ListProjects] methods. The caller must have modify permissions for this project.", + // "description": "Marks the project identified by the specified `project_id` (for example, `my-project-123`) for deletion. This method will only affect the project if the following criteria are met: + The project does not have a billing account associated with it. + The project has a lifecycle state of [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]. This method changes the project's lifecycle state from [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE] to [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_REQUESTED]. The deletion starts at an unspecified time, at which point the lifecycle state changes to [DELETE_IN_PROGRESS] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS]. Until the deletion completes, you can check the lifecycle state checked by retrieving the project with [GetProject] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject], and the project remains visible to [ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects]. However, you cannot update the project. After the deletion completes, the project is not retrievable by the [GetProject] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject] and [ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects] methods. The caller must have modify permissions for this project.", // "httpMethod": "DELETE", // "id": "cloudresourcemanager.projects.delete", // "parameterOrder": [ @@ -411,13 +411,14 @@ func (r *ProjectsService) List() *ProjectsListCall { // Filter sets the optional parameter "filter": An expression for // filtering the results of the request. Filter rules are case -// insensitive. The fields eligible for filtering are: name id labels. -// where is a the name of a label Examples: name:* ==> The project has -// a name. name:Howl ==> The project’s name is `Howl` or 'howl'. -// name:HOWL ==> Equivalent to above. NAME:howl ==> Equivalent to above. -// labels.color:* ==> The project has the label "color". -// labels.color:red ==> The project’s label `color` has the value -// `red`. labels.color:red label.size:big ==> The project's label +// insensitive. The fields eligible for filtering are: + `name` + `id` + +// labels.key where *key* is the name of a label Some examples of using +// labels as filters: |Filter|Description| |------|-----------| +// |name:*|The project has a name.| |name:Howl|The project's name is +// `Howl` or `howl`.| |name:HOWL|Equivalent to above.| +// |NAME:howl|Equivalent to above.| |labels.color:*|The project has the +// label `color`.| |labels.color:red|The project's label `color` has the +// value `red`.| |labels.color:red label.size:big|The project's label // `color` has the value `red` and its label `size` has the value `big`. func (c *ProjectsListCall) Filter(filter string) *ProjectsListCall { c.opt_["filter"] = filter @@ -491,7 +492,7 @@ func (c *ProjectsListCall) Do() (*ListProjectsResponse, error) { // "id": "cloudresourcemanager.projects.list", // "parameters": { // "filter": { - // "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: name id labels. where is a the name of a label Examples: name:* ==\u003e The project has a name. name:Howl ==\u003e The project’s name is `Howl` or 'howl'. name:HOWL ==\u003e Equivalent to above. NAME:howl ==\u003e Equivalent to above. labels.color:* ==\u003e The project has the label \"color\". labels.color:red ==\u003e The project’s label `color` has the value `red`. labels.color:red label.size:big ==\u003e The project's label `color` has the value `red` and its label `size` has the value `big`. Optional.", + // "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: + `name` + `id` + labels.key where *key* is the name of a label Some examples of using labels as filters: |Filter|Description| |------|-----------| |name:*|The project has a name.| |name:Howl|The project's name is `Howl` or `howl`.| |name:HOWL|Equivalent to above.| |NAME:howl|Equivalent to above.| |labels.color:*|The project has the label `color`.| |labels.color:red|The project's label `color` has the value `red`.| |labels.color:red label.size:big|The project's label `color` has the value `red` and its label `size` has the value `big`. Optional.", // "location": "query", // "type": "string" // }, @@ -529,12 +530,12 @@ type ProjectsUndeleteCall struct { // Undelete: Restores the project identified by the specified // `project_id` (for example, `my-project-123`). You can only use this // method for a project that has a lifecycle state of [DELETE_REQUESTED] -// [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED -// ]. After deletion starts, as indicated by a lifecycle state of +// [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_RE +// QUESTED]. After deletion starts, as indicated by a lifecycle state of // [DELETE_IN_PROGRESS] -// [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRE -// SS], the project cannot be restored. The caller must have modify -// permissions for this project. +// [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN +// _PROGRESS], the project cannot be restored. The caller must have +// modify permissions for this project. func (r *ProjectsService) Undelete(projectId string) *ProjectsUndeleteCall { c := &ProjectsUndeleteCall{s: r.s, opt_: make(map[string]interface{})} c.projectId = projectId @@ -577,7 +578,7 @@ func (c *ProjectsUndeleteCall) Do() (*Empty, error) { } return ret, nil // { - // "description": "Restores the project identified by the specified `project_id` (for example, `my-project-123`). You can only use this method for a project that has a lifecycle state of [DELETE_REQUESTED] [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated by a lifecycle state of [DELETE_IN_PROGRESS] [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRESS], the project cannot be restored. The caller must have modify permissions for this project.", + // "description": "Restores the project identified by the specified `project_id` (for example, `my-project-123`). You can only use this method for a project that has a lifecycle state of [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], the project cannot be restored. The caller must have modify permissions for this project.", // "httpMethod": "POST", // "id": "cloudresourcemanager.projects.undelete", // "parameterOrder": [ diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json deleted file mode 100644 index ca04bf7bbab..00000000000 --- a/cloudsearch/v1/cloudsearch-api.json +++ /dev/null @@ -1,672 +0,0 @@ -{ - "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/nEzuRsBqgiDxr-ibn0WHLMhdIu8\"", - "discoveryVersion": "v1", - "id": "cloudsearch:v1", - "name": "cloudsearch", - "version": "v1", - "revision": "20150309", - "title": "Google Cloud Search API", - "description": "The Google Cloud Search API defines an application interface to index documents that contain structured data and to search those indexes. It supports full text search.", - "ownerDomain": "google.com", - "ownerName": "Google", - "icons": { - "x16": "http://www.google.com/images/icons/product/search-16.gif", - "x32": "http://www.google.com/images/icons/product/search-32.gif" - }, - "documentationLink": "", - "protocol": "rest", - "baseUrl": "https://cloudsearch.googleapis.com/", - "basePath": "", - "rootUrl": "https://cloudsearch.googleapis.com/", - "servicePath": "", - "batchPath": "batch", - "parameters": { - "access_token": { - "type": "string", - "description": "OAuth access token.", - "location": "query" - }, - "alt": { - "type": "string", - "description": "Data format for response.", - "default": "json", - "enumDescriptions": [ - "Responses with Content-Type of application/json", - "Media download with context dependend Content-Type" - ], - "location": "query" - }, - "bearer_token": { - "type": "string", - "description": "OAuth bearer token.", - "location": "query" - }, - "callback": { - "type": "string", - "description": "JSONP", - "location": "query" - }, - "fields": { - "type": "string", - "description": "Selector specifying which fields to include in a partial response.", - "location": "query" - }, - "key": { - "type": "string", - "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", - "location": "query" - }, - "oauth_token": { - "type": "string", - "description": "OAuth 2.0 token for the current user.", - "location": "query" - }, - "pp": { - "type": "boolean", - "description": "Pretty-print response.", - "default": "true", - "location": "query" - }, - "prettyPrint": { - "type": "boolean", - "description": "Returns response with indentations and line breaks.", - "default": "true", - "location": "query" - }, - "quotaUser": { - "type": "string", - "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", - "location": "query" - }, - "$.xgafv": { - "type": "string", - "description": "V1 error format.", - "enumDescriptions": [ - "v1 error format", - "v2 error format" - ], - "location": "query" - } - }, - "auth": { - "oauth2": { - "scopes": { - "https://www.googleapis.com/auth/cloud-platform": { - "description": "View and manage your data across Google Cloud Platform services" - }, - "https://www.googleapis.com/auth/cloudsearch": { - "description": "FOR TESTING ONLY" - }, - "https://www.googleapis.com/auth/userinfo.email": { - "description": "View your email address" - } - } - } - }, - "schemas": { - "Document": { - "id": "Document", - "type": "object", - "description": "The message representing a document resource.", - "properties": { - "docId": { - "type": "string", - "description": "The unique identifier of the document. It must contain only visible, printable ASCII characters (ASCII codes 33 through 126 inclusive) and be no longer than 500 characters. It cannot begin with an exclamation point ('!'), and it can't begin and end with double underscores (\"__\"). If missing, it is automatically assigned for the document." - }, - "rank": { - "type": "integer", - "description": "A positive integer which determines the default ordering of documents returned from a search. The rank can be set explicitly when the document is created. It is a bad idea to assign the same rank to many documents, and the same rank should never be assigned to more than 10,000 documents. By default (when it is not specified or set to 0), it is set at the time the document is created to the number of seconds since January 1, 2011. The rank can be used in field_expressions, order_by or return_fields in a search request, where it is referenced as `_rank`.", - "format": "int32" - }, - "fields": { - "type": "object", - "description": "The list of fields in the document. It cannot be the empty list. Each field has a name and a list of values. The field name is unique to a document and is case sensitive. The name can only contain ASCII characters. It must start with a letter and can contain letters, digits, or underscore. It cannot be longer than 500 characters and cannot be the empty string. A field can have multiple values with same or different types, however, it cannot have multiple Timestamp or number values.", - "additionalProperties": { - "$ref": "FieldValueList" - } - } - } - }, - "FieldValueList": { - "id": "FieldValueList", - "type": "object", - "description": "The values of a document field under the same field name.", - "properties": { - "values": { - "type": "array", - "description": "The list of typed values.", - "items": { - "$ref": "FieldValue" - } - } - } - }, - "FieldValue": { - "id": "FieldValue", - "type": "object", - "description": "The value of a document field and associated metadata. Exactly one of the value fields may be set.", - "properties": { - "stringValue": { - "type": "string", - "description": "The value of a string-valued field." - }, - "timestampValue": { - "type": "string", - "description": "The value of a timestamp-valued field." - }, - "numberValue": { - "type": "number", - "description": "The value of a number-valued field.", - "format": "double" - }, - "geoValue": { - "type": "string", - "description": "The value of a GEO-valued field, represented in string with any of the listed [ways of writing coordinates](http://en.wikipedia.org/wiki/Geographic_coordinate_conversion#Ways_of_writing_coordinates)" - }, - "stringFormat": { - "type": "string", - "description": "The format of a string value. By default, the string format is `DEFAULT`, where a format will be automatically detected.", - "enum": [ - "DEFAULT", - "ATOM", - "TEXT", - "HTML" - ] - }, - "lang": { - "type": "string", - "description": "The language of a string value. If given, the language must be a valid `ISO 639-1` code." - } - } - }, - "Empty": { - "id": "Empty", - "type": "object", - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }" - }, - "ListDocumentsResponse": { - "id": "ListDocumentsResponse", - "type": "object", - "description": "A response returned from a listing documents request.", - "properties": { - "documents": { - "type": "array", - "description": "The list of documents.", - "items": { - "$ref": "Document" - } - }, - "nextPageToken": { - "type": "string", - "description": "If there are more results, retrieve them by invoking list documents call with the same arguments and this `nextPageToken`. If there are no more results, this field is not set." - } - } - }, - "ListIndexesResponse": { - "id": "ListIndexesResponse", - "type": "object", - "description": "A response returned from a listing indexes request.", - "properties": { - "indexes": { - "type": "array", - "description": "The information about available indexes.", - "items": { - "$ref": "IndexInfo" - } - }, - "nextPageToken": { - "type": "string", - "description": "If there are more results, retrieve them by invoking list indexes call with the same arguments and this `nextPageToken`. If there are no more results, this field is not set." - } - } - }, - "IndexInfo": { - "id": "IndexInfo", - "type": "object", - "description": "Information about an index.", - "properties": { - "projectId": { - "type": "string", - "description": "The project associated with the index. It cannot be the empty string." - }, - "indexId": { - "type": "string", - "description": "The index identifier. It cannot be the empty string. It must contain only visible, printable ASCII characters (ASCII codes 33 through 126 inclusive) and be no longer than 100 characters. It cannot begin with an exclamation point ('!'), and it can't begin and end with double underscores (\"__\")." - }, - "indexedField": { - "$ref": "FieldNames", - "description": "Names of indexed fields." - } - } - }, - "FieldNames": { - "id": "FieldNames", - "type": "object", - "description": "Names of indexed fields.", - "properties": { - "textFields": { - "type": "array", - "description": "The names of fields in which TEXT values are stored.", - "items": { - "type": "string" - } - }, - "htmlFields": { - "type": "array", - "description": "The names of fields in which HTML values are stored.", - "items": { - "type": "string" - } - }, - "atomFields": { - "type": "array", - "description": "The names of fields in which ATOM values are stored.", - "items": { - "type": "string" - } - }, - "dateFields": { - "type": "array", - "description": "The names of fields in which DATE values are stored.", - "items": { - "type": "string" - } - }, - "numberFields": { - "type": "array", - "description": "The names of fields in which NUMBER values are stored.", - "items": { - "type": "string" - } - }, - "geoFields": { - "type": "array", - "description": "The names of fields in which GEO values are stored.", - "items": { - "type": "string" - } - } - } - }, - "SearchResponse": { - "id": "SearchResponse", - "type": "object", - "description": "A response returned from a search request.", - "properties": { - "results": { - "type": "array", - "description": "The list of documents that match the search query.", - "items": { - "$ref": "SearchResult" - } - }, - "matchedCount": { - "type": "string", - "description": "The number of documents that match the query. It is greater than or equal to the number of documents actually returned. This is an approximation and not an exact count unless it is less than or equal to `matchedCountAccuracy` in search parameter.", - "format": "int64" - } - } - }, - "SearchResult": { - "id": "SearchResult", - "type": "object", - "description": "A document returned in a SearchResponse.", - "properties": { - "docId": { - "type": "string", - "description": "The unique identifier of the document." - }, - "fields": { - "type": "object", - "description": "The list of fields in the result. Each field is either from the stored document, the built-in fields (`_rank`, the document rank, and `_score` if scoring is enabled), or computed from any extra `fieldExpressions` defined in the request. For example, if a request contains a `fieldExpressions` named `\"TotalPrice\"` and expressed as `\"Price + Tax\"`, the result will have a field whose name is `\"TotalPrice\"` and whose value is set to the computed sum of the value of field `\"Price\"` and the value of field `\"Tax\"`. If a request contains a `fieldExpressions` named `\"snippet\"` and expressed as `\"snippet(\\\"good times\\\", content)\"`, the result will have a field whose name is `\"snippet\"` and whose value contains a snippet of text from field `\"content\"` matching the query \"good times\".", - "additionalProperties": { - "$ref": "FieldValueList" - } - }, - "nextPageToken": { - "type": "string", - "description": "If there are more results, retrieve them by invoking search call with the same arguments and this `nextPageToken`. If there are no more results, this field is not set." - } - } - } - }, - "resources": { - "projects": { - "resources": { - "indexes": { - "methods": { - "list": { - "id": "cloudsearch.projects.indexes.list", - "path": "v1/projects/{projectId}/indexes", - "httpMethod": "GET", - "description": "Lists search indexes belonging to the specified project.", - "parameters": { - "projectId": { - "type": "string", - "description": "The project from which to retrieve indexes. It cannot be the empty string.", - "required": true, - "location": "path" - }, - "indexNamePrefix": { - "type": "string", - "description": "The prefix of the index name. It is used to list all indexes with names that have this prefix.", - "location": "query" - }, - "pageSize": { - "type": "integer", - "description": "The maximum number of indexes to return per page. If not specified, 100 indexes are returned per page.", - "format": "int32", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "A `nextPageToken` returned from previous list indexes call as the starting point for this call. If not specified, list indexes from the beginning.", - "location": "query" - }, - "view": { - "type": "string", - "description": "Specifies which parts of the IndexInfo resource is returned in the response. If not specified, `ID_ONLY` is used.", - "enum": [ - "INDEX_VIEW_UNSPECIFIED", - "ID_ONLY", - "FULL" - ], - "location": "query" - } - }, - "parameterOrder": [ - "projectId", - "indexNamePrefix", - "pageSize", - "pageToken", - "view" - ], - "response": { - "$ref": "ListIndexesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloudsearch", - "https://www.googleapis.com/auth/userinfo.email" - ] - }, - "search": { - "id": "cloudsearch.projects.indexes.search", - "path": "v1/projects/{projectId}/indexes/{indexId}/search", - "httpMethod": "GET", - "description": "Lists the documents in the named index that match the query.", - "parameters": { - "projectId": { - "type": "string", - "description": "The project associated with the index for searching document. It cannot be the empty string.", - "required": true, - "location": "path" - }, - "indexId": { - "type": "string", - "description": "The index to search. It cannot be the empty string.", - "required": true, - "location": "path" - }, - "query": { - "type": "string", - "description": "The query string in search query syntax. If the query is missing or empty, all documents are returned.", - "location": "query" - }, - "fieldExpressions": { - "type": "string", - "description": "Customized expressions used in `orderBy` or `returnFields`. The expression can contain fields in `Document`, the built-in fields ( `_rank`, the document rank, and `_score` if scoring is enabled) and fields defined in `fieldExpressions`. Each field expression is represented in a json object with the following fields: * `name`: the name of the field expression in string. * `expression`: the expression to be computed. It can be a combination of supported functions encoded in string. Expressions involving number fields can use the arithmetical operators (`+`, `-`, `*`, `/`) and the built-in numeric functions (`max`, `min`, `pow`, `count`, `log`, `abs`). Expressions involving geopoint fields can use the `geopoint` and `distance` functions. Expressions for text and html fields can use the `snippet` function. For example: ``` fieldExpressions={name: \"TotalPrice\", expression: \"(Price+Tax)\"} ``` ``` fieldExpressions={name: \"snippet\", expression: \"snippet('good times', content)\"} ``` The field expression names can be used in `orderBy` and `returnFields` after they are defined in `fieldExpressions`.", - "repeated": true, - "location": "query" - }, - "pageSize": { - "type": "integer", - "description": "The maximum number of search results to return per page. Searches perform best when the `pageSize` is kept as small as possible. If not specified, 10 results are returned per page.", - "format": "int32", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "A `nextPageToken` returned from previous Search call as the starting point for this call. Pagination tokens provide better performance and consistency than offsets, and they cannot be used in combination with offsets.", - "location": "query" - }, - "offset": { - "type": "integer", - "description": "Offset is used to move to an arbitrary result, independent of the previous results. Offsets are inefficient when compared to `pageToken`. `pageToken` and `offset` cannot be both set. The default value of `offset` is 0.", - "format": "int32", - "location": "query" - }, - "matchedCountAccuracy": { - "type": "integer", - "description": "Minimum accuracy requirement for `matchedCount` in search response. If specified, `matchedCount` will be accurate up to at least that number. For example, when set to 100, any `matchedCount \u003c= 100` is accurate. This option may add considerable latency/expense. By default (when it is not specified or set to 0), the accuracy is the same as `pageSize`.", - "format": "int32", - "location": "query" - }, - "orderBy": { - "type": "string", - "description": "Comma-separated list of fields for sorting on the search result, including fields from `Document`, the built-in fields (`_rank` and `_score`), and fields defined in `fieldExpressions`. For example: `orderBy=\"foo,bar\"`. The default sorting order is ascending. To specify descending order for a field, a suffix `\" desc\"` should be appended to the field name. For example: `orderBy=\"foo desc,bar\"`. The default value for text sort is the empty string, and the default value for numeric sort is 0. If not specified, the search results are automatically sorted by descending `_rank`. Sorting by ascending `_rank` is not allowed.", - "location": "query" - }, - "scorer": { - "type": "string", - "description": "The scoring function to invoke on a search result for this query. If `scorer` is not set, scoring is disabled and `_score` is 0 for all documents in the search result. To enable document relevancy score based on term frequency, set `\"scorer=generic\"`.", - "location": "query" - }, - "scorerSize": { - "type": "integer", - "description": "Maximum number of top retrieved results to score. It is valid only when `scorer` is set. If not specified, 100 retrieved results are scored.", - "format": "int32", - "location": "query" - }, - "returnFields": { - "type": "string", - "description": "List of fields to return in `SearchResult` objects. It can be fields from `Document`, the built-in fields `_rank` and `_score`, and fields defined in `fieldExpressions`. Use `\"*\"` to return all fields from `Document`.", - "repeated": true, - "location": "query" - } - }, - "parameterOrder": [ - "projectId", - "indexId", - "query", - "fieldExpressions", - "pageSize", - "pageToken", - "offset", - "matchedCountAccuracy", - "orderBy", - "scorer", - "scorerSize", - "returnFields" - ], - "response": { - "$ref": "SearchResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloudsearch", - "https://www.googleapis.com/auth/userinfo.email" - ] - } - }, - "resources": { - "documents": { - "methods": { - "create": { - "id": "cloudsearch.projects.indexes.documents.create", - "path": "v1/projects/{projectId}/indexes/{indexId}/documents", - "httpMethod": "POST", - "description": "Inserts a document for indexing or updates an indexed document. The returned document contains only the ID of the new document. When `docId` is absent from the document, it is provided by the server.", - "parameters": { - "projectId": { - "type": "string", - "description": "The project associated with the index for adding document. It cannot be the empty string.", - "required": true, - "location": "path" - }, - "indexId": { - "type": "string", - "description": "The index to add document to. It cannot be the empty string.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "projectId", - "indexId" - ], - "request": { - "$ref": "Document" - }, - "response": { - "$ref": "Document" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloudsearch", - "https://www.googleapis.com/auth/userinfo.email" - ] - }, - "delete": { - "id": "cloudsearch.projects.indexes.documents.delete", - "path": "v1/projects/{projectId}/indexes/{indexId}/documents/{docId}", - "httpMethod": "DELETE", - "description": "Deletes a document from an index.", - "parameters": { - "projectId": { - "type": "string", - "description": "The project associated with the index for deleting document. It cannot be the empty string.", - "required": true, - "location": "path" - }, - "indexId": { - "type": "string", - "description": "The index from which to delete the document. It cannot be the empty string.", - "required": true, - "location": "path" - }, - "docId": { - "type": "string", - "description": "The document to be deleted. It cannot be the empty string.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "projectId", - "indexId", - "docId" - ], - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloudsearch", - "https://www.googleapis.com/auth/userinfo.email" - ] - }, - "get": { - "id": "cloudsearch.projects.indexes.documents.get", - "path": "v1/projects/{projectId}/indexes/{indexId}/documents/{docId}", - "httpMethod": "GET", - "description": "Retrieves a document from an index.", - "parameters": { - "projectId": { - "type": "string", - "description": "The project associated with the index for retrieving the document. It cannot be the empty string.", - "required": true, - "location": "path" - }, - "indexId": { - "type": "string", - "description": "The index from which to retrieve the document. It cannot be the empty string.", - "required": true, - "location": "path" - }, - "docId": { - "type": "string", - "description": "The identifier of the document to retrieve. It cannot be the empty string.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "projectId", - "indexId", - "docId" - ], - "response": { - "$ref": "Document" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloudsearch", - "https://www.googleapis.com/auth/userinfo.email" - ] - }, - "list": { - "id": "cloudsearch.projects.indexes.documents.list", - "path": "v1/projects/{projectId}/indexes/{indexId}/documents", - "httpMethod": "GET", - "description": "Lists documents in the specified search index. Intended for batch processing.", - "parameters": { - "projectId": { - "type": "string", - "description": "The project associated with the index for listing documents. It cannot be the empty string.", - "required": true, - "location": "path" - }, - "indexId": { - "type": "string", - "description": "The index from which to list the documents. It cannot be the empty string.", - "required": true, - "location": "path" - }, - "pageSize": { - "type": "integer", - "description": "The maximum number of documents to return per page. If not specified, 100 documents are returned per page.", - "format": "int32", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "A `nextPageToken` returned from previous list documents call as the starting point for this call. If not specified, list documents from the beginning.", - "location": "query" - }, - "view": { - "type": "string", - "description": "Specifies which part of the document resource is returned in the response. If not specified, `ID_ONLY` is used.", - "enum": [ - "DOCUMENT_VIEW_UNSPECIFIED", - "ID_ONLY", - "FULL" - ], - "location": "query" - } - }, - "parameterOrder": [ - "projectId", - "indexId", - "pageSize", - "pageToken", - "view" - ], - "response": { - "$ref": "ListDocumentsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloudsearch", - "https://www.googleapis.com/auth/userinfo.email" - ] - } - } - } - } - } - } - } - } -} diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go deleted file mode 100644 index 08dc0078575..00000000000 --- a/cloudsearch/v1/cloudsearch-gen.go +++ /dev/null @@ -1,1207 +0,0 @@ -// Package cloudsearch provides access to the Google Cloud Search API. -// -// Usage example: -// -// import "google.golang.org/api/cloudsearch/v1" -// ... -// cloudsearchService, err := cloudsearch.New(oauthHttpClient) -package cloudsearch - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "golang.org/x/net/context" - "google.golang.org/api/googleapi" - "io" - "net/http" - "net/url" - "strconv" - "strings" -) - -// Always reference these packages, just in case the auto-generated code -// below doesn't. -var _ = bytes.NewBuffer -var _ = strconv.Itoa -var _ = fmt.Sprintf -var _ = json.NewDecoder -var _ = io.Copy -var _ = url.Parse -var _ = googleapi.Version -var _ = errors.New -var _ = strings.Replace -var _ = context.Background - -const apiId = "cloudsearch:v1" -const apiName = "cloudsearch" -const apiVersion = "v1" -const basePath = "https://cloudsearch.googleapis.com/" - -// OAuth2 scopes used by this API. -const ( - // View and manage your data across Google Cloud Platform services - CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" - - // FOR TESTING ONLY - CloudsearchScope = "https://www.googleapis.com/auth/cloudsearch" - - // View your email address - UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email" -) - -func New(client *http.Client) (*Service, error) { - if client == nil { - return nil, errors.New("client is nil") - } - s := &Service{client: client, BasePath: basePath} - s.Projects = NewProjectsService(s) - return s, nil -} - -type Service struct { - client *http.Client - BasePath string // API endpoint base URL - UserAgent string // optional additional User-Agent fragment - - Projects *ProjectsService -} - -func (s *Service) userAgent() string { - if s.UserAgent == "" { - return googleapi.UserAgent - } - return googleapi.UserAgent + " " + s.UserAgent -} - -func NewProjectsService(s *Service) *ProjectsService { - rs := &ProjectsService{s: s} - rs.Indexes = NewProjectsIndexesService(s) - return rs -} - -type ProjectsService struct { - s *Service - - Indexes *ProjectsIndexesService -} - -func NewProjectsIndexesService(s *Service) *ProjectsIndexesService { - rs := &ProjectsIndexesService{s: s} - rs.Documents = NewProjectsIndexesDocumentsService(s) - return rs -} - -type ProjectsIndexesService struct { - s *Service - - Documents *ProjectsIndexesDocumentsService -} - -func NewProjectsIndexesDocumentsService(s *Service) *ProjectsIndexesDocumentsService { - rs := &ProjectsIndexesDocumentsService{s: s} - return rs -} - -type ProjectsIndexesDocumentsService struct { - s *Service -} - -type Document struct { - // DocId: The unique identifier of the document. It must contain only - // visible, printable ASCII characters (ASCII codes 33 through 126 - // inclusive) and be no longer than 500 characters. It cannot begin with - // an exclamation point ('!'), and it can't begin and end with double - // underscores ("__"). If missing, it is automatically assigned for the - // document. - DocId string `json:"docId,omitempty"` - - // Fields: The list of fields in the document. It cannot be the empty - // list. Each field has a name and a list of values. The field name is - // unique to a document and is case sensitive. The name can only contain - // ASCII characters. It must start with a letter and can contain - // letters, digits, or underscore. It cannot be longer than 500 - // characters and cannot be the empty string. A field can have multiple - // values with same or different types, however, it cannot have multiple - // Timestamp or number values. - Fields map[string]FieldValueList `json:"fields,omitempty"` - - // Rank: A positive integer which determines the default ordering of - // documents returned from a search. The rank can be set explicitly when - // the document is created. It is a bad idea to assign the same rank to - // many documents, and the same rank should never be assigned to more - // than 10,000 documents. By default (when it is not specified or set to - // 0), it is set at the time the document is created to the number of - // seconds since January 1, 2011. The rank can be used in - // field_expressions, order_by or return_fields in a search request, - // where it is referenced as `_rank`. - Rank int64 `json:"rank,omitempty"` -} - -type Empty struct { -} - -type FieldNames struct { - // AtomFields: The names of fields in which ATOM values are stored. - AtomFields []string `json:"atomFields,omitempty"` - - // DateFields: The names of fields in which DATE values are stored. - DateFields []string `json:"dateFields,omitempty"` - - // GeoFields: The names of fields in which GEO values are stored. - GeoFields []string `json:"geoFields,omitempty"` - - // HtmlFields: The names of fields in which HTML values are stored. - HtmlFields []string `json:"htmlFields,omitempty"` - - // NumberFields: The names of fields in which NUMBER values are stored. - NumberFields []string `json:"numberFields,omitempty"` - - // TextFields: The names of fields in which TEXT values are stored. - TextFields []string `json:"textFields,omitempty"` -} - -type FieldValue struct { - // GeoValue: The value of a GEO-valued field, represented in string with - // any of the listed [ways of writing - // coordinates](http://en.wikipedia.org/wiki/Geographic_coordinate_conver - // sion#Ways_of_writing_coordinates) - GeoValue string `json:"geoValue,omitempty"` - - // Lang: The language of a string value. If given, the language must be - // a valid `ISO 639-1` code. - Lang string `json:"lang,omitempty"` - - // NumberValue: The value of a number-valued field. - NumberValue float64 `json:"numberValue,omitempty"` - - // StringFormat: The format of a string value. By default, the string - // format is `DEFAULT`, where a format will be automatically detected. - // - // Possible values: - // "DEFAULT" - // "ATOM" - // "TEXT" - // "HTML" - StringFormat string `json:"stringFormat,omitempty"` - - // StringValue: The value of a string-valued field. - StringValue string `json:"stringValue,omitempty"` - - // TimestampValue: The value of a timestamp-valued field. - TimestampValue string `json:"timestampValue,omitempty"` -} - -type FieldValueList struct { - // Values: The list of typed values. - Values []*FieldValue `json:"values,omitempty"` -} - -type IndexInfo struct { - // IndexId: The index identifier. It cannot be the empty string. It must - // contain only visible, printable ASCII characters (ASCII codes 33 - // through 126 inclusive) and be no longer than 100 characters. It - // cannot begin with an exclamation point ('!'), and it can't begin and - // end with double underscores ("__"). - IndexId string `json:"indexId,omitempty"` - - // IndexedField: Names of indexed fields. - IndexedField *FieldNames `json:"indexedField,omitempty"` - - // ProjectId: The project associated with the index. It cannot be the - // empty string. - ProjectId string `json:"projectId,omitempty"` -} - -type ListDocumentsResponse struct { - // Documents: The list of documents. - Documents []*Document `json:"documents,omitempty"` - - // NextPageToken: If there are more results, retrieve them by invoking - // list documents call with the same arguments and this `nextPageToken`. - // If there are no more results, this field is not set. - NextPageToken string `json:"nextPageToken,omitempty"` -} - -type ListIndexesResponse struct { - // Indexes: The information about available indexes. - Indexes []*IndexInfo `json:"indexes,omitempty"` - - // NextPageToken: If there are more results, retrieve them by invoking - // list indexes call with the same arguments and this `nextPageToken`. - // If there are no more results, this field is not set. - NextPageToken string `json:"nextPageToken,omitempty"` -} - -type SearchResponse struct { - // MatchedCount: The number of documents that match the query. It is - // greater than or equal to the number of documents actually returned. - // This is an approximation and not an exact count unless it is less - // than or equal to `matchedCountAccuracy` in search parameter. - MatchedCount int64 `json:"matchedCount,omitempty,string"` - - // Results: The list of documents that match the search query. - Results []*SearchResult `json:"results,omitempty"` -} - -type SearchResult struct { - // DocId: The unique identifier of the document. - DocId string `json:"docId,omitempty"` - - // Fields: The list of fields in the result. Each field is either from - // the stored document, the built-in fields (`_rank`, the document rank, - // and `_score` if scoring is enabled), or computed from any extra - // `fieldExpressions` defined in the request. For example, if a request - // contains a `fieldExpressions` named "TotalPrice" and expressed as - // "Price + Tax", the result will have a field whose name is - // "TotalPrice" and whose value is set to the computed sum of the - // value of field "Price" and the value of field "Tax". If a request - // contains a `fieldExpressions` named "snippet" and expressed as - // "snippet(\"good times\", content)", the result will have a field - // whose name is "snippet" and whose value contains a snippet of text - // from field "content" matching the query "good times". - Fields map[string]FieldValueList `json:"fields,omitempty"` - - // NextPageToken: If there are more results, retrieve them by invoking - // search call with the same arguments and this `nextPageToken`. If - // there are no more results, this field is not set. - NextPageToken string `json:"nextPageToken,omitempty"` -} - -// method id "cloudsearch.projects.indexes.list": - -type ProjectsIndexesListCall struct { - s *Service - projectId string - indexNamePrefix string - pageSize int64 - pageToken string - view string - opt_ map[string]interface{} -} - -// List: Lists search indexes belonging to the specified project. -func (r *ProjectsIndexesService) List(projectId string, indexNamePrefix string, pageSize int64, pageToken string, view string) *ProjectsIndexesListCall { - c := &ProjectsIndexesListCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.indexNamePrefix = indexNamePrefix - c.pageSize = pageSize - c.pageToken = pageToken - c.view = view - return c -} - -// IndexNamePrefix sets the optional parameter "indexNamePrefix": The -// prefix of the index name. It is used to list all indexes with names -// that have this prefix. -func (c *ProjectsIndexesListCall) IndexNamePrefix(indexNamePrefix string) *ProjectsIndexesListCall { - c.opt_["indexNamePrefix"] = indexNamePrefix - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of indexes to return per page. If not specified, 100 indexes are -// returned per page. -func (c *ProjectsIndexesListCall) PageSize(pageSize int64) *ProjectsIndexesListCall { - c.opt_["pageSize"] = pageSize - return c -} - -// PageToken sets the optional parameter "pageToken": A `nextPageToken` -// returned from previous list indexes call as the starting point for -// this call. If not specified, list indexes from the beginning. -func (c *ProjectsIndexesListCall) PageToken(pageToken string) *ProjectsIndexesListCall { - c.opt_["pageToken"] = pageToken - return c -} - -// View sets the optional parameter "view": Specifies which parts of the -// IndexInfo resource is returned in the response. If not specified, -// `ID_ONLY` is used. -// -// Possible values: -// "INDEX_VIEW_UNSPECIFIED" -// "ID_ONLY" -// "FULL" -func (c *ProjectsIndexesListCall) View(view string) *ProjectsIndexesListCall { - c.opt_["view"] = view - 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 *ProjectsIndexesListCall) Fields(s ...googleapi.Field) *ProjectsIndexesListCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *ProjectsIndexesListCall) Do() (*ListIndexesResponse, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["indexNamePrefix"]; ok { - params.Set("indexNamePrefix", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageSize"]; ok { - params.Set("pageSize", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["view"]; ok { - params.Set("view", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/indexes") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *ListIndexesResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists search indexes belonging to the specified project.", - // "httpMethod": "GET", - // "id": "cloudsearch.projects.indexes.list", - // "parameterOrder": [ - // "projectId", - // "indexNamePrefix", - // "pageSize", - // "pageToken", - // "view" - // ], - // "parameters": { - // "indexNamePrefix": { - // "description": "The prefix of the index name. It is used to list all indexes with names that have this prefix.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of indexes to return per page. If not specified, 100 indexes are returned per page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A `nextPageToken` returned from previous list indexes call as the starting point for this call. If not specified, list indexes from the beginning.", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "The project from which to retrieve indexes. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "view": { - // "description": "Specifies which parts of the IndexInfo resource is returned in the response. If not specified, `ID_ONLY` is used.", - // "enum": [ - // "INDEX_VIEW_UNSPECIFIED", - // "ID_ONLY", - // "FULL" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/projects/{projectId}/indexes", - // "response": { - // "$ref": "ListIndexesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudsearch", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "cloudsearch.projects.indexes.search": - -type ProjectsIndexesSearchCall struct { - s *Service - projectId string - indexId string - query string - fieldExpressions []string - pageSize int64 - pageToken string - offset int64 - matchedCountAccuracy int64 - orderBy string - scorer string - scorerSize int64 - returnFields []string - opt_ map[string]interface{} -} - -// Search: Lists the documents in the named index that match the query. -func (r *ProjectsIndexesService) Search(projectId string, indexId string, query string, fieldExpressions []string, pageSize int64, pageToken string, offset int64, matchedCountAccuracy int64, orderBy string, scorer string, scorerSize int64, returnFields []string) *ProjectsIndexesSearchCall { - c := &ProjectsIndexesSearchCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.indexId = indexId - c.query = query - c.fieldExpressions = fieldExpressions - c.pageSize = pageSize - c.pageToken = pageToken - c.offset = offset - c.matchedCountAccuracy = matchedCountAccuracy - c.orderBy = orderBy - c.scorer = scorer - c.scorerSize = scorerSize - c.returnFields = returnFields - return c -} - -// FieldExpressions sets the optional parameter "fieldExpressions": -// Customized expressions used in `orderBy` or `returnFields`. The -// expression can contain fields in `Document`, the built-in fields ( -// `_rank`, the document rank, and `_score` if scoring is enabled) and -// fields defined in `fieldExpressions`. Each field expression is -// represented in a json object with the following fields: * `name`: the -// name of the field expression in string. * `expression`: the -// expression to be computed. It can be a combination of supported -// functions encoded in string. Expressions involving number fields can -// use the arithmetical operators (`+`, `-`, `*`, `/`) and the built-in -// numeric functions (`max`, `min`, `pow`, `count`, `log`, `abs`). -// Expressions involving geopoint fields can use the `geopoint` and -// `distance` functions. Expressions for text and html fields can use -// the `snippet` function. For example: ``` fieldExpressions={name: -// "TotalPrice", expression: "(Price+Tax)"} ``` ``` -// fieldExpressions={name: "snippet", expression: "snippet('good times', -// content)"} ``` The field expression names can be used in `orderBy` -// and `returnFields` after they are defined in `fieldExpressions`. -func (c *ProjectsIndexesSearchCall) FieldExpressions(fieldExpressions string) *ProjectsIndexesSearchCall { - c.opt_["fieldExpressions"] = fieldExpressions - return c -} - -// MatchedCountAccuracy sets the optional parameter -// "matchedCountAccuracy": Minimum accuracy requirement for -// `matchedCount` in search response. If specified, `matchedCount` will -// be accurate up to at least that number. For example, when set to 100, -// any `matchedCount <= 100` is accurate. This option may add -// considerable latency/expense. By default (when it is not specified or -// set to 0), the accuracy is the same as `pageSize`. -func (c *ProjectsIndexesSearchCall) MatchedCountAccuracy(matchedCountAccuracy int64) *ProjectsIndexesSearchCall { - c.opt_["matchedCountAccuracy"] = matchedCountAccuracy - return c -} - -// Offset sets the optional parameter "offset": Offset is used to move -// to an arbitrary result, independent of the previous results. Offsets -// are inefficient when compared to `pageToken`. `pageToken` and -// `offset` cannot be both set. The default value of `offset` is 0. -func (c *ProjectsIndexesSearchCall) Offset(offset int64) *ProjectsIndexesSearchCall { - c.opt_["offset"] = offset - return c -} - -// OrderBy sets the optional parameter "orderBy": Comma-separated list -// of fields for sorting on the search result, including fields from -// `Document`, the built-in fields (`_rank` and `_score`), and fields -// defined in `fieldExpressions`. For example: `orderBy="foo,bar". The -// default sorting order is ascending. To specify descending order for a -// field, a suffix " desc" should be appended to the field name. For -// example: `orderBy="foo desc,bar". The default value for text sort is -// the empty string, and the default value for numeric sort is 0. If not -// specified, the search results are automatically sorted by descending -// `_rank`. Sorting by ascending `_rank` is not allowed. -func (c *ProjectsIndexesSearchCall) OrderBy(orderBy string) *ProjectsIndexesSearchCall { - c.opt_["orderBy"] = orderBy - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of search results to return per page. Searches perform best when the -// `pageSize` is kept as small as possible. If not specified, 10 results -// are returned per page. -func (c *ProjectsIndexesSearchCall) PageSize(pageSize int64) *ProjectsIndexesSearchCall { - c.opt_["pageSize"] = pageSize - return c -} - -// PageToken sets the optional parameter "pageToken": A `nextPageToken` -// returned from previous Search call as the starting point for this -// call. Pagination tokens provide better performance and consistency -// than offsets, and they cannot be used in combination with offsets. -func (c *ProjectsIndexesSearchCall) PageToken(pageToken string) *ProjectsIndexesSearchCall { - c.opt_["pageToken"] = pageToken - return c -} - -// Query sets the optional parameter "query": The query string in search -// query syntax. If the query is missing or empty, all documents are -// returned. -func (c *ProjectsIndexesSearchCall) Query(query string) *ProjectsIndexesSearchCall { - c.opt_["query"] = query - return c -} - -// ReturnFields sets the optional parameter "returnFields": List of -// fields to return in `SearchResult` objects. It can be fields from -// `Document`, the built-in fields `_rank` and `_score`, and fields -// defined in `fieldExpressions`. Use "*" to return all fields from -// `Document`. -func (c *ProjectsIndexesSearchCall) ReturnFields(returnFields string) *ProjectsIndexesSearchCall { - c.opt_["returnFields"] = returnFields - return c -} - -// Scorer sets the optional parameter "scorer": The scoring function to -// invoke on a search result for this query. If `scorer` is not set, -// scoring is disabled and `_score` is 0 for all documents in the search -// result. To enable document relevancy score based on term frequency, -// set "scorer=generic". -func (c *ProjectsIndexesSearchCall) Scorer(scorer string) *ProjectsIndexesSearchCall { - c.opt_["scorer"] = scorer - return c -} - -// ScorerSize sets the optional parameter "scorerSize": Maximum number -// of top retrieved results to score. It is valid only when `scorer` is -// set. If not specified, 100 retrieved results are scored. -func (c *ProjectsIndexesSearchCall) ScorerSize(scorerSize int64) *ProjectsIndexesSearchCall { - c.opt_["scorerSize"] = scorerSize - 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 *ProjectsIndexesSearchCall) Fields(s ...googleapi.Field) *ProjectsIndexesSearchCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *ProjectsIndexesSearchCall) Do() (*SearchResponse, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fieldExpressions"]; ok { - params.Set("fieldExpressions", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["matchedCountAccuracy"]; ok { - params.Set("matchedCountAccuracy", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["offset"]; ok { - params.Set("offset", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["orderBy"]; ok { - params.Set("orderBy", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageSize"]; ok { - params.Set("pageSize", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["query"]; ok { - params.Set("query", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["returnFields"]; ok { - params.Set("returnFields", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["scorer"]; ok { - params.Set("scorer", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["scorerSize"]; ok { - params.Set("scorerSize", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/indexes/{indexId}/search") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - "indexId": c.indexId, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *SearchResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists the documents in the named index that match the query.", - // "httpMethod": "GET", - // "id": "cloudsearch.projects.indexes.search", - // "parameterOrder": [ - // "projectId", - // "indexId", - // "query", - // "fieldExpressions", - // "pageSize", - // "pageToken", - // "offset", - // "matchedCountAccuracy", - // "orderBy", - // "scorer", - // "scorerSize", - // "returnFields" - // ], - // "parameters": { - // "fieldExpressions": { - // "description": "Customized expressions used in `orderBy` or `returnFields`. The expression can contain fields in `Document`, the built-in fields ( `_rank`, the document rank, and `_score` if scoring is enabled) and fields defined in `fieldExpressions`. Each field expression is represented in a json object with the following fields: * `name`: the name of the field expression in string. * `expression`: the expression to be computed. It can be a combination of supported functions encoded in string. Expressions involving number fields can use the arithmetical operators (`+`, `-`, `*`, `/`) and the built-in numeric functions (`max`, `min`, `pow`, `count`, `log`, `abs`). Expressions involving geopoint fields can use the `geopoint` and `distance` functions. Expressions for text and html fields can use the `snippet` function. For example: ``` fieldExpressions={name: \"TotalPrice\", expression: \"(Price+Tax)\"} ``` ``` fieldExpressions={name: \"snippet\", expression: \"snippet('good times', content)\"} ``` The field expression names can be used in `orderBy` and `returnFields` after they are defined in `fieldExpressions`.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "indexId": { - // "description": "The index to search. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "matchedCountAccuracy": { - // "description": "Minimum accuracy requirement for `matchedCount` in search response. If specified, `matchedCount` will be accurate up to at least that number. For example, when set to 100, any `matchedCount \u003c= 100` is accurate. This option may add considerable latency/expense. By default (when it is not specified or set to 0), the accuracy is the same as `pageSize`.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "offset": { - // "description": "Offset is used to move to an arbitrary result, independent of the previous results. Offsets are inefficient when compared to `pageToken`. `pageToken` and `offset` cannot be both set. The default value of `offset` is 0.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "orderBy": { - // "description": "Comma-separated list of fields for sorting on the search result, including fields from `Document`, the built-in fields (`_rank` and `_score`), and fields defined in `fieldExpressions`. For example: `orderBy=\"foo,bar\"`. The default sorting order is ascending. To specify descending order for a field, a suffix `\" desc\"` should be appended to the field name. For example: `orderBy=\"foo desc,bar\"`. The default value for text sort is the empty string, and the default value for numeric sort is 0. If not specified, the search results are automatically sorted by descending `_rank`. Sorting by ascending `_rank` is not allowed.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of search results to return per page. Searches perform best when the `pageSize` is kept as small as possible. If not specified, 10 results are returned per page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A `nextPageToken` returned from previous Search call as the starting point for this call. Pagination tokens provide better performance and consistency than offsets, and they cannot be used in combination with offsets.", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "The project associated with the index for searching document. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "query": { - // "description": "The query string in search query syntax. If the query is missing or empty, all documents are returned.", - // "location": "query", - // "type": "string" - // }, - // "returnFields": { - // "description": "List of fields to return in `SearchResult` objects. It can be fields from `Document`, the built-in fields `_rank` and `_score`, and fields defined in `fieldExpressions`. Use `\"*\"` to return all fields from `Document`.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "scorer": { - // "description": "The scoring function to invoke on a search result for this query. If `scorer` is not set, scoring is disabled and `_score` is 0 for all documents in the search result. To enable document relevancy score based on term frequency, set `\"scorer=generic\"`.", - // "location": "query", - // "type": "string" - // }, - // "scorerSize": { - // "description": "Maximum number of top retrieved results to score. It is valid only when `scorer` is set. If not specified, 100 retrieved results are scored.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // } - // }, - // "path": "v1/projects/{projectId}/indexes/{indexId}/search", - // "response": { - // "$ref": "SearchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudsearch", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "cloudsearch.projects.indexes.documents.create": - -type ProjectsIndexesDocumentsCreateCall struct { - s *Service - projectId string - indexId string - document *Document - opt_ map[string]interface{} -} - -// Create: Inserts a document for indexing or updates an indexed -// document. The returned document contains only the ID of the new -// document. When `docId` is absent from the document, it is provided by -// the server. -func (r *ProjectsIndexesDocumentsService) Create(projectId string, indexId string, document *Document) *ProjectsIndexesDocumentsCreateCall { - c := &ProjectsIndexesDocumentsCreateCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.indexId = indexId - c.document = document - 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 *ProjectsIndexesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsIndexesDocumentsCreateCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *ProjectsIndexesDocumentsCreateCall) Do() (*Document, error) { - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.document) - if err != nil { - return nil, err - } - ctype := "application/json" - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/indexes/{indexId}/documents") - urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - "indexId": c.indexId, - }) - req.Header.Set("Content-Type", ctype) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *Document - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Inserts a document for indexing or updates an indexed document. The returned document contains only the ID of the new document. When `docId` is absent from the document, it is provided by the server.", - // "httpMethod": "POST", - // "id": "cloudsearch.projects.indexes.documents.create", - // "parameterOrder": [ - // "projectId", - // "indexId" - // ], - // "parameters": { - // "indexId": { - // "description": "The index to add document to. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "The project associated with the index for adding document. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/projects/{projectId}/indexes/{indexId}/documents", - // "request": { - // "$ref": "Document" - // }, - // "response": { - // "$ref": "Document" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudsearch", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "cloudsearch.projects.indexes.documents.delete": - -type ProjectsIndexesDocumentsDeleteCall struct { - s *Service - projectId string - indexId string - docId string - opt_ map[string]interface{} -} - -// Delete: Deletes a document from an index. -func (r *ProjectsIndexesDocumentsService) Delete(projectId string, indexId string, docId string) *ProjectsIndexesDocumentsDeleteCall { - c := &ProjectsIndexesDocumentsDeleteCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.indexId = indexId - c.docId = docId - 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 *ProjectsIndexesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsIndexesDocumentsDeleteCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *ProjectsIndexesDocumentsDeleteCall) Do() (*Empty, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/indexes/{indexId}/documents/{docId}") - urls += "?" + params.Encode() - req, _ := http.NewRequest("DELETE", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - "indexId": c.indexId, - "docId": c.docId, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *Empty - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes a document from an index.", - // "httpMethod": "DELETE", - // "id": "cloudsearch.projects.indexes.documents.delete", - // "parameterOrder": [ - // "projectId", - // "indexId", - // "docId" - // ], - // "parameters": { - // "docId": { - // "description": "The document to be deleted. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "indexId": { - // "description": "The index from which to delete the document. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "The project associated with the index for deleting document. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/projects/{projectId}/indexes/{indexId}/documents/{docId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudsearch", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "cloudsearch.projects.indexes.documents.get": - -type ProjectsIndexesDocumentsGetCall struct { - s *Service - projectId string - indexId string - docId string - opt_ map[string]interface{} -} - -// Get: Retrieves a document from an index. -func (r *ProjectsIndexesDocumentsService) Get(projectId string, indexId string, docId string) *ProjectsIndexesDocumentsGetCall { - c := &ProjectsIndexesDocumentsGetCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.indexId = indexId - c.docId = docId - 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 *ProjectsIndexesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsIndexesDocumentsGetCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *ProjectsIndexesDocumentsGetCall) Do() (*Document, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/indexes/{indexId}/documents/{docId}") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - "indexId": c.indexId, - "docId": c.docId, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *Document - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Retrieves a document from an index.", - // "httpMethod": "GET", - // "id": "cloudsearch.projects.indexes.documents.get", - // "parameterOrder": [ - // "projectId", - // "indexId", - // "docId" - // ], - // "parameters": { - // "docId": { - // "description": "The identifier of the document to retrieve. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "indexId": { - // "description": "The index from which to retrieve the document. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "The project associated with the index for retrieving the document. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/projects/{projectId}/indexes/{indexId}/documents/{docId}", - // "response": { - // "$ref": "Document" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudsearch", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "cloudsearch.projects.indexes.documents.list": - -type ProjectsIndexesDocumentsListCall struct { - s *Service - projectId string - indexId string - pageSize int64 - pageToken string - view string - opt_ map[string]interface{} -} - -// List: Lists documents in the specified search index. Intended for -// batch processing. -func (r *ProjectsIndexesDocumentsService) List(projectId string, indexId string, pageSize int64, pageToken string, view string) *ProjectsIndexesDocumentsListCall { - c := &ProjectsIndexesDocumentsListCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.indexId = indexId - c.pageSize = pageSize - c.pageToken = pageToken - c.view = view - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of documents to return per page. If not specified, 100 documents are -// returned per page. -func (c *ProjectsIndexesDocumentsListCall) PageSize(pageSize int64) *ProjectsIndexesDocumentsListCall { - c.opt_["pageSize"] = pageSize - return c -} - -// PageToken sets the optional parameter "pageToken": A `nextPageToken` -// returned from previous list documents call as the starting point for -// this call. If not specified, list documents from the beginning. -func (c *ProjectsIndexesDocumentsListCall) PageToken(pageToken string) *ProjectsIndexesDocumentsListCall { - c.opt_["pageToken"] = pageToken - return c -} - -// View sets the optional parameter "view": Specifies which part of the -// document resource is returned in the response. If not specified, -// `ID_ONLY` is used. -// -// Possible values: -// "DOCUMENT_VIEW_UNSPECIFIED" -// "ID_ONLY" -// "FULL" -func (c *ProjectsIndexesDocumentsListCall) View(view string) *ProjectsIndexesDocumentsListCall { - c.opt_["view"] = view - 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 *ProjectsIndexesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsIndexesDocumentsListCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *ProjectsIndexesDocumentsListCall) Do() (*ListDocumentsResponse, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["pageSize"]; ok { - params.Set("pageSize", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["view"]; ok { - params.Set("view", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/indexes/{indexId}/documents") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - "indexId": c.indexId, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *ListDocumentsResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists documents in the specified search index. Intended for batch processing.", - // "httpMethod": "GET", - // "id": "cloudsearch.projects.indexes.documents.list", - // "parameterOrder": [ - // "projectId", - // "indexId", - // "pageSize", - // "pageToken", - // "view" - // ], - // "parameters": { - // "indexId": { - // "description": "The index from which to list the documents. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of documents to return per page. If not specified, 100 documents are returned per page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A `nextPageToken` returned from previous list documents call as the starting point for this call. If not specified, list documents from the beginning.", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "The project associated with the index for listing documents. It cannot be the empty string.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "view": { - // "description": "Specifies which part of the document resource is returned in the response. If not specified, `ID_ONLY` is used.", - // "enum": [ - // "DOCUMENT_VIEW_UNSPECIFIED", - // "ID_ONLY", - // "FULL" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/projects/{projectId}/indexes/{indexId}/documents", - // "response": { - // "$ref": "ListDocumentsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudsearch", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} diff --git a/clouduseraccounts/v0.alpha/clouduseraccounts-api.json b/clouduseraccounts/v0.alpha/clouduseraccounts-api.json index 29302eb118a..c10e0391160 100644 --- a/clouduseraccounts/v0.alpha/clouduseraccounts-api.json +++ b/clouduseraccounts/v0.alpha/clouduseraccounts-api.json @@ -1,12 +1,12 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/5TTY6r0-PYSt0CWEoJ_c6u0feAs\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/WIF6fk5SYSeRQS6nHRyvbx1cRUs\"", "discoveryVersion": "v1", "id": "clouduseraccounts:alpha", "name": "clouduseraccounts", "canonicalName": "Cloud User Accounts", "version": "alpha", - "revision": "20150622", + "revision": "20150714", "title": "Cloud User Accounts API", "description": "API for the Google Cloud User Accounts service.", "ownerDomain": "google.com", @@ -1102,12 +1102,6 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "location": "path" }, - "user": { - "type": "string", - "description": "If provided, the user requesting the views. If left blank, the system is requesting the views, instead of a particular user.", - "pattern": "[a-z][-a-z0-9_]{0,31}", - "location": "query" - }, "zone": { "type": "string", "description": "Name of the zone for this request.", diff --git a/clouduseraccounts/v0.alpha/clouduseraccounts-gen.go b/clouduseraccounts/v0.alpha/clouduseraccounts-gen.go index 0909a61e1a6..6ebc08438ce 100644 --- a/clouduseraccounts/v0.alpha/clouduseraccounts-gen.go +++ b/clouduseraccounts/v0.alpha/clouduseraccounts-gen.go @@ -1695,14 +1695,6 @@ func (c *LinuxGetLinuxAccountViewsCall) PageToken(pageToken string) *LinuxGetLin return c } -// User sets the optional parameter "user": If provided, the user -// requesting the views. If left blank, the system is requesting the -// views, instead of a particular user. -func (c *LinuxGetLinuxAccountViewsCall) User(user string) *LinuxGetLinuxAccountViewsCall { - c.opt_["user"] = user - return c -} - // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -1728,9 +1720,6 @@ func (c *LinuxGetLinuxAccountViewsCall) Do() (*LinuxGetLinuxAccountViewsResponse if v, ok := c.opt_["pageToken"]; ok { params.Set("pageToken", fmt.Sprintf("%v", v)) } - if v, ok := c.opt_["user"]; ok { - params.Set("user", fmt.Sprintf("%v", v)) - } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -1802,12 +1791,6 @@ func (c *LinuxGetLinuxAccountViewsCall) Do() (*LinuxGetLinuxAccountViewsResponse // "required": true, // "type": "string" // }, - // "user": { - // "description": "If provided, the user requesting the views. If left blank, the system is requesting the views, instead of a particular user.", - // "location": "query", - // "pattern": "[a-z][-a-z0-9_]{0,31}", - // "type": "string" - // }, // "zone": { // "description": "Name of the zone for this request.", // "location": "path", diff --git a/clouduseraccounts/vm_alpha/clouduseraccounts-api.json b/clouduseraccounts/vm_alpha/clouduseraccounts-api.json index 79663dde9f5..436cb3d2375 100644 --- a/clouduseraccounts/vm_alpha/clouduseraccounts-api.json +++ b/clouduseraccounts/vm_alpha/clouduseraccounts-api.json @@ -1,12 +1,12 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/DGefIN76FNyNAfmkSh_oOSYqW-g\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/BpR07_0y6yfGK4qx0cJgXMHUdjo\"", "discoveryVersion": "v1", "id": "clouduseraccounts:vm_alpha", "name": "clouduseraccounts", "canonicalName": "Cloud User Accounts", "version": "vm_alpha", - "revision": "20150622", + "revision": "20150714", "title": "Cloud User Accounts API", "description": "API for the Google Cloud User Accounts service.", "ownerDomain": "google.com", @@ -1102,12 +1102,6 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "location": "path" }, - "user": { - "type": "string", - "description": "If provided, the user requesting the views. If left blank, the system is requesting the views, instead of a particular user.", - "pattern": "[a-z][-a-z0-9_]{0,31}", - "location": "query" - }, "zone": { "type": "string", "description": "Name of the zone for this request.", diff --git a/clouduseraccounts/vm_alpha/clouduseraccounts-gen.go b/clouduseraccounts/vm_alpha/clouduseraccounts-gen.go index 27986d2c61c..ab7c056598b 100644 --- a/clouduseraccounts/vm_alpha/clouduseraccounts-gen.go +++ b/clouduseraccounts/vm_alpha/clouduseraccounts-gen.go @@ -1695,14 +1695,6 @@ func (c *LinuxGetLinuxAccountViewsCall) PageToken(pageToken string) *LinuxGetLin return c } -// User sets the optional parameter "user": If provided, the user -// requesting the views. If left blank, the system is requesting the -// views, instead of a particular user. -func (c *LinuxGetLinuxAccountViewsCall) User(user string) *LinuxGetLinuxAccountViewsCall { - c.opt_["user"] = user - return c -} - // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -1728,9 +1720,6 @@ func (c *LinuxGetLinuxAccountViewsCall) Do() (*LinuxGetLinuxAccountViewsResponse if v, ok := c.opt_["pageToken"]; ok { params.Set("pageToken", fmt.Sprintf("%v", v)) } - if v, ok := c.opt_["user"]; ok { - params.Set("user", fmt.Sprintf("%v", v)) - } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -1802,12 +1791,6 @@ func (c *LinuxGetLinuxAccountViewsCall) Do() (*LinuxGetLinuxAccountViewsResponse // "required": true, // "type": "string" // }, - // "user": { - // "description": "If provided, the user requesting the views. If left blank, the system is requesting the views, instead of a particular user.", - // "location": "query", - // "pattern": "[a-z][-a-z0-9_]{0,31}", - // "type": "string" - // }, // "zone": { // "description": "Name of the zone for this request.", // "location": "path", diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json deleted file mode 100644 index 15359d839da..00000000000 --- a/compute/v0.beta/compute-api.json +++ /dev/null @@ -1,11493 +0,0 @@ -{ - "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/R-vbdAQD5gkhRcc7fia4l2xgTQY\"", - "discoveryVersion": "v1", - "id": "compute:beta", - "name": "compute", - "version": "beta", - "revision": "20141112", - "title": "Compute Engine API", - "description": "API for the Google Compute Engine service.", - "ownerDomain": "google.com", - "ownerName": "Google", - "icons": { - "x16": "https://www.google.com/images/icons/product/compute_engine-16.png", - "x32": "https://www.google.com/images/icons/product/compute_engine-32.png" - }, - "documentationLink": "https://developers.google.com/compute/docs/reference/latest/", - "protocol": "rest", - "baseUrl": "https://www.googleapis.com/compute/beta/projects/", - "basePath": "/compute/beta/projects/", - "rootUrl": "https://www.googleapis.com/", - "servicePath": "compute/beta/projects/", - "batchPath": "batch", - "parameters": { - "alt": { - "type": "string", - "description": "Data format for the response.", - "default": "json", - "enum": [ - "json" - ], - "enumDescriptions": [ - "Responses with Content-Type of application/json" - ], - "location": "query" - }, - "fields": { - "type": "string", - "description": "Selector specifying which fields to include in a partial response.", - "location": "query" - }, - "key": { - "type": "string", - "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", - "location": "query" - }, - "oauth_token": { - "type": "string", - "description": "OAuth 2.0 token for the current user.", - "location": "query" - }, - "prettyPrint": { - "type": "boolean", - "description": "Returns response with indentations and line breaks.", - "default": "true", - "location": "query" - }, - "quotaUser": { - "type": "string", - "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.", - "location": "query" - }, - "userIp": { - "type": "string", - "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.", - "location": "query" - } - }, - "auth": { - "oauth2": { - "scopes": { - "https://www.googleapis.com/auth/cloud-platform": { - "description": "View and manage your data across Google Cloud Platform services" - }, - "https://www.googleapis.com/auth/compute": { - "description": "View and manage your Google Compute Engine resources" - }, - "https://www.googleapis.com/auth/compute.readonly": { - "description": "View your Google Compute Engine resources" - }, - "https://www.googleapis.com/auth/devstorage.full_control": { - "description": "Manage your data and permissions in Google Cloud Storage" - }, - "https://www.googleapis.com/auth/devstorage.read_only": { - "description": "View your data in Google Cloud Storage" - }, - "https://www.googleapis.com/auth/devstorage.read_write": { - "description": "Manage your data in Google Cloud Storage" - } - } - } - }, - "schemas": { - "AccessConfig": { - "id": "AccessConfig", - "type": "object", - "description": "An access configuration attached to an instance's network interface.", - "properties": { - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#accessConfig for access configs.", - "default": "compute#accessConfig" - }, - "name": { - "type": "string", - "description": "Name of this access configuration." - }, - "natIP": { - "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." - }, - "type": { - "type": "string", - "description": "The type of configuration. The default and only option is ONE_TO_ONE_NAT.", - "default": "ONE_TO_ONE_NAT", - "enum": [ - "ONE_TO_ONE_NAT" - ], - "enumDescriptions": [ - "" - ] - } - } - }, - "Address": { - "id": "Address", - "type": "object", - "description": "A reserved address resource.", - "properties": { - "address": { - "type": "string", - "description": "The static external IP address represented by this resource." - }, - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server.", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#address for addresses.", - "default": "compute#address" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "annotations": { - "required": [ - "compute.addresses.insert" - ] - } - }, - "region": { - "type": "string", - "description": "[Output Only] URL of the region where the regional address resides. This field is not applicable to global addresses." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - }, - "status": { - "type": "string", - "description": "[Output Only] The status of the address, which can be either IN_USE or RESERVED. An address that is RESERVED is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available.", - "enum": [ - "IN_USE", - "RESERVED" - ], - "enumDescriptions": [ - "", - "" - ] - }, - "users": { - "type": "array", - "description": "[Output Only] The URLs of the resources that are using this address.", - "items": { - "type": "string" - } - } - } - }, - "AddressAggregatedList": { - "id": "AddressAggregatedList", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "object", - "description": "[Output Only] A map of scoped address lists.", - "additionalProperties": { - "$ref": "AddressesScopedList", - "description": "[Output Only] Name of the scope containing this set of addresses." - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses.", - "default": "compute#addressAggregatedList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "AddressList": { - "id": "AddressList", - "type": "object", - "description": "Contains a list of address resources.", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "array", - "description": "[Output Only] A list of Address resources.", - "items": { - "$ref": "Address" - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#addressList for lists of addresses.", - "default": "compute#addressList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - } - } - }, - "AddressesScopedList": { - "id": "AddressesScopedList", - "type": "object", - "properties": { - "addresses": { - "type": "array", - "description": "[Output Only] List of addresses contained in this scope.", - "items": { - "$ref": "Address" - } - }, - "warning": { - "type": "object", - "description": "[Output Only] Informational warning which replaces the list of addresses when the list is empty.", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - } - }, - "AttachedDisk": { - "id": "AttachedDisk", - "type": "object", - "description": "An instance-attached disk resource.", - "properties": { - "autoDelete": { - "type": "boolean", - "description": "Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance)." - }, - "boot": { - "type": "boolean", - "description": "Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem." - }, - "deviceName": { - "type": "string", - "description": "Specifies a unique device name of your choice that is reflected into the /dev/ tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.\n\nIf not specified, the server chooses a default device name to apply to this disk, in the form persistent-disks-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks." - }, - "diskMasterKey": { - "type": "string", - "description": "[Obsolete] Master key of the disk; required only if the disk already exists and is master key protected. If the disk is being created and a master key is provided, the newly created disk will be protected with this master key. Format: Random 256-bit key material encoded in base64." - }, - "index": { - "type": "integer", - "description": "Assigns a zero-based index to this disk, where 0 is reserved for the boot disk. For example, if you have many disks attached to an instance, each disk would have a unique index number. If not specified, the server will choose an appropriate value.", - "format": "int32" - }, - "initializeParams": { - "$ref": "AttachedDiskInitializeParams", - "description": "[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.\n\nThis property is mutually exclusive with the source property; you can only define one or the other, but not both." - }, - "interface": { - "type": "string", - "enum": [ - "NVME", - "SCSI" - ], - "enumDescriptions": [ - "", - "" - ] - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.", - "default": "compute#attachedDisk" - }, - "licenses": { - "type": "array", - "description": "[Output Only] Any valid publicly visible licenses.", - "items": { - "type": "string" - } - }, - "mode": { - "type": "string", - "description": "The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.", - "enum": [ - "READ_ONLY", - "READ_WRITE" - ], - "enumDescriptions": [ - "", - "" - ] - }, - "source": { - "type": "string", - "description": "Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks." - }, - "type": { - "type": "string", - "description": "Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.", - "enum": [ - "PERSISTENT", - "SCRATCH" - ], - "enumDescriptions": [ - "", - "" - ], - "annotations": { - "required": [ - "compute.instances.insert" - ] - } - } - } - }, - "AttachedDiskInitializeParams": { - "id": "AttachedDiskInitializeParams", - "type": "object", - "description": "[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.\n\nThis property is mutually exclusive with the source property; you can only define one or the other, but not both.", - "properties": { - "diskName": { - "type": "string", - "description": "Specifies the disk name. If not specified, the default is to use the name of the instance." - }, - "diskSizeGb": { - "type": "string", - "description": "Specifies the size of the disk in base-2 GB.", - "format": "int64" - }, - "diskStorageType": { - "type": "string", - "description": "Storage type of the disk.", - "enum": [ - "HDD", - "SSD" - ], - "enumDescriptions": [ - "", - "" - ] - }, - "diskType": { - "type": "string", - "description": "Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example:\n\nhttps://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard \n\nOther values include pd-ssd and local-ssd. If you define this field, you can provide either the full or partial URL. For example, the following are valid values: \n- https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType \n- projects/project/zones/zone/diskTypes/diskType \n- zones/zone/diskTypes/diskType" - }, - "sourceImage": { - "type": "string", - "description": "A source image used to create the disk. You can provide a private (custom) image, and Compute Engine will use the corresponding image from your project. For example:\n\nglobal/images/my-private-image \n\nOr you can provide an image from a publicly-available project. For example, to use a Debian image from the debian-cloud project, make sure to include the project in the URL:\n\nprojects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD \n\nwhere vYYYYMMDD is the image version. The fully-qualified URL will also work in both cases." - }, - "sourceImageMasterKey": { - "type": "string", - "description": "[Obsolete] Master key of the source image; required only if the source image is master key protected. Format: Random 256-bit key material encoded in Base 64." - } - } - }, - "Backend": { - "id": "Backend", - "type": "object", - "description": "Message containing information of one individual backend.", - "properties": { - "balancingMode": { - "type": "string", - "description": "The balancing mode of this backend, default is UTILIZATION.", - "enum": [ - "RATE", - "UTILIZATION" - ], - "enumDescriptions": [ - "", - "" - ] - }, - "capacityScaler": { - "type": "number", - "description": "The multiplier (a value between 0 and 1e6) of the max capacity (CPU or RPS, depending on 'balancingMode') the group should serve up to. 0 means the group is totally drained. Default value is 1. Valid range is [0, 1e6].", - "format": "float" - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource, which is provided by the client when the resource is created." - }, - "group": { - "type": "string", - "description": "URL of a zonal Cloud Resource View resource. This resource view defines the list of instances that serve traffic. Member virtual machine instances from each resource view must live in the same zone as the resource view itself. No two backends in a backend service are allowed to use same Resource View resource." - }, - "maxRate": { - "type": "integer", - "description": "The max RPS of the group. Can be used with either balancing mode, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set.", - "format": "int32" - }, - "maxRatePerInstance": { - "type": "number", - "description": "The max RPS that a single backed instance can handle. This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set.", - "format": "float" - }, - "maxUtilization": { - "type": "number", - "description": "Used when 'balancingMode' is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0, 1].", - "format": "float" - } - } - }, - "BackendService": { - "id": "BackendService", - "type": "object", - "description": "A BackendService resource. This resource defines a group of backend VMs together with their serving capacity.", - "properties": { - "backends": { - "type": "array", - "description": "The list of backends that serve this BackendService.", - "items": { - "$ref": "Backend" - } - }, - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.", - "format": "byte" - }, - "healthChecks": { - "type": "array", - "description": "The list of URLs to the HttpHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.", - "items": { - "type": "string" - } - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#backendService" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "port": { - "type": "integer", - "description": "Deprecated in favor of port_name. The TCP port to connect on the backend. The default value is 80.", - "format": "int32" - }, - "portName": { - "type": "string", - "description": "Name of backend port. The same name should appear in the resource views referenced by this service. Required." - }, - "protocol": { - "type": "string", - "enum": [ - "HTTP", - "HTTPS" - ], - "enumDescriptions": [ - "", - "" - ] - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - }, - "timeoutSec": { - "type": "integer", - "description": "How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.", - "format": "int32" - } - } - }, - "BackendServiceGroupHealth": { - "id": "BackendServiceGroupHealth", - "type": "object", - "properties": { - "healthStatus": { - "type": "array", - "items": { - "$ref": "HealthStatus" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#backendServiceGroupHealth" - } - } - }, - "BackendServiceList": { - "id": "BackendServiceList", - "type": "object", - "description": "Contains a list of BackendService resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of BackendService resources.", - "items": { - "$ref": "BackendService" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#backendServiceList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "DeprecationStatus": { - "id": "DeprecationStatus", - "type": "object", - "description": "Deprecation status for a public resource.", - "properties": { - "deleted": { - "type": "string", - "description": "An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED." - }, - "deprecated": { - "type": "string", - "description": "An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED." - }, - "obsolete": { - "type": "string", - "description": "An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE." - }, - "replacement": { - "type": "string", - "description": "The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource." - }, - "state": { - "type": "string", - "description": "The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.", - "enum": [ - "DELETED", - "DEPRECATED", - "OBSOLETE" - ], - "enumDescriptions": [ - "", - "", - "" - ] - } - } - }, - "Disk": { - "id": "Disk", - "type": "object", - "description": "A Disk resource.", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "diskMasterKey": { - "type": "string", - "description": "[Obsolete] Specifies the master key to protect the disk. When attempting to use a disk that is protected by a master key, you must provide the correct key, otherwise, the request will fail. Master keys do not protect access to metadata about the resource.\n\nIf you are setting a master key, the required key format is a random 256-bit string encoded in base64." - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server.", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#disk for disks.", - "default": "compute#disk" - }, - "licenses": { - "type": "array", - "description": "Any applicable publicly visible licenses.", - "items": { - "type": "string" - } - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "annotations": { - "required": [ - "compute.disks.insert" - ] - } - }, - "options": { - "type": "string", - "description": "Internal use only." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server-defined fully-qualified URL for this resource." - }, - "sizeGb": { - "type": "string", - "description": "Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk.\n\nIf you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.", - "format": "int64" - }, - "sourceImage": { - "type": "string", - "description": "The source image used to create this disk. If the source image is deleted from the system, this field will not be set, even if an image with the same name has been re-created.\n\nWhen creating a disk, you can provide a private (custom) image using the following input, and Compute Engine will use the corresponding image from your project. For example:\n\nglobal/images/my-private-image \n\nOr you can provide an image from a publicly-available project. For example, to use a Debian image from the debian-cloud project, make sure to include the project in the URL:\n\nprojects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD \n\nwhere vYYYYMMDD is the image version. The fully-qualified URL will also work in both cases." - }, - "sourceImageId": { - "type": "string", - "description": "The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used." - }, - "sourceImageMasterKey": { - "type": "string", - "description": "[Obsolete] Specifies the master key of the source image you are using. This key gives you access to the use the image and is required if the source image is master key protected.\n\nThe required key format is a random 256-bit string encoded in base64." - }, - "sourceSnapshot": { - "type": "string", - "description": "The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: \n- https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot \n- projects/project/global/snapshots/snapshot \n- global/snapshots/snapshot" - }, - "sourceSnapshotId": { - "type": "string", - "description": "[Output Only] The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used." - }, - "sourceSnapshotMasterKey": { - "type": "string", - "description": "[Obsolete] Specifies the master key of the source snapshot you are using. This gives you access to the use the snapshot and is required if the source snapshot is master key protected.\n\nThe required key format is a random 256-bit string encoded in base64." - }, - "status": { - "type": "string", - "description": "[Output Only] The status of disk creation. Applicable statuses includes: CREATING, FAILED, READY, RESTORING.", - "enum": [ - "CREATING", - "FAILED", - "READY", - "RESTORING" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ] - }, - "storageType": { - "type": "string", - "description": "[Deprecated] Storage type of the persistent disk.", - "enum": [ - "HDD", - "SSD" - ], - "enumDescriptions": [ - "", - "" - ] - }, - "type": { - "type": "string", - "description": "URL of the disk type resource describing which disk type to use to create the disk; provided by the client when the disk is created." - }, - "zone": { - "type": "string", - "description": "[Output Only] URL of the zone where the disk resides." - } - } - }, - "DiskAggregatedList": { - "id": "DiskAggregatedList", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "object", - "description": "[Output Only] A map of scoped disk lists.", - "additionalProperties": { - "$ref": "DisksScopedList", - "description": "[Output Only] Name of the scope containing this set of disks." - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#diskAggregatedList for aggregated lists of persistent disks.", - "default": "compute#diskAggregatedList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "DiskList": { - "id": "DiskList", - "type": "object", - "description": "A list of Disk resources.", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "array", - "description": "[Output Only] A list of persistent disks.", - "items": { - "$ref": "Disk" - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#diskList for lists of disks.", - "default": "compute#diskList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "DiskType": { - "id": "DiskType", - "type": "object", - "description": "A disk type resource.", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "defaultDiskSizeGb": { - "type": "string", - "description": "[Output Only] Server defined default disk size in GB.", - "format": "int64" - }, - "deprecated": { - "$ref": "DeprecationStatus", - "description": "[Output Only] The deprecation status associated with this disk type." - }, - "description": { - "type": "string", - "description": "[Output Only] An optional textual description of the resource." - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server.", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#diskType for disk types.", - "default": "compute#diskType" - }, - "name": { - "type": "string", - "description": "[Output Only] Name of the resource.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - }, - "validDiskSize": { - "type": "string", - "description": "[Output Only] An optional textual description of the valid disk size, such as \"10GB-10TB\"." - }, - "zone": { - "type": "string", - "description": "[Output Only] URL of the zone where the disk type resides." - } - } - }, - "DiskTypeAggregatedList": { - "id": "DiskTypeAggregatedList", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "object", - "description": "[Output Only] A map of scoped disk type lists.", - "additionalProperties": { - "$ref": "DiskTypesScopedList", - "description": "[Output Only] Name of the scope containing this set of disk types." - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#diskTypeAggregatedList.", - "default": "compute#diskTypeAggregatedList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "DiskTypeList": { - "id": "DiskTypeList", - "type": "object", - "description": "Contains a list of disk type resources.", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "array", - "description": "[Output Only] A list of Disk Type resources.", - "items": { - "$ref": "DiskType" - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#diskTypeList for disk types.", - "default": "compute#diskTypeList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "DiskTypesScopedList": { - "id": "DiskTypesScopedList", - "type": "object", - "properties": { - "diskTypes": { - "type": "array", - "description": "[Output Only] List of disk types contained in this scope.", - "items": { - "$ref": "DiskType" - } - }, - "warning": { - "type": "object", - "description": "[Output Only] Informational warning which replaces the list of disk types when the list is empty.", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - } - }, - "DisksScopedList": { - "id": "DisksScopedList", - "type": "object", - "properties": { - "disks": { - "type": "array", - "description": "[Output Only] List of disks contained in this scope.", - "items": { - "$ref": "Disk" - } - }, - "warning": { - "type": "object", - "description": "[Output Only] Informational warning which replaces the list of disks when the list is empty.", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - } - }, - "Firewall": { - "id": "Firewall", - "type": "object", - "description": "A Firewall resource.", - "properties": { - "allowed": { - "type": "array", - "description": "The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.", - "items": { - "type": "object", - "properties": { - "IPProtocol": { - "type": "string", - "description": "The IP protocol that is allowed for this rule. The protocol type is required when creating a firewall. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, sctp), or the IP protocol number." - }, - "ports": { - "type": "array", - "description": "An optional list of ports which are allowed. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, connections through any port are allowed\n\nExample inputs include: [\"22\"], [\"80\",\"443\"], and [\"12345-12349\"].", - "items": { - "type": "string" - } - } - } - } - }, - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339text format." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server.", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "[Output Ony] Type of the resource. Always compute#firewall for firewall rules.", - "default": "compute#firewall" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "annotations": { - "required": [ - "compute.firewalls.insert", - "compute.firewalls.patch" - ] - } - }, - "network": { - "type": "string", - "description": "URL of the network resource for this firewall rule. This field is required for creating an instance but optional when creating a firewall rule. If not specified when creating a firewall rule, the default network is used:\nglobal/networks/default\nIf you choose to specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: \n- https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network \n- projects/myproject/global/networks/my-network \n- global/networks/default" - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - }, - "sourceRanges": { - "type": "array", - "description": "The IP address blocks that this rule applies to, expressed in CIDR format. One or both of sourceRanges and sourceTags may be set.\n\nIf both properties are set, an inbound connection is allowed if the range or the tag of the source matches the sourceRanges OR matches the sourceTags property; the connection does not need to match both properties.", - "items": { - "type": "string" - } - }, - "sourceTags": { - "type": "array", - "description": "A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set.\n\nIf both properties are set, an inbound connection is allowed if the range or the tag of the source matches the sourceRanges OR matches the sourceTags property; the connection does not need to match both properties.", - "items": { - "type": "string" - } - }, - "targetTags": { - "type": "array", - "description": "A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed[]. If no targetTags are specified, the firewall rule applies to all instances on the specified network.", - "items": { - "type": "string" - } - } - } - }, - "FirewallList": { - "id": "FirewallList", - "type": "object", - "description": "Contains a list of Firewall resources.", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "array", - "description": "[Output Only] A list of Firewall resources.", - "items": { - "$ref": "Firewall" - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#firewallList for lists of firewalls.", - "default": "compute#firewallList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "ForwardingRule": { - "id": "ForwardingRule", - "type": "object", - "description": "A ForwardingRule resource. A ForwardingRule resource specifies which pool of target VMs to forward a packet to if it matches the given [IPAddress, IPProtocol, portRange] tuple.", - "properties": { - "IPAddress": { - "type": "string", - "description": "Value of the reserved IP address that this forwarding rule is serving on behalf of. For global forwarding rules, the address must be a global IP; for regional forwarding rules, the address must live in the same region as the forwarding rule. If left empty (default value), an ephemeral IP from the same scope (global or regional) will be assigned." - }, - "IPProtocol": { - "type": "string", - "description": "The IP protocol to which this rule applies, valid options are 'TCP', 'UDP', 'ESP', 'AH' or 'SCTP'.", - "enum": [ - "AH", - "ESP", - "SCTP", - "TCP", - "UDP" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ] - }, - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#forwardingRule" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "portRange": { - "type": "string", - "description": "Applicable only when 'IPProtocol' is 'TCP', 'UDP' or 'SCTP', only packets addressed to ports in the specified range will be forwarded to 'target'. If 'portRange' is left empty (default value), all ports are forwarded. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint port ranges." - }, - "region": { - "type": "string", - "description": "URL of the region where the regional forwarding rule resides (output only). This field is not applicable to global forwarding rules." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - }, - "target": { - "type": "string", - "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must live in the same region as the forwarding rule. For global forwarding rules, this target must be a global TargetHttpProxy resource." - } - } - }, - "ForwardingRuleAggregatedList": { - "id": "ForwardingRuleAggregatedList", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "object", - "description": "A map of scoped forwarding rule lists.", - "additionalProperties": { - "$ref": "ForwardingRulesScopedList", - "description": "Name of the scope containing this set of addresses." - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#forwardingRuleAggregatedList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "ForwardingRuleList": { - "id": "ForwardingRuleList", - "type": "object", - "description": "Contains a list of ForwardingRule resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of ForwardingRule resources.", - "items": { - "$ref": "ForwardingRule" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#forwardingRuleList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "ForwardingRulesScopedList": { - "id": "ForwardingRulesScopedList", - "type": "object", - "properties": { - "forwardingRules": { - "type": "array", - "description": "List of forwarding rules contained in this scope.", - "items": { - "$ref": "ForwardingRule" - } - }, - "warning": { - "type": "object", - "description": "Informational warning which replaces the list of forwarding rules when the list is empty.", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - } - }, - "HealthCheckReference": { - "id": "HealthCheckReference", - "type": "object", - "properties": { - "healthCheck": { - "type": "string" - } - } - }, - "HealthStatus": { - "id": "HealthStatus", - "type": "object", - "properties": { - "healthState": { - "type": "string", - "description": "Health state of the instance.", - "enum": [ - "HEALTHY", - "UNHEALTHY" - ], - "enumDescriptions": [ - "", - "" - ] - }, - "instance": { - "type": "string", - "description": "URL of the instance resource." - }, - "ipAddress": { - "type": "string", - "description": "The IP address represented by this resource." - }, - "port": { - "type": "integer", - "description": "The port on the instance.", - "format": "int32" - } - } - }, - "HostRule": { - "id": "HostRule", - "type": "object", - "description": "A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.", - "properties": { - "description": { - "type": "string" - }, - "hosts": { - "type": "array", - "description": "The list of host patterns to match. They must be valid hostnames except that they may start with *. or *-. The * acts like a glob and will match any string of atoms (separated by .s and -s) to the left.", - "items": { - "type": "string" - } - }, - "pathMatcher": { - "type": "string", - "description": "The name of the PathMatcher to match the path portion of the URL, if the this HostRule matches the URL's host portion." - } - } - }, - "HttpHealthCheck": { - "id": "HttpHealthCheck", - "type": "object", - "description": "An HttpHealthCheck resource. This resource defines a template for how individual VMs should be checked for health, via HTTP.", - "properties": { - "checkIntervalSec": { - "type": "integer", - "description": "How often (in seconds) to send a health check. The default value is 5 seconds.", - "format": "int32" - }, - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "healthyThreshold": { - "type": "integer", - "description": "A so-far unhealthy VM will be marked healthy after this many consecutive successes. The default value is 2.", - "format": "int32" - }, - "host": { - "type": "string", - "description": "The value of the host header in the HTTP health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used." - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#httpHealthCheck" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "port": { - "type": "integer", - "description": "The TCP port number for the HTTP health check request. The default value is 80.", - "format": "int32" - }, - "requestPath": { - "type": "string", - "description": "The request path of the HTTP health check request. The default value is \"/\"." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - }, - "timeoutSec": { - "type": "integer", - "description": "How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.", - "format": "int32" - }, - "unhealthyThreshold": { - "type": "integer", - "description": "A so-far healthy VM will be marked unhealthy after this many consecutive failures. The default value is 2.", - "format": "int32" - } - } - }, - "HttpHealthCheckList": { - "id": "HttpHealthCheckList", - "type": "object", - "description": "Contains a list of HttpHealthCheck resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of HttpHealthCheck resources.", - "items": { - "$ref": "HttpHealthCheck" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#httpHealthCheckList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "HttpsHealthCheck": { - "id": "HttpsHealthCheck", - "type": "object", - "description": "An HttpsHealthCheck resource. This resource defines a template for how individual VMs should be checked for health, via HTTPS.", - "properties": { - "checkIntervalSec": { - "type": "integer", - "description": "How often (in seconds) to send a health check. The default value is 5 seconds.", - "format": "int32" - }, - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "healthyThreshold": { - "type": "integer", - "description": "A so-far unhealthy VM will be marked healthy after this many consecutive successes. The default value is 2.", - "format": "int32" - }, - "host": { - "type": "string", - "description": "The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used." - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#httpsHealthCheck" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "port": { - "type": "integer", - "description": "The TCP port number for the HTTPS health check request. The default value is 443.", - "format": "int32" - }, - "requestPath": { - "type": "string", - "description": "The request path of the HTTPS health check request. The default value is \"/\"." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - }, - "timeoutSec": { - "type": "integer", - "description": "How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have a greater value than checkIntervalSec.", - "format": "int32" - }, - "unhealthyThreshold": { - "type": "integer", - "description": "A so-far healthy VM will be marked unhealthy after this many consecutive failures. The default value is 2.", - "format": "int32" - } - } - }, - "HttpsHealthCheckList": { - "id": "HttpsHealthCheckList", - "type": "object", - "description": "Contains a list of HttpsHealthCheck resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of HttpsHealthCheck resources.", - "items": { - "$ref": "HttpsHealthCheck" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#httpsHealthCheckList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "Image": { - "id": "Image", - "type": "object", - "description": "An Image resource.", - "properties": { - "archiveSizeBytes": { - "type": "string", - "description": "Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).", - "format": "int64" - }, - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "deprecated": { - "$ref": "DeprecationStatus", - "description": "The deprecation status associated with this image." - }, - "description": { - "type": "string", - "description": "Textual description of the resource; provided by the client when the resource is created." - }, - "diskSizeGb": { - "type": "string", - "description": "Size of the image when restored onto a persistent disk (in GB).", - "format": "int64" - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server.", - "format": "uint64" - }, - "imageMasterKey": { - "type": "string", - "description": "[Obsolete] Specifies the master key to protect this image. When attempting to use an image that is protected by a master key, you must provide the correct key, otherwise, the request will fail. Master keys do not protect access to metadata about the resource.\n\nIf you are setting a master key, the required key format is a random 256-bit string encoded in base64." - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#image for images.", - "default": "compute#image" - }, - "licenses": { - "type": "array", - "description": "Any applicable publicly visible licenses.", - "items": { - "type": "string" - } - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "annotations": { - "required": [ - "compute.images.insert" - ] - } - }, - "rawDisk": { - "type": "object", - "description": "The parameters of the raw disk image.", - "properties": { - "containerType": { - "type": "string", - "description": "The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.", - "enum": [ - "TAR" - ], - "enumDescriptions": [ - "" - ] - }, - "sha1Checksum": { - "type": "string", - "description": "An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.", - "pattern": "[a-f0-9]{40}" - }, - "source": { - "type": "string", - "description": "The full Google Cloud Storage URL where the disk image is stored. You must provide either this property or the sourceDisk property but not both.", - "annotations": { - "required": [ - "compute.images.insert" - ] - } - } - } - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - }, - "sourceDisk": { - "type": "string", - "description": "URL of the The source disk used to create this image. This can be a full or valid partial URL. You must provide either this property or the rawDisk.source property but not both to create an image. For example, the following are valid values: \n- https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk/disk \n- projects/project/zones/zone/disk/disk \n- zones/zone/disks/disk" - }, - "sourceDiskId": { - "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." - }, - "sourceDiskMasterKey": { - "type": "string", - "description": "[Obsolete] Specifies the master key of the source disk you are using. This field gives you access to the disk and is required if the source disk is master key protected. Format: Random 256-bit key material encoded in base64." - }, - "sourceType": { - "type": "string", - "description": "The type of the image used to create this disk. The default and only value is RAW", - "default": "RAW", - "enum": [ - "RAW" - ], - "enumDescriptions": [ - "" - ] - }, - "status": { - "type": "string", - "description": "[Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY.", - "enum": [ - "FAILED", - "PENDING", - "READY" - ], - "enumDescriptions": [ - "", - "", - "" - ] - } - } - }, - "ImageList": { - "id": "ImageList", - "type": "object", - "description": "Contains a list of Image resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of Image resources.", - "items": { - "$ref": "Image" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#imageList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "Instance": { - "id": "Instance", - "type": "object", - "description": "An Instance resource.", - "properties": { - "canIpForward": { - "type": "boolean", - "description": "Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding." - }, - "cpuPlatform": { - "type": "string", - "description": "[Output Only] The CPU platform used by this instance." - }, - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "disks": { - "type": "array", - "description": "Array of disks associated with this instance. Persistent disks must be created before you can assign them.", - "items": { - "$ref": "AttachedDisk" - } - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server.", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#instance for instances.", - "default": "compute#instance" - }, - "machineType": { - "type": "string", - "description": "Full or partial URL of the machine type resource to use for this instance. This is provided by the client when the instance is created. For example, the following is a valid partial url:\n\nzones/zone/machineTypes/machine-type", - "annotations": { - "required": [ - "compute.instances.insert" - ] - } - }, - "metadata": { - "$ref": "Metadata", - "description": "The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys." - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash." - }, - "networkInterfaces": { - "type": "array", - "description": "An array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet.", - "items": { - "$ref": "NetworkInterface" - } - }, - "scheduling": { - "$ref": "Scheduling", - "description": "Scheduling options for this instance." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - }, - "serviceAccounts": { - "type": "array", - "description": "A list of service accounts, with their specified scopes, authorized for this instance. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Authenticating from Google Compute Engine for more information.", - "items": { - "$ref": "ServiceAccount" - } - }, - "status": { - "type": "string", - "description": "[Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, TERMINATED.", - "enum": [ - "PROVISIONING", - "RUNNING", - "STAGING", - "STOPPED", - "STOPPING", - "TERMINATED" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ] - }, - "statusMessage": { - "type": "string", - "description": "[Output Only] An optional, human-readable explanation of the status." - }, - "tags": { - "$ref": "Tags", - "description": "A list of tags to appy to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035." - }, - "zone": { - "type": "string", - "description": "[Output Only] URL of the zone where the instance resides." - } - } - }, - "InstanceAggregatedList": { - "id": "InstanceAggregatedList", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "object", - "description": "[Output Only] A map of scoped instance lists.", - "additionalProperties": { - "$ref": "InstancesScopedList", - "description": "Name of the scope containing this set of instances." - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#instanceAggregatedList for aggregated lists of Instance resources.", - "default": "compute#instanceAggregatedList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "InstanceList": { - "id": "InstanceList", - "type": "object", - "description": "Contains a list of instance resources.", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "array", - "description": "[Output Only] A list of Instance resources.", - "items": { - "$ref": "Instance" - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#instanceList for lists of Instance resources.", - "default": "compute#instanceList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "InstanceProperties": { - "id": "InstanceProperties", - "type": "object", - "description": "", - "properties": { - "canIpForward": { - "type": "boolean", - "description": "Allows instances created based on this template to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, say true. If unsure, leave this set to false." - }, - "description": { - "type": "string", - "description": "An optional textual description for the instances created based on the instance template resource; provided by the client when the template is created." - }, - "disks": { - "type": "array", - "description": "Array of disks associated with instance created based on this template.", - "items": { - "$ref": "AttachedDisk" - } - }, - "machineType": { - "type": "string", - "description": "Name of the machine type resource describing which machine type to use to host the instances created based on this template; provided by the client when the instance template is created.", - "annotations": { - "required": [ - "compute.instanceTemplates.insert" - ] - } - }, - "metadata": { - "$ref": "Metadata", - "description": "Metadata key/value pairs assigned to instances created based on this template. Consists of custom metadata or predefined keys; see Instance documentation for more information." - }, - "networkInterfaces": { - "type": "array", - "description": "Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instances created based based on this template will have no external internet access.", - "items": { - "$ref": "NetworkInterface" - } - }, - "scheduling": { - "$ref": "Scheduling", - "description": "Scheduling options for the instances created based on this template." - }, - "serviceAccounts": { - "type": "array", - "description": "A list of service accounts each with specified scopes, for which access tokens are to be made available to the instances created based on this template, through metadata queries.", - "items": { - "$ref": "ServiceAccount" - } - }, - "tags": { - "$ref": "Tags", - "description": "A list of tags to be applied to the instances created based on this template used to identify valid sources or targets for network firewalls. Provided by the client on instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035." - } - } - }, - "InstanceReference": { - "id": "InstanceReference", - "type": "object", - "properties": { - "instance": { - "type": "string" - } - } - }, - "InstanceTemplate": { - "id": "InstanceTemplate", - "type": "object", - "description": "An Instance Template resource.", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "description": { - "type": "string", - "description": "An optional textual description of the instance template resource; provided by the client when the resource is created." - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#instanceTemplate" - }, - "name": { - "type": "string", - "description": "Name of the instance template resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "annotations": { - "required": [ - "compute.instanceTemplates.insert" - ] - } - }, - "properties": { - "$ref": "InstanceProperties", - "description": "The instance properties portion of this instance template resource." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - } - } - }, - "InstanceTemplateList": { - "id": "InstanceTemplateList", - "type": "object", - "description": "Contains a list of instance template resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of InstanceTemplate resources.", - "items": { - "$ref": "InstanceTemplate" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#instanceTemplateList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "InstancesScopedList": { - "id": "InstancesScopedList", - "type": "object", - "properties": { - "instances": { - "type": "array", - "description": "[Output Only] List of instances contained in this scope.", - "items": { - "$ref": "Instance" - } - }, - "warning": { - "type": "object", - "description": "[Output Only] Informational warning which replaces the list of instances when the list is empty.", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - } - }, - "License": { - "id": "License", - "type": "object", - "description": "A license resource.", - "properties": { - "chargesUseFee": { - "type": "boolean", - "description": "If true, the customer will be charged license fee for running software that contains this license on an instance." - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#license for licenses.", - "default": "compute#license" - }, - "name": { - "type": "string", - "description": "Name of the resource. The name must be 1-63 characters long, and comply with RCF1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "annotations": { - "required": [ - "compute.images.insert" - ] - } - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - } - } - }, - "MachineType": { - "id": "MachineType", - "type": "object", - "description": "A Machine Type resource.", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "deprecated": { - "$ref": "DeprecationStatus", - "description": "[Output Only] The deprecation status associated with this machine type." - }, - "description": { - "type": "string", - "description": "[Output Only] An optional textual description of the resource." - }, - "guestCpus": { - "type": "integer", - "description": "[Output Only] The tumber of CPUs exposed to the instance.", - "format": "int32" - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server.", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#machineType" - }, - "maximumPersistentDisks": { - "type": "integer", - "description": "[Output Only] Maximum persistent disks allowed.", - "format": "int32" - }, - "maximumPersistentDisksSizeGb": { - "type": "string", - "description": "[Output Only] Maximum total persistent disks size (GB) allowed.", - "format": "int64" - }, - "memoryMb": { - "type": "integer", - "description": "[Output Only] The amount of physical memory available to the instance, defined in MB.", - "format": "int32" - }, - "name": { - "type": "string", - "description": "[Output Only] Name of the resource.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - }, - "zone": { - "type": "string", - "description": "[Output Only] The name of the zone where the machine type resides, such as us-central1-a." - } - } - }, - "MachineTypeAggregatedList": { - "id": "MachineTypeAggregatedList", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "object", - "description": "[Output Only] A map of scoped machine type lists.", - "additionalProperties": { - "$ref": "MachineTypesScopedList", - "description": "[Output Only] Name of the scope containing this set of machine types." - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#machineTypeAggregatedList for aggregated lists of machine types.", - "default": "compute#machineTypeAggregatedList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "MachineTypeList": { - "id": "MachineTypeList", - "type": "object", - "description": "Contains a list of Machine Type resources.", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "array", - "description": "[Output Only] A list of Machine Type resources.", - "items": { - "$ref": "MachineType" - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#machineTypeList for lists of machine types.", - "default": "compute#machineTypeList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "MachineTypesScopedList": { - "id": "MachineTypesScopedList", - "type": "object", - "properties": { - "machineTypes": { - "type": "array", - "description": "[Output Only] List of machine types contained in this scope.", - "items": { - "$ref": "MachineType" - } - }, - "warning": { - "type": "object", - "description": "[Output Only] An informational warning that appears when the machine types list is empty.", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - } - }, - "Metadata": { - "id": "Metadata", - "type": "object", - "description": "A metadata key/value entry.", - "properties": { - "fingerprint": { - "type": "string", - "description": "Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.", - "format": "byte" - }, - "items": { - "type": "array", - "description": "Array of key/value pairs. The total size of all keys and values must be less than 512 KB.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.", - "pattern": "[a-zA-Z0-9-_]{1,128}", - "annotations": { - "required": [ - "compute.instances.insert", - "compute.projects.setCommonInstanceMetadata" - ] - } - }, - "value": { - "type": "string", - "description": "Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.", - "annotations": { - "required": [ - "compute.instances.insert", - "compute.projects.setCommonInstanceMetadata" - ] - } - } - } - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#metadata for metadata.", - "default": "compute#metadata" - } - } - }, - "Network": { - "id": "Network", - "type": "object", - "description": "A network resource.", - "properties": { - "IPv4Range": { - "type": "string", - "description": "The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.", - "pattern": "[0-9]{1,3}(?:\\.[0-9]{1,3}){3}/[0-9]{1,2}", - "annotations": { - "required": [ - "compute.networks.insert" - ] - } - }, - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "gatewayIPv4": { - "type": "string", - "description": "A gateway address for default routing to other networks. This value is read only and is selected by the Google Compute Engine, typically as the first usable address in the IPv4Range.", - "pattern": "[0-9]{1,3}(?:\\.[0-9]{1,3}){3}" - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server.", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#network for networks.", - "default": "compute#network" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "annotations": { - "required": [ - "compute.networks.insert" - ] - } - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - } - } - }, - "NetworkInterface": { - "id": "NetworkInterface", - "type": "object", - "description": "A network interface resource attached to an instance.", - "properties": { - "accessConfigs": { - "type": "array", - "description": "An array of configurations for this interface. Currently, \u003ccodeONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.", - "items": { - "$ref": "AccessConfig" - } - }, - "name": { - "type": "string", - "description": "[Output Only] The name of the network interface, generated by the server. For network devices, these are eth0, eth1, etc." - }, - "network": { - "type": "string", - "description": "URL of the network resource for this instance. This is required for creating an instance but optional when creating a firewall rule. If not specified when creating a firewall rule, the default network is used:\n\nglobal/networks/default \n\nIf you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: \n- https://www.googleapis.com/compute/v1/projects/project/global/networks/network \n- projects/project/global/networks/network \n- global/networks/default", - "annotations": { - "required": [ - "compute.instances.insert" - ] - } - }, - "networkIP": { - "type": "string", - "description": "[Output Only] An optional IPV4 internal network address assigned to the instance for this network interface." - } - } - }, - "NetworkList": { - "id": "NetworkList", - "type": "object", - "description": "Contains a list of Network resources.", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "array", - "description": "[Output Only] A list of Network resources.", - "items": { - "$ref": "Network" - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#networkList for lists of networks.", - "default": "compute#networkList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource ." - } - } - }, - "Operation": { - "id": "Operation", - "type": "object", - "description": "An operation resource, used to manage asynchronous API requests.", - "properties": { - "clientOperationId": { - "type": "string", - "description": "[Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project" - }, - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "endTime": { - "type": "string", - "description": "[Output Only] The time that this operation was completed. This is in RFC3339 text format." - }, - "error": { - "type": "object", - "description": "[Output Only] If errors are generated during processing of the operation, this field will be populated.", - "properties": { - "errors": { - "type": "array", - "description": "[Output Only] The array of errors encountered while processing this operation.", - "items": { - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The error type identifier for this error." - }, - "location": { - "type": "string", - "description": "[Output Only] Indicates the field in the request which caused the error. This property is optional." - }, - "message": { - "type": "string", - "description": "[Output Only] An optional, human-readable error message." - } - } - } - } - } - }, - "httpErrorMessage": { - "type": "string", - "description": "[Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND." - }, - "httpErrorStatusCode": { - "type": "integer", - "description": "[Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.", - "format": "int32" - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server.", - "format": "uint64" - }, - "insertTime": { - "type": "string", - "description": "[Output Only] The time that this operation was requested. This is in RFC3339 text format." - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#Operation for Operation resources.", - "default": "compute#operation" - }, - "name": { - "type": "string", - "description": "[Output Only] Name of the resource." - }, - "operationType": { - "type": "string", - "description": "[Output Only] Type of the operation, such as insert, update, and delete." - }, - "progress": { - "type": "integer", - "description": "[Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses.", - "format": "int32" - }, - "region": { - "type": "string", - "description": "[Output Only] URL of the region where the operation resides. Only applicable for regional resources." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - }, - "startTime": { - "type": "string", - "description": "[Output Only] The time that this operation was started by the server. This is in RFC3339 text format." - }, - "status": { - "type": "string", - "description": "[Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.", - "enum": [ - "DONE", - "PENDING", - "RUNNING" - ], - "enumDescriptions": [ - "", - "", - "" - ] - }, - "statusMessage": { - "type": "string", - "description": "[Output Only] An optional textual description of the current status of the operation." - }, - "targetId": { - "type": "string", - "description": "[Output Only] Unique target ID which identifies a particular incarnation of the target.", - "format": "uint64" - }, - "targetLink": { - "type": "string", - "description": "[Output Only] URL of the resource the operation is mutating." - }, - "user": { - "type": "string", - "description": "[Output Only] User who requested the operation, for example: user@example.com." - }, - "warnings": { - "type": "array", - "description": "[Output Only] If warning messages are generated during processing of the operation, this field will be populated.", - "items": { - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - }, - "zone": { - "type": "string", - "description": "[Output Only] URL of the zone where the operation resides." - } - } - }, - "OperationAggregatedList": { - "id": "OperationAggregatedList", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "object", - "description": "[Output Only] A map of scoped operation lists.", - "additionalProperties": { - "$ref": "OperationsScopedList", - "description": "[Output Only] Name of the scope containing this set of operations." - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#operationAggregatedList for aggregated lists of operations.", - "default": "compute#operationAggregatedList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "OperationList": { - "id": "OperationList", - "type": "object", - "description": "Contains a list of operation resources.", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "array", - "description": "[Output Only] The operation resources.", - "items": { - "$ref": "Operation" - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#operations for Operations resource.", - "default": "compute#operationList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncate." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "OperationsScopedList": { - "id": "OperationsScopedList", - "type": "object", - "properties": { - "operations": { - "type": "array", - "description": "[Output Only] List of operations contained in this scope.", - "items": { - "$ref": "Operation" - } - }, - "warning": { - "type": "object", - "description": "[Output Only] Informational warning which replaces the list of operations when the list is empty.", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - } - }, - "PathMatcher": { - "id": "PathMatcher", - "type": "object", - "description": "A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default_service will be used.", - "properties": { - "defaultService": { - "type": "string", - "description": "The URL to the BackendService resource. This will be used if none of the 'pathRules' defined by this PathMatcher is met by the URL's path portion." - }, - "description": { - "type": "string" - }, - "name": { - "type": "string", - "description": "The name to which this PathMatcher is referred by the HostRule." - }, - "pathRules": { - "type": "array", - "description": "The list of path rules.", - "items": { - "$ref": "PathRule" - } - } - } - }, - "PathRule": { - "id": "PathRule", - "type": "object", - "description": "A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.", - "properties": { - "paths": { - "type": "array", - "description": "The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.", - "items": { - "type": "string" - } - }, - "service": { - "type": "string", - "description": "The URL of the BackendService resource if this rule is matched." - } - } - }, - "Project": { - "id": "Project", - "type": "object", - "description": "A Project resource. Projects can only be created in the Google Developers Console. Unless marked otherwise, values can only be modified in the console.", - "properties": { - "commonInstanceMetadata": { - "$ref": "Metadata", - "description": "Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information." - }, - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource." - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server.", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#project for projects.", - "default": "compute#project" - }, - "name": { - "type": "string", - "description": "Name of the resource." - }, - "quotas": { - "type": "array", - "description": "[Output Only] Quotas assigned to this project.", - "items": { - "$ref": "Quota" - } - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - }, - "usageExportLocation": { - "$ref": "UsageExportLocation", - "description": "The location in Cloud Storage and naming method of the daily usage report." - } - } - }, - "Quota": { - "id": "Quota", - "type": "object", - "description": "A quotas entry.", - "properties": { - "limit": { - "type": "number", - "description": "[Output Only] Quota limit for this metric.", - "format": "double" - }, - "metric": { - "type": "string", - "description": "[Output Only] Name of the quota metric.", - "enum": [ - "BACKEND_SERVICES", - "CPUS", - "DISKS_TOTAL_GB", - "FIREWALLS", - "FORWARDING_RULES", - "HEALTH_CHECKS", - "IMAGES", - "INSTANCES", - "IN_USE_ADDRESSES", - "LOCAL_SSD_TOTAL_GB", - "NETWORKS", - "ROUTES", - "SNAPSHOTS", - "SSD_TOTAL_GB", - "STATIC_ADDRESSES", - "TARGET_HTTP_PROXIES", - "TARGET_INSTANCES", - "TARGET_POOLS", - "TARGET_VPN_GATEWAYS", - "URL_MAPS", - "VPN_TUNNELS" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "usage": { - "type": "number", - "description": "[Output Only] Current usage of this metric.", - "format": "double" - } - } - }, - "Region": { - "id": "Region", - "type": "object", - "description": "Region resource.", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "deprecated": { - "$ref": "DeprecationStatus", - "description": "[Output Only] The deprecation status associated with this region." - }, - "description": { - "type": "string", - "description": "[Output Only] Textual description of the resource." - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server .", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#region for regions.", - "default": "compute#region" - }, - "name": { - "type": "string", - "description": "[Output Only] Name of the resource." - }, - "quotas": { - "type": "array", - "description": "[Output Only] Quotas assigned to this region.", - "items": { - "$ref": "Quota" - } - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - }, - "status": { - "type": "string", - "description": "[Output Only] Status of the region, either UP or DOWN.", - "enum": [ - "DOWN", - "UP" - ], - "enumDescriptions": [ - "", - "" - ] - }, - "zones": { - "type": "array", - "description": "[Output Only] A list of zones available in this region, in the form of resource URLs.", - "items": { - "type": "string" - } - } - } - }, - "RegionList": { - "id": "RegionList", - "type": "object", - "description": "Contains a list of region resources.", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "array", - "description": "[Output Only] A list of Region resources.", - "items": { - "$ref": "Region" - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#regionList for lists of regions.", - "default": "compute#regionList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "ResourceGroupReference": { - "id": "ResourceGroupReference", - "type": "object", - "properties": { - "group": { - "type": "string", - "description": "A URI referencing one of the resource views listed in the backend service." - } - } - }, - "Route": { - "id": "Route", - "type": "object", - "description": "The route resource. A Route is a rule that specifies how certain packets should be handled by the virtual network. Routes are associated with VMs by tag and the set of Routes for a particular VM is called its routing table. For each packet leaving a VM, the system searches that VM's routing table for a single best matching Route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the Route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching Routes. The packet is then forwarded as specified by the next_hop field of the winning Route -- either to another VM destination, a VM gateway or a GCE operated gateway. Packets that do not match any Route in the sending VM's routing table will be dropped.", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "destRange": { - "type": "string", - "description": "Which packets does this route apply to?", - "annotations": { - "required": [ - "compute.routes.insert" - ] - } - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#route" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "annotations": { - "required": [ - "compute.routes.insert" - ] - } - }, - "network": { - "type": "string", - "description": "URL of the network to which this route is applied; provided by the client when the route is created.", - "annotations": { - "required": [ - "compute.routes.insert" - ] - } - }, - "nextHopGateway": { - "type": "string", - "description": "The URL to a gateway that should handle matching packets." - }, - "nextHopInstance": { - "type": "string", - "description": "The URL to an instance that should handle matching packets." - }, - "nextHopIp": { - "type": "string", - "description": "The network IP address of an instance that should handle matching packets." - }, - "nextHopNetwork": { - "type": "string", - "description": "The URL of the local network if it should handle matching packets." - }, - "nextHopVpnTunnel": { - "type": "string", - "description": "The URL to a VpnTunnel that should handle matching packets." - }, - "priority": { - "type": "integer", - "description": "Breaks ties between Routes of equal specificity. Routes with smaller values win when tied with routes with larger values.", - "format": "uint32", - "annotations": { - "required": [ - "compute.routes.insert" - ] - } - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - }, - "tags": { - "type": "array", - "description": "A list of instance tags to which this route applies.", - "items": { - "type": "string" - }, - "annotations": { - "required": [ - "compute.routes.insert" - ] - } - }, - "warnings": { - "type": "array", - "description": "If potential misconfigurations are detected for this route, this field will be populated with warning messages.", - "items": { - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - } - } - }, - "RouteList": { - "id": "RouteList", - "type": "object", - "description": "Contains a list of route resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of Route resources.", - "items": { - "$ref": "Route" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#routeList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "Scheduling": { - "id": "Scheduling", - "type": "object", - "description": "Sets the scheduling options for an Instance.", - "properties": { - "automaticRestart": { - "type": "boolean", - "description": "Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user)." - }, - "onHostMaintenance": { - "type": "string", - "description": "Defines the maintenance behavior for this instance. The default behavior is MIGRATE. For more information, see Setting maintenance behavior.", - "enum": [ - "MIGRATE", - "TERMINATE" - ], - "enumDescriptions": [ - "", - "" - ] - } - } - }, - "SerialPortOutput": { - "id": "SerialPortOutput", - "type": "object", - "description": "An instance's serial console output.", - "properties": { - "contents": { - "type": "string", - "description": "[Output Only] The contents of the console output." - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.", - "default": "compute#serialPortOutput" - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - } - } - }, - "ServiceAccount": { - "id": "ServiceAccount", - "type": "object", - "description": "A service account.", - "properties": { - "email": { - "type": "string", - "description": "Email address of the service account." - }, - "scopes": { - "type": "array", - "description": "The list of scopes to be made available for this service account.", - "items": { - "type": "string" - } - } - } - }, - "Snapshot": { - "id": "Snapshot", - "type": "object", - "description": "A persistent disk snapshot resource.", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "diskSizeGb": { - "type": "string", - "description": "Size of the persistent disk snapshot, specified in GB (output only).", - "format": "int64" - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#snapshot" - }, - "licenses": { - "type": "array", - "description": "Public visible licenses.", - "items": { - "type": "string" - } - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - }, - "snapshotMasterKey": { - "type": "string", - "description": "[Obsolete] Master key to protect the snapshot. When attempting to use a master key protected snapshot, the key must be provided otherwise the request will fail. Master keys do not protect resource metadata. Format: Random 256-bit key material encoded in base64." - }, - "sourceDisk": { - "type": "string", - "description": "The source disk used to create this snapshot." - }, - "sourceDiskId": { - "type": "string", - "description": "The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name." - }, - "sourceDiskMasterKey": { - "type": "string", - "description": "[Obsolete] Master key of the source disk; required only if the source disk is master key protected. Format: Random 256-bit key material encoded in base64." - }, - "status": { - "type": "string", - "description": "The status of the persistent disk snapshot (output only).", - "enum": [ - "CREATING", - "DELETING", - "FAILED", - "READY", - "UPLOADING" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ] - }, - "storageBytes": { - "type": "string", - "description": "A size of the the storage used by the snapshot. As snapshots share storage this number is expected to change with snapshot creation/deletion.", - "format": "int64" - }, - "storageBytesStatus": { - "type": "string", - "description": "An indicator whether storageBytes is in a stable state, or it is being adjusted as a result of shared storage reallocation.", - "enum": [ - "UPDATING", - "UP_TO_DATE" - ], - "enumDescriptions": [ - "", - "" - ] - } - } - }, - "SnapshotList": { - "id": "SnapshotList", - "type": "object", - "description": "Contains a list of persistent disk snapshot resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of Snapshot resources.", - "items": { - "$ref": "Snapshot" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#snapshotList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "SslCertificate": { - "id": "SslCertificate", - "type": "object", - "description": "An SslCertificate resource. This resource provides a mechanism to upload an SSL key and certificate to global HTTPS loadbalancer to serve secure connections.", - "properties": { - "certificate": { - "type": "string", - "description": "A certificate. PEM format." - }, - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#sslCertificate" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "privateKey": { - "type": "string", - "description": "A write-only private key. PEM format. Only insert RPCs will include this field. They must be sent over Stubby P+I only." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - } - } - }, - "SslCertificateList": { - "id": "SslCertificateList", - "type": "object", - "description": "Contains a list of SslCertificate resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of SslCertificate resources.", - "items": { - "$ref": "SslCertificate" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#sslCertificateList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "Tags": { - "id": "Tags", - "type": "object", - "description": "A set of instance tags.", - "properties": { - "fingerprint": { - "type": "string", - "description": "Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.\n\nTo see the latest fingerprint, make get() request to the instance.", - "format": "byte" - }, - "items": { - "type": "array", - "description": "An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.", - "items": { - "type": "string" - } - } - } - }, - "TargetHttpProxy": { - "id": "TargetHttpProxy", - "type": "object", - "description": "A TargetHttpProxy resource. This resource defines an HTTP proxy.", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#targetHttpProxy" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - }, - "urlMap": { - "type": "string", - "description": "URL to the UrlMap resource that defines the mapping from URL to the BackendService." - } - } - }, - "TargetHttpProxyList": { - "id": "TargetHttpProxyList", - "type": "object", - "description": "Contains a list of TargetHttpProxy resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of TargetHttpProxy resources.", - "items": { - "$ref": "TargetHttpProxy" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#targetHttpProxyList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "TargetHttpsProxy": { - "id": "TargetHttpsProxy", - "type": "object", - "description": "A TargetHttpsProxy resource. This resource defines an HTTPS proxy.", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#targetHttpsProxy" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - }, - "sslCertificates": { - "type": "array", - "description": "URLs to SslCertificate resources that are used to authenticate connections to Backends. Currently exactly one ssl certificate must be specified.", - "items": { - "type": "string" - } - }, - "urlMap": { - "type": "string", - "description": "URL to the UrlMap resource that defines the mapping from URL to the BackendService." - } - } - }, - "TargetHttpsProxyList": { - "id": "TargetHttpsProxyList", - "type": "object", - "description": "Contains a list of TargetHttpsProxy resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of TargetHttpsProxy resources.", - "items": { - "$ref": "TargetHttpsProxy" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#targetHttpsProxyList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "TargetInstance": { - "id": "TargetInstance", - "type": "object", - "description": "A TargetInstance resource. This resource defines an endpoint VM that terminates traffic of certain protocols.", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "instance": { - "type": "string", - "description": "The URL to the instance that terminates the relevant traffic." - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#targetInstance" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "natPolicy": { - "type": "string", - "description": "NAT option controlling how IPs are NAT'ed to the VM. Currently only NO_NAT (default value) is supported.", - "enum": [ - "NO_NAT" - ], - "enumDescriptions": [ - "" - ] - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - }, - "zone": { - "type": "string", - "description": "URL of the zone where the target instance resides (output only)." - } - } - }, - "TargetInstanceAggregatedList": { - "id": "TargetInstanceAggregatedList", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "object", - "description": "A map of scoped target instance lists.", - "additionalProperties": { - "$ref": "TargetInstancesScopedList", - "description": "Name of the scope containing this set of target instances." - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#targetInstanceAggregatedList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "TargetInstanceList": { - "id": "TargetInstanceList", - "type": "object", - "description": "Contains a list of TargetInstance resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of TargetInstance resources.", - "items": { - "$ref": "TargetInstance" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#targetInstanceList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "TargetInstancesScopedList": { - "id": "TargetInstancesScopedList", - "type": "object", - "properties": { - "targetInstances": { - "type": "array", - "description": "List of target instances contained in this scope.", - "items": { - "$ref": "TargetInstance" - } - }, - "warning": { - "type": "object", - "description": "Informational warning which replaces the list of addresses when the list is empty.", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - } - }, - "TargetPool": { - "id": "TargetPool", - "type": "object", - "description": "A TargetPool resource. This resource defines a pool of VMs, associated HttpHealthCheck resources, and the fallback TargetPool.", - "properties": { - "backupPool": { - "type": "string", - "description": "This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its 'failoverRatio' field is properly set to a value between [0, 1].\n\n'backupPool' and 'failoverRatio' together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below 'failoverRatio', traffic arriving at the load-balanced IP will be directed to the backup pool.\n\nIn case where 'failoverRatio' and 'backupPool' are not set, or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the \"force\" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy." - }, - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "failoverRatio": { - "type": "number", - "description": "This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1].\n\nIf set, 'backupPool' must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool.\n\nIn case where 'failoverRatio' is not set or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the \"force\" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.", - "format": "float" - }, - "healthChecks": { - "type": "array", - "description": "A list of URLs to the HttpHealthCheck resource. A member VM in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member VMs will be considered healthy at all times.", - "items": { - "type": "string" - } - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "instances": { - "type": "array", - "description": "A list of resource URLs to the member VMs serving this pool. They must live in zones contained in the same region as this pool.", - "items": { - "type": "string" - } - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#targetPool" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "region": { - "type": "string", - "description": "URL of the region where the target pool resides (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - }, - "sessionAffinity": { - "type": "string", - "description": "Sesssion affinity option, must be one of the following values: 'NONE': Connections from the same client IP may go to any VM in the pool; 'CLIENT_IP': Connections from the same client IP will go to the same VM in the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from the same client IP with the same IP protocol will go to the same VM in the pool while that VM remains healthy.", - "enum": [ - "CLIENT_IP", - "CLIENT_IP_PROTO", - "NONE" - ], - "enumDescriptions": [ - "", - "", - "" - ] - } - } - }, - "TargetPoolAggregatedList": { - "id": "TargetPoolAggregatedList", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "object", - "description": "A map of scoped target pool lists.", - "additionalProperties": { - "$ref": "TargetPoolsScopedList", - "description": "Name of the scope containing this set of target pools." - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#targetPoolAggregatedList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "TargetPoolInstanceHealth": { - "id": "TargetPoolInstanceHealth", - "type": "object", - "properties": { - "healthStatus": { - "type": "array", - "items": { - "$ref": "HealthStatus" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#targetPoolInstanceHealth" - } - } - }, - "TargetPoolList": { - "id": "TargetPoolList", - "type": "object", - "description": "Contains a list of TargetPool resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of TargetPool resources.", - "items": { - "$ref": "TargetPool" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#targetPoolList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "TargetPoolsAddHealthCheckRequest": { - "id": "TargetPoolsAddHealthCheckRequest", - "type": "object", - "properties": { - "healthChecks": { - "type": "array", - "description": "Health check URLs to be added to targetPool.", - "items": { - "$ref": "HealthCheckReference" - } - } - } - }, - "TargetPoolsAddInstanceRequest": { - "id": "TargetPoolsAddInstanceRequest", - "type": "object", - "properties": { - "instances": { - "type": "array", - "description": "URLs of the instances to be added to targetPool.", - "items": { - "$ref": "InstanceReference" - } - } - } - }, - "TargetPoolsRemoveHealthCheckRequest": { - "id": "TargetPoolsRemoveHealthCheckRequest", - "type": "object", - "properties": { - "healthChecks": { - "type": "array", - "description": "Health check URLs to be removed from targetPool.", - "items": { - "$ref": "HealthCheckReference" - } - } - } - }, - "TargetPoolsRemoveInstanceRequest": { - "id": "TargetPoolsRemoveInstanceRequest", - "type": "object", - "properties": { - "instances": { - "type": "array", - "description": "URLs of the instances to be removed from targetPool.", - "items": { - "$ref": "InstanceReference" - } - } - } - }, - "TargetPoolsScopedList": { - "id": "TargetPoolsScopedList", - "type": "object", - "properties": { - "targetPools": { - "type": "array", - "description": "List of target pools contained in this scope.", - "items": { - "$ref": "TargetPool" - } - }, - "warning": { - "type": "object", - "description": "Informational warning which replaces the list of addresses when the list is empty.", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - } - }, - "TargetReference": { - "id": "TargetReference", - "type": "object", - "properties": { - "target": { - "type": "string" - } - } - }, - "TargetVpnGateway": { - "id": "TargetVpnGateway", - "type": "object", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource. Provided by the client when the resource is created." - }, - "forwardingRules": { - "type": "array", - "description": "[Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created using compute.forwardingRules.insert and associated to a VPN gateway.", - "items": { - "type": "string" - } - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource. Defined by the server.", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#targetVpnGateway for target VPN gateways.", - "default": "compute#targetVpnGateway" - }, - "name": { - "type": "string", - "description": "Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "annotations": { - "required": [ - "compute.targetVpnGateways.insert" - ] - } - }, - "network": { - "type": "string", - "description": "URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created.", - "annotations": { - "required": [ - "compute.targetVpnGateways.insert" - ] - } - }, - "region": { - "type": "string", - "description": "[Output Only] URL of the region where the target VPN gateway resides." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server-defined URL for the resource." - }, - "status": { - "type": "string", - "description": "[Output Only] The status of the VPN gateway.", - "enum": [ - "CREATING", - "DELETING", - "FAILED", - "READY" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ] - }, - "tunnels": { - "type": "array", - "description": "[Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using compute.vpntunnels.insert and associated to a VPN gateway.", - "items": { - "type": "string" - } - } - } - }, - "TargetVpnGatewayAggregatedList": { - "id": "TargetVpnGatewayAggregatedList", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource. Defined by the server." - }, - "items": { - "type": "object", - "description": "A map of scoped target vpn gateway lists.", - "additionalProperties": { - "$ref": "TargetVpnGatewaysScopedList", - "description": "[Output Only] Name of the scope containing this set of target vpn gateways." - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#targetVpnGateway for target VPN gateways.", - "default": "compute#targetVpnGatewayAggregatedList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server-defined URL for the resource." - } - } - }, - "TargetVpnGatewayList": { - "id": "TargetVpnGatewayList", - "type": "object", - "description": "Contains a list of TargetVpnGateway resources.", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource. Defined by the server." - }, - "items": { - "type": "array", - "description": "[Output Only] A list of TargetVpnGateway resources.", - "items": { - "$ref": "TargetVpnGateway" - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#targetVpnGateway for target VPN gateways.", - "default": "compute#targetVpnGatewayList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server-defined URL for the resource." - } - } - }, - "TargetVpnGatewaysScopedList": { - "id": "TargetVpnGatewaysScopedList", - "type": "object", - "properties": { - "targetVpnGateways": { - "type": "array", - "description": "[Output Only] List of target vpn gateways contained in this scope.", - "items": { - "$ref": "TargetVpnGateway" - } - }, - "warning": { - "type": "object", - "description": "[Output Only] Informational warning which replaces the list of addresses when the list is empty.", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - } - }, - "TestFailure": { - "id": "TestFailure", - "type": "object", - "properties": { - "actualService": { - "type": "string" - }, - "expectedService": { - "type": "string" - }, - "host": { - "type": "string" - }, - "path": { - "type": "string" - } - } - }, - "UrlMap": { - "id": "UrlMap", - "type": "object", - "description": "A UrlMap resource. This resource defines the mapping from URL to the BackendService resource, based on the \"longest-match\" of the URL's host and path.", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "Creation timestamp in RFC3339 text format (output only)." - }, - "defaultService": { - "type": "string", - "description": "The URL of the BackendService resource if none of the hostRules match." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource; provided by the client when the resource is created." - }, - "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 UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap.", - "format": "byte" - }, - "hostRules": { - "type": "array", - "description": "The list of HostRules to use against the URL.", - "items": { - "$ref": "HostRule" - } - }, - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only).", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "Type of the resource.", - "default": "compute#urlMap" - }, - "name": { - "type": "string", - "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?" - }, - "pathMatchers": { - "type": "array", - "description": "The list of named PathMatchers to use against the URL.", - "items": { - "$ref": "PathMatcher" - } - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for the resource (output only)." - }, - "tests": { - "type": "array", - "description": "The list of expected URL mappings. Request to update this UrlMap will succeed only all of the test cases pass.", - "items": { - "$ref": "UrlMapTest" - } - } - } - }, - "UrlMapList": { - "id": "UrlMapList", - "type": "object", - "description": "Contains a list of UrlMap resources.", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the resource; defined by the server (output only)." - }, - "items": { - "type": "array", - "description": "A list of UrlMap resources.", - "items": { - "$ref": "UrlMap" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#urlMapList" - }, - "nextPageToken": { - "type": "string", - "description": "A token used to continue a truncated list request (output only)." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - }, - "UrlMapReference": { - "id": "UrlMapReference", - "type": "object", - "properties": { - "urlMap": { - "type": "string" - } - } - }, - "UrlMapTest": { - "id": "UrlMapTest", - "type": "object", - "description": "Message for the expected URL mappings.", - "properties": { - "description": { - "type": "string", - "description": "Description of this test case." - }, - "host": { - "type": "string", - "description": "Host portion of the URL." - }, - "path": { - "type": "string", - "description": "Path portion of the URL." - }, - "service": { - "type": "string", - "description": "Expected BackendService resource the given URL should be mapped to." - } - } - }, - "UrlMapValidationResult": { - "id": "UrlMapValidationResult", - "type": "object", - "description": "Message representing the validation result for a UrlMap.", - "properties": { - "loadErrors": { - "type": "array", - "items": { - "type": "string" - } - }, - "loadSucceeded": { - "type": "boolean", - "description": "Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons." - }, - "testFailures": { - "type": "array", - "items": { - "$ref": "TestFailure" - } - }, - "testPassed": { - "type": "boolean", - "description": "If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure." - } - } - }, - "UrlMapsValidateRequest": { - "id": "UrlMapsValidateRequest", - "type": "object", - "properties": { - "resource": { - "$ref": "UrlMap", - "description": "Content of the UrlMap to be validated." - } - } - }, - "UrlMapsValidateResponse": { - "id": "UrlMapsValidateResponse", - "type": "object", - "properties": { - "result": { - "$ref": "UrlMapValidationResult" - } - } - }, - "UsageExportLocation": { - "id": "UsageExportLocation", - "type": "object", - "description": "The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix.", - "properties": { - "bucketName": { - "type": "string", - "description": "The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This is just the bucket name, with no gs:// or https://storage.googleapis.com/ in front of it." - }, - "reportNamePrefix": { - "type": "string", - "description": "An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions." - } - } - }, - "VpnTunnel": { - "id": "VpnTunnel", - "type": "object", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "description": { - "type": "string", - "description": "An optional textual description of the resource. Provided by the client when the resource is created." - }, - "detailedStatus": { - "type": "string", - "description": "[Output Only] Detailed status message for the VPN tunnel." - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource. Defined by the server.", - "format": "uint64" - }, - "ikeNetworks": { - "type": "array", - "description": "IKE networks to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint.", - "items": { - "type": "string" - } - }, - "ikeVersion": { - "type": "integer", - "description": "IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.", - "format": "int32" - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.", - "default": "compute#vpnTunnel" - }, - "name": { - "type": "string", - "description": "Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long and comply with RFC1035.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "annotations": { - "required": [ - "compute.vpnTunnels.insert" - ] - } - }, - "peerIp": { - "type": "string", - "description": "IP address of the peer VPN gateway." - }, - "region": { - "type": "string", - "description": "[Output Only] URL of the region where the VPN tunnel resides." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - }, - "sharedSecret": { - "type": "string", - "description": "Shared secret used to set the secure session between the GCE VPN gateway and the peer VPN gateway." - }, - "sharedSecretHash": { - "type": "string", - "description": "Hash of the shared secret." - }, - "status": { - "type": "string", - "description": "[Output Only] The status of the VPN tunnel.", - "enum": [ - "AUTHORIZATION_ERROR", - "DEPROVISIONING", - "ESTABLISHED", - "FAILED", - "FIRST_HANDSHAKE", - "NEGOTIATION_FAILURE", - "NETWORK_ERROR", - "PROVISIONING", - "WAITING_FOR_FULL_CONFIG" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "targetVpnGateway": { - "type": "string", - "description": "URL of the VPN gateway to which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.", - "annotations": { - "required": [ - "compute.vpnTunnels.insert" - ] - } - } - } - }, - "VpnTunnelAggregatedList": { - "id": "VpnTunnelAggregatedList", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "object", - "description": "[Output Only] A map of scoped vpn tunnel lists.", - "additionalProperties": { - "$ref": "VpnTunnelsScopedList", - "description": "Name of the scope containing this set of vpn tunnels." - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.", - "default": "compute#vpnTunnelAggregatedList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for this resource." - } - } - }, - "VpnTunnelList": { - "id": "VpnTunnelList", - "type": "object", - "description": "Contains a list of VpnTunnel resources.", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "array", - "description": "[Output Only] A list of VpnTunnel resources.", - "items": { - "$ref": "VpnTunnel" - } - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.", - "default": "compute#vpnTunnelList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server-defined URL for the resource." - } - } - }, - "VpnTunnelsScopedList": { - "id": "VpnTunnelsScopedList", - "type": "object", - "properties": { - "vpnTunnels": { - "type": "array", - "description": "List of vpn tunnels contained in this scope.", - "items": { - "$ref": "VpnTunnel" - } - }, - "warning": { - "type": "object", - "description": "Informational warning which replaces the list of addresses when the list is empty.", - "properties": { - "code": { - "type": "string", - "description": "[Output Only] The warning type identifier for this warning.", - "enum": [ - "DEPRECATED_RESOURCE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "INJECTED_KERNELS_DEPRECATED", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NO_RESULTS_ON_PAGE", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_NOT_DELETED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNREACHABLE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "data": { - "type": "array", - "description": "[Output Only] Metadata for this warning in key: value format.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "[Output Only] A key for the warning data." - }, - "value": { - "type": "string", - "description": "[Output Only] A warning data value corresponding to the key." - } - } - } - }, - "message": { - "type": "string", - "description": "[Output Only] Optional human-readable details for this warning." - } - } - } - } - }, - "Zone": { - "id": "Zone", - "type": "object", - "description": "A Zone resource.", - "properties": { - "creationTimestamp": { - "type": "string", - "description": "[Output Only] Creation timestamp in RFC3339 text format." - }, - "deprecated": { - "$ref": "DeprecationStatus", - "description": "[Output Only] The deprecation status associated with this zone." - }, - "description": { - "type": "string", - "description": "[Output Only] Textual description of the resource." - }, - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server.", - "format": "uint64" - }, - "kind": { - "type": "string", - "description": "[Output Only] Type of the resource. Always kind#zone for zones.", - "default": "compute#zone" - }, - "maintenanceWindows": { - "type": "array", - "description": "[Output Only] Any scheduled maintenance windows for this zone. When the zone is in a maintenance window, all resources which reside in the zone will be unavailable. For more information, see Maintenance Windows", - "items": { - "type": "object", - "properties": { - "beginTime": { - "type": "string", - "description": "[Output Only] Starting time of the maintenance window, in RFC3339 format." - }, - "description": { - "type": "string", - "description": "[Output Only] Textual description of the maintenance window." - }, - "endTime": { - "type": "string", - "description": "[Output Only] Ending time of the maintenance window, in RFC3339 format." - }, - "name": { - "type": "string", - "description": "[Output Only] Name of the maintenance window." - } - } - } - }, - "name": { - "type": "string", - "description": "[Output Only] Name of the resource." - }, - "region": { - "type": "string", - "description": "[Output Only] Full URL reference to the region which hosts the zone." - }, - "selfLink": { - "type": "string", - "description": "[Output Only] Server defined URL for the resource." - }, - "status": { - "type": "string", - "description": "[Output Only] Status of the zone, either UP or DOWN.", - "enum": [ - "DOWN", - "UP" - ], - "enumDescriptions": [ - "", - "" - ] - } - } - }, - "ZoneList": { - "id": "ZoneList", - "type": "object", - "description": "Contains a list of zone resources.", - "properties": { - "id": { - "type": "string", - "description": "[Output Only] Unique identifier for the resource; defined by the server." - }, - "items": { - "type": "array", - "description": "[Output Only] A list of Zone resources.", - "items": { - "$ref": "Zone" - } - }, - "kind": { - "type": "string", - "description": "Type of resource.", - "default": "compute#zoneList" - }, - "nextPageToken": { - "type": "string", - "description": "[Output Only] A token used to continue a truncated list request." - }, - "selfLink": { - "type": "string", - "description": "Server defined URL for this resource (output only)." - } - } - } - }, - "resources": { - "addresses": { - "methods": { - "aggregatedList": { - "id": "compute.addresses.aggregatedList", - "path": "{project}/aggregated/addresses", - "httpMethod": "GET", - "description": "Retrieves the list of addresses grouped by scope.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "AddressAggregatedList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "delete": { - "id": "compute.addresses.delete", - "path": "{project}/regions/{region}/addresses/{address}", - "httpMethod": "DELETE", - "description": "Deletes the specified address resource.", - "parameters": { - "address": { - "type": "string", - "description": "Name of the address resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "The name of the region for this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "address" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.addresses.get", - "path": "{project}/regions/{region}/addresses/{address}", - "httpMethod": "GET", - "description": "Returns the specified address resource.", - "parameters": { - "address": { - "type": "string", - "description": "Name of the address resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "The name of the region for this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "address" - ], - "response": { - "$ref": "Address" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.addresses.insert", - "path": "{project}/regions/{region}/addresses", - "httpMethod": "POST", - "description": "Creates an address resource in the specified project using the data included in the request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "The name of the region for this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region" - ], - "request": { - "$ref": "Address" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.addresses.list", - "path": "{project}/regions/{region}/addresses", - "httpMethod": "GET", - "description": "Retrieves the list of address resources contained within the specified region.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "The name of the region for this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region" - ], - "response": { - "$ref": "AddressList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "backendServices": { - "methods": { - "delete": { - "id": "compute.backendServices.delete", - "path": "{project}/global/backendServices/{backendService}", - "httpMethod": "DELETE", - "description": "Deletes the specified BackendService resource.", - "parameters": { - "backendService": { - "type": "string", - "description": "Name of the BackendService resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "backendService" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.backendServices.get", - "path": "{project}/global/backendServices/{backendService}", - "httpMethod": "GET", - "description": "Returns the specified BackendService resource.", - "parameters": { - "backendService": { - "type": "string", - "description": "Name of the BackendService resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "backendService" - ], - "response": { - "$ref": "BackendService" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "getHealth": { - "id": "compute.backendServices.getHealth", - "path": "{project}/global/backendServices/{backendService}/getHealth", - "httpMethod": "POST", - "description": "Gets the most recent health check results for this BackendService.", - "parameters": { - "backendService": { - "type": "string", - "description": "Name of the BackendService resource to which the queried instance belongs.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "required": true, - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "backendService" - ], - "request": { - "$ref": "ResourceGroupReference" - }, - "response": { - "$ref": "BackendServiceGroupHealth" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.backendServices.insert", - "path": "{project}/global/backendServices", - "httpMethod": "POST", - "description": "Creates a BackendService resource in the specified project using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "BackendService" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.backendServices.list", - "path": "{project}/global/backendServices", - "httpMethod": "GET", - "description": "Retrieves the list of BackendService resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "BackendServiceList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "patch": { - "id": "compute.backendServices.patch", - "path": "{project}/global/backendServices/{backendService}", - "httpMethod": "PATCH", - "description": "Update the entire content of the BackendService resource. This method supports patch semantics.", - "parameters": { - "backendService": { - "type": "string", - "description": "Name of the BackendService resource to update.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "backendService" - ], - "request": { - "$ref": "BackendService" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "update": { - "id": "compute.backendServices.update", - "path": "{project}/global/backendServices/{backendService}", - "httpMethod": "PUT", - "description": "Update the entire content of the BackendService resource.", - "parameters": { - "backendService": { - "type": "string", - "description": "Name of the BackendService resource to update.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "backendService" - ], - "request": { - "$ref": "BackendService" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - } - } - }, - "diskTypes": { - "methods": { - "aggregatedList": { - "id": "compute.diskTypes.aggregatedList", - "path": "{project}/aggregated/diskTypes", - "httpMethod": "GET", - "description": "Retrieves the list of disk type resources grouped by scope.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "DiskTypeAggregatedList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "get": { - "id": "compute.diskTypes.get", - "path": "{project}/zones/{zone}/diskTypes/{diskType}", - "httpMethod": "GET", - "description": "Returns the specified disk type resource.", - "parameters": { - "diskType": { - "type": "string", - "description": "Name of the disk type resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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", - "diskType" - ], - "response": { - "$ref": "DiskType" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "list": { - "id": "compute.diskTypes.list", - "path": "{project}/zones/{zone}/diskTypes", - "httpMethod": "GET", - "description": "Retrieves the list of disk type resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "response": { - "$ref": "DiskTypeList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "disks": { - "methods": { - "aggregatedList": { - "id": "compute.disks.aggregatedList", - "path": "{project}/aggregated/disks", - "httpMethod": "GET", - "description": "Retrieves the list of disks grouped by scope.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "DiskAggregatedList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "createSnapshot": { - "id": "compute.disks.createSnapshot", - "path": "{project}/zones/{zone}/disks/{disk}/createSnapshot", - "httpMethod": "POST", - "description": "Creates a snapshot of this disk.", - "parameters": { - "disk": { - "type": "string", - "description": "Name of the persistent disk to snapshot.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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", - "disk" - ], - "request": { - "$ref": "Snapshot" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "delete": { - "id": "compute.disks.delete", - "path": "{project}/zones/{zone}/disks/{disk}", - "httpMethod": "DELETE", - "description": "Deletes the specified persistent disk.", - "parameters": { - "disk": { - "type": "string", - "description": "Name of the persistent disk to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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", - "disk" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.disks.get", - "path": "{project}/zones/{zone}/disks/{disk}", - "httpMethod": "GET", - "description": "Returns a specified persistent disk.", - "parameters": { - "disk": { - "type": "string", - "description": "Name of the persistent disk to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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", - "disk" - ], - "response": { - "$ref": "Disk" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.disks.insert", - "path": "{project}/zones/{zone}/disks", - "httpMethod": "POST", - "description": "Creates a persistent disk in the specified project using the data included in the request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "sourceImage": { - "type": "string", - "description": "Optional. Source image to restore onto a disk.", - "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" - ], - "request": { - "$ref": "Disk" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.disks.list", - "path": "{project}/zones/{zone}/disks", - "httpMethod": "GET", - "description": "Retrieves the list of persistent disks contained within the specified zone.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "response": { - "$ref": "DiskList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "firewalls": { - "methods": { - "delete": { - "id": "compute.firewalls.delete", - "path": "{project}/global/firewalls/{firewall}", - "httpMethod": "DELETE", - "description": "Deletes the specified firewall resource.", - "parameters": { - "firewall": { - "type": "string", - "description": "Name of the firewall resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "firewall" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.firewalls.get", - "path": "{project}/global/firewalls/{firewall}", - "httpMethod": "GET", - "description": "Returns the specified firewall resource.", - "parameters": { - "firewall": { - "type": "string", - "description": "Name of the firewall resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "firewall" - ], - "response": { - "$ref": "Firewall" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.firewalls.insert", - "path": "{project}/global/firewalls", - "httpMethod": "POST", - "description": "Creates a firewall resource in the specified project using the data included in the request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "Firewall" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.firewalls.list", - "path": "{project}/global/firewalls", - "httpMethod": "GET", - "description": "Retrieves the list of firewall resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "FirewallList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "patch": { - "id": "compute.firewalls.patch", - "path": "{project}/global/firewalls/{firewall}", - "httpMethod": "PATCH", - "description": "Updates the specified firewall resource with the data included in the request. This method supports patch semantics.", - "parameters": { - "firewall": { - "type": "string", - "description": "Name of the firewall resource to update.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "firewall" - ], - "request": { - "$ref": "Firewall" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "update": { - "id": "compute.firewalls.update", - "path": "{project}/global/firewalls/{firewall}", - "httpMethod": "PUT", - "description": "Updates the specified firewall resource with the data included in the request.", - "parameters": { - "firewall": { - "type": "string", - "description": "Name of the firewall resource to update.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "firewall" - ], - "request": { - "$ref": "Firewall" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - } - } - }, - "forwardingRules": { - "methods": { - "aggregatedList": { - "id": "compute.forwardingRules.aggregatedList", - "path": "{project}/aggregated/forwardingRules", - "httpMethod": "GET", - "description": "Retrieves the list of forwarding rules grouped by scope.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "ForwardingRuleAggregatedList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "delete": { - "id": "compute.forwardingRules.delete", - "path": "{project}/regions/{region}/forwardingRules/{forwardingRule}", - "httpMethod": "DELETE", - "description": "Deletes the specified ForwardingRule resource.", - "parameters": { - "forwardingRule": { - "type": "string", - "description": "Name of the ForwardingRule resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-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" - } - }, - "parameterOrder": [ - "project", - "region", - "forwardingRule" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.forwardingRules.get", - "path": "{project}/regions/{region}/forwardingRules/{forwardingRule}", - "httpMethod": "GET", - "description": "Returns the specified ForwardingRule resource.", - "parameters": { - "forwardingRule": { - "type": "string", - "description": "Name of the ForwardingRule resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-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" - } - }, - "parameterOrder": [ - "project", - "region", - "forwardingRule" - ], - "response": { - "$ref": "ForwardingRule" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.forwardingRules.insert", - "path": "{project}/regions/{region}/forwardingRules", - "httpMethod": "POST", - "description": "Creates a ForwardingRule resource in the specified project and region using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-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" - } - }, - "parameterOrder": [ - "project", - "region" - ], - "request": { - "$ref": "ForwardingRule" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.forwardingRules.list", - "path": "{project}/regions/{region}/forwardingRules", - "httpMethod": "GET", - "description": "Retrieves the list of ForwardingRule resources available to the specified project and region.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-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" - } - }, - "parameterOrder": [ - "project", - "region" - ], - "response": { - "$ref": "ForwardingRuleList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "setTarget": { - "id": "compute.forwardingRules.setTarget", - "path": "{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget", - "httpMethod": "POST", - "description": "Changes target url for forwarding rule.", - "parameters": { - "forwardingRule": { - "type": "string", - "description": "Name of the ForwardingRule resource in which target is to be set.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-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" - } - }, - "parameterOrder": [ - "project", - "region", - "forwardingRule" - ], - "request": { - "$ref": "TargetReference" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - } - } - }, - "globalAddresses": { - "methods": { - "delete": { - "id": "compute.globalAddresses.delete", - "path": "{project}/global/addresses/{address}", - "httpMethod": "DELETE", - "description": "Deletes the specified address resource.", - "parameters": { - "address": { - "type": "string", - "description": "Name of the address resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "address" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.globalAddresses.get", - "path": "{project}/global/addresses/{address}", - "httpMethod": "GET", - "description": "Returns the specified address resource.", - "parameters": { - "address": { - "type": "string", - "description": "Name of the address resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "address" - ], - "response": { - "$ref": "Address" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.globalAddresses.insert", - "path": "{project}/global/addresses", - "httpMethod": "POST", - "description": "Creates an address resource in the specified project using the data included in the request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "Address" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.globalAddresses.list", - "path": "{project}/global/addresses", - "httpMethod": "GET", - "description": "Retrieves the list of global address resources.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "AddressList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "globalForwardingRules": { - "methods": { - "delete": { - "id": "compute.globalForwardingRules.delete", - "path": "{project}/global/forwardingRules/{forwardingRule}", - "httpMethod": "DELETE", - "description": "Deletes the specified ForwardingRule resource.", - "parameters": { - "forwardingRule": { - "type": "string", - "description": "Name of the ForwardingRule resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "forwardingRule" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.globalForwardingRules.get", - "path": "{project}/global/forwardingRules/{forwardingRule}", - "httpMethod": "GET", - "description": "Returns the specified ForwardingRule resource.", - "parameters": { - "forwardingRule": { - "type": "string", - "description": "Name of the ForwardingRule resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "forwardingRule" - ], - "response": { - "$ref": "ForwardingRule" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.globalForwardingRules.insert", - "path": "{project}/global/forwardingRules", - "httpMethod": "POST", - "description": "Creates a ForwardingRule resource in the specified project and region using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "ForwardingRule" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.globalForwardingRules.list", - "path": "{project}/global/forwardingRules", - "httpMethod": "GET", - "description": "Retrieves the list of ForwardingRule resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "ForwardingRuleList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "setTarget": { - "id": "compute.globalForwardingRules.setTarget", - "path": "{project}/global/forwardingRules/{forwardingRule}/setTarget", - "httpMethod": "POST", - "description": "Changes target url for forwarding rule.", - "parameters": { - "forwardingRule": { - "type": "string", - "description": "Name of the ForwardingRule resource in which target is to be set.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "forwardingRule" - ], - "request": { - "$ref": "TargetReference" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - } - } - }, - "globalOperations": { - "methods": { - "aggregatedList": { - "id": "compute.globalOperations.aggregatedList", - "path": "{project}/aggregated/operations", - "httpMethod": "GET", - "description": "Retrieves the list of all operations grouped by scope.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "OperationAggregatedList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "delete": { - "id": "compute.globalOperations.delete", - "path": "{project}/global/operations/{operation}", - "httpMethod": "DELETE", - "description": "Deletes the specified operation resource.", - "parameters": { - "operation": { - "type": "string", - "description": "Name of the operation resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "operation" - ], - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.globalOperations.get", - "path": "{project}/global/operations/{operation}", - "httpMethod": "GET", - "description": "Retrieves the specified operation resource.", - "parameters": { - "operation": { - "type": "string", - "description": "Name of the operation resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "operation" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "list": { - "id": "compute.globalOperations.list", - "path": "{project}/global/operations", - "httpMethod": "GET", - "description": "Retrieves the list of operation resources contained within the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "OperationList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "httpHealthChecks": { - "methods": { - "delete": { - "id": "compute.httpHealthChecks.delete", - "path": "{project}/global/httpHealthChecks/{httpHealthCheck}", - "httpMethod": "DELETE", - "description": "Deletes the specified HttpHealthCheck resource.", - "parameters": { - "httpHealthCheck": { - "type": "string", - "description": "Name of the HttpHealthCheck resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "httpHealthCheck" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.httpHealthChecks.get", - "path": "{project}/global/httpHealthChecks/{httpHealthCheck}", - "httpMethod": "GET", - "description": "Returns the specified HttpHealthCheck resource.", - "parameters": { - "httpHealthCheck": { - "type": "string", - "description": "Name of the HttpHealthCheck resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "httpHealthCheck" - ], - "response": { - "$ref": "HttpHealthCheck" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.httpHealthChecks.insert", - "path": "{project}/global/httpHealthChecks", - "httpMethod": "POST", - "description": "Creates a HttpHealthCheck resource in the specified project using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "HttpHealthCheck" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.httpHealthChecks.list", - "path": "{project}/global/httpHealthChecks", - "httpMethod": "GET", - "description": "Retrieves the list of HttpHealthCheck resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "HttpHealthCheckList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "patch": { - "id": "compute.httpHealthChecks.patch", - "path": "{project}/global/httpHealthChecks/{httpHealthCheck}", - "httpMethod": "PATCH", - "description": "Updates a HttpHealthCheck resource in the specified project using the data included in the request. This method supports patch semantics.", - "parameters": { - "httpHealthCheck": { - "type": "string", - "description": "Name of the HttpHealthCheck resource to update.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "httpHealthCheck" - ], - "request": { - "$ref": "HttpHealthCheck" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "update": { - "id": "compute.httpHealthChecks.update", - "path": "{project}/global/httpHealthChecks/{httpHealthCheck}", - "httpMethod": "PUT", - "description": "Updates a HttpHealthCheck resource in the specified project using the data included in the request.", - "parameters": { - "httpHealthCheck": { - "type": "string", - "description": "Name of the HttpHealthCheck resource to update.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "httpHealthCheck" - ], - "request": { - "$ref": "HttpHealthCheck" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - } - } - }, - "httpsHealthChecks": { - "methods": { - "delete": { - "id": "compute.httpsHealthChecks.delete", - "path": "{project}/global/httpsHealthChecks/{httpsHealthCheck}", - "httpMethod": "DELETE", - "description": "Deletes the specified HttpsHealthCheck resource.", - "parameters": { - "httpsHealthCheck": { - "type": "string", - "description": "Name of the HttpsHealthCheck resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "httpsHealthCheck" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.httpsHealthChecks.get", - "path": "{project}/global/httpsHealthChecks/{httpsHealthCheck}", - "httpMethod": "GET", - "description": "Returns the specified HttpsHealthCheck resource.", - "parameters": { - "httpsHealthCheck": { - "type": "string", - "description": "Name of the HttpsHealthCheck resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "httpsHealthCheck" - ], - "response": { - "$ref": "HttpsHealthCheck" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.httpsHealthChecks.insert", - "path": "{project}/global/httpsHealthChecks", - "httpMethod": "POST", - "description": "Creates a HttpsHealthCheck resource in the specified project using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "HttpsHealthCheck" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.httpsHealthChecks.list", - "path": "{project}/global/httpsHealthChecks", - "httpMethod": "GET", - "description": "Retrieves the list of HttpsHealthCheck resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "HttpsHealthCheckList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "patch": { - "id": "compute.httpsHealthChecks.patch", - "path": "{project}/global/httpsHealthChecks/{httpsHealthCheck}", - "httpMethod": "PATCH", - "description": "Updates a HttpsHealthCheck resource in the specified project using the data included in the request. This method supports patch semantics.", - "parameters": { - "httpsHealthCheck": { - "type": "string", - "description": "Name of the HttpsHealthCheck resource to update.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "httpsHealthCheck" - ], - "request": { - "$ref": "HttpsHealthCheck" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "update": { - "id": "compute.httpsHealthChecks.update", - "path": "{project}/global/httpsHealthChecks/{httpsHealthCheck}", - "httpMethod": "PUT", - "description": "Updates a HttpsHealthCheck resource in the specified project using the data included in the request.", - "parameters": { - "httpsHealthCheck": { - "type": "string", - "description": "Name of the HttpsHealthCheck resource to update.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "httpsHealthCheck" - ], - "request": { - "$ref": "HttpsHealthCheck" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - } - } - }, - "images": { - "methods": { - "delete": { - "id": "compute.images.delete", - "path": "{project}/global/images/{image}", - "httpMethod": "DELETE", - "description": "Deletes the specified image resource.", - "parameters": { - "image": { - "type": "string", - "description": "Name of the image resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "image" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "deprecate": { - "id": "compute.images.deprecate", - "path": "{project}/global/images/{image}/deprecate", - "httpMethod": "POST", - "description": "Sets the deprecation status of an image.\n\nIf an empty request body is given, clears the deprecation status instead.", - "parameters": { - "image": { - "type": "string", - "description": "Image name.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "image" - ], - "request": { - "$ref": "DeprecationStatus" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.images.get", - "path": "{project}/global/images/{image}", - "httpMethod": "GET", - "description": "Returns the specified image resource.", - "parameters": { - "image": { - "type": "string", - "description": "Name of the image resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "image" - ], - "response": { - "$ref": "Image" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.images.insert", - "path": "{project}/global/images", - "httpMethod": "POST", - "description": "Creates an image resource in the specified project using the data included in the request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "Image" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/devstorage.full_control", - "https://www.googleapis.com/auth/devstorage.read_only", - "https://www.googleapis.com/auth/devstorage.read_write" - ] - }, - "list": { - "id": "compute.images.list", - "path": "{project}/global/images", - "httpMethod": "GET", - "description": "Retrieves the list of image resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "ImageList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "instanceTemplates": { - "methods": { - "delete": { - "id": "compute.instanceTemplates.delete", - "path": "{project}/global/instanceTemplates/{instanceTemplate}", - "httpMethod": "DELETE", - "description": "Deletes the specified instance template resource.", - "parameters": { - "instanceTemplate": { - "type": "string", - "description": "Name of the instance template resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instanceTemplate" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.instanceTemplates.get", - "path": "{project}/global/instanceTemplates/{instanceTemplate}", - "httpMethod": "GET", - "description": "Returns the specified instance template resource.", - "parameters": { - "instanceTemplate": { - "type": "string", - "description": "Name of the instance template resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instanceTemplate" - ], - "response": { - "$ref": "InstanceTemplate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.instanceTemplates.insert", - "path": "{project}/global/instanceTemplates", - "httpMethod": "POST", - "description": "Creates an instance template resource in the specified project using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "InstanceTemplate" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.instanceTemplates.list", - "path": "{project}/global/instanceTemplates", - "httpMethod": "GET", - "description": "Retrieves the list of instance template resources contained within the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "InstanceTemplateList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "instances": { - "methods": { - "addAccessConfig": { - "id": "compute.instances.addAccessConfig", - "path": "{project}/zones/{zone}/instances/{instance}/addAccessConfig", - "httpMethod": "POST", - "description": "Adds an access config to an instance's network interface.", - "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 add to this instance.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ] - }, - "aggregatedList": { - "id": "compute.instances.aggregatedList", - "path": "{project}/aggregated/instances", - "httpMethod": "GET", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "InstanceAggregatedList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "attachDisk": { - "id": "compute.instances.attachDisk", - "path": "{project}/zones/{zone}/instances/{instance}/attachDisk", - "httpMethod": "POST", - "description": "Attaches a Disk resource to an instance.", - "parameters": { - "instance": { - "type": "string", - "description": "Instance name.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "request": { - "$ref": "AttachedDisk" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "delete": { - "id": "compute.instances.delete", - "path": "{project}/zones/{zone}/instances/{instance}", - "httpMethod": "DELETE", - "description": "Deletes the specified Instance resource. For more information, see Shutting down an instance.", - "parameters": { - "instance": { - "type": "string", - "description": "Name of the instance resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "deleteAccessConfig": { - "id": "compute.instances.deleteAccessConfig", - "path": "{project}/zones/{zone}/instances/{instance}/deleteAccessConfig", - "httpMethod": "POST", - "description": "Deletes an access config from an instance's network interface.", - "parameters": { - "accessConfig": { - "type": "string", - "description": "The name of the access config to delete.", - "required": true, - "location": "query" - }, - "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.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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", - "accessConfig", - "networkInterface" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "detachDisk": { - "id": "compute.instances.detachDisk", - "path": "{project}/zones/{zone}/instances/{instance}/detachDisk", - "httpMethod": "POST", - "description": "Detaches a disk from an instance.", - "parameters": { - "deviceName": { - "type": "string", - "description": "Disk device name to detach.", - "required": true, - "pattern": "\\w[\\w.-]{0,254}", - "location": "query" - }, - "instance": { - "type": "string", - "description": "Instance name.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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", - "deviceName" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.instances.get", - "path": "{project}/zones/{zone}/instances/{instance}", - "httpMethod": "GET", - "description": "Returns the specified instance resource.", - "parameters": { - "instance": { - "type": "string", - "description": "Name of the instance resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "zone": { - "type": "string", - "description": "The name of the 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" - ], - "response": { - "$ref": "Instance" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "getSerialPortOutput": { - "id": "compute.instances.getSerialPortOutput", - "path": "{project}/zones/{zone}/instances/{instance}/serialPort", - "httpMethod": "GET", - "description": "Returns the specified instance's serial port output.", - "parameters": { - "instance": { - "type": "string", - "description": "Name of the instance scoping this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "port": { - "type": "integer", - "description": "Which COM port to retrieve data from.", - "default": "1", - "format": "int32", - "minimum": "1", - "maximum": "4", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "response": { - "$ref": "SerialPortOutput" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.instances.insert", - "path": "{project}/zones/{zone}/instances", - "httpMethod": "POST", - "description": "Creates an instance resource in the specified project using the data included in the request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "request": { - "$ref": "Instance" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.instances.list", - "path": "{project}/zones/{zone}/instances", - "httpMethod": "GET", - "description": "Retrieves the list of instance resources contained within the specified zone.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "response": { - "$ref": "InstanceList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "reset": { - "id": "compute.instances.reset", - "path": "{project}/zones/{zone}/instances/{instance}/reset", - "httpMethod": "POST", - "description": "Performs a hard reset on the instance.", - "parameters": { - "instance": { - "type": "string", - "description": "Name of the instance scoping this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "setDiskAutoDelete": { - "id": "compute.instances.setDiskAutoDelete", - "path": "{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete", - "httpMethod": "POST", - "description": "Sets the auto-delete flag for a disk attached to an instance.", - "parameters": { - "autoDelete": { - "type": "boolean", - "description": "Whether to auto-delete the disk when the instance is deleted.", - "required": true, - "location": "query" - }, - "deviceName": { - "type": "string", - "description": "The device name of the disk to modify.", - "required": true, - "pattern": "\\w[\\w.-]{0,254}", - "location": "query" - }, - "instance": { - "type": "string", - "description": "The instance name.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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", - "autoDelete", - "deviceName" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "setMetadata": { - "id": "compute.instances.setMetadata", - "path": "{project}/zones/{zone}/instances/{instance}/setMetadata", - "httpMethod": "POST", - "description": "Sets metadata for the specified instance to the data included in the request.", - "parameters": { - "instance": { - "type": "string", - "description": "Name of the instance scoping this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "request": { - "$ref": "Metadata" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "setScheduling": { - "id": "compute.instances.setScheduling", - "path": "{project}/zones/{zone}/instances/{instance}/setScheduling", - "httpMethod": "POST", - "description": "Sets an instance's scheduling options.", - "parameters": { - "instance": { - "type": "string", - "description": "Instance name.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "request": { - "$ref": "Scheduling" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "setTags": { - "id": "compute.instances.setTags", - "path": "{project}/zones/{zone}/instances/{instance}/setTags", - "httpMethod": "POST", - "description": "Sets tags for the specified instance to the data included in the request.", - "parameters": { - "instance": { - "type": "string", - "description": "Name of the instance scoping this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "request": { - "$ref": "Tags" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "start": { - "id": "compute.instances.start", - "path": "{project}/zones/{zone}/instances/{instance}/start", - "httpMethod": "POST", - "description": "This method starts an instance that was stopped using the using the instances().stop method. For more information, see Restart an instance.", - "parameters": { - "instance": { - "type": "string", - "description": "Name of the instance resource to start.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "stop": { - "id": "compute.instances.stop", - "path": "{project}/zones/{zone}/instances/{instance}/stop", - "httpMethod": "POST", - "description": "This method stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur per-minute, virtual machine usage charges while they are stopped, but any resources that the virtual machine is using, such as persistent disks and static IP addresses,will continue to be charged until they are deleted. For more information, see Stopping an instance.", - "parameters": { - "instance": { - "type": "string", - "description": "Name of the instance resource to start.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - } - } - }, - "licenses": { - "methods": { - "get": { - "id": "compute.licenses.get", - "path": "{project}/global/licenses/{license}", - "httpMethod": "GET", - "description": "Returns the specified license resource.", - "parameters": { - "license": { - "type": "string", - "description": "Name of the license resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "license" - ], - "response": { - "$ref": "License" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "machineTypes": { - "methods": { - "aggregatedList": { - "id": "compute.machineTypes.aggregatedList", - "path": "{project}/aggregated/machineTypes", - "httpMethod": "GET", - "description": "Retrieves the list of machine type resources grouped by scope.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "MachineTypeAggregatedList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "get": { - "id": "compute.machineTypes.get", - "path": "{project}/zones/{zone}/machineTypes/{machineType}", - "httpMethod": "GET", - "description": "Returns the specified machine type resource.", - "parameters": { - "machineType": { - "type": "string", - "description": "Name of the machine type resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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", - "machineType" - ], - "response": { - "$ref": "MachineType" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "list": { - "id": "compute.machineTypes.list", - "path": "{project}/zones/{zone}/machineTypes", - "httpMethod": "GET", - "description": "Retrieves the list of machine type resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "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" - ], - "response": { - "$ref": "MachineTypeList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "networks": { - "methods": { - "delete": { - "id": "compute.networks.delete", - "path": "{project}/global/networks/{network}", - "httpMethod": "DELETE", - "description": "Deletes the specified network resource.", - "parameters": { - "network": { - "type": "string", - "description": "Name of the network resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "network" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.networks.get", - "path": "{project}/global/networks/{network}", - "httpMethod": "GET", - "description": "Returns the specified network resource.", - "parameters": { - "network": { - "type": "string", - "description": "Name of the network resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "network" - ], - "response": { - "$ref": "Network" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.networks.insert", - "path": "{project}/global/networks", - "httpMethod": "POST", - "description": "Creates a network resource in the specified project using the data included in the request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "Network" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.networks.list", - "path": "{project}/global/networks", - "httpMethod": "GET", - "description": "Retrieves the list of network resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "NetworkList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "projects": { - "methods": { - "get": { - "id": "compute.projects.get", - "path": "{project}", - "httpMethod": "GET", - "description": "Returns the specified project 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "Project" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "setCommonInstanceMetadata": { - "id": "compute.projects.setCommonInstanceMetadata", - "path": "{project}/setCommonInstanceMetadata", - "httpMethod": "POST", - "description": "Sets metadata common to all instances within the specified project using the data included in the request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "Metadata" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "setUsageExportBucket": { - "id": "compute.projects.setUsageExportBucket", - "path": "{project}/setUsageExportBucket", - "httpMethod": "POST", - "description": "Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "UsageExportLocation" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/devstorage.full_control", - "https://www.googleapis.com/auth/devstorage.read_only", - "https://www.googleapis.com/auth/devstorage.read_write" - ] - }, - "setUsageExportCloudStorageBucket": { - "id": "compute.projects.setUsageExportCloudStorageBucket", - "path": "{project}/setUsageExportCloudStorageBucket", - "httpMethod": "POST", - "description": "[Deprecated] Use setUsageExportBucket instead.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "UsageExportLocation" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/devstorage.full_control", - "https://www.googleapis.com/auth/devstorage.read_only", - "https://www.googleapis.com/auth/devstorage.read_write" - ] - } - } - }, - "regionOperations": { - "methods": { - "delete": { - "id": "compute.regionOperations.delete", - "path": "{project}/regions/{region}/operations/{operation}", - "httpMethod": "DELETE", - "description": "Deletes the specified region-specific operation resource.", - "parameters": { - "operation": { - "type": "string", - "description": "Name of the operation resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-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" - } - }, - "parameterOrder": [ - "project", - "region", - "operation" - ], - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.regionOperations.get", - "path": "{project}/regions/{region}/operations/{operation}", - "httpMethod": "GET", - "description": "Retrieves the specified region-specific operation resource.", - "parameters": { - "operation": { - "type": "string", - "description": "Name of the operation resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "Name of the zone scoping this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "operation" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "list": { - "id": "compute.regionOperations.list", - "path": "{project}/regions/{region}/operations", - "httpMethod": "GET", - "description": "Retrieves the list of operation resources contained within the specified region.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-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" - } - }, - "parameterOrder": [ - "project", - "region" - ], - "response": { - "$ref": "OperationList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "regions": { - "methods": { - "get": { - "id": "compute.regions.get", - "path": "{project}/regions/{region}", - "httpMethod": "GET", - "description": "Returns the specified region 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "Name of the region resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region" - ], - "response": { - "$ref": "Region" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "list": { - "id": "compute.regions.list", - "path": "{project}/regions", - "httpMethod": "GET", - "description": "Retrieves the list of region resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "RegionList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "routes": { - "methods": { - "delete": { - "id": "compute.routes.delete", - "path": "{project}/global/routes/{route}", - "httpMethod": "DELETE", - "description": "Deletes the specified route resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "route": { - "type": "string", - "description": "Name of the route resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "route" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.routes.get", - "path": "{project}/global/routes/{route}", - "httpMethod": "GET", - "description": "Returns the specified route resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "route": { - "type": "string", - "description": "Name of the route resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "route" - ], - "response": { - "$ref": "Route" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.routes.insert", - "path": "{project}/global/routes", - "httpMethod": "POST", - "description": "Creates a route resource in the specified project using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "Route" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.routes.list", - "path": "{project}/global/routes", - "httpMethod": "GET", - "description": "Retrieves the list of route resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "RouteList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "snapshots": { - "methods": { - "delete": { - "id": "compute.snapshots.delete", - "path": "{project}/global/snapshots/{snapshot}", - "httpMethod": "DELETE", - "description": "Deletes the specified persistent disk snapshot resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "snapshot": { - "type": "string", - "description": "Name of the persistent disk snapshot resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "snapshot" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.snapshots.get", - "path": "{project}/global/snapshots/{snapshot}", - "httpMethod": "GET", - "description": "Returns the specified persistent disk snapshot resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "snapshot": { - "type": "string", - "description": "Name of the persistent disk snapshot resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "snapshot" - ], - "response": { - "$ref": "Snapshot" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "list": { - "id": "compute.snapshots.list", - "path": "{project}/global/snapshots", - "httpMethod": "GET", - "description": "Retrieves the list of persistent disk snapshot resources contained within the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "SnapshotList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "sslCertificates": { - "methods": { - "delete": { - "id": "compute.sslCertificates.delete", - "path": "{project}/global/sslCertificates/{sslCertificate}", - "httpMethod": "DELETE", - "description": "Deletes the specified SslCertificate resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "sslCertificate": { - "type": "string", - "description": "Name of the SslCertificate resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "sslCertificate" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.sslCertificates.get", - "path": "{project}/global/sslCertificates/{sslCertificate}", - "httpMethod": "GET", - "description": "Returns the specified SslCertificate resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "sslCertificate": { - "type": "string", - "description": "Name of the SslCertificate resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "sslCertificate" - ], - "response": { - "$ref": "SslCertificate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.sslCertificates.insert", - "path": "{project}/global/sslCertificates", - "httpMethod": "POST", - "description": "Creates a SslCertificate resource in the specified project using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "SslCertificate" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.sslCertificates.list", - "path": "{project}/global/sslCertificates", - "httpMethod": "GET", - "description": "Retrieves the list of SslCertificate resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "SslCertificateList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "targetHttpProxies": { - "methods": { - "delete": { - "id": "compute.targetHttpProxies.delete", - "path": "{project}/global/targetHttpProxies/{targetHttpProxy}", - "httpMethod": "DELETE", - "description": "Deletes the specified TargetHttpProxy resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "targetHttpProxy": { - "type": "string", - "description": "Name of the TargetHttpProxy resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "targetHttpProxy" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.targetHttpProxies.get", - "path": "{project}/global/targetHttpProxies/{targetHttpProxy}", - "httpMethod": "GET", - "description": "Returns the specified TargetHttpProxy resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "targetHttpProxy": { - "type": "string", - "description": "Name of the TargetHttpProxy resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "targetHttpProxy" - ], - "response": { - "$ref": "TargetHttpProxy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.targetHttpProxies.insert", - "path": "{project}/global/targetHttpProxies", - "httpMethod": "POST", - "description": "Creates a TargetHttpProxy resource in the specified project using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "TargetHttpProxy" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.targetHttpProxies.list", - "path": "{project}/global/targetHttpProxies", - "httpMethod": "GET", - "description": "Retrieves the list of TargetHttpProxy resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "TargetHttpProxyList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "setUrlMap": { - "id": "compute.targetHttpProxies.setUrlMap", - "path": "{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap", - "httpMethod": "POST", - "description": "Changes the URL map for TargetHttpProxy.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "targetHttpProxy": { - "type": "string", - "description": "Name of the TargetHttpProxy resource whose URL map is to be set.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "targetHttpProxy" - ], - "request": { - "$ref": "UrlMapReference" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - } - } - }, - "targetHttpsProxies": { - "methods": { - "delete": { - "id": "compute.targetHttpsProxies.delete", - "path": "{project}/global/targetHttpsProxies/{targetHttpsProxy}", - "httpMethod": "DELETE", - "description": "Deletes the specified TargetHttpsProxy resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "targetHttpsProxy": { - "type": "string", - "description": "Name of the TargetHttpsProxy resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "targetHttpsProxy" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.targetHttpsProxies.get", - "path": "{project}/global/targetHttpsProxies/{targetHttpsProxy}", - "httpMethod": "GET", - "description": "Returns the specified TargetHttpsProxy resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "targetHttpsProxy": { - "type": "string", - "description": "Name of the TargetHttpsProxy resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "targetHttpsProxy" - ], - "response": { - "$ref": "TargetHttpsProxy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.targetHttpsProxies.insert", - "path": "{project}/global/targetHttpsProxies", - "httpMethod": "POST", - "description": "Creates a TargetHttpsProxy resource in the specified project using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "TargetHttpsProxy" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.targetHttpsProxies.list", - "path": "{project}/global/targetHttpsProxies", - "httpMethod": "GET", - "description": "Retrieves the list of TargetHttpsProxy resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "TargetHttpsProxyList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "targetInstances": { - "methods": { - "aggregatedList": { - "id": "compute.targetInstances.aggregatedList", - "path": "{project}/aggregated/targetInstances", - "httpMethod": "GET", - "description": "Retrieves the list of target instances grouped by scope.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "TargetInstanceAggregatedList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "delete": { - "id": "compute.targetInstances.delete", - "path": "{project}/zones/{zone}/targetInstances/{targetInstance}", - "httpMethod": "DELETE", - "description": "Deletes the specified TargetInstance resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "targetInstance": { - "type": "string", - "description": "Name of the TargetInstance resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "zone": { - "type": "string", - "description": "Name of the zone scoping this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "zone", - "targetInstance" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.targetInstances.get", - "path": "{project}/zones/{zone}/targetInstances/{targetInstance}", - "httpMethod": "GET", - "description": "Returns the specified TargetInstance resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "targetInstance": { - "type": "string", - "description": "Name of the TargetInstance resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "zone": { - "type": "string", - "description": "Name of the zone scoping this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "zone", - "targetInstance" - ], - "response": { - "$ref": "TargetInstance" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.targetInstances.insert", - "path": "{project}/zones/{zone}/targetInstances", - "httpMethod": "POST", - "description": "Creates a TargetInstance resource in the specified project and zone using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "zone": { - "type": "string", - "description": "Name of the zone scoping this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "zone" - ], - "request": { - "$ref": "TargetInstance" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.targetInstances.list", - "path": "{project}/zones/{zone}/targetInstances", - "httpMethod": "GET", - "description": "Retrieves the list of TargetInstance resources available to the specified project and zone.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "zone": { - "type": "string", - "description": "Name of the zone scoping this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "zone" - ], - "response": { - "$ref": "TargetInstanceList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "targetPools": { - "methods": { - "addHealthCheck": { - "id": "compute.targetPools.addHealthCheck", - "path": "{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck", - "httpMethod": "POST", - "description": "Adds health check URL to targetPool.", - "parameters": { - "project": { - "type": "string", - "required": true, - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-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" - }, - "targetPool": { - "type": "string", - "description": "Name of the TargetPool resource to which health_check_url is to be added.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "targetPool" - ], - "request": { - "$ref": "TargetPoolsAddHealthCheckRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "addInstance": { - "id": "compute.targetPools.addInstance", - "path": "{project}/regions/{region}/targetPools/{targetPool}/addInstance", - "httpMethod": "POST", - "description": "Adds instance url to targetPool.", - "parameters": { - "project": { - "type": "string", - "required": true, - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-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" - }, - "targetPool": { - "type": "string", - "description": "Name of the TargetPool resource to which instance_url is to be added.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "targetPool" - ], - "request": { - "$ref": "TargetPoolsAddInstanceRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "aggregatedList": { - "id": "compute.targetPools.aggregatedList", - "path": "{project}/aggregated/targetPools", - "httpMethod": "GET", - "description": "Retrieves the list of target pools grouped by scope.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "TargetPoolAggregatedList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "delete": { - "id": "compute.targetPools.delete", - "path": "{project}/regions/{region}/targetPools/{targetPool}", - "httpMethod": "DELETE", - "description": "Deletes the specified TargetPool resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-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" - }, - "targetPool": { - "type": "string", - "description": "Name of the TargetPool resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "targetPool" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.targetPools.get", - "path": "{project}/regions/{region}/targetPools/{targetPool}", - "httpMethod": "GET", - "description": "Returns the specified TargetPool resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-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" - }, - "targetPool": { - "type": "string", - "description": "Name of the TargetPool resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "targetPool" - ], - "response": { - "$ref": "TargetPool" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "getHealth": { - "id": "compute.targetPools.getHealth", - "path": "{project}/regions/{region}/targetPools/{targetPool}/getHealth", - "httpMethod": "POST", - "description": "Gets the most recent health check results for each IP for the given instance that is referenced by given TargetPool.", - "parameters": { - "project": { - "type": "string", - "required": true, - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-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" - }, - "targetPool": { - "type": "string", - "description": "Name of the TargetPool resource to which the queried instance belongs.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "targetPool" - ], - "request": { - "$ref": "InstanceReference" - }, - "response": { - "$ref": "TargetPoolInstanceHealth" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.targetPools.insert", - "path": "{project}/regions/{region}/targetPools", - "httpMethod": "POST", - "description": "Creates a TargetPool resource in the specified project and region using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-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" - } - }, - "parameterOrder": [ - "project", - "region" - ], - "request": { - "$ref": "TargetPool" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.targetPools.list", - "path": "{project}/regions/{region}/targetPools", - "httpMethod": "GET", - "description": "Retrieves the list of TargetPool resources available to the specified project and region.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-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" - } - }, - "parameterOrder": [ - "project", - "region" - ], - "response": { - "$ref": "TargetPoolList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "removeHealthCheck": { - "id": "compute.targetPools.removeHealthCheck", - "path": "{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck", - "httpMethod": "POST", - "description": "Removes health check URL from targetPool.", - "parameters": { - "project": { - "type": "string", - "required": true, - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-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" - }, - "targetPool": { - "type": "string", - "description": "Name of the TargetPool resource to which health_check_url is to be removed.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "targetPool" - ], - "request": { - "$ref": "TargetPoolsRemoveHealthCheckRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "removeInstance": { - "id": "compute.targetPools.removeInstance", - "path": "{project}/regions/{region}/targetPools/{targetPool}/removeInstance", - "httpMethod": "POST", - "description": "Removes instance URL from targetPool.", - "parameters": { - "project": { - "type": "string", - "required": true, - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-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" - }, - "targetPool": { - "type": "string", - "description": "Name of the TargetPool resource to which instance_url is to be removed.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "targetPool" - ], - "request": { - "$ref": "TargetPoolsRemoveInstanceRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "setBackup": { - "id": "compute.targetPools.setBackup", - "path": "{project}/regions/{region}/targetPools/{targetPool}/setBackup", - "httpMethod": "POST", - "description": "Changes backup pool configurations.", - "parameters": { - "failoverRatio": { - "type": "number", - "description": "New failoverRatio value for the containing target pool.", - "format": "float", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-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" - }, - "targetPool": { - "type": "string", - "description": "Name of the TargetPool resource for which the backup is to be set.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "targetPool" - ], - "request": { - "$ref": "TargetReference" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - } - } - }, - "targetVpnGateways": { - "methods": { - "aggregatedList": { - "id": "compute.targetVpnGateways.aggregatedList", - "path": "{project}/aggregated/targetVpnGateways", - "httpMethod": "GET", - "description": "Retrieves the list of target VPN gateways grouped by scope.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "TargetVpnGatewayAggregatedList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "delete": { - "id": "compute.targetVpnGateways.delete", - "path": "{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}", - "httpMethod": "DELETE", - "description": "Deletes the specified TargetVpnGateway 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "The name of the region for this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "targetVpnGateway": { - "type": "string", - "description": "Name of the TargetVpnGateway resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "targetVpnGateway" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.targetVpnGateways.get", - "path": "{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}", - "httpMethod": "GET", - "description": "Returns the specified TargetVpnGateway 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "The name of the region for this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "targetVpnGateway": { - "type": "string", - "description": "Name of the TargetVpnGateway resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "targetVpnGateway" - ], - "response": { - "$ref": "TargetVpnGateway" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.targetVpnGateways.insert", - "path": "{project}/regions/{region}/targetVpnGateways", - "httpMethod": "POST", - "description": "Creates a TargetVpnGateway resource in the specified project and region using the data included in the request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "The name of the region for this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region" - ], - "request": { - "$ref": "TargetVpnGateway" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.targetVpnGateways.list", - "path": "{project}/regions/{region}/targetVpnGateways", - "httpMethod": "GET", - "description": "Retrieves the list of TargetVpnGateway resources available to the specified project and region.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "The name of the region for this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region" - ], - "response": { - "$ref": "TargetVpnGatewayList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "urlMaps": { - "methods": { - "delete": { - "id": "compute.urlMaps.delete", - "path": "{project}/global/urlMaps/{urlMap}", - "httpMethod": "DELETE", - "description": "Deletes the specified UrlMap resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "urlMap": { - "type": "string", - "description": "Name of the UrlMap resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "urlMap" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.urlMaps.get", - "path": "{project}/global/urlMaps/{urlMap}", - "httpMethod": "GET", - "description": "Returns the specified UrlMap resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "urlMap": { - "type": "string", - "description": "Name of the UrlMap resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "urlMap" - ], - "response": { - "$ref": "UrlMap" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.urlMaps.insert", - "path": "{project}/global/urlMaps", - "httpMethod": "POST", - "description": "Creates a UrlMap resource in the specified project using the data included in the request.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "UrlMap" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.urlMaps.list", - "path": "{project}/global/urlMaps", - "httpMethod": "GET", - "description": "Retrieves the list of UrlMap resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "UrlMapList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "patch": { - "id": "compute.urlMaps.patch", - "path": "{project}/global/urlMaps/{urlMap}", - "httpMethod": "PATCH", - "description": "Update the entire content of the UrlMap resource. This method supports patch semantics.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "urlMap": { - "type": "string", - "description": "Name of the UrlMap resource to update.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "urlMap" - ], - "request": { - "$ref": "UrlMap" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "update": { - "id": "compute.urlMaps.update", - "path": "{project}/global/urlMaps/{urlMap}", - "httpMethod": "PUT", - "description": "Update the entire content of the UrlMap resource.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "urlMap": { - "type": "string", - "description": "Name of the UrlMap resource to update.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "urlMap" - ], - "request": { - "$ref": "UrlMap" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "validate": { - "id": "compute.urlMaps.validate", - "path": "{project}/global/urlMaps/{urlMap}/validate", - "httpMethod": "POST", - "description": "Run static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.", - "parameters": { - "project": { - "type": "string", - "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "urlMap": { - "type": "string", - "description": "Name of the UrlMap resource to be validated as.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "urlMap" - ], - "request": { - "$ref": "UrlMapsValidateRequest" - }, - "response": { - "$ref": "UrlMapsValidateResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - } - } - }, - "vpnTunnels": { - "methods": { - "aggregatedList": { - "id": "compute.vpnTunnels.aggregatedList", - "path": "{project}/aggregated/vpnTunnels", - "httpMethod": "GET", - "description": "Retrieves the list of VPN tunnels grouped by scope.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "VpnTunnelAggregatedList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "delete": { - "id": "compute.vpnTunnels.delete", - "path": "{project}/regions/{region}/vpnTunnels/{vpnTunnel}", - "httpMethod": "DELETE", - "description": "Deletes the specified VpnTunnel 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "The name of the region for this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "vpnTunnel": { - "type": "string", - "description": "Name of the VpnTunnel resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "vpnTunnel" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.vpnTunnels.get", - "path": "{project}/regions/{region}/vpnTunnels/{vpnTunnel}", - "httpMethod": "GET", - "description": "Returns the specified VpnTunnel 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "The name of the region for this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "vpnTunnel": { - "type": "string", - "description": "Name of the VpnTunnel resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region", - "vpnTunnel" - ], - "response": { - "$ref": "VpnTunnel" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "id": "compute.vpnTunnels.insert", - "path": "{project}/regions/{region}/vpnTunnels", - "httpMethod": "POST", - "description": "Creates a VpnTunnel resource in the specified project and region using the data included in the request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "The name of the region for this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region" - ], - "request": { - "$ref": "VpnTunnel" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "id": "compute.vpnTunnels.list", - "path": "{project}/regions/{region}/vpnTunnels", - "httpMethod": "GET", - "description": "Retrieves the list of VpnTunnel resources contained in the specified project and region.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "region": { - "type": "string", - "description": "The name of the region for this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "region" - ], - "response": { - "$ref": "VpnTunnelList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "zoneOperations": { - "methods": { - "delete": { - "id": "compute.zoneOperations.delete", - "path": "{project}/zones/{zone}/operations/{operation}", - "httpMethod": "DELETE", - "description": "Deletes the specified zone-specific operation resource.", - "parameters": { - "operation": { - "type": "string", - "description": "Name of the operation resource to delete.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "zone": { - "type": "string", - "description": "Name of the zone scoping this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "zone", - "operation" - ], - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "id": "compute.zoneOperations.get", - "path": "{project}/zones/{zone}/operations/{operation}", - "httpMethod": "GET", - "description": "Retrieves the specified zone-specific operation resource.", - "parameters": { - "operation": { - "type": "string", - "description": "Name of the operation resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - }, - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "zone": { - "type": "string", - "description": "Name of the zone scoping this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "zone", - "operation" - ], - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "list": { - "id": "compute.zoneOperations.list", - "path": "{project}/zones/{zone}/operations", - "httpMethod": "GET", - "description": "Retrieves the list of operation resources contained within the specified zone.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "zone": { - "type": "string", - "description": "Name of the zone scoping this request.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "zone" - ], - "response": { - "$ref": "OperationList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, - "zones": { - "methods": { - "get": { - "id": "compute.zones.get", - "path": "{project}/zones/{zone}", - "httpMethod": "GET", - "description": "Returns the specified zone 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - }, - "zone": { - "type": "string", - "description": "Name of the zone resource to return.", - "required": true, - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "location": "path" - } - }, - "parameterOrder": [ - "project", - "zone" - ], - "response": { - "$ref": "Zone" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "list": { - "id": "compute.zones.list", - "path": "{project}/zones", - "httpMethod": "GET", - "description": "Retrieves the list of zone resources available to the specified project.", - "parameters": { - "filter": { - "type": "string", - "description": "Optional. Filter expression for filtering listed resources.", - "location": "query" - }, - "maxResults": { - "type": "integer", - "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - "default": "500", - "format": "uint32", - "minimum": "0", - "maximum": "500", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "ZoneList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - } - } -} diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go deleted file mode 100644 index d6828d81822..00000000000 --- a/compute/v0.beta/compute-gen.go +++ /dev/null @@ -1,21213 +0,0 @@ -// Package compute provides access to the Compute Engine API. -// -// See https://developers.google.com/compute/docs/reference/latest/ -// -// Usage example: -// -// import "google.golang.org/api/compute/v0.beta" -// ... -// computeService, err := compute.New(oauthHttpClient) -package compute - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "golang.org/x/net/context" - "google.golang.org/api/googleapi" - "io" - "net/http" - "net/url" - "strconv" - "strings" -) - -// Always reference these packages, just in case the auto-generated code -// below doesn't. -var _ = bytes.NewBuffer -var _ = strconv.Itoa -var _ = fmt.Sprintf -var _ = json.NewDecoder -var _ = io.Copy -var _ = url.Parse -var _ = googleapi.Version -var _ = errors.New -var _ = strings.Replace -var _ = context.Background - -const apiId = "compute:beta" -const apiName = "compute" -const apiVersion = "beta" -const basePath = "https://www.googleapis.com/compute/beta/projects/" - -// OAuth2 scopes used by this API. -const ( - // View and manage your data across Google Cloud Platform services - CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" - - // View and manage your Google Compute Engine resources - ComputeScope = "https://www.googleapis.com/auth/compute" - - // View your Google Compute Engine resources - ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.readonly" - - // Manage your data and permissions in Google Cloud Storage - DevstorageFullControlScope = "https://www.googleapis.com/auth/devstorage.full_control" - - // View your data in Google Cloud Storage - DevstorageReadOnlyScope = "https://www.googleapis.com/auth/devstorage.read_only" - - // Manage your data in Google Cloud Storage - DevstorageReadWriteScope = "https://www.googleapis.com/auth/devstorage.read_write" -) - -func New(client *http.Client) (*Service, error) { - if client == nil { - return nil, errors.New("client is nil") - } - s := &Service{client: client, BasePath: basePath} - s.Addresses = NewAddressesService(s) - s.BackendServices = NewBackendServicesService(s) - s.DiskTypes = NewDiskTypesService(s) - s.Disks = NewDisksService(s) - s.Firewalls = NewFirewallsService(s) - s.ForwardingRules = NewForwardingRulesService(s) - s.GlobalAddresses = NewGlobalAddressesService(s) - s.GlobalForwardingRules = NewGlobalForwardingRulesService(s) - s.GlobalOperations = NewGlobalOperationsService(s) - s.HttpHealthChecks = NewHttpHealthChecksService(s) - s.HttpsHealthChecks = NewHttpsHealthChecksService(s) - s.Images = NewImagesService(s) - s.InstanceTemplates = NewInstanceTemplatesService(s) - s.Instances = NewInstancesService(s) - s.Licenses = NewLicensesService(s) - s.MachineTypes = NewMachineTypesService(s) - s.Networks = NewNetworksService(s) - s.Projects = NewProjectsService(s) - s.RegionOperations = NewRegionOperationsService(s) - s.Regions = NewRegionsService(s) - s.Routes = NewRoutesService(s) - s.Snapshots = NewSnapshotsService(s) - s.SslCertificates = NewSslCertificatesService(s) - s.TargetHttpProxies = NewTargetHttpProxiesService(s) - s.TargetHttpsProxies = NewTargetHttpsProxiesService(s) - s.TargetInstances = NewTargetInstancesService(s) - s.TargetPools = NewTargetPoolsService(s) - s.TargetVpnGateways = NewTargetVpnGatewaysService(s) - s.UrlMaps = NewUrlMapsService(s) - s.VpnTunnels = NewVpnTunnelsService(s) - s.ZoneOperations = NewZoneOperationsService(s) - s.Zones = NewZonesService(s) - return s, nil -} - -type Service struct { - client *http.Client - BasePath string // API endpoint base URL - UserAgent string // optional additional User-Agent fragment - - Addresses *AddressesService - - BackendServices *BackendServicesService - - DiskTypes *DiskTypesService - - Disks *DisksService - - Firewalls *FirewallsService - - ForwardingRules *ForwardingRulesService - - GlobalAddresses *GlobalAddressesService - - GlobalForwardingRules *GlobalForwardingRulesService - - GlobalOperations *GlobalOperationsService - - HttpHealthChecks *HttpHealthChecksService - - HttpsHealthChecks *HttpsHealthChecksService - - Images *ImagesService - - InstanceTemplates *InstanceTemplatesService - - Instances *InstancesService - - Licenses *LicensesService - - MachineTypes *MachineTypesService - - Networks *NetworksService - - Projects *ProjectsService - - RegionOperations *RegionOperationsService - - Regions *RegionsService - - Routes *RoutesService - - Snapshots *SnapshotsService - - SslCertificates *SslCertificatesService - - TargetHttpProxies *TargetHttpProxiesService - - TargetHttpsProxies *TargetHttpsProxiesService - - TargetInstances *TargetInstancesService - - TargetPools *TargetPoolsService - - TargetVpnGateways *TargetVpnGatewaysService - - UrlMaps *UrlMapsService - - VpnTunnels *VpnTunnelsService - - ZoneOperations *ZoneOperationsService - - Zones *ZonesService -} - -func (s *Service) userAgent() string { - if s.UserAgent == "" { - return googleapi.UserAgent - } - return googleapi.UserAgent + " " + s.UserAgent -} - -func NewAddressesService(s *Service) *AddressesService { - rs := &AddressesService{s: s} - return rs -} - -type AddressesService struct { - s *Service -} - -func NewBackendServicesService(s *Service) *BackendServicesService { - rs := &BackendServicesService{s: s} - return rs -} - -type BackendServicesService struct { - s *Service -} - -func NewDiskTypesService(s *Service) *DiskTypesService { - rs := &DiskTypesService{s: s} - return rs -} - -type DiskTypesService struct { - s *Service -} - -func NewDisksService(s *Service) *DisksService { - rs := &DisksService{s: s} - return rs -} - -type DisksService struct { - s *Service -} - -func NewFirewallsService(s *Service) *FirewallsService { - rs := &FirewallsService{s: s} - return rs -} - -type FirewallsService struct { - s *Service -} - -func NewForwardingRulesService(s *Service) *ForwardingRulesService { - rs := &ForwardingRulesService{s: s} - return rs -} - -type ForwardingRulesService struct { - s *Service -} - -func NewGlobalAddressesService(s *Service) *GlobalAddressesService { - rs := &GlobalAddressesService{s: s} - return rs -} - -type GlobalAddressesService struct { - s *Service -} - -func NewGlobalForwardingRulesService(s *Service) *GlobalForwardingRulesService { - rs := &GlobalForwardingRulesService{s: s} - return rs -} - -type GlobalForwardingRulesService struct { - s *Service -} - -func NewGlobalOperationsService(s *Service) *GlobalOperationsService { - rs := &GlobalOperationsService{s: s} - return rs -} - -type GlobalOperationsService struct { - s *Service -} - -func NewHttpHealthChecksService(s *Service) *HttpHealthChecksService { - rs := &HttpHealthChecksService{s: s} - return rs -} - -type HttpHealthChecksService struct { - s *Service -} - -func NewHttpsHealthChecksService(s *Service) *HttpsHealthChecksService { - rs := &HttpsHealthChecksService{s: s} - return rs -} - -type HttpsHealthChecksService struct { - s *Service -} - -func NewImagesService(s *Service) *ImagesService { - rs := &ImagesService{s: s} - return rs -} - -type ImagesService struct { - s *Service -} - -func NewInstanceTemplatesService(s *Service) *InstanceTemplatesService { - rs := &InstanceTemplatesService{s: s} - return rs -} - -type InstanceTemplatesService struct { - s *Service -} - -func NewInstancesService(s *Service) *InstancesService { - rs := &InstancesService{s: s} - return rs -} - -type InstancesService struct { - s *Service -} - -func NewLicensesService(s *Service) *LicensesService { - rs := &LicensesService{s: s} - return rs -} - -type LicensesService struct { - s *Service -} - -func NewMachineTypesService(s *Service) *MachineTypesService { - rs := &MachineTypesService{s: s} - return rs -} - -type MachineTypesService struct { - s *Service -} - -func NewNetworksService(s *Service) *NetworksService { - rs := &NetworksService{s: s} - return rs -} - -type NetworksService struct { - s *Service -} - -func NewProjectsService(s *Service) *ProjectsService { - rs := &ProjectsService{s: s} - return rs -} - -type ProjectsService struct { - s *Service -} - -func NewRegionOperationsService(s *Service) *RegionOperationsService { - rs := &RegionOperationsService{s: s} - return rs -} - -type RegionOperationsService struct { - s *Service -} - -func NewRegionsService(s *Service) *RegionsService { - rs := &RegionsService{s: s} - return rs -} - -type RegionsService struct { - s *Service -} - -func NewRoutesService(s *Service) *RoutesService { - rs := &RoutesService{s: s} - return rs -} - -type RoutesService struct { - s *Service -} - -func NewSnapshotsService(s *Service) *SnapshotsService { - rs := &SnapshotsService{s: s} - return rs -} - -type SnapshotsService struct { - s *Service -} - -func NewSslCertificatesService(s *Service) *SslCertificatesService { - rs := &SslCertificatesService{s: s} - return rs -} - -type SslCertificatesService struct { - s *Service -} - -func NewTargetHttpProxiesService(s *Service) *TargetHttpProxiesService { - rs := &TargetHttpProxiesService{s: s} - return rs -} - -type TargetHttpProxiesService struct { - s *Service -} - -func NewTargetHttpsProxiesService(s *Service) *TargetHttpsProxiesService { - rs := &TargetHttpsProxiesService{s: s} - return rs -} - -type TargetHttpsProxiesService struct { - s *Service -} - -func NewTargetInstancesService(s *Service) *TargetInstancesService { - rs := &TargetInstancesService{s: s} - return rs -} - -type TargetInstancesService struct { - s *Service -} - -func NewTargetPoolsService(s *Service) *TargetPoolsService { - rs := &TargetPoolsService{s: s} - return rs -} - -type TargetPoolsService struct { - s *Service -} - -func NewTargetVpnGatewaysService(s *Service) *TargetVpnGatewaysService { - rs := &TargetVpnGatewaysService{s: s} - return rs -} - -type TargetVpnGatewaysService struct { - s *Service -} - -func NewUrlMapsService(s *Service) *UrlMapsService { - rs := &UrlMapsService{s: s} - return rs -} - -type UrlMapsService struct { - s *Service -} - -func NewVpnTunnelsService(s *Service) *VpnTunnelsService { - rs := &VpnTunnelsService{s: s} - return rs -} - -type VpnTunnelsService struct { - s *Service -} - -func NewZoneOperationsService(s *Service) *ZoneOperationsService { - rs := &ZoneOperationsService{s: s} - return rs -} - -type ZoneOperationsService struct { - s *Service -} - -func NewZonesService(s *Service) *ZonesService { - rs := &ZonesService{s: s} - return rs -} - -type ZonesService struct { - s *Service -} - -type AccessConfig struct { - // Kind: [Output Only] Type of the resource. Always compute#accessConfig - // for access configs. - Kind string `json:"kind,omitempty"` - - // Name: Name of this access configuration. - Name string `json:"name,omitempty"` - - // NatIP: 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. - NatIP string `json:"natIP,omitempty"` - - // Type: The type of configuration. The default and only option is - // ONE_TO_ONE_NAT. - // - // Possible values: - // "ONE_TO_ONE_NAT" (default) - Type string `json:"type,omitempty"` -} - -type Address struct { - // Address: The static external IP address represented by this resource. - Address string `json:"address,omitempty"` - - // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text - // format. - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Description: An optional textual description of the resource; - // provided by the client when the resource is created. - Description string `json:"description,omitempty"` - - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id uint64 `json:"id,omitempty,string"` - - // Kind: [Output Only] Type of the resource. Always compute#address for - // addresses. - Kind string `json:"kind,omitempty"` - - // Name: Name of the resource; provided by the client when the resource - // is created. The name must be 1-63 characters long, and comply with - // RFC1035. Specifically, the name must be 1-63 characters long and - // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means - // the first character must be a lowercase letter, and all following - // characters must be a dash, lowercase letter, or digit, except the - // last character, which cannot be a dash. - Name string `json:"name,omitempty"` - - // Region: [Output Only] URL of the region where the regional address - // resides. This field is not applicable to global addresses. - Region string `json:"region,omitempty"` - - // SelfLink: [Output Only] Server defined URL for the resource. - SelfLink string `json:"selfLink,omitempty"` - - // Status: [Output Only] The status of the address, which can be either - // IN_USE or RESERVED. An address that is RESERVED is currently reserved - // and available to use. An IN_USE address is currently being used by - // another resource and is not available. - // - // Possible values: - // "IN_USE" - // "RESERVED" - Status string `json:"status,omitempty"` - - // Users: [Output Only] The URLs of the resources that are using this - // address. - Users []string `json:"users,omitempty"` -} - -type AddressAggregatedList struct { - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id string `json:"id,omitempty"` - - // Items: [Output Only] A map of scoped address lists. - Items map[string]AddressesScopedList `json:"items,omitempty"` - - // Kind: [Output Only] Type of resource. Always - // compute#addressAggregatedList for aggregated lists of addresses. - Kind string `json:"kind,omitempty"` - - // NextPageToken: [Output Only] A token used to continue a truncated - // list request. - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: [Output Only] Server defined URL for this resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type AddressList struct { - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id string `json:"id,omitempty"` - - // Items: [Output Only] A list of Address resources. - Items []*Address `json:"items,omitempty"` - - // Kind: [Output Only] Type of resource. Always compute#addressList for - // lists of addresses. - Kind string `json:"kind,omitempty"` - - // NextPageToken: [Output Only] A token used to continue a truncated - // list request. - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: [Output Only] Server defined URL for the resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type AddressesScopedList struct { - // Addresses: [Output Only] List of addresses contained in this scope. - Addresses []*Address `json:"addresses,omitempty"` - - // Warning: [Output Only] Informational warning which replaces the list - // of addresses when the list is empty. - Warning *AddressesScopedListWarning `json:"warning,omitempty"` -} - -type AddressesScopedListWarning struct { - // Code: [Output Only] The warning type identifier for this warning. - // - // Possible values: - // "DEPRECATED_RESOURCE_USED" - // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - // "INJECTED_KERNELS_DEPRECATED" - // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - // "NEXT_HOP_CANNOT_IP_FORWARD" - // "NEXT_HOP_INSTANCE_NOT_FOUND" - // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - // "NEXT_HOP_NOT_RUNNING" - // "NO_RESULTS_ON_PAGE" - // "REQUIRED_TOS_AGREEMENT" - // "RESOURCE_NOT_DELETED" - // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - // "UNREACHABLE" - Code string `json:"code,omitempty"` - - // Data: [Output Only] Metadata for this warning in key: value format. - Data []*AddressesScopedListWarningData `json:"data,omitempty"` - - // Message: [Output Only] Optional human-readable details for this - // warning. - Message string `json:"message,omitempty"` -} - -type AddressesScopedListWarningData struct { - // Key: [Output Only] A key for the warning data. - Key string `json:"key,omitempty"` - - // Value: [Output Only] A warning data value corresponding to the key. - Value string `json:"value,omitempty"` -} - -type AttachedDisk struct { - // AutoDelete: Specifies whether the disk will be auto-deleted when the - // instance is deleted (but not when the disk is detached from the - // instance). - AutoDelete bool `json:"autoDelete,omitempty"` - - // Boot: Indicates that this is a boot disk. The virtual machine will - // use the first partition of the disk for its root filesystem. - Boot bool `json:"boot,omitempty"` - - // DeviceName: Specifies a unique device name of your choice that is - // reflected into the /dev/ tree of a Linux operating system running - // within the instance. This name can be used to reference the device - // for mounting, resizing, and so on, from within the instance. - // - // If not specified, the server chooses a default device name to apply - // to this disk, in the form persistent-disks-x, where x is a number - // assigned by Google Compute Engine. This field is only applicable for - // persistent disks. - DeviceName string `json:"deviceName,omitempty"` - - // DiskMasterKey: [Obsolete] Master key of the disk; required only if - // the disk already exists and is master key protected. If the disk is - // being created and a master key is provided, the newly created disk - // will be protected with this master key. Format: Random 256-bit key - // material encoded in base64. - DiskMasterKey string `json:"diskMasterKey,omitempty"` - - // Index: Assigns a zero-based index to this disk, where 0 is reserved - // for the boot disk. For example, if you have many disks attached to an - // instance, each disk would have a unique index number. If not - // specified, the server will choose an appropriate value. - Index int64 `json:"index,omitempty"` - - // InitializeParams: [Input Only] Specifies the parameters for a new - // disk that will be created alongside the new instance. Use - // initialization parameters to create boot disks or local SSDs attached - // to the new instance. - // - // This property is mutually exclusive with the source property; you can - // only define one or the other, but not both. - InitializeParams *AttachedDiskInitializeParams `json:"initializeParams,omitempty"` - - // Possible values: - // "NVME" - // "SCSI" - Interface string `json:"interface,omitempty"` - - // Kind: [Output Only] Type of the resource. Always compute#attachedDisk - // for attached disks. - Kind string `json:"kind,omitempty"` - - // Licenses: [Output Only] Any valid publicly visible licenses. - Licenses []string `json:"licenses,omitempty"` - - // Mode: The mode in which to attach this disk, either READ_WRITE or - // READ_ONLY. If not specified, the default is to attach the disk in - // READ_WRITE mode. - // - // Possible values: - // "READ_ONLY" - // "READ_WRITE" - Mode string `json:"mode,omitempty"` - - // Source: Specifies a valid partial or full URL to an existing - // Persistent Disk resource. This field is only applicable for - // persistent disks. - Source string `json:"source,omitempty"` - - // Type: Specifies the type of the disk, either SCRATCH or PERSISTENT. - // If not specified, the default is PERSISTENT. - // - // Possible values: - // "PERSISTENT" - // "SCRATCH" - Type string `json:"type,omitempty"` -} - -type AttachedDiskInitializeParams struct { - // DiskName: Specifies the disk name. If not specified, the default is - // to use the name of the instance. - DiskName string `json:"diskName,omitempty"` - - // DiskSizeGb: Specifies the size of the disk in base-2 GB. - DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // DiskStorageType: Storage type of the disk. - // - // Possible values: - // "HDD" - // "SSD" - DiskStorageType string `json:"diskStorageType,omitempty"` - - // DiskType: Specifies the disk type to use to create the instance. If - // not specified, the default is pd-standard, specified using the full - // URL. For - // example: - // - // https://www.googleapis.com/compute/v1/projects/project/zones - // /zone/diskTypes/pd-standard - // - // Other values include pd-ssd and local-ssd. If you define this field, - // you can provide either the full or partial URL. For example, the - // following are valid values: - // - - // https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk - // Types/diskType - // - projects/project/zones/zone/diskTypes/diskType - // - zones/zone/diskTypes/diskType - DiskType string `json:"diskType,omitempty"` - - // SourceImage: A source image used to create the disk. You can provide - // a private (custom) image, and Compute Engine will use the - // corresponding image from your project. For - // example: - // - // global/images/my-private-image - // - // Or you can provide an image from a publicly-available project. For - // example, to use a Debian image from the debian-cloud project, make - // sure to include the project in the - // URL: - // - // projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD - // - // where vYYYYMMDD is the image version. The fully-qualified URL will - // also work in both cases. - SourceImage string `json:"sourceImage,omitempty"` - - // SourceImageMasterKey: [Obsolete] Master key of the source image; - // required only if the source image is master key protected. Format: - // Random 256-bit key material encoded in Base 64. - SourceImageMasterKey string `json:"sourceImageMasterKey,omitempty"` -} - -type Backend struct { - // BalancingMode: The balancing mode of this backend, default is - // UTILIZATION. - // - // Possible values: - // "RATE" - // "UTILIZATION" - BalancingMode string `json:"balancingMode,omitempty"` - - // CapacityScaler: The multiplier (a value between 0 and 1e6) of the max - // capacity (CPU or RPS, depending on 'balancingMode') the group should - // serve up to. 0 means the group is totally drained. Default value is - // 1. Valid range is [0, 1e6]. - CapacityScaler float64 `json:"capacityScaler,omitempty"` - - // Description: An optional textual description of the resource, which - // is provided by the client when the resource is created. - Description string `json:"description,omitempty"` - - // Group: URL of a zonal Cloud Resource View resource. This resource - // view defines the list of instances that serve traffic. Member virtual - // machine instances from each resource view must live in the same zone - // as the resource view itself. No two backends in a backend service are - // allowed to use same Resource View resource. - Group string `json:"group,omitempty"` - - // MaxRate: The max RPS of the group. Can be used with either balancing - // mode, but required if RATE mode. For RATE mode, either maxRate or - // maxRatePerInstance must be set. - MaxRate int64 `json:"maxRate,omitempty"` - - // MaxRatePerInstance: The max RPS that a single backed instance can - // handle. This is used to calculate the capacity of the group. Can be - // used in either balancing mode. For RATE mode, either maxRate or - // maxRatePerInstance must be set. - MaxRatePerInstance float64 `json:"maxRatePerInstance,omitempty"` - - // MaxUtilization: Used when 'balancingMode' is UTILIZATION. This ratio - // defines the CPU utilization target for the group. The default is 0.8. - // Valid range is [0, 1]. - MaxUtilization float64 `json:"maxUtilization,omitempty"` -} - -type BackendService struct { - // Backends: The list of backends that serve this BackendService. - Backends []*Backend `json:"backends,omitempty"` - - // CreationTimestamp: Creation timestamp in RFC3339 text format (output - // only). - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Description: An optional textual description of the resource; - // provided by the client when the resource is created. - 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 BackendService. An up-to-date - // fingerprint must be provided in order to update the BackendService. - Fingerprint string `json:"fingerprint,omitempty"` - - // HealthChecks: The list of URLs to the HttpHealthCheck resource for - // health checking this BackendService. Currently at most one health - // check can be specified, and a health check is required. - HealthChecks []string `json:"healthChecks,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id uint64 `json:"id,omitempty,string"` - - // Kind: Type of the resource. - Kind string `json:"kind,omitempty"` - - // Name: Name of the resource; provided by the client when the resource - // is created. The name must be 1-63 characters long, and comply with - // RFC1035. - Name string `json:"name,omitempty"` - - // Port: Deprecated in favor of port_name. The TCP port to connect on - // the backend. The default value is 80. - Port int64 `json:"port,omitempty"` - - // PortName: Name of backend port. The same name should appear in the - // resource views referenced by this service. Required. - PortName string `json:"portName,omitempty"` - - // Possible values: - // "HTTP" - // "HTTPS" - Protocol string `json:"protocol,omitempty"` - - // SelfLink: Server defined URL for the resource (output only). - SelfLink string `json:"selfLink,omitempty"` - - // TimeoutSec: How many seconds to wait for the backend before - // considering it a failed request. Default is 30 seconds. - TimeoutSec int64 `json:"timeoutSec,omitempty"` -} - -type BackendServiceGroupHealth struct { - HealthStatus []*HealthStatus `json:"healthStatus,omitempty"` - - // Kind: Type of resource. - Kind string `json:"kind,omitempty"` -} - -type BackendServiceList struct { - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id string `json:"id,omitempty"` - - // Items: A list of BackendService resources. - Items []*BackendService `json:"items,omitempty"` - - // Kind: Type of resource. - Kind string `json:"kind,omitempty"` - - // NextPageToken: A token used to continue a truncated list request - // (output only). - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: Server defined URL for this resource (output only). - SelfLink string `json:"selfLink,omitempty"` -} - -type DeprecationStatus struct { - // Deleted: An optional RFC3339 timestamp on or after which the - // deprecation state of this resource will be changed to DELETED. - Deleted string `json:"deleted,omitempty"` - - // Deprecated: An optional RFC3339 timestamp on or after which the - // deprecation state of this resource will be changed to DEPRECATED. - Deprecated string `json:"deprecated,omitempty"` - - // Obsolete: An optional RFC3339 timestamp on or after which the - // deprecation state of this resource will be changed to OBSOLETE. - Obsolete string `json:"obsolete,omitempty"` - - // Replacement: The URL of the suggested replacement for a deprecated - // resource. The suggested replacement resource must be the same kind of - // resource as the deprecated resource. - Replacement string `json:"replacement,omitempty"` - - // State: The deprecation state of this resource. This can be - // DEPRECATED, OBSOLETE, or DELETED. Operations which create a new - // resource using a DEPRECATED resource will return successfully, but - // with a warning indicating the deprecated resource and recommending - // its replacement. Operations which use OBSOLETE or DELETED resources - // will be rejected and result in an error. - // - // Possible values: - // "DELETED" - // "DEPRECATED" - // "OBSOLETE" - State string `json:"state,omitempty"` -} - -type Disk struct { - // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text - // format. - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Description: An optional textual description of the resource; - // provided by the client when the resource is created. - Description string `json:"description,omitempty"` - - // DiskMasterKey: [Obsolete] Specifies the master key to protect the - // disk. When attempting to use a disk that is protected by a master - // key, you must provide the correct key, otherwise, the request will - // fail. Master keys do not protect access to metadata about the - // resource. - // - // If you are setting a master key, the required key format is a random - // 256-bit string encoded in base64. - DiskMasterKey string `json:"diskMasterKey,omitempty"` - - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id uint64 `json:"id,omitempty,string"` - - // Kind: [Output Only] Type of the resource. Always compute#disk for - // disks. - Kind string `json:"kind,omitempty"` - - // Licenses: Any applicable publicly visible licenses. - Licenses []string `json:"licenses,omitempty"` - - // Name: Name of the resource; provided by the client when the resource - // is created. The name must be 1-63 characters long, and comply with - // RFC1035. Specifically, the name must be 1-63 characters long and - // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means - // the first character must be a lowercase letter, and all following - // characters must be a dash, lowercase letter, or digit, except the - // last character, which cannot be a dash. - Name string `json:"name,omitempty"` - - // Options: Internal use only. - Options string `json:"options,omitempty"` - - // SelfLink: [Output Only] Server-defined fully-qualified URL for this - // resource. - SelfLink string `json:"selfLink,omitempty"` - - // SizeGb: Size of the persistent disk, specified in GB. You can specify - // this field when creating a persistent disk using the sourceImage or - // sourceSnapshot parameter, or specify it alone to create an empty - // persistent disk. - // - // If you specify this field along with sourceImage or sourceSnapshot, - // the value of sizeGb must not be less than the size of the sourceImage - // or the size of the snapshot. - SizeGb int64 `json:"sizeGb,omitempty,string"` - - // SourceImage: The source image used to create this disk. If the source - // image is deleted from the system, this field will not be set, even if - // an image with the same name has been re-created. - // - // When creating a disk, you can provide a private (custom) image using - // the following input, and Compute Engine will use the corresponding - // image from your project. For example: - // - // global/images/my-private-image - // - // Or you can provide an image from a publicly-available project. For - // example, to use a Debian image from the debian-cloud project, make - // sure to include the project in the - // URL: - // - // projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD - // - // where vYYYYMMDD is the image version. The fully-qualified URL will - // also work in both cases. - SourceImage string `json:"sourceImage,omitempty"` - - // SourceImageId: The ID value of the image used to create this disk. - // This value identifies the exact image that was used to create this - // persistent disk. For example, if you created the persistent disk from - // an image that was later deleted and recreated under the same name, - // the source image ID would identify the exact version of the image - // that was used. - SourceImageId string `json:"sourceImageId,omitempty"` - - // SourceImageMasterKey: [Obsolete] Specifies the master key of the - // source image you are using. This key gives you access to the use the - // image and is required if the source image is master key - // protected. - // - // The required key format is a random 256-bit string encoded in base64. - SourceImageMasterKey string `json:"sourceImageMasterKey,omitempty"` - - // SourceSnapshot: The source snapshot used to create this disk. You can - // provide this as a partial or full URL to the resource. For example, - // the following are valid values: - // - - // https://www.googleapis.com/compute/v1/projects/project/global/snapshot - // s/snapshot - // - projects/project/global/snapshots/snapshot - // - global/snapshots/snapshot - SourceSnapshot string `json:"sourceSnapshot,omitempty"` - - // SourceSnapshotId: [Output Only] The unique ID of the snapshot used to - // create this disk. This value identifies the exact snapshot that was - // used to create this persistent disk. For example, if you created the - // persistent disk from a snapshot that was later deleted and recreated - // under the same name, the source snapshot ID would identify the exact - // version of the snapshot that was used. - SourceSnapshotId string `json:"sourceSnapshotId,omitempty"` - - // SourceSnapshotMasterKey: [Obsolete] Specifies the master key of the - // source snapshot you are using. This gives you access to the use the - // snapshot and is required if the source snapshot is master key - // protected. - // - // The required key format is a random 256-bit string encoded in base64. - SourceSnapshotMasterKey string `json:"sourceSnapshotMasterKey,omitempty"` - - // Status: [Output Only] The status of disk creation. Applicable - // statuses includes: CREATING, FAILED, READY, RESTORING. - // - // Possible values: - // "CREATING" - // "FAILED" - // "READY" - // "RESTORING" - Status string `json:"status,omitempty"` - - // StorageType: [Deprecated] Storage type of the persistent disk. - // - // Possible values: - // "HDD" - // "SSD" - StorageType string `json:"storageType,omitempty"` - - // Type: URL of the disk type resource describing which disk type to use - // to create the disk; provided by the client when the disk is created. - Type string `json:"type,omitempty"` - - // Zone: [Output Only] URL of the zone where the disk resides. - Zone string `json:"zone,omitempty"` -} - -type DiskAggregatedList struct { - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id string `json:"id,omitempty"` - - // Items: [Output Only] A map of scoped disk lists. - Items map[string]DisksScopedList `json:"items,omitempty"` - - // Kind: [Output Only] Type of resource. Always - // compute#diskAggregatedList for aggregated lists of persistent disks. - Kind string `json:"kind,omitempty"` - - // NextPageToken: [Output Only] A token used to continue a truncated - // list request. - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: [Output Only] Server defined URL for this resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type DiskList struct { - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id string `json:"id,omitempty"` - - // Items: [Output Only] A list of persistent disks. - Items []*Disk `json:"items,omitempty"` - - // Kind: [Output Only] Type of resource. Always compute#diskList for - // lists of disks. - Kind string `json:"kind,omitempty"` - - // NextPageToken: [Output Only] A token used to continue a truncated - // list request. - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: [Output Only] Server defined URL for this resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type DiskType struct { - // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text - // format. - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // DefaultDiskSizeGb: [Output Only] Server defined default disk size in - // GB. - DefaultDiskSizeGb int64 `json:"defaultDiskSizeGb,omitempty,string"` - - // Deprecated: [Output Only] The deprecation status associated with this - // disk type. - Deprecated *DeprecationStatus `json:"deprecated,omitempty"` - - // Description: [Output Only] An optional textual description of the - // resource. - Description string `json:"description,omitempty"` - - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id uint64 `json:"id,omitempty,string"` - - // Kind: [Output Only] Type of the resource. Always compute#diskType for - // disk types. - Kind string `json:"kind,omitempty"` - - // Name: [Output Only] Name of the resource. - Name string `json:"name,omitempty"` - - // SelfLink: [Output Only] Server defined URL for the resource. - SelfLink string `json:"selfLink,omitempty"` - - // ValidDiskSize: [Output Only] An optional textual description of the - // valid disk size, such as "10GB-10TB". - ValidDiskSize string `json:"validDiskSize,omitempty"` - - // Zone: [Output Only] URL of the zone where the disk type resides. - Zone string `json:"zone,omitempty"` -} - -type DiskTypeAggregatedList struct { - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id string `json:"id,omitempty"` - - // Items: [Output Only] A map of scoped disk type lists. - Items map[string]DiskTypesScopedList `json:"items,omitempty"` - - // Kind: [Output Only] Type of resource. Always - // compute#diskTypeAggregatedList. - Kind string `json:"kind,omitempty"` - - // NextPageToken: [Output Only] A token used to continue a truncated - // list request. - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: [Output Only] Server defined URL for this resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type DiskTypeList struct { - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id string `json:"id,omitempty"` - - // Items: [Output Only] A list of Disk Type resources. - Items []*DiskType `json:"items,omitempty"` - - // Kind: [Output Only] Type of resource. Always compute#diskTypeList for - // disk types. - Kind string `json:"kind,omitempty"` - - // NextPageToken: [Output Only] A token used to continue a truncated - // list request. - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: [Output Only] Server defined URL for this resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type DiskTypesScopedList struct { - // DiskTypes: [Output Only] List of disk types contained in this scope. - DiskTypes []*DiskType `json:"diskTypes,omitempty"` - - // Warning: [Output Only] Informational warning which replaces the list - // of disk types when the list is empty. - Warning *DiskTypesScopedListWarning `json:"warning,omitempty"` -} - -type DiskTypesScopedListWarning struct { - // Code: [Output Only] The warning type identifier for this warning. - // - // Possible values: - // "DEPRECATED_RESOURCE_USED" - // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - // "INJECTED_KERNELS_DEPRECATED" - // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - // "NEXT_HOP_CANNOT_IP_FORWARD" - // "NEXT_HOP_INSTANCE_NOT_FOUND" - // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - // "NEXT_HOP_NOT_RUNNING" - // "NO_RESULTS_ON_PAGE" - // "REQUIRED_TOS_AGREEMENT" - // "RESOURCE_NOT_DELETED" - // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - // "UNREACHABLE" - Code string `json:"code,omitempty"` - - // Data: [Output Only] Metadata for this warning in key: value format. - Data []*DiskTypesScopedListWarningData `json:"data,omitempty"` - - // Message: [Output Only] Optional human-readable details for this - // warning. - Message string `json:"message,omitempty"` -} - -type DiskTypesScopedListWarningData struct { - // Key: [Output Only] A key for the warning data. - Key string `json:"key,omitempty"` - - // Value: [Output Only] A warning data value corresponding to the key. - Value string `json:"value,omitempty"` -} - -type DisksScopedList struct { - // Disks: [Output Only] List of disks contained in this scope. - Disks []*Disk `json:"disks,omitempty"` - - // Warning: [Output Only] Informational warning which replaces the list - // of disks when the list is empty. - Warning *DisksScopedListWarning `json:"warning,omitempty"` -} - -type DisksScopedListWarning struct { - // Code: [Output Only] The warning type identifier for this warning. - // - // Possible values: - // "DEPRECATED_RESOURCE_USED" - // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - // "INJECTED_KERNELS_DEPRECATED" - // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - // "NEXT_HOP_CANNOT_IP_FORWARD" - // "NEXT_HOP_INSTANCE_NOT_FOUND" - // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - // "NEXT_HOP_NOT_RUNNING" - // "NO_RESULTS_ON_PAGE" - // "REQUIRED_TOS_AGREEMENT" - // "RESOURCE_NOT_DELETED" - // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - // "UNREACHABLE" - Code string `json:"code,omitempty"` - - // Data: [Output Only] Metadata for this warning in key: value format. - Data []*DisksScopedListWarningData `json:"data,omitempty"` - - // Message: [Output Only] Optional human-readable details for this - // warning. - Message string `json:"message,omitempty"` -} - -type DisksScopedListWarningData struct { - // Key: [Output Only] A key for the warning data. - Key string `json:"key,omitempty"` - - // Value: [Output Only] A warning data value corresponding to the key. - Value string `json:"value,omitempty"` -} - -type Firewall struct { - // Allowed: The list of rules specified by this firewall. Each rule - // specifies a protocol and port-range tuple that describes a permitted - // connection. - Allowed []*FirewallAllowed `json:"allowed,omitempty"` - - // CreationTimestamp: [Output Only] Creation timestamp in RFC3339text - // format. - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Description: An optional textual description of the resource; - // provided by the client when the resource is created. - Description string `json:"description,omitempty"` - - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id uint64 `json:"id,omitempty,string"` - - // Kind: [Output Ony] Type of the resource. Always compute#firewall for - // firewall rules. - Kind string `json:"kind,omitempty"` - - // Name: Name of the resource; provided by the client when the resource - // is created. The name must be 1-63 characters long, and comply with - // RFC1035. Specifically, the name must be 1-63 characters long and - // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means - // the first character must be a lowercase letter, and all following - // characters must be a dash, lowercase letter, or digit, except the - // last character, which cannot be a dash. - Name string `json:"name,omitempty"` - - // Network: URL of the network resource for this firewall rule. This - // field is required for creating an instance but optional when creating - // a firewall rule. If not specified when creating a firewall rule, the - // default network is used: - // global/networks/default - // If you choose to specify this property, you can specify the network - // as a full or partial URL. For example, the following are all valid - // URLs: - // - - // https://www.googleapis.com/compute/v1/projects/myproject/global/networ - // ks/my-network - // - projects/myproject/global/networks/my-network - // - global/networks/default - Network string `json:"network,omitempty"` - - // SelfLink: [Output Only] Server defined URL for the resource. - SelfLink string `json:"selfLink,omitempty"` - - // SourceRanges: The IP address blocks that this rule applies to, - // expressed in CIDR format. One or both of sourceRanges and sourceTags - // may be set. - // - // If both properties are set, an inbound connection is allowed if the - // range or the tag of the source matches the sourceRanges OR matches - // the sourceTags property; the connection does not need to match both - // properties. - SourceRanges []string `json:"sourceRanges,omitempty"` - - // SourceTags: A list of instance tags which this rule applies to. One - // or both of sourceRanges and sourceTags may be set. - // - // If both properties are set, an inbound connection is allowed if the - // range or the tag of the source matches the sourceRanges OR matches - // the sourceTags property; the connection does not need to match both - // properties. - SourceTags []string `json:"sourceTags,omitempty"` - - // TargetTags: A list of instance tags indicating sets of instances - // located on network which may make network connections as specified in - // allowed[]. If no targetTags are specified, the firewall rule applies - // to all instances on the specified network. - TargetTags []string `json:"targetTags,omitempty"` -} - -type FirewallAllowed struct { - // IPProtocol: The IP protocol that is allowed for this rule. The - // protocol type is required when creating a firewall. This value can - // either be one of the following well known protocol strings (tcp, udp, - // icmp, esp, ah, sctp), or the IP protocol number. - IPProtocol string `json:"IPProtocol,omitempty"` - - // Ports: An optional list of ports which are allowed. This field is - // only applicable for UDP or TCP protocol. Each entry must be either an - // integer or a range. If not specified, connections through any port - // are allowed - // - // Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. - Ports []string `json:"ports,omitempty"` -} - -type FirewallList struct { - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id string `json:"id,omitempty"` - - // Items: [Output Only] A list of Firewall resources. - Items []*Firewall `json:"items,omitempty"` - - // Kind: [Output Only] Type of resource. Always compute#firewallList for - // lists of firewalls. - Kind string `json:"kind,omitempty"` - - // NextPageToken: [Output Only] A token used to continue a truncated - // list request. - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: [Output Only] Server defined URL for this resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type ForwardingRule struct { - // IPAddress: Value of the reserved IP address that this forwarding rule - // is serving on behalf of. For global forwarding rules, the address - // must be a global IP; for regional forwarding rules, the address must - // live in the same region as the forwarding rule. If left empty - // (default value), an ephemeral IP from the same scope (global or - // regional) will be assigned. - IPAddress string `json:"IPAddress,omitempty"` - - // IPProtocol: The IP protocol to which this rule applies, valid options - // are 'TCP', 'UDP', 'ESP', 'AH' or 'SCTP'. - // - // Possible values: - // "AH" - // "ESP" - // "SCTP" - // "TCP" - // "UDP" - IPProtocol string `json:"IPProtocol,omitempty"` - - // CreationTimestamp: Creation timestamp in RFC3339 text format (output - // only). - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Description: An optional textual description of the resource; - // provided by the client when the resource is created. - Description string `json:"description,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id uint64 `json:"id,omitempty,string"` - - // Kind: Type of the resource. - Kind string `json:"kind,omitempty"` - - // Name: Name of the resource; provided by the client when the resource - // is created. The name must be 1-63 characters long, and comply with - // RFC1035. - Name string `json:"name,omitempty"` - - // PortRange: Applicable only when 'IPProtocol' is 'TCP', 'UDP' or - // 'SCTP', only packets addressed to ports in the specified range will - // be forwarded to 'target'. If 'portRange' is left empty (default - // value), all ports are forwarded. Forwarding rules with the same - // [IPAddress, IPProtocol] pair must have disjoint port ranges. - PortRange string `json:"portRange,omitempty"` - - // Region: URL of the region where the regional forwarding rule resides - // (output only). This field is not applicable to global forwarding - // rules. - Region string `json:"region,omitempty"` - - // SelfLink: Server defined URL for the resource (output only). - SelfLink string `json:"selfLink,omitempty"` - - // Target: The URL of the target resource to receive the matched - // traffic. For regional forwarding rules, this target must live in the - // same region as the forwarding rule. For global forwarding rules, this - // target must be a global TargetHttpProxy resource. - Target string `json:"target,omitempty"` -} - -type ForwardingRuleAggregatedList struct { - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id string `json:"id,omitempty"` - - // Items: A map of scoped forwarding rule lists. - Items map[string]ForwardingRulesScopedList `json:"items,omitempty"` - - // Kind: Type of resource. - Kind string `json:"kind,omitempty"` - - // NextPageToken: A token used to continue a truncated list request - // (output only). - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: Server defined URL for this resource (output only). - SelfLink string `json:"selfLink,omitempty"` -} - -type ForwardingRuleList struct { - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id string `json:"id,omitempty"` - - // Items: A list of ForwardingRule resources. - Items []*ForwardingRule `json:"items,omitempty"` - - // Kind: Type of resource. - Kind string `json:"kind,omitempty"` - - // NextPageToken: A token used to continue a truncated list request - // (output only). - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: Server defined URL for this resource (output only). - SelfLink string `json:"selfLink,omitempty"` -} - -type ForwardingRulesScopedList struct { - // ForwardingRules: List of forwarding rules contained in this scope. - ForwardingRules []*ForwardingRule `json:"forwardingRules,omitempty"` - - // Warning: Informational warning which replaces the list of forwarding - // rules when the list is empty. - Warning *ForwardingRulesScopedListWarning `json:"warning,omitempty"` -} - -type ForwardingRulesScopedListWarning struct { - // Code: [Output Only] The warning type identifier for this warning. - // - // Possible values: - // "DEPRECATED_RESOURCE_USED" - // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - // "INJECTED_KERNELS_DEPRECATED" - // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - // "NEXT_HOP_CANNOT_IP_FORWARD" - // "NEXT_HOP_INSTANCE_NOT_FOUND" - // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - // "NEXT_HOP_NOT_RUNNING" - // "NO_RESULTS_ON_PAGE" - // "REQUIRED_TOS_AGREEMENT" - // "RESOURCE_NOT_DELETED" - // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - // "UNREACHABLE" - Code string `json:"code,omitempty"` - - // Data: [Output Only] Metadata for this warning in key: value format. - Data []*ForwardingRulesScopedListWarningData `json:"data,omitempty"` - - // Message: [Output Only] Optional human-readable details for this - // warning. - Message string `json:"message,omitempty"` -} - -type ForwardingRulesScopedListWarningData struct { - // Key: [Output Only] A key for the warning data. - Key string `json:"key,omitempty"` - - // Value: [Output Only] A warning data value corresponding to the key. - Value string `json:"value,omitempty"` -} - -type HealthCheckReference struct { - HealthCheck string `json:"healthCheck,omitempty"` -} - -type HealthStatus struct { - // HealthState: Health state of the instance. - // - // Possible values: - // "HEALTHY" - // "UNHEALTHY" - HealthState string `json:"healthState,omitempty"` - - // Instance: URL of the instance resource. - Instance string `json:"instance,omitempty"` - - // IpAddress: The IP address represented by this resource. - IpAddress string `json:"ipAddress,omitempty"` - - // Port: The port on the instance. - Port int64 `json:"port,omitempty"` -} - -type HostRule struct { - Description string `json:"description,omitempty"` - - // Hosts: The list of host patterns to match. They must be valid - // hostnames except that they may start with *. or *-. The * acts like a - // glob and will match any string of atoms (separated by .s and -s) to - // the left. - Hosts []string `json:"hosts,omitempty"` - - // PathMatcher: The name of the PathMatcher to match the path portion of - // the URL, if the this HostRule matches the URL's host portion. - PathMatcher string `json:"pathMatcher,omitempty"` -} - -type HttpHealthCheck struct { - // CheckIntervalSec: How often (in seconds) to send a health check. The - // default value is 5 seconds. - CheckIntervalSec int64 `json:"checkIntervalSec,omitempty"` - - // CreationTimestamp: Creation timestamp in RFC3339 text format (output - // only). - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Description: An optional textual description of the resource; - // provided by the client when the resource is created. - Description string `json:"description,omitempty"` - - // HealthyThreshold: A so-far unhealthy VM will be marked healthy after - // this many consecutive successes. The default value is 2. - HealthyThreshold int64 `json:"healthyThreshold,omitempty"` - - // Host: The value of the host header in the HTTP health check request. - // If left empty (default value), the public IP on behalf of which this - // health check is performed will be used. - Host string `json:"host,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id uint64 `json:"id,omitempty,string"` - - // Kind: Type of the resource. - Kind string `json:"kind,omitempty"` - - // Name: Name of the resource; provided by the client when the resource - // is created. The name must be 1-63 characters long, and comply with - // RFC1035. - Name string `json:"name,omitempty"` - - // Port: The TCP port number for the HTTP health check request. The - // default value is 80. - Port int64 `json:"port,omitempty"` - - // RequestPath: The request path of the HTTP health check request. The - // default value is "/". - RequestPath string `json:"requestPath,omitempty"` - - // SelfLink: Server defined URL for the resource (output only). - SelfLink string `json:"selfLink,omitempty"` - - // TimeoutSec: How long (in seconds) to wait before claiming failure. - // The default value is 5 seconds. It is invalid for timeoutSec to have - // greater value than checkIntervalSec. - TimeoutSec int64 `json:"timeoutSec,omitempty"` - - // UnhealthyThreshold: A so-far healthy VM will be marked unhealthy - // after this many consecutive failures. The default value is 2. - UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"` -} - -type HttpHealthCheckList struct { - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id string `json:"id,omitempty"` - - // Items: A list of HttpHealthCheck resources. - Items []*HttpHealthCheck `json:"items,omitempty"` - - // Kind: Type of resource. - Kind string `json:"kind,omitempty"` - - // NextPageToken: A token used to continue a truncated list request - // (output only). - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: Server defined URL for this resource (output only). - SelfLink string `json:"selfLink,omitempty"` -} - -type HttpsHealthCheck struct { - // CheckIntervalSec: How often (in seconds) to send a health check. The - // default value is 5 seconds. - CheckIntervalSec int64 `json:"checkIntervalSec,omitempty"` - - // CreationTimestamp: Creation timestamp in RFC3339 text format (output - // only). - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Description: An optional textual description of the resource; - // provided by the client when the resource is created. - Description string `json:"description,omitempty"` - - // HealthyThreshold: A so-far unhealthy VM will be marked healthy after - // this many consecutive successes. The default value is 2. - HealthyThreshold int64 `json:"healthyThreshold,omitempty"` - - // Host: The value of the host header in the HTTPS health check request. - // If left empty (default value), the public IP on behalf of which this - // health check is performed will be used. - Host string `json:"host,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id uint64 `json:"id,omitempty,string"` - - // Kind: Type of the resource. - Kind string `json:"kind,omitempty"` - - // Name: Name of the resource; provided by the client when the resource - // is created. The name must be 1-63 characters long, and comply with - // RFC1035. - Name string `json:"name,omitempty"` - - // Port: The TCP port number for the HTTPS health check request. The - // default value is 443. - Port int64 `json:"port,omitempty"` - - // RequestPath: The request path of the HTTPS health check request. The - // default value is "/". - RequestPath string `json:"requestPath,omitempty"` - - // SelfLink: Server defined URL for the resource (output only). - SelfLink string `json:"selfLink,omitempty"` - - // TimeoutSec: How long (in seconds) to wait before claiming failure. - // The default value is 5 seconds. It is invalid for timeoutSec to have - // a greater value than checkIntervalSec. - TimeoutSec int64 `json:"timeoutSec,omitempty"` - - // UnhealthyThreshold: A so-far healthy VM will be marked unhealthy - // after this many consecutive failures. The default value is 2. - UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"` -} - -type HttpsHealthCheckList struct { - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id string `json:"id,omitempty"` - - // Items: A list of HttpsHealthCheck resources. - Items []*HttpsHealthCheck `json:"items,omitempty"` - - // Kind: Type of resource. - Kind string `json:"kind,omitempty"` - - // NextPageToken: A token used to continue a truncated list request - // (output only). - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: Server defined URL for this resource (output only). - SelfLink string `json:"selfLink,omitempty"` -} - -type Image struct { - // ArchiveSizeBytes: Size of the image tar.gz archive stored in Google - // Cloud Storage (in bytes). - ArchiveSizeBytes int64 `json:"archiveSizeBytes,omitempty,string"` - - // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text - // format. - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Deprecated: The deprecation status associated with this image. - Deprecated *DeprecationStatus `json:"deprecated,omitempty"` - - // Description: Textual description of the resource; provided by the - // client when the resource is created. - Description string `json:"description,omitempty"` - - // DiskSizeGb: Size of the image when restored onto a persistent disk - // (in GB). - DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id uint64 `json:"id,omitempty,string"` - - // ImageMasterKey: [Obsolete] Specifies the master key to protect this - // image. When attempting to use an image that is protected by a master - // key, you must provide the correct key, otherwise, the request will - // fail. Master keys do not protect access to metadata about the - // resource. - // - // If you are setting a master key, the required key format is a random - // 256-bit string encoded in base64. - ImageMasterKey string `json:"imageMasterKey,omitempty"` - - // Kind: [Output Only] Type of the resource. Always compute#image for - // images. - Kind string `json:"kind,omitempty"` - - // Licenses: Any applicable publicly visible licenses. - Licenses []string `json:"licenses,omitempty"` - - // Name: Name of the resource; provided by the client when the resource - // is created. The name must be 1-63 characters long, and comply with - // RFC1035. Specifically, the name must be 1-63 characters long and - // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means - // the first character must be a lowercase letter, and all following - // characters must be a dash, lowercase letter, or digit, except the - // last character, which cannot be a dash. - Name string `json:"name,omitempty"` - - // RawDisk: The parameters of the raw disk image. - RawDisk *ImageRawDisk `json:"rawDisk,omitempty"` - - // SelfLink: [Output Only] Server defined URL for the resource. - SelfLink string `json:"selfLink,omitempty"` - - // SourceDisk: URL of the The source disk used to create this image. - // This can be a full or valid partial URL. You must provide either this - // property or the rawDisk.source property but not both to create an - // image. For example, the following are valid values: - // - - // https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk - // /disk - // - projects/project/zones/zone/disk/disk - // - zones/zone/disks/disk - SourceDisk string `json:"sourceDisk,omitempty"` - - // SourceDiskId: 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. - SourceDiskId string `json:"sourceDiskId,omitempty"` - - // SourceDiskMasterKey: [Obsolete] Specifies the master key of the - // source disk you are using. This field gives you access to the disk - // and is required if the source disk is master key protected. Format: - // Random 256-bit key material encoded in base64. - SourceDiskMasterKey string `json:"sourceDiskMasterKey,omitempty"` - - // SourceType: The type of the image used to create this disk. The - // default and only value is RAW - // - // Possible values: - // "RAW" (default) - SourceType string `json:"sourceType,omitempty"` - - // Status: [Output Only] The status of the image. An image can be used - // to create other resources, such as instances, only after the image - // has been successfully created and the status is set to READY. - // Possible values are FAILED, PENDING, or READY. - // - // Possible values: - // "FAILED" - // "PENDING" - // "READY" - Status string `json:"status,omitempty"` -} - -type ImageRawDisk struct { - // ContainerType: The format used to encode and transmit the block - // device, which should be TAR. This is just a container and - // transmission format and not a runtime format. Provided by the client - // when the disk image is created. - // - // Possible values: - // "TAR" - ContainerType string `json:"containerType,omitempty"` - - // Sha1Checksum: An optional SHA1 checksum of the disk image before - // unpackaging; provided by the client when the disk image is created. - Sha1Checksum string `json:"sha1Checksum,omitempty"` - - // Source: The full Google Cloud Storage URL where the disk image is - // stored. You must provide either this property or the sourceDisk - // property but not both. - Source string `json:"source,omitempty"` -} - -type ImageList struct { - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id string `json:"id,omitempty"` - - // Items: A list of Image resources. - Items []*Image `json:"items,omitempty"` - - // Kind: Type of resource. - Kind string `json:"kind,omitempty"` - - // NextPageToken: A token used to continue a truncated list request - // (output only). - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: Server defined URL for this resource (output only). - SelfLink string `json:"selfLink,omitempty"` -} - -type Instance struct { - // CanIpForward: Allows this instance to send and receive packets with - // non-matching destination or source IPs. This is required if you plan - // to use this instance to forward routes. For more information, see - // Enabling IP Forwarding. - CanIpForward bool `json:"canIpForward,omitempty"` - - // CpuPlatform: [Output Only] The CPU platform used by this instance. - CpuPlatform string `json:"cpuPlatform,omitempty"` - - // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text - // format. - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Description: An optional textual description of the resource; - // provided by the client when the resource is created. - Description string `json:"description,omitempty"` - - // Disks: Array of disks associated with this instance. Persistent disks - // must be created before you can assign them. - Disks []*AttachedDisk `json:"disks,omitempty"` - - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id uint64 `json:"id,omitempty,string"` - - // Kind: [Output Only] Type of the resource. Always compute#instance for - // instances. - Kind string `json:"kind,omitempty"` - - // MachineType: Full or partial URL of the machine type resource to use - // for this instance. This is provided by the client when the instance - // is created. For example, the following is a valid partial - // url: - // - // zones/zone/machineTypes/machine-type - MachineType string `json:"machineType,omitempty"` - - // Metadata: The metadata key/value pairs assigned to this instance. - // This includes custom metadata and predefined keys. - Metadata *Metadata `json:"metadata,omitempty"` - - // Name: Name of the resource; provided by the client when the resource - // is created. The name must be 1-63 characters long, and comply with - // RFC1035. Specifically, the name must be 1-63 characters long and - // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means - // the first character must be a lowercase letter, and all following - // characters must be a dash, lowercase letter, or digit, except the - // last character, which cannot be a dash. - Name string `json:"name,omitempty"` - - // NetworkInterfaces: An array of configurations for this interface. - // This specifies how this interface is configured to interact with - // other network services, such as connecting to the internet. - NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"` - - // Scheduling: Scheduling options for this instance. - Scheduling *Scheduling `json:"scheduling,omitempty"` - - // SelfLink: [Output Only] Server defined URL for this resource. - SelfLink string `json:"selfLink,omitempty"` - - // ServiceAccounts: A list of service accounts, with their specified - // scopes, authorized for this instance. Service accounts generate - // access tokens that can be accessed through the metadata server and - // used to authenticate applications on the instance. See Authenticating - // from Google Compute Engine for more information. - ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"` - - // Status: [Output Only] The status of the instance. One of the - // following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, - // TERMINATED. - // - // Possible values: - // "PROVISIONING" - // "RUNNING" - // "STAGING" - // "STOPPED" - // "STOPPING" - // "TERMINATED" - Status string `json:"status,omitempty"` - - // StatusMessage: [Output Only] An optional, human-readable explanation - // of the status. - StatusMessage string `json:"statusMessage,omitempty"` - - // Tags: A list of tags to appy to this instance. Tags are used to - // identify valid sources or targets for network firewalls and are - // specified by the client during instance creation. The tags can be - // later modified by the setTags method. Each tag within the list must - // comply with RFC1035. - Tags *Tags `json:"tags,omitempty"` - - // Zone: [Output Only] URL of the zone where the instance resides. - Zone string `json:"zone,omitempty"` -} - -type InstanceAggregatedList struct { - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id string `json:"id,omitempty"` - - // Items: [Output Only] A map of scoped instance lists. - Items map[string]InstancesScopedList `json:"items,omitempty"` - - // Kind: [Output Only] Type of resource. Always - // compute#instanceAggregatedList for aggregated lists of Instance - // resources. - Kind string `json:"kind,omitempty"` - - // NextPageToken: [Output Only] A token used to continue a truncated - // list request. - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: [Output Only] Server defined URL for this resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type InstanceList struct { - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id string `json:"id,omitempty"` - - // Items: [Output Only] A list of Instance resources. - Items []*Instance `json:"items,omitempty"` - - // Kind: [Output Only] Type of resource. Always compute#instanceList for - // lists of Instance resources. - Kind string `json:"kind,omitempty"` - - // NextPageToken: [Output Only] A token used to continue a truncated - // list request. - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: [Output Only] Server defined URL for this resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type InstanceProperties struct { - // CanIpForward: Allows instances created based on this template to send - // packets with source IP addresses other than their own and receive - // packets with destination IP addresses other than their own. If these - // instances will be used as an IP gateway or it will be set as the - // next-hop in a Route resource, say true. If unsure, leave this set to - // false. - CanIpForward bool `json:"canIpForward,omitempty"` - - // Description: An optional textual description for the instances - // created based on the instance template resource; provided by the - // client when the template is created. - Description string `json:"description,omitempty"` - - // Disks: Array of disks associated with instance created based on this - // template. - Disks []*AttachedDisk `json:"disks,omitempty"` - - // MachineType: Name of the machine type resource describing which - // machine type to use to host the instances created based on this - // template; provided by the client when the instance template is - // created. - MachineType string `json:"machineType,omitempty"` - - // Metadata: Metadata key/value pairs assigned to instances created - // based on this template. Consists of custom metadata or predefined - // keys; see Instance documentation for more information. - Metadata *Metadata `json:"metadata,omitempty"` - - // NetworkInterfaces: Array of configurations for this interface. This - // specifies how this interface is configured to interact with other - // network services, such as connecting to the internet. Currently, - // ONE_TO_ONE_NAT is the only access config supported. If there are no - // accessConfigs specified, then this instances created based based on - // this template will have no external internet access. - NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"` - - // Scheduling: Scheduling options for the instances created based on - // this template. - Scheduling *Scheduling `json:"scheduling,omitempty"` - - // ServiceAccounts: A list of service accounts each with specified - // scopes, for which access tokens are to be made available to the - // instances created based on this template, through metadata queries. - ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"` - - // Tags: A list of tags to be applied to the instances created based on - // this template used to identify valid sources or targets for network - // firewalls. Provided by the client on instance creation. The tags can - // be later modified by the setTags method. Each tag within the list - // must comply with RFC1035. - Tags *Tags `json:"tags,omitempty"` -} - -type InstanceReference struct { - Instance string `json:"instance,omitempty"` -} - -type InstanceTemplate struct { - // CreationTimestamp: Creation timestamp in RFC3339 text format (output - // only). - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Description: An optional textual description of the instance template - // resource; provided by the client when the resource is created. - Description string `json:"description,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id uint64 `json:"id,omitempty,string"` - - // Kind: Type of the resource. - Kind string `json:"kind,omitempty"` - - // Name: Name of the instance template resource; provided by the client - // when the resource is created. The name must be 1-63 characters long, - // and comply with RFC1035 - Name string `json:"name,omitempty"` - - // Properties: The instance properties portion of this instance template - // resource. - Properties *InstanceProperties `json:"properties,omitempty"` - - // SelfLink: Server defined URL for the resource (output only). - SelfLink string `json:"selfLink,omitempty"` -} - -type InstanceTemplateList struct { - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id string `json:"id,omitempty"` - - // Items: A list of InstanceTemplate resources. - Items []*InstanceTemplate `json:"items,omitempty"` - - // Kind: Type of resource. - Kind string `json:"kind,omitempty"` - - // NextPageToken: A token used to continue a truncated list request - // (output only). - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: Server defined URL for this resource (output only). - SelfLink string `json:"selfLink,omitempty"` -} - -type InstancesScopedList struct { - // Instances: [Output Only] List of instances contained in this scope. - Instances []*Instance `json:"instances,omitempty"` - - // Warning: [Output Only] Informational warning which replaces the list - // of instances when the list is empty. - Warning *InstancesScopedListWarning `json:"warning,omitempty"` -} - -type InstancesScopedListWarning struct { - // Code: [Output Only] The warning type identifier for this warning. - // - // Possible values: - // "DEPRECATED_RESOURCE_USED" - // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - // "INJECTED_KERNELS_DEPRECATED" - // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - // "NEXT_HOP_CANNOT_IP_FORWARD" - // "NEXT_HOP_INSTANCE_NOT_FOUND" - // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - // "NEXT_HOP_NOT_RUNNING" - // "NO_RESULTS_ON_PAGE" - // "REQUIRED_TOS_AGREEMENT" - // "RESOURCE_NOT_DELETED" - // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - // "UNREACHABLE" - Code string `json:"code,omitempty"` - - // Data: [Output Only] Metadata for this warning in key: value format. - Data []*InstancesScopedListWarningData `json:"data,omitempty"` - - // Message: [Output Only] Optional human-readable details for this - // warning. - Message string `json:"message,omitempty"` -} - -type InstancesScopedListWarningData struct { - // Key: [Output Only] A key for the warning data. - Key string `json:"key,omitempty"` - - // Value: [Output Only] A warning data value corresponding to the key. - Value string `json:"value,omitempty"` -} - -type License struct { - // ChargesUseFee: If true, the customer will be charged license fee for - // running software that contains this license on an instance. - ChargesUseFee bool `json:"chargesUseFee,omitempty"` - - // Kind: [Output Only] Type of resource. Always compute#license for - // licenses. - Kind string `json:"kind,omitempty"` - - // Name: Name of the resource. The name must be 1-63 characters long, - // and comply with RCF1035. - Name string `json:"name,omitempty"` - - // SelfLink: [Output Only] Server defined URL for the resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type MachineType struct { - // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text - // format. - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Deprecated: [Output Only] The deprecation status associated with this - // machine type. - Deprecated *DeprecationStatus `json:"deprecated,omitempty"` - - // Description: [Output Only] An optional textual description of the - // resource. - Description string `json:"description,omitempty"` - - // GuestCpus: [Output Only] The tumber of CPUs exposed to the instance. - GuestCpus int64 `json:"guestCpus,omitempty"` - - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id uint64 `json:"id,omitempty,string"` - - // Kind: Type of the resource. - Kind string `json:"kind,omitempty"` - - // MaximumPersistentDisks: [Output Only] Maximum persistent disks - // allowed. - MaximumPersistentDisks int64 `json:"maximumPersistentDisks,omitempty"` - - // MaximumPersistentDisksSizeGb: [Output Only] Maximum total persistent - // disks size (GB) allowed. - MaximumPersistentDisksSizeGb int64 `json:"maximumPersistentDisksSizeGb,omitempty,string"` - - // MemoryMb: [Output Only] The amount of physical memory available to - // the instance, defined in MB. - MemoryMb int64 `json:"memoryMb,omitempty"` - - // Name: [Output Only] Name of the resource. - Name string `json:"name,omitempty"` - - // SelfLink: [Output Only] Server defined URL for the resource. - SelfLink string `json:"selfLink,omitempty"` - - // Zone: [Output Only] The name of the zone where the machine type - // resides, such as us-central1-a. - Zone string `json:"zone,omitempty"` -} - -type MachineTypeAggregatedList struct { - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id string `json:"id,omitempty"` - - // Items: [Output Only] A map of scoped machine type lists. - Items map[string]MachineTypesScopedList `json:"items,omitempty"` - - // Kind: [Output Only] Type of resource. Always - // compute#machineTypeAggregatedList for aggregated lists of machine - // types. - Kind string `json:"kind,omitempty"` - - // NextPageToken: [Output Only] A token used to continue a truncated - // list request. - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: [Output Only] Server defined URL for this resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type MachineTypeList struct { - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id string `json:"id,omitempty"` - - // Items: [Output Only] A list of Machine Type resources. - Items []*MachineType `json:"items,omitempty"` - - // Kind: [Output Only] Type of resource. Always compute#machineTypeList - // for lists of machine types. - Kind string `json:"kind,omitempty"` - - // NextPageToken: [Output Only] A token used to continue a truncated - // list request. - NextPageToken string `json:"nextPageToken,omitempty"` - - // SelfLink: [Output Only] Server defined URL for this resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type MachineTypesScopedList struct { - // MachineTypes: [Output Only] List of machine types contained in this - // scope. - MachineTypes []*MachineType `json:"machineTypes,omitempty"` - - // Warning: [Output Only] An informational warning that appears when the - // machine types list is empty. - Warning *MachineTypesScopedListWarning `json:"warning,omitempty"` -} - -type MachineTypesScopedListWarning struct { - // Code: [Output Only] The warning type identifier for this warning. - // - // Possible values: - // "DEPRECATED_RESOURCE_USED" - // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - // "INJECTED_KERNELS_DEPRECATED" - // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - // "NEXT_HOP_CANNOT_IP_FORWARD" - // "NEXT_HOP_INSTANCE_NOT_FOUND" - // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - // "NEXT_HOP_NOT_RUNNING" - // "NO_RESULTS_ON_PAGE" - // "REQUIRED_TOS_AGREEMENT" - // "RESOURCE_NOT_DELETED" - // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - // "UNREACHABLE" - Code string `json:"code,omitempty"` - - // Data: [Output Only] Metadata for this warning in key: value format. - Data []*MachineTypesScopedListWarningData `json:"data,omitempty"` - - // Message: [Output Only] Optional human-readable details for this - // warning. - Message string `json:"message,omitempty"` -} - -type MachineTypesScopedListWarningData struct { - // Key: [Output Only] A key for the warning data. - Key string `json:"key,omitempty"` - - // Value: [Output Only] A warning data value corresponding to the key. - Value string `json:"value,omitempty"` -} - -type Metadata struct { - // Fingerprint: Specifies a fingerprint for this request, which is - // essentially a hash of the metadata's contents and used for optimistic - // locking. The fingerprint is initially generated by Compute Engine and - // changes after every request to modify or update metadata. You must - // always provide an up-to-date fingerprint hash in order to update or - // change metadata. - Fingerprint string `json:"fingerprint,omitempty"` - - // Items: Array of key/value pairs. The total size of all keys and - // values must be less than 512 KB. - Items []*MetadataItems `json:"items,omitempty"` - - // Kind: [Output Only] Type of the resource. Always compute#metadata for - // metadata. - Kind string `json:"kind,omitempty"` -} - -type MetadataItems struct { - // Key: Key for the metadata entry. Keys must conform to the following - // regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is - // reflected as part of a URL in the metadata server. Additionally, to - // avoid ambiguity, keys must not conflict with any other metadata keys - // for the project. - Key string `json:"key,omitempty"` - - // Value: Value for the metadata entry. These are free-form strings, and - // only have meaning as interpreted by the image running in the - // instance. The only restriction placed on values is that their size - // must be less than or equal to 32768 bytes. - Value string `json:"value,omitempty"` -} - -type Network struct { - // IPv4Range: The range of internal addresses that are legal on this - // network. This range is a CIDR specification, for example: - // 192.168.0.0/16. Provided by the client when the network is created. - IPv4Range string `json:"IPv4Range,omitempty"` - - // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text - // format. - CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Description: An optional textual description of the resource; - // provided by the client when the resource is created. - Description string `json:"description,omitempty"` - - // GatewayIPv4: A gateway address for default routing to other networks. - // This value is read only and is selected by the Google Compute Engine, - // typically as the first usable address in the IPv4Range. - GatewayIPv4 string `json:"gatewayIPv4,omitempty"` - - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. - Id uint64 `json:"id,omitempty,string"` - - // Kind: [Output Only] Type of the resource. Always compute#network for - // networks. - Kind string `json:"kind,omitempty"` - - // Name: Name of the resource; provided by the client when the resource - // is created. The name must be 1-63 characters long, and comply with - // RFC1035. Specifically, the name must be 1-63 characters long and - // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means - // the first character must be a lowercase letter, and all following - // characters must be a dash, lowercase letter, or digit, except the - // last character, which cannot be a dash. - Name string `json:"name,omitempty"` - - // SelfLink: [Output Only] Server defined URL for the resource. - SelfLink string `json:"selfLink,omitempty"` -} - -type NetworkInterface struct { - // AccessConfigs: An array of configurations for this interface. - // Currently, /global/gateways/default-internet-gateway NextHopGateway string `json:"nextHopGateway,omitempty"` - // NextHopInstance: The URL to an instance that should handle matching - // packets. + // NextHopInstance: The fully-qualified URL to an instance that should + // handle matching packets. For + // example: + // https://www.googleapis.com/compute/v1/projects/project/zones/ + // zone/instances/ NextHopInstance string `json:"nextHopInstance,omitempty"` // NextHopIp: The network IP address of an instance that should handle @@ -2752,14 +3544,15 @@ type Route struct { // Default value is 1000. A valid range is between 0 and 65535. Priority int64 `json:"priority,omitempty"` - // SelfLink: Server defined URL for the resource (output only). + // SelfLink: [Output Only] Server-defined fully-qualified URL for this + // resource. SelfLink string `json:"selfLink,omitempty"` // Tags: A list of instance tags to which this route applies. Tags []string `json:"tags,omitempty"` - // Warnings: If potential misconfigurations are detected for this route, - // this field will be populated with warning messages. + // Warnings: [Output Only] If potential misconfigurations are detected + // for this route, this field will be populated with warning messages. Warnings []*RouteWarnings `json:"warnings,omitempty"` } @@ -2800,8 +3593,8 @@ type RouteWarningsData struct { } type RouteList struct { - // Id: Unique identifier for the resource; defined by the server (output - // only). + // Id: [Output Only] Unique identifier for the resource. Defined by the + // server. Id string `json:"id,omitempty"` // Items: A list of Route resources. @@ -2810,11 +3603,11 @@ type RouteList struct { // Kind: Type of resource. Kind string `json:"kind,omitempty"` - // NextPageToken: A token used to continue a truncated list request - // (output only). + // NextPageToken: [Output Only] A token used to continue a truncated + // list request. NextPageToken string `json:"nextPageToken,omitempty"` - // SelfLink: Server defined URL for this resource (output only). + // SelfLink: [Output Only] Server defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` } @@ -2859,23 +3652,23 @@ type ServiceAccount struct { } type Snapshot struct { - // CreationTimestamp: Creation timestamp in RFC3339 text format (output - // only). + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text + // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional textual description of the resource; // provided by the client when the resource is created. Description string `json:"description,omitempty"` - // DiskSizeGb: Size of the persistent disk snapshot, specified in GB - // (output only). + // DiskSizeGb: [Output Only] Size of the snapshot, specified in GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - // Id: Unique identifier for the resource; defined by the server (output - // only). + // Id: [Output Only] Unique identifier for the resource; defined by the + // server. Id uint64 `json:"id,omitempty,string"` - // Kind: Type of the resource. + // Kind: [Output Only] Type of the resource. Always compute#snapshot for + // Snapshot resources. Kind string `json:"kind,omitempty"` // Licenses: Public visible licenses. @@ -2883,22 +3676,26 @@ type Snapshot struct { // Name: Name of the resource; provided by the client when the resource // is created. The name must be 1-63 characters long, and comply with - // RFC1035. + // RFC1035. Specifically, the name must be 1-63 characters long and + // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means + // the first character must be a lowercase letter, and all following + // characters must be a dash, lowercase letter, or digit, except the + // last character, which cannot be a dash. Name string `json:"name,omitempty"` - // SelfLink: Server defined URL for the resource (output only). + // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SourceDisk: The source disk used to create this snapshot. SourceDisk string `json:"sourceDisk,omitempty"` - // SourceDiskId: The 'id' value of the disk used to create this - // snapshot. This value may be used to determine whether the snapshot - // was taken from the current or a previous instance of a given disk - // name. + // SourceDiskId: [Output Only] The ID value of the disk used to create + // this snapshot. This value may be used to determine whether the + // snapshot was taken from the current or a previous instance of a given + // disk name. SourceDiskId string `json:"sourceDiskId,omitempty"` - // Status: The status of the persistent disk snapshot (output only). + // Status: [Output Only] The status of the snapshot. // // Possible values: // "CREATING" @@ -2908,14 +3705,14 @@ type Snapshot struct { // "UPLOADING" Status string `json:"status,omitempty"` - // StorageBytes: A size of the the storage used by the snapshot. As - // snapshots share storage this number is expected to change with - // snapshot creation/deletion. + // StorageBytes: [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. StorageBytes int64 `json:"storageBytes,omitempty,string"` - // StorageBytesStatus: An indicator whether storageBytes is in a stable - // state, or it is being adjusted as a result of shared storage - // reallocation. + // StorageBytesStatus: [Output Only] An indicator whether storageBytes + // is in a stable state or it is being adjusted as a result of shared + // storage reallocation. // // Possible values: // "UPDATING" @@ -2959,27 +3756,32 @@ type Tags struct { } type TargetHttpProxy struct { - // CreationTimestamp: Creation timestamp in RFC3339 text format (output - // only). + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text + // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional textual description of the resource; // provided by the client when the resource is created. Description string `json:"description,omitempty"` - // Id: Unique identifier for the resource; defined by the server (output - // only). + // Id: [Output Only] Unique identifier for the resource. Defined by the + // server. Id uint64 `json:"id,omitempty,string"` - // Kind: Type of the resource. + // Kind: [Output Only] Type of resource. Always compute#Operation for + // Operation resources. Kind string `json:"kind,omitempty"` // Name: Name of the resource; provided by the client when the resource // is created. The name must be 1-63 characters long, and comply with - // RFC1035. + // RFC1035. Specifically, the name must be 1-63 characters long and + // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means + // the first character must be a lowercase letter, and all following + // characters must be a dash, lowercase letter, or digit, except the + // last character, which cannot be a dash. Name string `json:"name,omitempty"` - // SelfLink: Server defined URL for the resource (output only). + // SelfLink: [Output Only] Server defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // UrlMap: URL to the UrlMap resource that defines the mapping from URL @@ -2988,21 +3790,22 @@ type TargetHttpProxy struct { } type TargetHttpProxyList struct { - // Id: Unique identifier for the resource; defined by the server (output - // only). + // Id: [Output Only] Unique identifier for the resource; defined by the + // server. Id string `json:"id,omitempty"` // Items: A list of TargetHttpProxy resources. Items []*TargetHttpProxy `json:"items,omitempty"` - // Kind: Type of resource. + // Kind: Type of resource. Always compute#targetHttpProxyList for lists + // of Target HTTP proxies. Kind string `json:"kind,omitempty"` - // NextPageToken: A token used to continue a truncated list request - // (output only). + // NextPageToken: [Output Only] A token used to continue a truncated + // list request. NextPageToken string `json:"nextPageToken,omitempty"` - // SelfLink: Server defined URL for this resource (output only). + // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` } @@ -3353,9 +4156,13 @@ type TargetVpnGateway struct { // for target VPN gateways. Kind string `json:"kind,omitempty"` - // Name: Name of the resource. Provided by the client when the resource - // is created. The name must be 1-63 characters long and comply with - // RFC1035. + // Name: Name of the resource; provided by the client when the resource + // is created. The name must be 1-63 characters long, and comply with + // RFC1035. Specifically, the name must be 1-63 characters long and + // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means + // the first character must be a lowercase letter, and all following + // characters must be a dash, lowercase letter, or digit, except the + // last character, which cannot be a dash. Name string `json:"name,omitempty"` // Network: URL of the network to which this VPN gateway is attached. @@ -3481,16 +4288,16 @@ type TestFailure struct { } type UrlMap struct { - // CreationTimestamp: Creation timestamp in RFC3339 text format (output - // only). + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text + // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // DefaultService: The URL of the BackendService resource if none of the // hostRules match. DefaultService string `json:"defaultService,omitempty"` - // Description: An optional textual description of the resource; - // provided by the client when the resource is created. + // Description: An optional textual description of the resource. + // Provided by the client when the resource is created. Description string `json:"description,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents @@ -3502,22 +4309,26 @@ type UrlMap struct { // HostRules: The list of HostRules to use against the URL. HostRules []*HostRule `json:"hostRules,omitempty"` - // Id: Unique identifier for the resource; defined by the server (output - // only). + // Id: [Output Only] Unique identifier for the resource. Set by the + // server. Id uint64 `json:"id,omitempty,string"` // Kind: Type of the resource. Kind string `json:"kind,omitempty"` - // Name: Name of the resource; provided by the client when the resource + // Name: Name of the resource. Provided by the client when the resource // is created. The name must be 1-63 characters long, and comply with - // RFC1035. + // RFC1035. Specifically, the name must be 1-63 characters long and + // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means + // the first character must be a lowercase letter, and all following + // characters must be a dash, lowercase letter, or digit, except the + // last character, which cannot be a dash. Name string `json:"name,omitempty"` // PathMatchers: The list of named PathMatchers to use against the URL. PathMatchers []*PathMatcher `json:"pathMatchers,omitempty"` - // SelfLink: Server defined URL for the resource (output only). + // SelfLink: [Output Only] Server defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Tests: The list of expected URL mappings. Request to update this @@ -3526,8 +4337,8 @@ type UrlMap struct { } type UrlMapList struct { - // Id: Unique identifier for the resource; defined by the server (output - // only). + // Id: [Output Only] Unique identifier for the resource. Set by the + // server. Id string `json:"id,omitempty"` // Items: A list of UrlMap resources. @@ -3536,11 +4347,11 @@ type UrlMapList struct { // Kind: Type of resource. Kind string `json:"kind,omitempty"` - // NextPageToken: A token used to continue a truncated list request - // (output only). + // NextPageToken: [Output Only] A token used to continue a truncated + // list request. NextPageToken string `json:"nextPageToken,omitempty"` - // SelfLink: Server defined URL for this resource (output only). + // SelfLink: [Output Only] Server defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` } @@ -3634,9 +4445,13 @@ type VpnTunnel struct { // VPN tunnels. Kind string `json:"kind,omitempty"` - // Name: Name of the resource. Provided by the client when the resource - // is created. The name must be 1-63 characters long and comply with - // RFC1035. + // Name: Name of the resource; provided by the client when the resource + // is created. The name must be 1-63 characters long, and comply with + // RFC1035. Specifically, the name must be 1-63 characters long and + // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means + // the first character must be a lowercase letter, and all following + // characters must be a dash, lowercase letter, or digit, except the + // last character, which cannot be a dash. Name string `json:"name,omitempty"` // PeerIp: IP address of the peer VPN gateway. @@ -3856,8 +4671,27 @@ func (r *AddressesService) AggregatedList(project string) *AddressesAggregatedLi return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *AddressesAggregatedListCall) Filter(filter string) *AddressesAggregatedListCall { c.opt_["filter"] = filter return c @@ -3870,9 +4704,10 @@ func (c *AddressesAggregatedListCall) MaxResults(maxResults int64) *AddressesAgg return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *AddressesAggregatedListCall) PageToken(pageToken string) *AddressesAggregatedListCall { c.opt_["pageToken"] = pageToken return c @@ -3931,7 +4766,7 @@ func (c *AddressesAggregatedListCall) Do() (*AddressAggregatedList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -3945,7 +4780,7 @@ func (c *AddressesAggregatedListCall) Do() (*AddressAggregatedList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -4294,8 +5129,27 @@ func (r *AddressesService) List(project string, region string) *AddressesListCal return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *AddressesListCall) Filter(filter string) *AddressesListCall { c.opt_["filter"] = filter return c @@ -4308,9 +5162,10 @@ func (c *AddressesListCall) MaxResults(maxResults int64) *AddressesListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *AddressesListCall) PageToken(pageToken string) *AddressesListCall { c.opt_["pageToken"] = pageToken return c @@ -4371,7 +5226,7 @@ func (c *AddressesListCall) Do() (*AddressList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -4385,7 +5240,7 @@ func (c *AddressesListCall) Do() (*AddressList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -4417,45 +5272,92 @@ func (c *AddressesListCall) Do() (*AddressList, error) { } -// method id "compute.backendServices.delete": +// method id "compute.autoscalers.aggregatedList": -type BackendServicesDeleteCall struct { - s *Service - project string - backendService string - opt_ map[string]interface{} +type AutoscalersAggregatedListCall struct { + s *Service + project string + opt_ map[string]interface{} } -// Delete: Deletes the specified BackendService resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/delete -func (r *BackendServicesService) Delete(project string, backendService string) *BackendServicesDeleteCall { - c := &BackendServicesDeleteCall{s: r.s, opt_: make(map[string]interface{})} +// AggregatedList: Retrieves the list of autoscalers grouped by scope. +func (r *AutoscalersService) AggregatedList(project string) *AutoscalersAggregatedListCall { + c := &AutoscalersAggregatedListCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.backendService = backendService + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *AutoscalersAggregatedListCall) Filter(filter string) *AutoscalersAggregatedListCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *AutoscalersAggregatedListCall) MaxResults(maxResults int64) *AutoscalersAggregatedListCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *AutoscalersAggregatedListCall) PageToken(pageToken string) *AutoscalersAggregatedListCall { + c.opt_["pageToken"] = pageToken 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 *BackendServicesDeleteCall) Fields(s ...googleapi.Field) *BackendServicesDeleteCall { +func (c *AutoscalersAggregatedListCall) Fields(s ...googleapi.Field) *AutoscalersAggregatedListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *BackendServicesDeleteCall) Do() (*Operation, error) { +func (c *AutoscalersAggregatedListCall) Do() (*AutoscalerAggregatedList, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices/{backendService}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/aggregated/autoscalers") urls += "?" + params.Encode() - req, _ := http.NewRequest("DELETE", urls, body) + req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "backendService": c.backendService, + "project": c.project, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -4466,86 +5368,100 @@ func (c *BackendServicesDeleteCall) Do() (*Operation, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *Operation + var ret *AutoscalerAggregatedList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Deletes the specified BackendService resource.", - // "httpMethod": "DELETE", - // "id": "compute.backendServices.delete", + // "description": "Retrieves the list of autoscalers grouped by scope.", + // "httpMethod": "GET", + // "id": "compute.autoscalers.aggregatedList", // "parameterOrder": [ - // "project", - // "backendService" + // "project" // ], // "parameters": { - // "backendService": { - // "description": "Name of the BackendService resource to delete.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", // "type": "string" // }, - // "project": { - // "description": "Name of the project scoping this request.", - // "location": "path", + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // } // }, - // "path": "{project}/global/backendServices/{backendService}", + // "path": "{project}/aggregated/autoscalers", // "response": { - // "$ref": "Operation" + // "$ref": "AutoscalerAggregatedList" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" // ] // } } -// method id "compute.backendServices.get": +// method id "compute.autoscalers.delete": -type BackendServicesGetCall struct { - s *Service - project string - backendService string - opt_ map[string]interface{} +type AutoscalersDeleteCall struct { + s *Service + project string + zone string + autoscaler string + opt_ map[string]interface{} } -// Get: Returns the specified BackendService resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/get -func (r *BackendServicesService) Get(project string, backendService string) *BackendServicesGetCall { - c := &BackendServicesGetCall{s: r.s, opt_: make(map[string]interface{})} +// Delete: Deletes the specified autoscaler resource. +func (r *AutoscalersService) Delete(project string, zone string, autoscaler string) *AutoscalersDeleteCall { + c := &AutoscalersDeleteCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.backendService = backendService + c.zone = zone + c.autoscaler = autoscaler 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 *BackendServicesGetCall) Fields(s ...googleapi.Field) *BackendServicesGetCall { +func (c *AutoscalersDeleteCall) Fields(s ...googleapi.Field) *AutoscalersDeleteCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *BackendServicesGetCall) Do() (*BackendService, error) { +func (c *AutoscalersDeleteCall) Do() (*Operation, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices/{backendService}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/autoscalers/{autoscaler}") urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) + req, _ := http.NewRequest("DELETE", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "backendService": c.backendService, + "project": c.project, + "zone": c.zone, + "autoscaler": c.autoscaler, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -4556,22 +5472,23 @@ func (c *BackendServicesGetCall) Do() (*BackendService, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *BackendService + var ret *Operation if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Returns the specified BackendService resource.", - // "httpMethod": "GET", - // "id": "compute.backendServices.get", + // "description": "Deletes the specified autoscaler resource.", + // "httpMethod": "DELETE", + // "id": "compute.autoscalers.delete", // "parameterOrder": [ // "project", - // "backendService" + // "zone", + // "autoscaler" // ], // "parameters": { - // "backendService": { - // "description": "Name of the BackendService resource to return.", + // "autoscaler": { + // "description": "Name of the persistent autoscaler resource to delete.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, @@ -4583,70 +5500,69 @@ func (c *BackendServicesGetCall) Do() (*BackendService, error) { // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "Name of the zone scoping this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/backendServices/{backendService}", + // "path": "{project}/zones/{zone}/autoscalers/{autoscaler}", // "response": { - // "$ref": "BackendService" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/compute.readonly" + // "https://www.googleapis.com/auth/compute" // ] // } } -// method id "compute.backendServices.getHealth": +// method id "compute.autoscalers.get": -type BackendServicesGetHealthCall struct { - s *Service - project string - backendService string - resourcegroupreference *ResourceGroupReference - opt_ map[string]interface{} +type AutoscalersGetCall struct { + s *Service + project string + zone string + autoscaler string + opt_ map[string]interface{} } -// GetHealth: Gets the most recent health check results for this -// BackendService. -// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/getHealth -func (r *BackendServicesService) GetHealth(project string, backendService string, resourcegroupreference *ResourceGroupReference) *BackendServicesGetHealthCall { - c := &BackendServicesGetHealthCall{s: r.s, opt_: make(map[string]interface{})} +// Get: Returns the specified autoscaler resource. +func (r *AutoscalersService) Get(project string, zone string, autoscaler string) *AutoscalersGetCall { + c := &AutoscalersGetCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.backendService = backendService - c.resourcegroupreference = resourcegroupreference + c.zone = zone + c.autoscaler = autoscaler 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 *BackendServicesGetHealthCall) Fields(s ...googleapi.Field) *BackendServicesGetHealthCall { +func (c *AutoscalersGetCall) Fields(s ...googleapi.Field) *AutoscalersGetCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *BackendServicesGetHealthCall) Do() (*BackendServiceGroupHealth, error) { +func (c *AutoscalersGetCall) Do() (*Autoscaler, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.resourcegroupreference) - if err != nil { - return nil, err - } - ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices/{backendService}/getHealth") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/autoscalers/{autoscaler}") urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) + req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "backendService": c.backendService, + "project": c.project, + "zone": c.zone, + "autoscaler": c.autoscaler, }) - req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -4656,40 +5572,46 @@ func (c *BackendServicesGetHealthCall) Do() (*BackendServiceGroupHealth, error) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *BackendServiceGroupHealth + var ret *Autoscaler if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Gets the most recent health check results for this BackendService.", - // "httpMethod": "POST", - // "id": "compute.backendServices.getHealth", + // "description": "Returns the specified autoscaler resource.", + // "httpMethod": "GET", + // "id": "compute.autoscalers.get", // "parameterOrder": [ // "project", - // "backendService" + // "zone", + // "autoscaler" // ], // "parameters": { - // "backendService": { - // "description": "Name of the BackendService resource to which the queried instance belongs.", + // "autoscaler": { + // "description": "Name of the persistent autoscaler resource to return.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "Name of the zone scoping this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/backendServices/{backendService}/getHealth", - // "request": { - // "$ref": "ResourceGroupReference" - // }, + // "path": "{project}/zones/{zone}/autoscalers/{autoscaler}", // "response": { - // "$ref": "BackendServiceGroupHealth" + // "$ref": "Autoscaler" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -4700,36 +5622,37 @@ func (c *BackendServicesGetHealthCall) Do() (*BackendServiceGroupHealth, error) } -// method id "compute.backendServices.insert": +// method id "compute.autoscalers.insert": -type BackendServicesInsertCall struct { - s *Service - project string - backendservice *BackendService - opt_ map[string]interface{} +type AutoscalersInsertCall struct { + s *Service + project string + zone string + autoscaler *Autoscaler + opt_ map[string]interface{} } -// Insert: Creates a BackendService resource in the specified project -// using the data included in the request. -// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/insert -func (r *BackendServicesService) Insert(project string, backendservice *BackendService) *BackendServicesInsertCall { - c := &BackendServicesInsertCall{s: r.s, opt_: make(map[string]interface{})} +// Insert: Creates an autoscaler resource in the specified project using +// the data included in the request. +func (r *AutoscalersService) Insert(project string, zone string, autoscaler *Autoscaler) *AutoscalersInsertCall { + c := &AutoscalersInsertCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.backendservice = backendservice + c.zone = zone + c.autoscaler = autoscaler 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 *BackendServicesInsertCall) Fields(s ...googleapi.Field) *BackendServicesInsertCall { +func (c *AutoscalersInsertCall) Fields(s ...googleapi.Field) *AutoscalersInsertCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *BackendServicesInsertCall) Do() (*Operation, error) { +func (c *AutoscalersInsertCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.backendservice) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.autoscaler) if err != nil { return nil, err } @@ -4739,11 +5662,12 @@ func (c *BackendServicesInsertCall) Do() (*Operation, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/autoscalers") urls += "?" + params.Encode() req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ "project": c.project, + "zone": c.zone, }) req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) @@ -4761,11 +5685,12 @@ func (c *BackendServicesInsertCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Creates a BackendService resource in the specified project using the data included in the request.", + // "description": "Creates an autoscaler resource in the specified project using the data included in the request.", // "httpMethod": "POST", - // "id": "compute.backendServices.insert", + // "id": "compute.autoscalers.insert", // "parameterOrder": [ - // "project" + // "project", + // "zone" // ], // "parameters": { // "project": { @@ -4774,11 +5699,18 @@ func (c *BackendServicesInsertCall) Do() (*Operation, error) { // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "Name of the zone scoping this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/backendServices", + // "path": "{project}/zones/{zone}/autoscalers", // "request": { - // "$ref": "BackendService" + // "$ref": "Autoscaler" // }, // "response": { // "$ref": "Operation" @@ -4791,41 +5723,62 @@ func (c *BackendServicesInsertCall) Do() (*Operation, error) { } -// method id "compute.backendServices.list": +// method id "compute.autoscalers.list": -type BackendServicesListCall struct { +type AutoscalersListCall struct { s *Service project string + zone string opt_ map[string]interface{} } -// List: Retrieves the list of BackendService resources available to the -// specified project. -// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/list -func (r *BackendServicesService) List(project string) *BackendServicesListCall { - c := &BackendServicesListCall{s: r.s, opt_: make(map[string]interface{})} +// List: Retrieves the list of autoscaler resources contained within the +// specified zone. +func (r *AutoscalersService) List(project string, zone string) *AutoscalersListCall { + c := &AutoscalersListCall{s: r.s, opt_: make(map[string]interface{})} c.project = project + c.zone = zone return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *BackendServicesListCall) Filter(filter string) *BackendServicesListCall { +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *AutoscalersListCall) Filter(filter string) *AutoscalersListCall { c.opt_["filter"] = filter return c } // MaxResults sets the optional parameter "maxResults": Maximum count of // results to be returned. -func (c *BackendServicesListCall) MaxResults(maxResults int64) *BackendServicesListCall { +func (c *AutoscalersListCall) MaxResults(maxResults int64) *AutoscalersListCall { c.opt_["maxResults"] = maxResults return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *BackendServicesListCall) PageToken(pageToken string) *BackendServicesListCall { +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *AutoscalersListCall) PageToken(pageToken string) *AutoscalersListCall { c.opt_["pageToken"] = pageToken return c } @@ -4833,12 +5786,12 @@ func (c *BackendServicesListCall) PageToken(pageToken string) *BackendServicesLi // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BackendServicesListCall) Fields(s ...googleapi.Field) *BackendServicesListCall { +func (c *AutoscalersListCall) Fields(s ...googleapi.Field) *AutoscalersListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *BackendServicesListCall) Do() (*BackendServiceList, error) { +func (c *AutoscalersListCall) Do() (*AutoscalerList, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") @@ -4854,11 +5807,12 @@ func (c *BackendServicesListCall) Do() (*BackendServiceList, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/autoscalers") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ "project": c.project, + "zone": c.zone, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -4869,21 +5823,22 @@ func (c *BackendServicesListCall) Do() (*BackendServiceList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *BackendServiceList + var ret *AutoscalerList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of BackendService resources available to the specified project.", + // "description": "Retrieves the list of autoscaler resources contained within the specified zone.", // "httpMethod": "GET", - // "id": "compute.backendServices.list", + // "id": "compute.autoscalers.list", // "parameterOrder": [ - // "project" + // "project", + // "zone" // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -4897,7 +5852,7 @@ func (c *BackendServicesListCall) Do() (*BackendServiceList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -4907,11 +5862,18 @@ func (c *BackendServicesListCall) Do() (*BackendServiceList, error) { // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "Name of the zone scoping this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/backendServices", + // "path": "{project}/zones/{zone}/autoscalers", // "response": { - // "$ref": "BackendServiceList" + // "$ref": "AutoscalerList" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -4922,53 +5884,56 @@ func (c *BackendServicesListCall) Do() (*BackendServiceList, error) { } -// method id "compute.backendServices.patch": +// method id "compute.autoscalers.patch": -type BackendServicesPatchCall struct { - s *Service - project string - backendService string - backendservice *BackendService - opt_ map[string]interface{} +type AutoscalersPatchCall struct { + s *Service + project string + zone string + autoscaler string + autoscaler2 *Autoscaler + opt_ map[string]interface{} } -// Patch: Update the entire content of the BackendService resource. This -// method supports patch semantics. -// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/patch -func (r *BackendServicesService) Patch(project string, backendService string, backendservice *BackendService) *BackendServicesPatchCall { - c := &BackendServicesPatchCall{s: r.s, opt_: make(map[string]interface{})} +// Patch: Updates an autoscaler resource in the specified project using +// the data included in the request. This method supports patch +// semantics. +func (r *AutoscalersService) Patch(project string, zone string, autoscaler string, autoscaler2 *Autoscaler) *AutoscalersPatchCall { + c := &AutoscalersPatchCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.backendService = backendService - c.backendservice = backendservice + c.zone = zone + c.autoscaler = autoscaler + c.autoscaler2 = autoscaler2 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 *BackendServicesPatchCall) Fields(s ...googleapi.Field) *BackendServicesPatchCall { +func (c *AutoscalersPatchCall) Fields(s ...googleapi.Field) *AutoscalersPatchCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *BackendServicesPatchCall) Do() (*Operation, error) { +func (c *AutoscalersPatchCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.backendservice) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.autoscaler2) if err != nil { return nil, err } ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + params.Set("autoscaler", fmt.Sprintf("%v", c.autoscaler)) if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices/{backendService}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/autoscalers") urls += "?" + params.Encode() req, _ := http.NewRequest("PATCH", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "backendService": c.backendService, + "project": c.project, + "zone": c.zone, }) req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) @@ -4986,17 +5951,18 @@ func (c *BackendServicesPatchCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Update the entire content of the BackendService resource. This method supports patch semantics.", + // "description": "Updates an autoscaler resource in the specified project using the data included in the request. This method supports patch semantics.", // "httpMethod": "PATCH", - // "id": "compute.backendServices.patch", + // "id": "compute.autoscalers.patch", // "parameterOrder": [ // "project", - // "backendService" + // "zone", + // "autoscaler" // ], // "parameters": { - // "backendService": { - // "description": "Name of the BackendService resource to update.", - // "location": "path", + // "autoscaler": { + // "description": "Name of the autoscaler resource to update.", + // "location": "query", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" @@ -5007,11 +5973,18 @@ func (c *BackendServicesPatchCall) Do() (*Operation, error) { // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "Name of the zone scoping this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/backendServices/{backendService}", + // "path": "{project}/zones/{zone}/autoscalers", // "request": { - // "$ref": "BackendService" + // "$ref": "Autoscaler" // }, // "response": { // "$ref": "Operation" @@ -5024,52 +5997,62 @@ func (c *BackendServicesPatchCall) Do() (*Operation, error) { } -// method id "compute.backendServices.update": +// method id "compute.autoscalers.update": -type BackendServicesUpdateCall struct { - s *Service - project string - backendService string - backendservice *BackendService - opt_ map[string]interface{} +type AutoscalersUpdateCall struct { + s *Service + project string + zone string + autoscaler *Autoscaler + opt_ map[string]interface{} } -// Update: Update the entire content of the BackendService resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/update -func (r *BackendServicesService) Update(project string, backendService string, backendservice *BackendService) *BackendServicesUpdateCall { - c := &BackendServicesUpdateCall{s: r.s, opt_: make(map[string]interface{})} +// Update: Updates an autoscaler resource in the specified project using +// the data included in the request. +func (r *AutoscalersService) Update(project string, zone string, autoscaler *Autoscaler) *AutoscalersUpdateCall { + c := &AutoscalersUpdateCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.backendService = backendService - c.backendservice = backendservice + c.zone = zone + c.autoscaler = autoscaler + return c +} + +// Autoscaler sets the optional parameter "autoscaler": Name of the +// autoscaler resource to update. +func (c *AutoscalersUpdateCall) Autoscaler(autoscaler string) *AutoscalersUpdateCall { + c.opt_["autoscaler"] = autoscaler 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 *BackendServicesUpdateCall) Fields(s ...googleapi.Field) *BackendServicesUpdateCall { +func (c *AutoscalersUpdateCall) Fields(s ...googleapi.Field) *AutoscalersUpdateCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *BackendServicesUpdateCall) Do() (*Operation, error) { +func (c *AutoscalersUpdateCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.backendservice) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.autoscaler) if err != nil { return nil, err } ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["autoscaler"]; ok { + params.Set("autoscaler", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices/{backendService}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/autoscalers") urls += "?" + params.Encode() req, _ := http.NewRequest("PUT", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "backendService": c.backendService, + "project": c.project, + "zone": c.zone, }) req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) @@ -5087,19 +6070,18 @@ func (c *BackendServicesUpdateCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Update the entire content of the BackendService resource.", + // "description": "Updates an autoscaler resource in the specified project using the data included in the request.", // "httpMethod": "PUT", - // "id": "compute.backendServices.update", + // "id": "compute.autoscalers.update", // "parameterOrder": [ // "project", - // "backendService" + // "zone" // ], // "parameters": { - // "backendService": { - // "description": "Name of the BackendService resource to update.", - // "location": "path", + // "autoscaler": { + // "description": "Name of the autoscaler resource to update.", + // "location": "query", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, // "type": "string" // }, // "project": { @@ -5108,11 +6090,18 @@ func (c *BackendServicesUpdateCall) Do() (*Operation, error) { // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "Name of the zone scoping this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/backendServices/{backendService}", + // "path": "{project}/zones/{zone}/autoscalers", // "request": { - // "$ref": "BackendService" + // "$ref": "Autoscaler" // }, // "response": { // "$ref": "Operation" @@ -5125,74 +6114,45 @@ func (c *BackendServicesUpdateCall) Do() (*Operation, error) { } -// method id "compute.diskTypes.aggregatedList": +// method id "compute.backendServices.delete": -type DiskTypesAggregatedListCall struct { - s *Service - project string - opt_ map[string]interface{} +type BackendServicesDeleteCall struct { + s *Service + project string + backendService string + opt_ map[string]interface{} } -// AggregatedList: Retrieves the list of disk type resources grouped by -// scope. -// For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/aggregatedList -func (r *DiskTypesService) AggregatedList(project string) *DiskTypesAggregatedListCall { - c := &DiskTypesAggregatedListCall{s: r.s, opt_: make(map[string]interface{})} +// Delete: Deletes the specified BackendService resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/delete +func (r *BackendServicesService) Delete(project string, backendService string) *BackendServicesDeleteCall { + c := &BackendServicesDeleteCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - return c -} - -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *DiskTypesAggregatedListCall) Filter(filter string) *DiskTypesAggregatedListCall { - c.opt_["filter"] = filter - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum count of -// results to be returned. -func (c *DiskTypesAggregatedListCall) MaxResults(maxResults int64) *DiskTypesAggregatedListCall { - c.opt_["maxResults"] = maxResults - return c -} - -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *DiskTypesAggregatedListCall) PageToken(pageToken string) *DiskTypesAggregatedListCall { - c.opt_["pageToken"] = pageToken + c.backendService = backendService 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 *DiskTypesAggregatedListCall) Fields(s ...googleapi.Field) *DiskTypesAggregatedListCall { +func (c *BackendServicesDeleteCall) Fields(s ...googleapi.Field) *BackendServicesDeleteCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *DiskTypesAggregatedListCall) Do() (*DiskTypeAggregatedList, error) { +func (c *BackendServicesDeleteCall) Do() (*Operation, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") - if v, ok := c.opt_["filter"]; ok { - params.Set("filter", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["maxResults"]; ok { - params.Set("maxResults", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/aggregated/diskTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices/{backendService}") urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) + req, _ := http.NewRequest("DELETE", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "backendService": c.backendService, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -5203,101 +6163,86 @@ func (c *DiskTypesAggregatedListCall) Do() (*DiskTypeAggregatedList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *DiskTypeAggregatedList + var ret *Operation if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of disk type resources grouped by scope.", - // "httpMethod": "GET", - // "id": "compute.diskTypes.aggregatedList", + // "description": "Deletes the specified BackendService resource.", + // "httpMethod": "DELETE", + // "id": "compute.backendServices.delete", // "parameterOrder": [ - // "project" + // "project", + // "backendService" // ], // "parameters": { - // "filter": { - // "description": "Filter expression for filtering listed resources.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "500", - // "description": "Maximum count of results to be returned.", - // "format": "uint32", - // "location": "query", - // "maximum": "500", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", - // "location": "query", + // "backendService": { + // "description": "Name of the BackendService resource to delete.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, // "type": "string" // }, // "project": { - // "description": "Project ID for this request.", + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // } // }, - // "path": "{project}/aggregated/diskTypes", + // "path": "{project}/global/backendServices/{backendService}", // "response": { - // "$ref": "DiskTypeAggregatedList" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/compute.readonly" + // "https://www.googleapis.com/auth/compute" // ] // } } -// method id "compute.diskTypes.get": +// method id "compute.backendServices.get": -type DiskTypesGetCall struct { - s *Service - project string - zone string - diskType string - opt_ map[string]interface{} +type BackendServicesGetCall struct { + s *Service + project string + backendService string + opt_ map[string]interface{} } -// Get: Returns the specified disk type resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/get -func (r *DiskTypesService) Get(project string, zone string, diskType string) *DiskTypesGetCall { - c := &DiskTypesGetCall{s: r.s, opt_: make(map[string]interface{})} +// Get: Returns the specified BackendService resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/get +func (r *BackendServicesService) Get(project string, backendService string) *BackendServicesGetCall { + c := &BackendServicesGetCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.zone = zone - c.diskType = diskType + c.backendService = backendService 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 *DiskTypesGetCall) Fields(s ...googleapi.Field) *DiskTypesGetCall { +func (c *BackendServicesGetCall) Fields(s ...googleapi.Field) *BackendServicesGetCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *DiskTypesGetCall) Do() (*DiskType, error) { +func (c *BackendServicesGetCall) Do() (*BackendService, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/diskTypes/{diskType}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices/{backendService}") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, - "diskType": c.diskType, + "project": c.project, + "backendService": c.backendService, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -5308,46 +6253,38 @@ func (c *DiskTypesGetCall) Do() (*DiskType, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *DiskType + var ret *BackendService if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Returns the specified disk type resource.", + // "description": "Returns the specified BackendService resource.", // "httpMethod": "GET", - // "id": "compute.diskTypes.get", + // "id": "compute.backendServices.get", // "parameterOrder": [ // "project", - // "zone", - // "diskType" + // "backendService" // ], // "parameters": { - // "diskType": { - // "description": "Name of the disk type resource to return.", + // "backendService": { + // "description": "Name of the BackendService resource to return.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Project ID for this request.", + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "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}/diskTypes/{diskType}", + // "path": "{project}/global/backendServices/{backendService}", // "response": { - // "$ref": "DiskType" + // "$ref": "BackendService" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -5358,78 +6295,55 @@ func (c *DiskTypesGetCall) Do() (*DiskType, error) { } -// method id "compute.diskTypes.list": +// method id "compute.backendServices.getHealth": -type DiskTypesListCall struct { - s *Service - project string - zone string - opt_ map[string]interface{} +type BackendServicesGetHealthCall struct { + s *Service + project string + backendService string + resourcegroupreference *ResourceGroupReference + opt_ map[string]interface{} } -// List: Retrieves the list of disk type resources available to the -// specified project. -// For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/list -func (r *DiskTypesService) List(project string, zone string) *DiskTypesListCall { - c := &DiskTypesListCall{s: r.s, opt_: make(map[string]interface{})} +// GetHealth: Gets the most recent health check results for this +// BackendService. +// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/getHealth +func (r *BackendServicesService) GetHealth(project string, backendService string, resourcegroupreference *ResourceGroupReference) *BackendServicesGetHealthCall { + c := &BackendServicesGetHealthCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.zone = zone - return c -} - -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *DiskTypesListCall) Filter(filter string) *DiskTypesListCall { - c.opt_["filter"] = filter - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum count of -// results to be returned. -func (c *DiskTypesListCall) MaxResults(maxResults int64) *DiskTypesListCall { - c.opt_["maxResults"] = maxResults - return c -} - -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *DiskTypesListCall) PageToken(pageToken string) *DiskTypesListCall { - c.opt_["pageToken"] = pageToken + c.backendService = backendService + c.resourcegroupreference = resourcegroupreference 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 *DiskTypesListCall) Fields(s ...googleapi.Field) *DiskTypesListCall { +func (c *BackendServicesGetHealthCall) Fields(s ...googleapi.Field) *BackendServicesGetHealthCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *DiskTypesListCall) Do() (*DiskTypeList, error) { +func (c *BackendServicesGetHealthCall) Do() (*BackendServiceGroupHealth, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.resourcegroupreference) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") - if v, ok := c.opt_["filter"]; ok { - params.Set("filter", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["maxResults"]; ok { - params.Set("maxResults", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/diskTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices/{backendService}/getHealth") urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, + "project": c.project, + "backendService": c.backendService, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -5439,101 +6353,196 @@ func (c *DiskTypesListCall) Do() (*DiskTypeList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *DiskTypeList + var ret *BackendServiceGroupHealth if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of disk type resources available to the specified project.", - // "httpMethod": "GET", - // "id": "compute.diskTypes.list", + // "description": "Gets the most recent health check results for this BackendService.", + // "httpMethod": "POST", + // "id": "compute.backendServices.getHealth", // "parameterOrder": [ // "project", - // "zone" + // "backendService" // ], // "parameters": { - // "filter": { - // "description": "Filter expression for filtering listed resources.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "500", - // "description": "Maximum count of results to be returned.", - // "format": "uint32", - // "location": "query", - // "maximum": "500", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", - // "location": "query", + // "backendService": { + // "description": "Name of the BackendService resource to which the queried instance belongs.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" - // }, - // "zone": { - // "description": "The name of the zone for this request.", + // } + // }, + // "path": "{project}/global/backendServices/{backendService}/getHealth", + // "request": { + // "$ref": "ResourceGroupReference" + // }, + // "response": { + // "$ref": "BackendServiceGroupHealth" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.backendServices.insert": + +type BackendServicesInsertCall struct { + s *Service + project string + backendservice *BackendService + opt_ map[string]interface{} +} + +// Insert: Creates a BackendService resource in the specified project +// using the data included in the request. +// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/insert +func (r *BackendServicesService) Insert(project string, backendservice *BackendService) *BackendServicesInsertCall { + c := &BackendServicesInsertCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.backendservice = backendservice + 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 *BackendServicesInsertCall) Fields(s ...googleapi.Field) *BackendServicesInsertCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *BackendServicesInsertCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.backendservice) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a BackendService resource in the specified project using the data included in the request.", + // "httpMethod": "POST", + // "id": "compute.backendServices.insert", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "project": { + // "description": "Name of the project scoping this request.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // } // }, - // "path": "{project}/zones/{zone}/diskTypes", + // "path": "{project}/global/backendServices", + // "request": { + // "$ref": "BackendService" + // }, // "response": { - // "$ref": "DiskTypeList" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/compute.readonly" + // "https://www.googleapis.com/auth/compute" // ] // } } -// method id "compute.disks.aggregatedList": +// method id "compute.backendServices.list": -type DisksAggregatedListCall struct { +type BackendServicesListCall struct { s *Service project string opt_ map[string]interface{} } -// AggregatedList: Retrieves the list of disks grouped by scope. -// For details, see https://cloud.google.com/compute/docs/reference/latest/disks/aggregatedList -func (r *DisksService) AggregatedList(project string) *DisksAggregatedListCall { - c := &DisksAggregatedListCall{s: r.s, opt_: make(map[string]interface{})} +// List: Retrieves the list of BackendService resources available to the +// specified project. +// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/list +func (r *BackendServicesService) List(project string) *BackendServicesListCall { + c := &BackendServicesListCall{s: r.s, opt_: make(map[string]interface{})} c.project = project return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *DisksAggregatedListCall) Filter(filter string) *DisksAggregatedListCall { +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *BackendServicesListCall) Filter(filter string) *BackendServicesListCall { c.opt_["filter"] = filter return c } // MaxResults sets the optional parameter "maxResults": Maximum count of // results to be returned. -func (c *DisksAggregatedListCall) MaxResults(maxResults int64) *DisksAggregatedListCall { +func (c *BackendServicesListCall) MaxResults(maxResults int64) *BackendServicesListCall { c.opt_["maxResults"] = maxResults return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *DisksAggregatedListCall) PageToken(pageToken string) *DisksAggregatedListCall { +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *BackendServicesListCall) PageToken(pageToken string) *BackendServicesListCall { c.opt_["pageToken"] = pageToken return c } @@ -5541,12 +6550,12 @@ func (c *DisksAggregatedListCall) PageToken(pageToken string) *DisksAggregatedLi // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *DisksAggregatedListCall) Fields(s ...googleapi.Field) *DisksAggregatedListCall { +func (c *BackendServicesListCall) Fields(s ...googleapi.Field) *BackendServicesListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *DisksAggregatedListCall) Do() (*DiskAggregatedList, error) { +func (c *BackendServicesListCall) Do() (*BackendServiceList, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") @@ -5562,7 +6571,7 @@ func (c *DisksAggregatedListCall) Do() (*DiskAggregatedList, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/aggregated/disks") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ @@ -5577,21 +6586,21 @@ func (c *DisksAggregatedListCall) Do() (*DiskAggregatedList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *DiskAggregatedList + var ret *BackendServiceList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of disks grouped by scope.", + // "description": "Retrieves the list of BackendService resources available to the specified project.", // "httpMethod": "GET", - // "id": "compute.disks.aggregatedList", + // "id": "compute.backendServices.list", // "parameterOrder": [ // "project" // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -5605,21 +6614,21 @@ func (c *DisksAggregatedListCall) Do() (*DiskAggregatedList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, // "project": { - // "description": "Project ID for this request.", + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // } // }, - // "path": "{project}/aggregated/disks", + // "path": "{project}/global/backendServices", // "response": { - // "$ref": "DiskAggregatedList" + // "$ref": "BackendServiceList" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -5630,39 +6639,38 @@ func (c *DisksAggregatedListCall) Do() (*DiskAggregatedList, error) { } -// method id "compute.disks.createSnapshot": +// method id "compute.backendServices.patch": -type DisksCreateSnapshotCall struct { - s *Service - project string - zone string - disk string - snapshot *Snapshot - opt_ map[string]interface{} +type BackendServicesPatchCall struct { + s *Service + project string + backendService string + backendservice *BackendService + opt_ map[string]interface{} } -// CreateSnapshot: Creates a snapshot of this disk. -// For details, see https://cloud.google.com/compute/docs/reference/latest/disks/createSnapshot -func (r *DisksService) CreateSnapshot(project string, zone string, disk string, snapshot *Snapshot) *DisksCreateSnapshotCall { - c := &DisksCreateSnapshotCall{s: r.s, opt_: make(map[string]interface{})} +// Patch: Update the entire content of the BackendService resource. This +// method supports patch semantics. +// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/patch +func (r *BackendServicesService) Patch(project string, backendService string, backendservice *BackendService) *BackendServicesPatchCall { + c := &BackendServicesPatchCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.zone = zone - c.disk = disk - c.snapshot = snapshot + c.backendService = backendService + c.backendservice = backendservice 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 *DisksCreateSnapshotCall) Fields(s ...googleapi.Field) *DisksCreateSnapshotCall { +func (c *BackendServicesPatchCall) Fields(s ...googleapi.Field) *BackendServicesPatchCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *DisksCreateSnapshotCall) Do() (*Operation, error) { +func (c *BackendServicesPatchCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.snapshot) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.backendservice) if err != nil { return nil, err } @@ -5672,13 +6680,12 @@ func (c *DisksCreateSnapshotCall) Do() (*Operation, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/disks/{disk}/createSnapshot") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices/{backendService}") urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) + req, _ := http.NewRequest("PATCH", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, - "disk": c.disk, + "project": c.project, + "backendService": c.backendService, }) req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) @@ -5696,40 +6703,32 @@ func (c *DisksCreateSnapshotCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Creates a snapshot of this disk.", - // "httpMethod": "POST", - // "id": "compute.disks.createSnapshot", + // "description": "Update the entire content of the BackendService resource. This method supports patch semantics.", + // "httpMethod": "PATCH", + // "id": "compute.backendServices.patch", // "parameterOrder": [ // "project", - // "zone", - // "disk" + // "backendService" // ], // "parameters": { - // "disk": { - // "description": "Name of the persistent disk to snapshot.", + // "backendService": { + // "description": "Name of the BackendService resource to update.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Project ID for this request.", + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "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}/disks/{disk}/createSnapshot", + // "path": "{project}/global/backendServices/{backendService}", // "request": { - // "$ref": "Snapshot" + // "$ref": "BackendService" // }, // "response": { // "$ref": "Operation" @@ -5742,49 +6741,54 @@ func (c *DisksCreateSnapshotCall) Do() (*Operation, error) { } -// method id "compute.disks.delete": - -type DisksDeleteCall struct { - s *Service - project string - zone string - disk string - opt_ map[string]interface{} -} +// method id "compute.backendServices.update": -// Delete: Deletes the specified persistent disk. -// For details, see https://cloud.google.com/compute/docs/reference/latest/disks/delete -func (r *DisksService) Delete(project string, zone string, disk string) *DisksDeleteCall { - c := &DisksDeleteCall{s: r.s, opt_: make(map[string]interface{})} +type BackendServicesUpdateCall struct { + s *Service + project string + backendService string + backendservice *BackendService + opt_ map[string]interface{} +} + +// Update: Update the entire content of the BackendService resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/update +func (r *BackendServicesService) Update(project string, backendService string, backendservice *BackendService) *BackendServicesUpdateCall { + c := &BackendServicesUpdateCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.zone = zone - c.disk = disk + c.backendService = backendService + c.backendservice = backendservice 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 *DisksDeleteCall) Fields(s ...googleapi.Field) *DisksDeleteCall { +func (c *BackendServicesUpdateCall) Fields(s ...googleapi.Field) *BackendServicesUpdateCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *DisksDeleteCall) Do() (*Operation, error) { +func (c *BackendServicesUpdateCall) Do() (*Operation, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.backendservice) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/disks/{disk}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/backendServices/{backendService}") urls += "?" + params.Encode() - req, _ := http.NewRequest("DELETE", urls, body) + req, _ := http.NewRequest("PUT", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, - "disk": c.disk, + "project": c.project, + "backendService": c.backendService, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -5800,38 +6804,33 @@ func (c *DisksDeleteCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Deletes the specified persistent disk.", - // "httpMethod": "DELETE", - // "id": "compute.disks.delete", + // "description": "Update the entire content of the BackendService resource.", + // "httpMethod": "PUT", + // "id": "compute.backendServices.update", // "parameterOrder": [ // "project", - // "zone", - // "disk" + // "backendService" // ], // "parameters": { - // "disk": { - // "description": "Name of the persistent disk to delete.", + // "backendService": { + // "description": "Name of the BackendService resource to update.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Project ID for this request.", + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "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}/disks/{disk}", + // "path": "{project}/global/backendServices/{backendService}", + // "request": { + // "$ref": "BackendService" + // }, // "response": { // "$ref": "Operation" // }, @@ -5843,48 +6842,94 @@ func (c *DisksDeleteCall) Do() (*Operation, error) { } -// method id "compute.disks.get": +// method id "compute.diskTypes.aggregatedList": -type DisksGetCall struct { +type DiskTypesAggregatedListCall struct { s *Service project string - zone string - disk string opt_ map[string]interface{} } -// Get: Returns a specified persistent disk. -// For details, see https://cloud.google.com/compute/docs/reference/latest/disks/get -func (r *DisksService) Get(project string, zone string, disk string) *DisksGetCall { - c := &DisksGetCall{s: r.s, opt_: make(map[string]interface{})} +// AggregatedList: Retrieves the list of disk type resources grouped by +// scope. +// For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/aggregatedList +func (r *DiskTypesService) AggregatedList(project string) *DiskTypesAggregatedListCall { + c := &DiskTypesAggregatedListCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.zone = zone - c.disk = disk + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *DiskTypesAggregatedListCall) Filter(filter string) *DiskTypesAggregatedListCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *DiskTypesAggregatedListCall) MaxResults(maxResults int64) *DiskTypesAggregatedListCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *DiskTypesAggregatedListCall) PageToken(pageToken string) *DiskTypesAggregatedListCall { + c.opt_["pageToken"] = pageToken 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 *DisksGetCall) Fields(s ...googleapi.Field) *DisksGetCall { +func (c *DiskTypesAggregatedListCall) Fields(s ...googleapi.Field) *DiskTypesAggregatedListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *DisksGetCall) Do() (*Disk, error) { +func (c *DiskTypesAggregatedListCall) Do() (*DiskTypeAggregatedList, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/disks/{disk}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/aggregated/diskTypes") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "zone": c.zone, - "disk": c.disk, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -5895,26 +6940,36 @@ func (c *DisksGetCall) Do() (*Disk, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *Disk + var ret *DiskTypeAggregatedList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Returns a specified persistent disk.", + // "description": "Retrieves the list of disk type resources grouped by scope.", // "httpMethod": "GET", - // "id": "compute.disks.get", + // "id": "compute.diskTypes.aggregatedList", // "parameterOrder": [ - // "project", - // "zone", - // "disk" + // "project" // ], // "parameters": { - // "disk": { - // "description": "Name of the persistent disk to return.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", // "type": "string" // }, // "project": { @@ -5923,18 +6978,11 @@ func (c *DisksGetCall) Do() (*Disk, error) { // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "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}/disks/{disk}", + // "path": "{project}/aggregated/diskTypes", // "response": { - // "$ref": "Disk" + // "$ref": "DiskTypeAggregatedList" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -5945,65 +6993,49 @@ func (c *DisksGetCall) Do() (*Disk, error) { } -// method id "compute.disks.insert": +// method id "compute.diskTypes.get": -type DisksInsertCall struct { - s *Service - project string - zone string - disk *Disk - opt_ map[string]interface{} +type DiskTypesGetCall struct { + s *Service + project string + zone string + diskType string + opt_ map[string]interface{} } -// Insert: Creates a persistent disk in the specified project using the -// data included in the request. -// For details, see https://cloud.google.com/compute/docs/reference/latest/disks/insert -func (r *DisksService) Insert(project string, zone string, disk *Disk) *DisksInsertCall { - c := &DisksInsertCall{s: r.s, opt_: make(map[string]interface{})} +// Get: Returns the specified disk type resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/get +func (r *DiskTypesService) Get(project string, zone string, diskType string) *DiskTypesGetCall { + c := &DiskTypesGetCall{s: r.s, opt_: make(map[string]interface{})} c.project = project c.zone = zone - c.disk = disk - return c -} - -// SourceImage sets the optional parameter "sourceImage": Source image -// to restore onto a disk. -func (c *DisksInsertCall) SourceImage(sourceImage string) *DisksInsertCall { - c.opt_["sourceImage"] = sourceImage + c.diskType = diskType 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 *DisksInsertCall) Fields(s ...googleapi.Field) *DisksInsertCall { +func (c *DiskTypesGetCall) Fields(s ...googleapi.Field) *DiskTypesGetCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *DisksInsertCall) Do() (*Operation, error) { +func (c *DiskTypesGetCall) Do() (*DiskType, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.disk) - if err != nil { - return nil, err - } - ctype := "application/json" params := make(url.Values) params.Set("alt", "json") - if v, ok := c.opt_["sourceImage"]; ok { - params.Set("sourceImage", fmt.Sprintf("%v", v)) - } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/disks") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/diskTypes/{diskType}") urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) + req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, + "project": c.project, + "zone": c.zone, + "diskType": c.diskType, }) - req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -6013,20 +7045,28 @@ func (c *DisksInsertCall) Do() (*Operation, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *Operation + var ret *DiskType if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Creates a persistent disk in the specified project using the data included in the request.", - // "httpMethod": "POST", - // "id": "compute.disks.insert", + // "description": "Returns the specified disk type resource.", + // "httpMethod": "GET", + // "id": "compute.diskTypes.get", // "parameterOrder": [ // "project", - // "zone" + // "zone", + // "diskType" // ], // "parameters": { + // "diskType": { + // "description": "Name of the disk type resource to return.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, // "project": { // "description": "Project ID for this request.", // "location": "path", @@ -6034,11 +7074,6 @@ func (c *DisksInsertCall) Do() (*Operation, error) { // "required": true, // "type": "string" // }, - // "sourceImage": { - // "description": "Optional. Source image to restore onto a disk.", - // "location": "query", - // "type": "string" - // }, // "zone": { // "description": "The name of the zone for this request.", // "location": "path", @@ -6047,58 +7082,76 @@ func (c *DisksInsertCall) Do() (*Operation, error) { // "type": "string" // } // }, - // "path": "{project}/zones/{zone}/disks", - // "request": { - // "$ref": "Disk" - // }, + // "path": "{project}/zones/{zone}/diskTypes/{diskType}", // "response": { - // "$ref": "Operation" + // "$ref": "DiskType" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" // ] // } } -// method id "compute.disks.list": +// method id "compute.diskTypes.list": -type DisksListCall struct { +type DiskTypesListCall struct { s *Service project string zone string opt_ map[string]interface{} } -// List: Retrieves the list of persistent disks contained within the -// specified zone. -// For details, see https://cloud.google.com/compute/docs/reference/latest/disks/list -func (r *DisksService) List(project string, zone string) *DisksListCall { - c := &DisksListCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.zone = zone - return c +// List: Retrieves the list of disk type resources available to the +// specified project. +// For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/list +func (r *DiskTypesService) List(project string, zone string) *DiskTypesListCall { + c := &DiskTypesListCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.zone = zone + return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *DisksListCall) Filter(filter string) *DisksListCall { +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *DiskTypesListCall) Filter(filter string) *DiskTypesListCall { c.opt_["filter"] = filter return c } // MaxResults sets the optional parameter "maxResults": Maximum count of // results to be returned. -func (c *DisksListCall) MaxResults(maxResults int64) *DisksListCall { +func (c *DiskTypesListCall) MaxResults(maxResults int64) *DiskTypesListCall { c.opt_["maxResults"] = maxResults return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *DisksListCall) PageToken(pageToken string) *DisksListCall { +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *DiskTypesListCall) PageToken(pageToken string) *DiskTypesListCall { c.opt_["pageToken"] = pageToken return c } @@ -6106,12 +7159,12 @@ func (c *DisksListCall) PageToken(pageToken string) *DisksListCall { // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *DisksListCall) Fields(s ...googleapi.Field) *DisksListCall { +func (c *DiskTypesListCall) Fields(s ...googleapi.Field) *DiskTypesListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *DisksListCall) Do() (*DiskList, error) { +func (c *DiskTypesListCall) Do() (*DiskTypeList, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") @@ -6127,7 +7180,7 @@ func (c *DisksListCall) Do() (*DiskList, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/disks") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/diskTypes") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ @@ -6143,22 +7196,22 @@ func (c *DisksListCall) Do() (*DiskList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *DiskList + var ret *DiskTypeList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of persistent disks contained within the specified zone.", + // "description": "Retrieves the list of disk type resources available to the specified project.", // "httpMethod": "GET", - // "id": "compute.disks.list", + // "id": "compute.diskTypes.list", // "parameterOrder": [ // "project", // "zone" // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -6172,7 +7225,7 @@ func (c *DisksListCall) Do() (*DiskList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -6191,9 +7244,9 @@ func (c *DisksListCall) Do() (*DiskList, error) { // "type": "string" // } // }, - // "path": "{project}/zones/{zone}/disks", + // "path": "{project}/zones/{zone}/diskTypes", // "response": { - // "$ref": "DiskList" + // "$ref": "DiskTypeList" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -6204,45 +7257,93 @@ func (c *DisksListCall) Do() (*DiskList, error) { } -// method id "compute.firewalls.delete": +// method id "compute.disks.aggregatedList": -type FirewallsDeleteCall struct { - s *Service - project string - firewall string - opt_ map[string]interface{} +type DisksAggregatedListCall struct { + s *Service + project string + opt_ map[string]interface{} } -// Delete: Deletes the specified firewall resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/delete -func (r *FirewallsService) Delete(project string, firewall string) *FirewallsDeleteCall { - c := &FirewallsDeleteCall{s: r.s, opt_: make(map[string]interface{})} +// AggregatedList: Retrieves the list of disks grouped by scope. +// For details, see https://cloud.google.com/compute/docs/reference/latest/disks/aggregatedList +func (r *DisksService) AggregatedList(project string) *DisksAggregatedListCall { + c := &DisksAggregatedListCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.firewall = firewall + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *DisksAggregatedListCall) Filter(filter string) *DisksAggregatedListCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *DisksAggregatedListCall) MaxResults(maxResults int64) *DisksAggregatedListCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *DisksAggregatedListCall) PageToken(pageToken string) *DisksAggregatedListCall { + c.opt_["pageToken"] = pageToken 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 *FirewallsDeleteCall) Fields(s ...googleapi.Field) *FirewallsDeleteCall { +func (c *DisksAggregatedListCall) Fields(s ...googleapi.Field) *DisksAggregatedListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *FirewallsDeleteCall) Do() (*Operation, error) { +func (c *DisksAggregatedListCall) Do() (*DiskAggregatedList, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/firewalls/{firewall}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/aggregated/disks") urls += "?" + params.Encode() - req, _ := http.NewRequest("DELETE", urls, body) + req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "firewall": c.firewall, + "project": c.project, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -6253,25 +7354,36 @@ func (c *FirewallsDeleteCall) Do() (*Operation, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *Operation + var ret *DiskAggregatedList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Deletes the specified firewall resource.", - // "httpMethod": "DELETE", - // "id": "compute.firewalls.delete", + // "description": "Retrieves the list of disks grouped by scope.", + // "httpMethod": "GET", + // "id": "compute.disks.aggregatedList", // "parameterOrder": [ - // "project", - // "firewall" + // "project" // ], // "parameters": { - // "firewall": { - // "description": "Name of the firewall resource to delete.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", // "type": "string" // }, // "project": { @@ -6282,58 +7394,70 @@ func (c *FirewallsDeleteCall) Do() (*Operation, error) { // "type": "string" // } // }, - // "path": "{project}/global/firewalls/{firewall}", + // "path": "{project}/aggregated/disks", // "response": { - // "$ref": "Operation" + // "$ref": "DiskAggregatedList" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" // ] // } } -// method id "compute.firewalls.get": +// method id "compute.disks.createSnapshot": -type FirewallsGetCall struct { +type DisksCreateSnapshotCall struct { s *Service project string - firewall string + zone string + disk string + snapshot *Snapshot opt_ map[string]interface{} } -// Get: Returns the specified firewall resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/get -func (r *FirewallsService) Get(project string, firewall string) *FirewallsGetCall { - c := &FirewallsGetCall{s: r.s, opt_: make(map[string]interface{})} +// CreateSnapshot: Creates a snapshot of this disk. +// For details, see https://cloud.google.com/compute/docs/reference/latest/disks/createSnapshot +func (r *DisksService) CreateSnapshot(project string, zone string, disk string, snapshot *Snapshot) *DisksCreateSnapshotCall { + c := &DisksCreateSnapshotCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.firewall = firewall + c.zone = zone + c.disk = disk + c.snapshot = snapshot 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 *FirewallsGetCall) Fields(s ...googleapi.Field) *FirewallsGetCall { +func (c *DisksCreateSnapshotCall) Fields(s ...googleapi.Field) *DisksCreateSnapshotCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *FirewallsGetCall) Do() (*Firewall, error) { +func (c *DisksCreateSnapshotCall) Do() (*Operation, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.snapshot) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/firewalls/{firewall}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/disks/{disk}/createSnapshot") urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "firewall": c.firewall, + "project": c.project, + "zone": c.zone, + "disk": c.disk, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -6343,22 +7467,23 @@ func (c *FirewallsGetCall) Do() (*Firewall, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *Firewall + var ret *Operation if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Returns the specified firewall resource.", - // "httpMethod": "GET", - // "id": "compute.firewalls.get", + // "description": "Creates a snapshot of this disk.", + // "httpMethod": "POST", + // "id": "compute.disks.createSnapshot", // "parameterOrder": [ // "project", - // "firewall" + // "zone", + // "disk" // ], // "parameters": { - // "firewall": { - // "description": "Name of the firewall resource to return.", + // "disk": { + // "description": "Name of the persistent disk to snapshot.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, @@ -6370,67 +7495,76 @@ func (c *FirewallsGetCall) Do() (*Firewall, error) { // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "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}/global/firewalls/{firewall}", + // "path": "{project}/zones/{zone}/disks/{disk}/createSnapshot", + // "request": { + // "$ref": "Snapshot" + // }, // "response": { - // "$ref": "Firewall" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/compute.readonly" + // "https://www.googleapis.com/auth/compute" // ] // } } -// method id "compute.firewalls.insert": +// method id "compute.disks.delete": -type FirewallsInsertCall struct { - s *Service - project string - firewall *Firewall - opt_ map[string]interface{} +type DisksDeleteCall struct { + s *Service + project string + zone string + disk string + opt_ map[string]interface{} } -// Insert: Creates a firewall resource in the specified project using -// the data included in the request. -// For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/insert -func (r *FirewallsService) Insert(project string, firewall *Firewall) *FirewallsInsertCall { - c := &FirewallsInsertCall{s: r.s, opt_: make(map[string]interface{})} +// Delete: Deletes the specified persistent disk. Deleting a disk +// removes its data permanently and is irreversible. However, deleting a +// disk does not delete any snapshots previously made from the disk. You +// must separately delete snapshots. +// For details, see https://cloud.google.com/compute/docs/reference/latest/disks/delete +func (r *DisksService) Delete(project string, zone string, disk string) *DisksDeleteCall { + c := &DisksDeleteCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.firewall = firewall + c.zone = zone + c.disk = disk 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 *FirewallsInsertCall) Fields(s ...googleapi.Field) *FirewallsInsertCall { +func (c *DisksDeleteCall) Fields(s ...googleapi.Field) *DisksDeleteCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *FirewallsInsertCall) Do() (*Operation, error) { +func (c *DisksDeleteCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.firewall) - if err != nil { - return nil, err - } - ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/firewalls") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/disks/{disk}") urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) + req, _ := http.NewRequest("DELETE", urls, body) googleapi.Expand(req.URL, map[string]string{ "project": c.project, + "zone": c.zone, + "disk": c.disk, }) - req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -6446,24 +7580,2721 @@ func (c *FirewallsInsertCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Creates a firewall resource in the specified project using the data included in the request.", - // "httpMethod": "POST", - // "id": "compute.firewalls.insert", + // "description": "Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.", + // "httpMethod": "DELETE", + // "id": "compute.disks.delete", // "parameterOrder": [ - // "project" + // "project", + // "zone", + // "disk" // ], // "parameters": { + // "disk": { + // "description": "Name of the persistent disk to delete.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "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}/disks/{disk}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.disks.get": + +type DisksGetCall struct { + s *Service + project string + zone string + disk string + opt_ map[string]interface{} +} + +// Get: Returns a specified persistent disk. +// For details, see https://cloud.google.com/compute/docs/reference/latest/disks/get +func (r *DisksService) Get(project string, zone string, disk string) *DisksGetCall { + c := &DisksGetCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.zone = zone + c.disk = disk + 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 *DisksGetCall) Fields(s ...googleapi.Field) *DisksGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *DisksGetCall) Do() (*Disk, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/disks/{disk}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "disk": c.disk, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Disk + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns a specified persistent disk.", + // "httpMethod": "GET", + // "id": "compute.disks.get", + // "parameterOrder": [ + // "project", + // "zone", + // "disk" + // ], + // "parameters": { + // "disk": { + // "description": "Name of the persistent disk to return.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "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}/disks/{disk}", + // "response": { + // "$ref": "Disk" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.disks.insert": + +type DisksInsertCall struct { + s *Service + project string + zone string + disk *Disk + opt_ map[string]interface{} +} + +// Insert: Creates a persistent disk in the specified project using the +// data included in the request. +// For details, see https://cloud.google.com/compute/docs/reference/latest/disks/insert +func (r *DisksService) Insert(project string, zone string, disk *Disk) *DisksInsertCall { + c := &DisksInsertCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.zone = zone + c.disk = disk + return c +} + +// SourceImage sets the optional parameter "sourceImage": Source image +// to restore onto a disk. +func (c *DisksInsertCall) SourceImage(sourceImage string) *DisksInsertCall { + c.opt_["sourceImage"] = sourceImage + 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 *DisksInsertCall) Fields(s ...googleapi.Field) *DisksInsertCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *DisksInsertCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.disk) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["sourceImage"]; ok { + params.Set("sourceImage", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/disks") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a persistent disk in the specified project using the data included in the request.", + // "httpMethod": "POST", + // "id": "compute.disks.insert", + // "parameterOrder": [ + // "project", + // "zone" + // ], + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "sourceImage": { + // "description": "Optional. Source image to restore onto a disk.", + // "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}/disks", + // "request": { + // "$ref": "Disk" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.disks.list": + +type DisksListCall struct { + s *Service + project string + zone string + opt_ map[string]interface{} +} + +// List: Retrieves the list of persistent disks contained within the +// specified zone. +// For details, see https://cloud.google.com/compute/docs/reference/latest/disks/list +func (r *DisksService) List(project string, zone string) *DisksListCall { + c := &DisksListCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.zone = zone + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *DisksListCall) Filter(filter string) *DisksListCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *DisksListCall) MaxResults(maxResults int64) *DisksListCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *DisksListCall) PageToken(pageToken string) *DisksListCall { + c.opt_["pageToken"] = pageToken + 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 *DisksListCall) Fields(s ...googleapi.Field) *DisksListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *DisksListCall) Do() (*DiskList, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/disks") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *DiskList + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves the list of persistent disks contained within the specified zone.", + // "httpMethod": "GET", + // "id": "compute.disks.list", + // "parameterOrder": [ + // "project", + // "zone" + // ], + // "parameters": { + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "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}/disks", + // "response": { + // "$ref": "DiskList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.firewalls.delete": + +type FirewallsDeleteCall struct { + s *Service + project string + firewall string + opt_ map[string]interface{} +} + +// Delete: Deletes the specified firewall resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/delete +func (r *FirewallsService) Delete(project string, firewall string) *FirewallsDeleteCall { + c := &FirewallsDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.firewall = firewall + 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 *FirewallsDeleteCall) Fields(s ...googleapi.Field) *FirewallsDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *FirewallsDeleteCall) Do() (*Operation, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/firewalls/{firewall}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "firewall": c.firewall, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the specified firewall resource.", + // "httpMethod": "DELETE", + // "id": "compute.firewalls.delete", + // "parameterOrder": [ + // "project", + // "firewall" + // ], + // "parameters": { + // "firewall": { + // "description": "Name of the firewall resource to delete.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/firewalls/{firewall}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.firewalls.get": + +type FirewallsGetCall struct { + s *Service + project string + firewall string + opt_ map[string]interface{} +} + +// Get: Returns the specified firewall resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/get +func (r *FirewallsService) Get(project string, firewall string) *FirewallsGetCall { + c := &FirewallsGetCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.firewall = firewall + 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 *FirewallsGetCall) Fields(s ...googleapi.Field) *FirewallsGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *FirewallsGetCall) Do() (*Firewall, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/firewalls/{firewall}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "firewall": c.firewall, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Firewall + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the specified firewall resource.", + // "httpMethod": "GET", + // "id": "compute.firewalls.get", + // "parameterOrder": [ + // "project", + // "firewall" + // ], + // "parameters": { + // "firewall": { + // "description": "Name of the firewall resource to return.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/firewalls/{firewall}", + // "response": { + // "$ref": "Firewall" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.firewalls.insert": + +type FirewallsInsertCall struct { + s *Service + project string + firewall *Firewall + opt_ map[string]interface{} +} + +// Insert: Creates a firewall resource in the specified project using +// the data included in the request. +// For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/insert +func (r *FirewallsService) Insert(project string, firewall *Firewall) *FirewallsInsertCall { + c := &FirewallsInsertCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.firewall = firewall + 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 *FirewallsInsertCall) Fields(s ...googleapi.Field) *FirewallsInsertCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *FirewallsInsertCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.firewall) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/firewalls") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a firewall resource in the specified project using the data included in the request.", + // "httpMethod": "POST", + // "id": "compute.firewalls.insert", + // "parameterOrder": [ + // "project" + // ], + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/firewalls", + // "request": { + // "$ref": "Firewall" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.firewalls.list": + +type FirewallsListCall struct { + s *Service + project string + opt_ map[string]interface{} +} + +// List: Retrieves the list of firewall resources available to the +// specified project. +// For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/list +func (r *FirewallsService) List(project string) *FirewallsListCall { + c := &FirewallsListCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *FirewallsListCall) Filter(filter string) *FirewallsListCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *FirewallsListCall) MaxResults(maxResults int64) *FirewallsListCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *FirewallsListCall) PageToken(pageToken string) *FirewallsListCall { + c.opt_["pageToken"] = pageToken + 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 *FirewallsListCall) Fields(s ...googleapi.Field) *FirewallsListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *FirewallsListCall) Do() (*FirewallList, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/firewalls") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *FirewallList + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves the list of firewall resources available to the specified project.", + // "httpMethod": "GET", + // "id": "compute.firewalls.list", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, // "path": "{project}/global/firewalls", + // "response": { + // "$ref": "FirewallList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.firewalls.patch": + +type FirewallsPatchCall struct { + s *Service + project string + firewall string + firewall2 *Firewall + opt_ map[string]interface{} +} + +// Patch: Updates the specified firewall resource with the data included +// in the request. This method supports patch semantics. +// For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/patch +func (r *FirewallsService) Patch(project string, firewall string, firewall2 *Firewall) *FirewallsPatchCall { + c := &FirewallsPatchCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.firewall = firewall + c.firewall2 = firewall2 + 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 *FirewallsPatchCall) Fields(s ...googleapi.Field) *FirewallsPatchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *FirewallsPatchCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.firewall2) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/firewalls/{firewall}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("PATCH", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "firewall": c.firewall, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the specified firewall resource with the data included in the request. This method supports patch semantics.", + // "httpMethod": "PATCH", + // "id": "compute.firewalls.patch", + // "parameterOrder": [ + // "project", + // "firewall" + // ], + // "parameters": { + // "firewall": { + // "description": "Name of the firewall resource to update.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/firewalls/{firewall}", + // "request": { + // "$ref": "Firewall" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.firewalls.update": + +type FirewallsUpdateCall struct { + s *Service + project string + firewall string + firewall2 *Firewall + opt_ map[string]interface{} +} + +// Update: Updates the specified firewall resource with the data +// included in the request. +// For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/update +func (r *FirewallsService) Update(project string, firewall string, firewall2 *Firewall) *FirewallsUpdateCall { + c := &FirewallsUpdateCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.firewall = firewall + c.firewall2 = firewall2 + 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 *FirewallsUpdateCall) Fields(s ...googleapi.Field) *FirewallsUpdateCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *FirewallsUpdateCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.firewall2) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/firewalls/{firewall}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("PUT", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "firewall": c.firewall, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the specified firewall resource with the data included in the request.", + // "httpMethod": "PUT", + // "id": "compute.firewalls.update", + // "parameterOrder": [ + // "project", + // "firewall" + // ], + // "parameters": { + // "firewall": { + // "description": "Name of the firewall resource to update.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/firewalls/{firewall}", + // "request": { + // "$ref": "Firewall" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.forwardingRules.aggregatedList": + +type ForwardingRulesAggregatedListCall struct { + s *Service + project string + opt_ map[string]interface{} +} + +// AggregatedList: Retrieves the list of forwarding rules grouped by +// scope. +// For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/aggregatedList +func (r *ForwardingRulesService) AggregatedList(project string) *ForwardingRulesAggregatedListCall { + c := &ForwardingRulesAggregatedListCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *ForwardingRulesAggregatedListCall) Filter(filter string) *ForwardingRulesAggregatedListCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *ForwardingRulesAggregatedListCall) MaxResults(maxResults int64) *ForwardingRulesAggregatedListCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *ForwardingRulesAggregatedListCall) PageToken(pageToken string) *ForwardingRulesAggregatedListCall { + c.opt_["pageToken"] = pageToken + 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 *ForwardingRulesAggregatedListCall) Fields(s ...googleapi.Field) *ForwardingRulesAggregatedListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ForwardingRulesAggregatedListCall) Do() (*ForwardingRuleAggregatedList, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/aggregated/forwardingRules") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ForwardingRuleAggregatedList + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves the list of forwarding rules grouped by scope.", + // "httpMethod": "GET", + // "id": "compute.forwardingRules.aggregatedList", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/aggregated/forwardingRules", + // "response": { + // "$ref": "ForwardingRuleAggregatedList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.forwardingRules.delete": + +type ForwardingRulesDeleteCall struct { + s *Service + project string + region string + forwardingRule string + opt_ map[string]interface{} +} + +// Delete: Deletes the specified ForwardingRule resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/delete +func (r *ForwardingRulesService) Delete(project string, region string, forwardingRule string) *ForwardingRulesDeleteCall { + c := &ForwardingRulesDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.region = region + c.forwardingRule = forwardingRule + 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 *ForwardingRulesDeleteCall) Fields(s ...googleapi.Field) *ForwardingRulesDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ForwardingRulesDeleteCall) Do() (*Operation, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/regions/{region}/forwardingRules/{forwardingRule}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "forwardingRule": c.forwardingRule, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the specified ForwardingRule resource.", + // "httpMethod": "DELETE", + // "id": "compute.forwardingRules.delete", + // "parameterOrder": [ + // "project", + // "region", + // "forwardingRule" + // ], + // "parameters": { + // "forwardingRule": { + // "description": "Name of the ForwardingRule resource to delete.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Name of the project scoping 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-z](?:[-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" + // } + // }, + // "path": "{project}/regions/{region}/forwardingRules/{forwardingRule}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.forwardingRules.get": + +type ForwardingRulesGetCall struct { + s *Service + project string + region string + forwardingRule string + opt_ map[string]interface{} +} + +// Get: Returns the specified ForwardingRule resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/get +func (r *ForwardingRulesService) Get(project string, region string, forwardingRule string) *ForwardingRulesGetCall { + c := &ForwardingRulesGetCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.region = region + c.forwardingRule = forwardingRule + 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 *ForwardingRulesGetCall) Fields(s ...googleapi.Field) *ForwardingRulesGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ForwardingRulesGetCall) Do() (*ForwardingRule, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/regions/{region}/forwardingRules/{forwardingRule}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "forwardingRule": c.forwardingRule, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ForwardingRule + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the specified ForwardingRule resource.", + // "httpMethod": "GET", + // "id": "compute.forwardingRules.get", + // "parameterOrder": [ + // "project", + // "region", + // "forwardingRule" + // ], + // "parameters": { + // "forwardingRule": { + // "description": "Name of the ForwardingRule resource to return.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Name of the project scoping 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-z](?:[-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" + // } + // }, + // "path": "{project}/regions/{region}/forwardingRules/{forwardingRule}", + // "response": { + // "$ref": "ForwardingRule" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.forwardingRules.insert": + +type ForwardingRulesInsertCall struct { + s *Service + project string + region string + forwardingrule *ForwardingRule + opt_ map[string]interface{} +} + +// Insert: Creates a ForwardingRule resource in the specified project +// and region using the data included in the request. +// For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/insert +func (r *ForwardingRulesService) Insert(project string, region string, forwardingrule *ForwardingRule) *ForwardingRulesInsertCall { + c := &ForwardingRulesInsertCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.region = region + c.forwardingrule = forwardingrule + 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 *ForwardingRulesInsertCall) Fields(s ...googleapi.Field) *ForwardingRulesInsertCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ForwardingRulesInsertCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.forwardingrule) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/regions/{region}/forwardingRules") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a ForwardingRule resource in the specified project and region using the data included in the request.", + // "httpMethod": "POST", + // "id": "compute.forwardingRules.insert", + // "parameterOrder": [ + // "project", + // "region" + // ], + // "parameters": { + // "project": { + // "description": "Name of the project scoping 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-z](?:[-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" + // } + // }, + // "path": "{project}/regions/{region}/forwardingRules", + // "request": { + // "$ref": "ForwardingRule" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.forwardingRules.list": + +type ForwardingRulesListCall struct { + s *Service + project string + region string + opt_ map[string]interface{} +} + +// List: Retrieves the list of ForwardingRule resources available to the +// specified project and region. +// For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/list +func (r *ForwardingRulesService) List(project string, region string) *ForwardingRulesListCall { + c := &ForwardingRulesListCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.region = region + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *ForwardingRulesListCall) Filter(filter string) *ForwardingRulesListCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *ForwardingRulesListCall) MaxResults(maxResults int64) *ForwardingRulesListCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *ForwardingRulesListCall) PageToken(pageToken string) *ForwardingRulesListCall { + c.opt_["pageToken"] = pageToken + 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 *ForwardingRulesListCall) Fields(s ...googleapi.Field) *ForwardingRulesListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ForwardingRulesListCall) Do() (*ForwardingRuleList, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/regions/{region}/forwardingRules") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ForwardingRuleList + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves the list of ForwardingRule resources available to the specified project and region.", + // "httpMethod": "GET", + // "id": "compute.forwardingRules.list", + // "parameterOrder": [ + // "project", + // "region" + // ], + // "parameters": { + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "Name of the project scoping 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-z](?:[-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" + // } + // }, + // "path": "{project}/regions/{region}/forwardingRules", + // "response": { + // "$ref": "ForwardingRuleList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.forwardingRules.setTarget": + +type ForwardingRulesSetTargetCall struct { + s *Service + project string + region string + forwardingRule string + targetreference *TargetReference + opt_ map[string]interface{} +} + +// SetTarget: Changes target url for forwarding rule. +// For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/setTarget +func (r *ForwardingRulesService) SetTarget(project string, region string, forwardingRule string, targetreference *TargetReference) *ForwardingRulesSetTargetCall { + c := &ForwardingRulesSetTargetCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.region = region + c.forwardingRule = forwardingRule + c.targetreference = targetreference + 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 *ForwardingRulesSetTargetCall) Fields(s ...googleapi.Field) *ForwardingRulesSetTargetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ForwardingRulesSetTargetCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetreference) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "forwardingRule": c.forwardingRule, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Changes target url for forwarding rule.", + // "httpMethod": "POST", + // "id": "compute.forwardingRules.setTarget", + // "parameterOrder": [ + // "project", + // "region", + // "forwardingRule" + // ], + // "parameters": { + // "forwardingRule": { + // "description": "Name of the ForwardingRule resource in which target is to be set.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Name of the project scoping 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-z](?:[-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" + // } + // }, + // "path": "{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget", + // "request": { + // "$ref": "TargetReference" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.globalAddresses.delete": + +type GlobalAddressesDeleteCall struct { + s *Service + project string + address string + opt_ map[string]interface{} +} + +// Delete: Deletes the specified address resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/delete +func (r *GlobalAddressesService) Delete(project string, address string) *GlobalAddressesDeleteCall { + c := &GlobalAddressesDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.address = address + 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 *GlobalAddressesDeleteCall) Fields(s ...googleapi.Field) *GlobalAddressesDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *GlobalAddressesDeleteCall) Do() (*Operation, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/addresses/{address}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "address": c.address, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the specified address resource.", + // "httpMethod": "DELETE", + // "id": "compute.globalAddresses.delete", + // "parameterOrder": [ + // "project", + // "address" + // ], + // "parameters": { + // "address": { + // "description": "Name of the address resource to delete.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/addresses/{address}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.globalAddresses.get": + +type GlobalAddressesGetCall struct { + s *Service + project string + address string + opt_ map[string]interface{} +} + +// Get: Returns the specified address resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/get +func (r *GlobalAddressesService) Get(project string, address string) *GlobalAddressesGetCall { + c := &GlobalAddressesGetCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.address = address + 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 *GlobalAddressesGetCall) Fields(s ...googleapi.Field) *GlobalAddressesGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *GlobalAddressesGetCall) Do() (*Address, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/addresses/{address}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "address": c.address, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Address + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the specified address resource.", + // "httpMethod": "GET", + // "id": "compute.globalAddresses.get", + // "parameterOrder": [ + // "project", + // "address" + // ], + // "parameters": { + // "address": { + // "description": "Name of the address resource to return.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/addresses/{address}", + // "response": { + // "$ref": "Address" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.globalAddresses.insert": + +type GlobalAddressesInsertCall struct { + s *Service + project string + address *Address + opt_ map[string]interface{} +} + +// Insert: Creates an address resource in the specified project using +// the data included in the request. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/insert +func (r *GlobalAddressesService) Insert(project string, address *Address) *GlobalAddressesInsertCall { + c := &GlobalAddressesInsertCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.address = address + 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 *GlobalAddressesInsertCall) Fields(s ...googleapi.Field) *GlobalAddressesInsertCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *GlobalAddressesInsertCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.address) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/addresses") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an address resource in the specified project using the data included in the request.", + // "httpMethod": "POST", + // "id": "compute.globalAddresses.insert", + // "parameterOrder": [ + // "project" + // ], + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/addresses", + // "request": { + // "$ref": "Address" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.globalAddresses.list": + +type GlobalAddressesListCall struct { + s *Service + project string + opt_ map[string]interface{} +} + +// List: Retrieves the list of global address resources. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/list +func (r *GlobalAddressesService) List(project string) *GlobalAddressesListCall { + c := &GlobalAddressesListCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *GlobalAddressesListCall) Filter(filter string) *GlobalAddressesListCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *GlobalAddressesListCall) MaxResults(maxResults int64) *GlobalAddressesListCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *GlobalAddressesListCall) PageToken(pageToken string) *GlobalAddressesListCall { + c.opt_["pageToken"] = pageToken + 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 *GlobalAddressesListCall) Fields(s ...googleapi.Field) *GlobalAddressesListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *GlobalAddressesListCall) Do() (*AddressList, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/addresses") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *AddressList + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves the list of global address resources.", + // "httpMethod": "GET", + // "id": "compute.globalAddresses.list", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/addresses", + // "response": { + // "$ref": "AddressList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.globalForwardingRules.delete": + +type GlobalForwardingRulesDeleteCall struct { + s *Service + project string + forwardingRule string + opt_ map[string]interface{} +} + +// Delete: Deletes the specified ForwardingRule resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/delete +func (r *GlobalForwardingRulesService) Delete(project string, forwardingRule string) *GlobalForwardingRulesDeleteCall { + c := &GlobalForwardingRulesDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.forwardingRule = forwardingRule + 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 *GlobalForwardingRulesDeleteCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *GlobalForwardingRulesDeleteCall) Do() (*Operation, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/forwardingRules/{forwardingRule}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "forwardingRule": c.forwardingRule, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the specified ForwardingRule resource.", + // "httpMethod": "DELETE", + // "id": "compute.globalForwardingRules.delete", + // "parameterOrder": [ + // "project", + // "forwardingRule" + // ], + // "parameters": { + // "forwardingRule": { + // "description": "Name of the ForwardingRule resource to delete.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/forwardingRules/{forwardingRule}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.globalForwardingRules.get": + +type GlobalForwardingRulesGetCall struct { + s *Service + project string + forwardingRule string + opt_ map[string]interface{} +} + +// Get: Returns the specified ForwardingRule resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/get +func (r *GlobalForwardingRulesService) Get(project string, forwardingRule string) *GlobalForwardingRulesGetCall { + c := &GlobalForwardingRulesGetCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.forwardingRule = forwardingRule + 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 *GlobalForwardingRulesGetCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *GlobalForwardingRulesGetCall) Do() (*ForwardingRule, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/forwardingRules/{forwardingRule}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "forwardingRule": c.forwardingRule, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ForwardingRule + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the specified ForwardingRule resource.", + // "httpMethod": "GET", + // "id": "compute.globalForwardingRules.get", + // "parameterOrder": [ + // "project", + // "forwardingRule" + // ], + // "parameters": { + // "forwardingRule": { + // "description": "Name of the ForwardingRule resource to return.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/forwardingRules/{forwardingRule}", + // "response": { + // "$ref": "ForwardingRule" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.globalForwardingRules.insert": + +type GlobalForwardingRulesInsertCall struct { + s *Service + project string + forwardingrule *ForwardingRule + opt_ map[string]interface{} +} + +// Insert: Creates a ForwardingRule resource in the specified project +// and region using the data included in the request. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/insert +func (r *GlobalForwardingRulesService) Insert(project string, forwardingrule *ForwardingRule) *GlobalForwardingRulesInsertCall { + c := &GlobalForwardingRulesInsertCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.forwardingrule = forwardingrule + 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 *GlobalForwardingRulesInsertCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesInsertCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *GlobalForwardingRulesInsertCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.forwardingrule) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/forwardingRules") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a ForwardingRule resource in the specified project and region using the data included in the request.", + // "httpMethod": "POST", + // "id": "compute.globalForwardingRules.insert", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "project": { + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/forwardingRules", + // "request": { + // "$ref": "ForwardingRule" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.globalForwardingRules.list": + +type GlobalForwardingRulesListCall struct { + s *Service + project string + opt_ map[string]interface{} +} + +// List: Retrieves the list of ForwardingRule resources available to the +// specified project. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/list +func (r *GlobalForwardingRulesService) List(project string) *GlobalForwardingRulesListCall { + c := &GlobalForwardingRulesListCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *GlobalForwardingRulesListCall) Filter(filter string) *GlobalForwardingRulesListCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *GlobalForwardingRulesListCall) MaxResults(maxResults int64) *GlobalForwardingRulesListCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *GlobalForwardingRulesListCall) PageToken(pageToken string) *GlobalForwardingRulesListCall { + c.opt_["pageToken"] = pageToken + 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 *GlobalForwardingRulesListCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *GlobalForwardingRulesListCall) Do() (*ForwardingRuleList, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/forwardingRules") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ForwardingRuleList + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves the list of ForwardingRule resources available to the specified project.", + // "httpMethod": "GET", + // "id": "compute.globalForwardingRules.list", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/forwardingRules", + // "response": { + // "$ref": "ForwardingRuleList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.globalForwardingRules.setTarget": + +type GlobalForwardingRulesSetTargetCall struct { + s *Service + project string + forwardingRule string + targetreference *TargetReference + opt_ map[string]interface{} +} + +// SetTarget: Changes target url for forwarding rule. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/setTarget +func (r *GlobalForwardingRulesService) SetTarget(project string, forwardingRule string, targetreference *TargetReference) *GlobalForwardingRulesSetTargetCall { + c := &GlobalForwardingRulesSetTargetCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.forwardingRule = forwardingRule + c.targetreference = targetreference + 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 *GlobalForwardingRulesSetTargetCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesSetTargetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *GlobalForwardingRulesSetTargetCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetreference) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/forwardingRules/{forwardingRule}/setTarget") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "forwardingRule": c.forwardingRule, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Changes target url for forwarding rule.", + // "httpMethod": "POST", + // "id": "compute.globalForwardingRules.setTarget", + // "parameterOrder": [ + // "project", + // "forwardingRule" + // ], + // "parameters": { + // "forwardingRule": { + // "description": "Name of the ForwardingRule resource in which target is to be set.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/forwardingRules/{forwardingRule}/setTarget", // "request": { - // "$ref": "Firewall" + // "$ref": "TargetReference" // }, // "response": { // "$ref": "Operation" @@ -6476,41 +10307,61 @@ func (c *FirewallsInsertCall) Do() (*Operation, error) { } -// method id "compute.firewalls.list": +// method id "compute.globalOperations.aggregatedList": -type FirewallsListCall struct { +type GlobalOperationsAggregatedListCall struct { s *Service project string opt_ map[string]interface{} } -// List: Retrieves the list of firewall resources available to the -// specified project. -// For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/list -func (r *FirewallsService) List(project string) *FirewallsListCall { - c := &FirewallsListCall{s: r.s, opt_: make(map[string]interface{})} +// AggregatedList: Retrieves the list of all operations grouped by +// scope. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/aggregatedList +func (r *GlobalOperationsService) AggregatedList(project string) *GlobalOperationsAggregatedListCall { + c := &GlobalOperationsAggregatedListCall{s: r.s, opt_: make(map[string]interface{})} c.project = project return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *FirewallsListCall) Filter(filter string) *FirewallsListCall { +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *GlobalOperationsAggregatedListCall) Filter(filter string) *GlobalOperationsAggregatedListCall { c.opt_["filter"] = filter return c } // MaxResults sets the optional parameter "maxResults": Maximum count of // results to be returned. -func (c *FirewallsListCall) MaxResults(maxResults int64) *FirewallsListCall { +func (c *GlobalOperationsAggregatedListCall) MaxResults(maxResults int64) *GlobalOperationsAggregatedListCall { c.opt_["maxResults"] = maxResults return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *FirewallsListCall) PageToken(pageToken string) *FirewallsListCall { +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *GlobalOperationsAggregatedListCall) PageToken(pageToken string) *GlobalOperationsAggregatedListCall { c.opt_["pageToken"] = pageToken return c } @@ -6518,12 +10369,12 @@ func (c *FirewallsListCall) PageToken(pageToken string) *FirewallsListCall { // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FirewallsListCall) Fields(s ...googleapi.Field) *FirewallsListCall { +func (c *GlobalOperationsAggregatedListCall) Fields(s ...googleapi.Field) *GlobalOperationsAggregatedListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *FirewallsListCall) Do() (*FirewallList, error) { +func (c *GlobalOperationsAggregatedListCall) Do() (*OperationAggregatedList, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") @@ -6539,7 +10390,7 @@ func (c *FirewallsListCall) Do() (*FirewallList, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/firewalls") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/aggregated/operations") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ @@ -6554,21 +10405,21 @@ func (c *FirewallsListCall) Do() (*FirewallList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *FirewallList + var ret *OperationAggregatedList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of firewall resources available to the specified project.", + // "description": "Retrieves the list of all operations grouped by scope.", // "httpMethod": "GET", - // "id": "compute.firewalls.list", + // "id": "compute.globalOperations.aggregatedList", // "parameterOrder": [ // "project" // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -6582,7 +10433,7 @@ func (c *FirewallsListCall) Do() (*FirewallList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -6594,9 +10445,183 @@ func (c *FirewallsListCall) Do() (*FirewallList, error) { // "type": "string" // } // }, - // "path": "{project}/global/firewalls", + // "path": "{project}/aggregated/operations", // "response": { - // "$ref": "FirewallList" + // "$ref": "OperationAggregatedList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.globalOperations.delete": + +type GlobalOperationsDeleteCall struct { + s *Service + project string + operation string + opt_ map[string]interface{} +} + +// Delete: Deletes the specified Operations resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/delete +func (r *GlobalOperationsService) Delete(project string, operation string) *GlobalOperationsDeleteCall { + c := &GlobalOperationsDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.operation = operation + 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 *GlobalOperationsDeleteCall) Fields(s ...googleapi.Field) *GlobalOperationsDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *GlobalOperationsDeleteCall) Do() error { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/operations/{operation}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "operation": c.operation, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return err + } + return nil + // { + // "description": "Deletes the specified Operations resource.", + // "httpMethod": "DELETE", + // "id": "compute.globalOperations.delete", + // "parameterOrder": [ + // "project", + // "operation" + // ], + // "parameters": { + // "operation": { + // "description": "Name of the Operations resource to delete.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/operations/{operation}", + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.globalOperations.get": + +type GlobalOperationsGetCall struct { + s *Service + project string + operation string + opt_ map[string]interface{} +} + +// Get: Retrieves the specified Operations resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/get +func (r *GlobalOperationsService) Get(project string, operation string) *GlobalOperationsGetCall { + c := &GlobalOperationsGetCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.operation = operation + 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 *GlobalOperationsGetCall) Fields(s ...googleapi.Field) *GlobalOperationsGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *GlobalOperationsGetCall) Do() (*Operation, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/operations/{operation}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "operation": c.operation, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves the specified Operations resource.", + // "httpMethod": "GET", + // "id": "compute.globalOperations.get", + // "parameterOrder": [ + // "project", + // "operation" + // ], + // "parameters": { + // "operation": { + // "description": "Name of the Operations resource to return.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/global/operations/{operation}", + // "response": { + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -6607,55 +10632,95 @@ func (c *FirewallsListCall) Do() (*FirewallList, error) { } -// method id "compute.firewalls.patch": +// method id "compute.globalOperations.list": + +type GlobalOperationsListCall struct { + s *Service + project string + opt_ map[string]interface{} +} + +// List: Retrieves the list of Operation resources contained within the +// specified project. +// For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/list +func (r *GlobalOperationsService) List(project string) *GlobalOperationsListCall { + c := &GlobalOperationsListCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *GlobalOperationsListCall) Filter(filter string) *GlobalOperationsListCall { + c.opt_["filter"] = filter + return c +} -type FirewallsPatchCall struct { - s *Service - project string - firewall string - firewall2 *Firewall - opt_ map[string]interface{} +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *GlobalOperationsListCall) MaxResults(maxResults int64) *GlobalOperationsListCall { + c.opt_["maxResults"] = maxResults + return c } -// Patch: Updates the specified firewall resource with the data included -// in the request. This method supports patch semantics. -// For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/patch -func (r *FirewallsService) Patch(project string, firewall string, firewall2 *Firewall) *FirewallsPatchCall { - c := &FirewallsPatchCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.firewall = firewall - c.firewall2 = firewall2 +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *GlobalOperationsListCall) PageToken(pageToken string) *GlobalOperationsListCall { + c.opt_["pageToken"] = pageToken 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 *FirewallsPatchCall) Fields(s ...googleapi.Field) *FirewallsPatchCall { +func (c *GlobalOperationsListCall) Fields(s ...googleapi.Field) *GlobalOperationsListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *FirewallsPatchCall) Do() (*Operation, error) { +func (c *GlobalOperationsListCall) Do() (*OperationList, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.firewall2) - if err != nil { - return nil, err - } - ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/firewalls/{firewall}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/operations") urls += "?" + params.Encode() - req, _ := http.NewRequest("PATCH", urls, body) + req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "firewall": c.firewall, + "project": c.project, }) - req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -6665,25 +10730,36 @@ func (c *FirewallsPatchCall) Do() (*Operation, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *Operation + var ret *OperationList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Updates the specified firewall resource with the data included in the request. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "compute.firewalls.patch", + // "description": "Retrieves the list of Operation resources contained within the specified project.", + // "httpMethod": "GET", + // "id": "compute.globalOperations.list", // "parameterOrder": [ - // "project", - // "firewall" + // "project" // ], // "parameters": { - // "firewall": { - // "description": "Name of the firewall resource to update.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", // "type": "string" // }, // "project": { @@ -6694,70 +10770,59 @@ func (c *FirewallsPatchCall) Do() (*Operation, error) { // "type": "string" // } // }, - // "path": "{project}/global/firewalls/{firewall}", - // "request": { - // "$ref": "Firewall" - // }, + // "path": "{project}/global/operations", // "response": { - // "$ref": "Operation" + // "$ref": "OperationList" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" // ] // } } -// method id "compute.firewalls.update": +// method id "compute.httpHealthChecks.delete": -type FirewallsUpdateCall struct { - s *Service - project string - firewall string - firewall2 *Firewall - opt_ map[string]interface{} +type HttpHealthChecksDeleteCall struct { + s *Service + project string + httpHealthCheck string + opt_ map[string]interface{} } -// Update: Updates the specified firewall resource with the data -// included in the request. -// For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/update -func (r *FirewallsService) Update(project string, firewall string, firewall2 *Firewall) *FirewallsUpdateCall { - c := &FirewallsUpdateCall{s: r.s, opt_: make(map[string]interface{})} +// Delete: Deletes the specified HttpHealthCheck resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/delete +func (r *HttpHealthChecksService) Delete(project string, httpHealthCheck string) *HttpHealthChecksDeleteCall { + c := &HttpHealthChecksDeleteCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.firewall = firewall - c.firewall2 = firewall2 + c.httpHealthCheck = httpHealthCheck 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 *FirewallsUpdateCall) Fields(s ...googleapi.Field) *FirewallsUpdateCall { +func (c *HttpHealthChecksDeleteCall) Fields(s ...googleapi.Field) *HttpHealthChecksDeleteCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *FirewallsUpdateCall) Do() (*Operation, error) { +func (c *HttpHealthChecksDeleteCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.firewall2) - if err != nil { - return nil, err - } - ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/firewalls/{firewall}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/httpHealthChecks/{httpHealthCheck}") urls += "?" + params.Encode() - req, _ := http.NewRequest("PUT", urls, body) + req, _ := http.NewRequest("DELETE", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "firewall": c.firewall, + "project": c.project, + "httpHealthCheck": c.httpHealthCheck, }) - req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -6773,33 +10838,30 @@ func (c *FirewallsUpdateCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Updates the specified firewall resource with the data included in the request.", - // "httpMethod": "PUT", - // "id": "compute.firewalls.update", + // "description": "Deletes the specified HttpHealthCheck resource.", + // "httpMethod": "DELETE", + // "id": "compute.httpHealthChecks.delete", // "parameterOrder": [ // "project", - // "firewall" + // "httpHealthCheck" // ], // "parameters": { - // "firewall": { - // "description": "Name of the firewall resource to update.", + // "httpHealthCheck": { + // "description": "Name of the HttpHealthCheck resource to delete.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Project ID for this request.", + // "description": "Name of the project scoping 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // } // }, - // "path": "{project}/global/firewalls/{firewall}", - // "request": { - // "$ref": "Firewall" - // }, + // "path": "{project}/global/httpHealthChecks/{httpHealthCheck}", // "response": { // "$ref": "Operation" // }, @@ -6811,74 +10873,45 @@ func (c *FirewallsUpdateCall) Do() (*Operation, error) { } -// method id "compute.forwardingRules.aggregatedList": +// method id "compute.httpHealthChecks.get": -type ForwardingRulesAggregatedListCall struct { - s *Service - project string - opt_ map[string]interface{} +type HttpHealthChecksGetCall struct { + s *Service + project string + httpHealthCheck string + opt_ map[string]interface{} } -// AggregatedList: Retrieves the list of forwarding rules grouped by -// scope. -// For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/aggregatedList -func (r *ForwardingRulesService) AggregatedList(project string) *ForwardingRulesAggregatedListCall { - c := &ForwardingRulesAggregatedListCall{s: r.s, opt_: make(map[string]interface{})} +// Get: Returns the specified HttpHealthCheck resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/get +func (r *HttpHealthChecksService) Get(project string, httpHealthCheck string) *HttpHealthChecksGetCall { + c := &HttpHealthChecksGetCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - return c -} - -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *ForwardingRulesAggregatedListCall) Filter(filter string) *ForwardingRulesAggregatedListCall { - c.opt_["filter"] = filter - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum count of -// results to be returned. -func (c *ForwardingRulesAggregatedListCall) MaxResults(maxResults int64) *ForwardingRulesAggregatedListCall { - c.opt_["maxResults"] = maxResults - return c -} - -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *ForwardingRulesAggregatedListCall) PageToken(pageToken string) *ForwardingRulesAggregatedListCall { - c.opt_["pageToken"] = pageToken + c.httpHealthCheck = httpHealthCheck 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 *ForwardingRulesAggregatedListCall) Fields(s ...googleapi.Field) *ForwardingRulesAggregatedListCall { +func (c *HttpHealthChecksGetCall) Fields(s ...googleapi.Field) *HttpHealthChecksGetCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *ForwardingRulesAggregatedListCall) Do() (*ForwardingRuleAggregatedList, error) { +func (c *HttpHealthChecksGetCall) Do() (*HttpHealthCheck, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") - if v, ok := c.opt_["filter"]; ok { - params.Set("filter", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["maxResults"]; ok { - params.Set("maxResults", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/aggregated/forwardingRules") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/httpHealthChecks/{httpHealthCheck}") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "httpHealthCheck": c.httpHealthCheck, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -6889,36 +10922,25 @@ func (c *ForwardingRulesAggregatedListCall) Do() (*ForwardingRuleAggregatedList, if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *ForwardingRuleAggregatedList + var ret *HttpHealthCheck if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of forwarding rules grouped by scope.", + // "description": "Returns the specified HttpHealthCheck resource.", // "httpMethod": "GET", - // "id": "compute.forwardingRules.aggregatedList", + // "id": "compute.httpHealthChecks.get", // "parameterOrder": [ - // "project" + // "project", + // "httpHealthCheck" // ], // "parameters": { - // "filter": { - // "description": "Filter expression for filtering listed resources.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "500", - // "description": "Maximum count of results to be returned.", - // "format": "uint32", - // "location": "query", - // "maximum": "500", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", - // "location": "query", + // "httpHealthCheck": { + // "description": "Name of the HttpHealthCheck resource to return.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, // "type": "string" // }, // "project": { @@ -6929,9 +10951,9 @@ func (c *ForwardingRulesAggregatedListCall) Do() (*ForwardingRuleAggregatedList, // "type": "string" // } // }, - // "path": "{project}/aggregated/forwardingRules", + // "path": "{project}/global/httpHealthChecks/{httpHealthCheck}", // "response": { - // "$ref": "ForwardingRuleAggregatedList" + // "$ref": "HttpHealthCheck" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -6942,49 +10964,52 @@ func (c *ForwardingRulesAggregatedListCall) Do() (*ForwardingRuleAggregatedList, } -// method id "compute.forwardingRules.delete": +// method id "compute.httpHealthChecks.insert": -type ForwardingRulesDeleteCall struct { - s *Service - project string - region string - forwardingRule string - opt_ map[string]interface{} +type HttpHealthChecksInsertCall struct { + s *Service + project string + httphealthcheck *HttpHealthCheck + opt_ map[string]interface{} } -// Delete: Deletes the specified ForwardingRule resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/delete -func (r *ForwardingRulesService) Delete(project string, region string, forwardingRule string) *ForwardingRulesDeleteCall { - c := &ForwardingRulesDeleteCall{s: r.s, opt_: make(map[string]interface{})} +// Insert: Creates a HttpHealthCheck resource in the specified project +// using the data included in the request. +// For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/insert +func (r *HttpHealthChecksService) Insert(project string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksInsertCall { + c := &HttpHealthChecksInsertCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.region = region - c.forwardingRule = forwardingRule + c.httphealthcheck = httphealthcheck 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 *ForwardingRulesDeleteCall) Fields(s ...googleapi.Field) *ForwardingRulesDeleteCall { +func (c *HttpHealthChecksInsertCall) Fields(s ...googleapi.Field) *HttpHealthChecksInsertCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *ForwardingRulesDeleteCall) Do() (*Operation, error) { +func (c *HttpHealthChecksInsertCall) Do() (*Operation, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.httphealthcheck) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/regions/{region}/forwardingRules/{forwardingRule}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/httpHealthChecks") urls += "?" + params.Encode() - req, _ := http.NewRequest("DELETE", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "forwardingRule": c.forwardingRule, + "project": c.project, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -7000,38 +11025,25 @@ func (c *ForwardingRulesDeleteCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Deletes the specified ForwardingRule resource.", - // "httpMethod": "DELETE", - // "id": "compute.forwardingRules.delete", + // "description": "Creates a HttpHealthCheck resource in the specified project using the data included in the request.", + // "httpMethod": "POST", + // "id": "compute.httpHealthChecks.insert", // "parameterOrder": [ - // "project", - // "region", - // "forwardingRule" + // "project" // ], // "parameters": { - // "forwardingRule": { - // "description": "Name of the ForwardingRule resource to delete.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, - // "type": "string" - // }, // "project": { // "description": "Name of the project scoping 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-z](?:[-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" // } // }, - // "path": "{project}/regions/{region}/forwardingRules/{forwardingRule}", + // "path": "{project}/global/httpHealthChecks", + // "request": { + // "$ref": "HttpHealthCheck" + // }, // "response": { // "$ref": "Operation" // }, @@ -7043,48 +11055,94 @@ func (c *ForwardingRulesDeleteCall) Do() (*Operation, error) { } -// method id "compute.forwardingRules.get": +// method id "compute.httpHealthChecks.list": -type ForwardingRulesGetCall struct { - s *Service - project string - region string - forwardingRule string - opt_ map[string]interface{} +type HttpHealthChecksListCall struct { + s *Service + project string + opt_ map[string]interface{} } -// Get: Returns the specified ForwardingRule resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/get -func (r *ForwardingRulesService) Get(project string, region string, forwardingRule string) *ForwardingRulesGetCall { - c := &ForwardingRulesGetCall{s: r.s, opt_: make(map[string]interface{})} +// List: Retrieves the list of HttpHealthCheck resources available to +// the specified project. +// For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/list +func (r *HttpHealthChecksService) List(project string) *HttpHealthChecksListCall { + c := &HttpHealthChecksListCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.region = region - c.forwardingRule = forwardingRule + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *HttpHealthChecksListCall) Filter(filter string) *HttpHealthChecksListCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *HttpHealthChecksListCall) MaxResults(maxResults int64) *HttpHealthChecksListCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *HttpHealthChecksListCall) PageToken(pageToken string) *HttpHealthChecksListCall { + c.opt_["pageToken"] = pageToken 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 *ForwardingRulesGetCall) Fields(s ...googleapi.Field) *ForwardingRulesGetCall { +func (c *HttpHealthChecksListCall) Fields(s ...googleapi.Field) *HttpHealthChecksListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *ForwardingRulesGetCall) Do() (*ForwardingRule, error) { +func (c *HttpHealthChecksListCall) Do() (*HttpHealthCheckList, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/regions/{region}/forwardingRules/{forwardingRule}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/httpHealthChecks") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "forwardingRule": c.forwardingRule, + "project": c.project, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -7095,26 +11153,36 @@ func (c *ForwardingRulesGetCall) Do() (*ForwardingRule, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *ForwardingRule + var ret *HttpHealthCheckList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Returns the specified ForwardingRule resource.", + // "description": "Retrieves the list of HttpHealthCheck resources available to the specified project.", // "httpMethod": "GET", - // "id": "compute.forwardingRules.get", + // "id": "compute.httpHealthChecks.list", // "parameterOrder": [ - // "project", - // "region", - // "forwardingRule" + // "project" // ], // "parameters": { - // "forwardingRule": { - // "description": "Name of the ForwardingRule resource to return.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", // "type": "string" // }, // "project": { @@ -7123,18 +11191,11 @@ func (c *ForwardingRulesGetCall) Do() (*ForwardingRule, error) { // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-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" // } // }, - // "path": "{project}/regions/{region}/forwardingRules/{forwardingRule}", + // "path": "{project}/global/httpHealthChecks", // "response": { - // "$ref": "ForwardingRule" + // "$ref": "HttpHealthCheckList" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -7145,38 +11206,39 @@ func (c *ForwardingRulesGetCall) Do() (*ForwardingRule, error) { } -// method id "compute.forwardingRules.insert": +// method id "compute.httpHealthChecks.patch": -type ForwardingRulesInsertCall struct { - s *Service - project string - region string - forwardingrule *ForwardingRule - opt_ map[string]interface{} +type HttpHealthChecksPatchCall struct { + s *Service + project string + httpHealthCheck string + httphealthcheck *HttpHealthCheck + opt_ map[string]interface{} } -// Insert: Creates a ForwardingRule resource in the specified project -// and region using the data included in the request. -// For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/insert -func (r *ForwardingRulesService) Insert(project string, region string, forwardingrule *ForwardingRule) *ForwardingRulesInsertCall { - c := &ForwardingRulesInsertCall{s: r.s, opt_: make(map[string]interface{})} +// Patch: Updates a HttpHealthCheck resource in the specified project +// using the data included in the request. This method supports patch +// semantics. +// For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/patch +func (r *HttpHealthChecksService) Patch(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksPatchCall { + c := &HttpHealthChecksPatchCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.region = region - c.forwardingrule = forwardingrule + c.httpHealthCheck = httpHealthCheck + c.httphealthcheck = httphealthcheck 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 *ForwardingRulesInsertCall) Fields(s ...googleapi.Field) *ForwardingRulesInsertCall { +func (c *HttpHealthChecksPatchCall) Fields(s ...googleapi.Field) *HttpHealthChecksPatchCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *ForwardingRulesInsertCall) Do() (*Operation, error) { +func (c *HttpHealthChecksPatchCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.forwardingrule) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.httphealthcheck) if err != nil { return nil, err } @@ -7186,12 +11248,12 @@ func (c *ForwardingRulesInsertCall) Do() (*Operation, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/regions/{region}/forwardingRules") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/httpHealthChecks/{httpHealthCheck}") urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) + req, _ := http.NewRequest("PATCH", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, + "project": c.project, + "httpHealthCheck": c.httpHealthCheck, }) req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) @@ -7209,116 +11271,93 @@ func (c *ForwardingRulesInsertCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Creates a ForwardingRule resource in the specified project and region using the data included in the request.", - // "httpMethod": "POST", - // "id": "compute.forwardingRules.insert", + // "description": "Updates a HttpHealthCheck resource in the specified project using the data included in the request. This method supports patch semantics.", + // "httpMethod": "PATCH", + // "id": "compute.httpHealthChecks.patch", // "parameterOrder": [ // "project", - // "region" + // "httpHealthCheck" // ], // "parameters": { - // "project": { - // "description": "Name of the project scoping this request.", + // "httpHealthCheck": { + // "description": "Name of the HttpHealthCheck resource to update.", // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, - // "region": { - // "description": "Name of the region scoping this request.", + // "project": { + // "description": "Name of the project scoping this request.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // } // }, - // "path": "{project}/regions/{region}/forwardingRules", + // "path": "{project}/global/httpHealthChecks/{httpHealthCheck}", // "request": { - // "$ref": "ForwardingRule" + // "$ref": "HttpHealthCheck" // }, // "response": { // "$ref": "Operation" // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" - // ] - // } - -} - -// method id "compute.forwardingRules.list": - -type ForwardingRulesListCall struct { - s *Service - project string - region string - opt_ map[string]interface{} -} - -// List: Retrieves the list of ForwardingRule resources available to the -// specified project and region. -// For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/list -func (r *ForwardingRulesService) List(project string, region string) *ForwardingRulesListCall { - c := &ForwardingRulesListCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.region = region - return c -} + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *ForwardingRulesListCall) Filter(filter string) *ForwardingRulesListCall { - c.opt_["filter"] = filter - return c } -// MaxResults sets the optional parameter "maxResults": Maximum count of -// results to be returned. -func (c *ForwardingRulesListCall) MaxResults(maxResults int64) *ForwardingRulesListCall { - c.opt_["maxResults"] = maxResults - return c +// method id "compute.httpHealthChecks.update": + +type HttpHealthChecksUpdateCall struct { + s *Service + project string + httpHealthCheck string + httphealthcheck *HttpHealthCheck + opt_ map[string]interface{} } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *ForwardingRulesListCall) PageToken(pageToken string) *ForwardingRulesListCall { - c.opt_["pageToken"] = pageToken +// Update: Updates a HttpHealthCheck resource in the specified project +// using the data included in the request. +// For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/update +func (r *HttpHealthChecksService) Update(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksUpdateCall { + c := &HttpHealthChecksUpdateCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + c.httpHealthCheck = httpHealthCheck + c.httphealthcheck = httphealthcheck 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 *ForwardingRulesListCall) Fields(s ...googleapi.Field) *ForwardingRulesListCall { +func (c *HttpHealthChecksUpdateCall) Fields(s ...googleapi.Field) *HttpHealthChecksUpdateCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *ForwardingRulesListCall) Do() (*ForwardingRuleList, error) { +func (c *HttpHealthChecksUpdateCall) Do() (*Operation, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.httphealthcheck) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") - if v, ok := c.opt_["filter"]; ok { - params.Set("filter", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["maxResults"]; ok { - params.Set("maxResults", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/regions/{region}/forwardingRules") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/httpHealthChecks/{httpHealthCheck}") urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) + req, _ := http.NewRequest("PUT", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, + "project": c.project, + "httpHealthCheck": c.httpHealthCheck, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -7328,37 +11367,25 @@ func (c *ForwardingRulesListCall) Do() (*ForwardingRuleList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *ForwardingRuleList + var ret *Operation if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of ForwardingRule resources available to the specified project and region.", - // "httpMethod": "GET", - // "id": "compute.forwardingRules.list", + // "description": "Updates a HttpHealthCheck resource in the specified project using the data included in the request.", + // "httpMethod": "PUT", + // "id": "compute.httpHealthChecks.update", // "parameterOrder": [ // "project", - // "region" + // "httpHealthCheck" // ], // "parameters": { - // "filter": { - // "description": "Filter expression for filtering listed resources.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "500", - // "description": "Maximum count of results to be returned.", - // "format": "uint32", - // "location": "query", - // "maximum": "500", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", - // "location": "query", + // "httpHealthCheck": { + // "description": "Name of the HttpHealthCheck resource to update.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, // "type": "string" // }, // "project": { @@ -7367,79 +11394,63 @@ func (c *ForwardingRulesListCall) Do() (*ForwardingRuleList, error) { // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-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" // } // }, - // "path": "{project}/regions/{region}/forwardingRules", + // "path": "{project}/global/httpHealthChecks/{httpHealthCheck}", + // "request": { + // "$ref": "HttpHealthCheck" + // }, // "response": { - // "$ref": "ForwardingRuleList" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/compute.readonly" + // "https://www.googleapis.com/auth/compute" // ] // } } -// method id "compute.forwardingRules.setTarget": +// method id "compute.images.delete": -type ForwardingRulesSetTargetCall struct { - s *Service - project string - region string - forwardingRule string - targetreference *TargetReference - opt_ map[string]interface{} +type ImagesDeleteCall struct { + s *Service + project string + image string + opt_ map[string]interface{} } -// SetTarget: Changes target url for forwarding rule. -// For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/setTarget -func (r *ForwardingRulesService) SetTarget(project string, region string, forwardingRule string, targetreference *TargetReference) *ForwardingRulesSetTargetCall { - c := &ForwardingRulesSetTargetCall{s: r.s, opt_: make(map[string]interface{})} +// Delete: Deletes the specified image resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/images/delete +func (r *ImagesService) Delete(project string, image string) *ImagesDeleteCall { + c := &ImagesDeleteCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.region = region - c.forwardingRule = forwardingRule - c.targetreference = targetreference + c.image = image 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 *ForwardingRulesSetTargetCall) Fields(s ...googleapi.Field) *ForwardingRulesSetTargetCall { +func (c *ImagesDeleteCall) Fields(s ...googleapi.Field) *ImagesDeleteCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *ForwardingRulesSetTargetCall) Do() (*Operation, error) { +func (c *ImagesDeleteCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetreference) - if err != nil { - return nil, err - } - ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/images/{image}") urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) + req, _ := http.NewRequest("DELETE", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "forwardingRule": c.forwardingRule, + "project": c.project, + "image": c.image, }) - req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -7455,41 +11466,30 @@ func (c *ForwardingRulesSetTargetCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Changes target url for forwarding rule.", - // "httpMethod": "POST", - // "id": "compute.forwardingRules.setTarget", + // "description": "Deletes the specified image resource.", + // "httpMethod": "DELETE", + // "id": "compute.images.delete", // "parameterOrder": [ // "project", - // "region", - // "forwardingRule" + // "image" // ], // "parameters": { - // "forwardingRule": { - // "description": "Name of the ForwardingRule resource in which target is to be set.", + // "image": { + // "description": "Name of the image resource to delete.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Name of the project scoping this request.", + // "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-z](?:[-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" // } // }, - // "path": "{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget", - // "request": { - // "$ref": "TargetReference" - // }, + // "path": "{project}/global/images/{image}", // "response": { // "$ref": "Operation" // }, @@ -7501,46 +11501,57 @@ func (c *ForwardingRulesSetTargetCall) Do() (*Operation, error) { } -// method id "compute.globalAddresses.delete": +// method id "compute.images.deprecate": -type GlobalAddressesDeleteCall struct { - s *Service - project string - address string - opt_ map[string]interface{} +type ImagesDeprecateCall struct { + s *Service + project string + image string + deprecationstatus *DeprecationStatus + opt_ map[string]interface{} } -// Delete: Deletes the specified address resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/delete -func (r *GlobalAddressesService) Delete(project string, address string) *GlobalAddressesDeleteCall { - c := &GlobalAddressesDeleteCall{s: r.s, opt_: make(map[string]interface{})} +// Deprecate: Sets the deprecation status of an image. +// +// If an empty request body is given, clears the deprecation status +// instead. +// For details, see https://cloud.google.com/compute/docs/reference/latest/images/deprecate +func (r *ImagesService) Deprecate(project string, image string, deprecationstatus *DeprecationStatus) *ImagesDeprecateCall { + c := &ImagesDeprecateCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.address = address + c.image = image + c.deprecationstatus = deprecationstatus 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 *GlobalAddressesDeleteCall) Fields(s ...googleapi.Field) *GlobalAddressesDeleteCall { +func (c *ImagesDeprecateCall) Fields(s ...googleapi.Field) *ImagesDeprecateCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalAddressesDeleteCall) Do() (*Operation, error) { +func (c *ImagesDeprecateCall) Do() (*Operation, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.deprecationstatus) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/addresses/{address}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/images/{image}/deprecate") urls += "?" + params.Encode() - req, _ := http.NewRequest("DELETE", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "address": c.address, + "image": c.image, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -7556,16 +11567,16 @@ func (c *GlobalAddressesDeleteCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Deletes the specified address resource.", - // "httpMethod": "DELETE", - // "id": "compute.globalAddresses.delete", + // "description": "Sets the deprecation status of an image.\n\nIf an empty request body is given, clears the deprecation status instead.", + // "httpMethod": "POST", + // "id": "compute.images.deprecate", // "parameterOrder": [ // "project", - // "address" + // "image" // ], // "parameters": { - // "address": { - // "description": "Name of the address resource to delete.", + // "image": { + // "description": "Image name.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, @@ -7579,7 +11590,10 @@ func (c *GlobalAddressesDeleteCall) Do() (*Operation, error) { // "type": "string" // } // }, - // "path": "{project}/global/addresses/{address}", + // "path": "{project}/global/images/{image}/deprecate", + // "request": { + // "$ref": "DeprecationStatus" + // }, // "response": { // "$ref": "Operation" // }, @@ -7591,45 +11605,45 @@ func (c *GlobalAddressesDeleteCall) Do() (*Operation, error) { } -// method id "compute.globalAddresses.get": +// method id "compute.images.get": -type GlobalAddressesGetCall struct { +type ImagesGetCall struct { s *Service project string - address string + image string opt_ map[string]interface{} } -// Get: Returns the specified address resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/get -func (r *GlobalAddressesService) Get(project string, address string) *GlobalAddressesGetCall { - c := &GlobalAddressesGetCall{s: r.s, opt_: make(map[string]interface{})} +// Get: Returns the specified image resource. +// For details, see https://cloud.google.com/compute/docs/reference/latest/images/get +func (r *ImagesService) Get(project string, image string) *ImagesGetCall { + c := &ImagesGetCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.address = address + c.image = image 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 *GlobalAddressesGetCall) Fields(s ...googleapi.Field) *GlobalAddressesGetCall { +func (c *ImagesGetCall) Fields(s ...googleapi.Field) *ImagesGetCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalAddressesGetCall) Do() (*Address, error) { +func (c *ImagesGetCall) Do() (*Image, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/addresses/{address}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/images/{image}") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "address": c.address, + "image": c.image, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -7640,22 +11654,22 @@ func (c *GlobalAddressesGetCall) Do() (*Address, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *Address + var ret *Image if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Returns the specified address resource.", + // "description": "Returns the specified image resource.", // "httpMethod": "GET", - // "id": "compute.globalAddresses.get", + // "id": "compute.images.get", // "parameterOrder": [ // "project", - // "address" + // "image" // ], // "parameters": { - // "address": { - // "description": "Name of the address resource to return.", + // "image": { + // "description": "Name of the image resource to return.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, @@ -7669,9 +11683,9 @@ func (c *GlobalAddressesGetCall) Do() (*Address, error) { // "type": "string" // } // }, - // "path": "{project}/global/addresses/{address}", + // "path": "{project}/global/images/{image}", // "response": { - // "$ref": "Address" + // "$ref": "Image" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -7682,36 +11696,36 @@ func (c *GlobalAddressesGetCall) Do() (*Address, error) { } -// method id "compute.globalAddresses.insert": +// method id "compute.images.insert": -type GlobalAddressesInsertCall struct { +type ImagesInsertCall struct { s *Service project string - address *Address + image *Image opt_ map[string]interface{} } -// Insert: Creates an address resource in the specified project using -// the data included in the request. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/insert -func (r *GlobalAddressesService) Insert(project string, address *Address) *GlobalAddressesInsertCall { - c := &GlobalAddressesInsertCall{s: r.s, opt_: make(map[string]interface{})} +// Insert: Creates an image resource in the specified project using the +// data included in the request. +// For details, see https://cloud.google.com/compute/docs/reference/latest/images/insert +func (r *ImagesService) Insert(project string, image *Image) *ImagesInsertCall { + c := &ImagesInsertCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.address = address + c.image = image 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 *GlobalAddressesInsertCall) Fields(s ...googleapi.Field) *GlobalAddressesInsertCall { +func (c *ImagesInsertCall) Fields(s ...googleapi.Field) *ImagesInsertCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalAddressesInsertCall) Do() (*Operation, error) { +func (c *ImagesInsertCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.address) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.image) if err != nil { return nil, err } @@ -7721,7 +11735,7 @@ func (c *GlobalAddressesInsertCall) Do() (*Operation, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/addresses") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/images") urls += "?" + params.Encode() req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ @@ -7743,9 +11757,9 @@ func (c *GlobalAddressesInsertCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Creates an address resource in the specified project using the data included in the request.", + // "description": "Creates an image resource in the specified project using the data included in the request.", // "httpMethod": "POST", - // "id": "compute.globalAddresses.insert", + // "id": "compute.images.insert", // "parameterOrder": [ // "project" // ], @@ -7758,55 +11772,79 @@ func (c *GlobalAddressesInsertCall) Do() (*Operation, error) { // "type": "string" // } // }, - // "path": "{project}/global/addresses", + // "path": "{project}/global/images", // "request": { - // "$ref": "Address" + // "$ref": "Image" // }, // "response": { // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/devstorage.full_control", + // "https://www.googleapis.com/auth/devstorage.read_only", + // "https://www.googleapis.com/auth/devstorage.read_write" // ] // } } -// method id "compute.globalAddresses.list": +// method id "compute.images.list": -type GlobalAddressesListCall struct { +type ImagesListCall struct { s *Service project string opt_ map[string]interface{} } -// List: Retrieves the list of global address resources. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/list -func (r *GlobalAddressesService) List(project string) *GlobalAddressesListCall { - c := &GlobalAddressesListCall{s: r.s, opt_: make(map[string]interface{})} +// List: Retrieves the list of image resources available to the +// specified project. +// For details, see https://cloud.google.com/compute/docs/reference/latest/images/list +func (r *ImagesService) List(project string) *ImagesListCall { + c := &ImagesListCall{s: r.s, opt_: make(map[string]interface{})} c.project = project return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *GlobalAddressesListCall) Filter(filter string) *GlobalAddressesListCall { +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *ImagesListCall) Filter(filter string) *ImagesListCall { c.opt_["filter"] = filter return c } // MaxResults sets the optional parameter "maxResults": Maximum count of // results to be returned. -func (c *GlobalAddressesListCall) MaxResults(maxResults int64) *GlobalAddressesListCall { +func (c *ImagesListCall) MaxResults(maxResults int64) *ImagesListCall { c.opt_["maxResults"] = maxResults return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *GlobalAddressesListCall) PageToken(pageToken string) *GlobalAddressesListCall { +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *ImagesListCall) PageToken(pageToken string) *ImagesListCall { c.opt_["pageToken"] = pageToken return c } @@ -7814,12 +11852,12 @@ func (c *GlobalAddressesListCall) PageToken(pageToken string) *GlobalAddressesLi // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *GlobalAddressesListCall) Fields(s ...googleapi.Field) *GlobalAddressesListCall { +func (c *ImagesListCall) Fields(s ...googleapi.Field) *ImagesListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalAddressesListCall) Do() (*AddressList, error) { +func (c *ImagesListCall) Do() (*ImageList, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") @@ -7835,7 +11873,7 @@ func (c *GlobalAddressesListCall) Do() (*AddressList, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/addresses") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/images") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ @@ -7850,21 +11888,21 @@ func (c *GlobalAddressesListCall) Do() (*AddressList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *AddressList + var ret *ImageList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of global address resources.", + // "description": "Retrieves the list of image resources available to the specified project.", // "httpMethod": "GET", - // "id": "compute.globalAddresses.list", + // "id": "compute.images.list", // "parameterOrder": [ // "project" // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -7878,7 +11916,7 @@ func (c *GlobalAddressesListCall) Do() (*AddressList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -7890,9 +11928,9 @@ func (c *GlobalAddressesListCall) Do() (*AddressList, error) { // "type": "string" // } // }, - // "path": "{project}/global/addresses", + // "path": "{project}/global/images", // "response": { - // "$ref": "AddressList" + // "$ref": "ImageList" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -7903,46 +11941,60 @@ func (c *GlobalAddressesListCall) Do() (*AddressList, error) { } -// method id "compute.globalForwardingRules.delete": +// method id "compute.instanceGroupManagers.abandonInstances": -type GlobalForwardingRulesDeleteCall struct { - s *Service - project string - forwardingRule string - opt_ map[string]interface{} +type InstanceGroupManagersAbandonInstancesCall struct { + s *Service + project string + zone string + instanceGroupManager string + instancegroupmanagersabandoninstancesrequest *InstanceGroupManagersAbandonInstancesRequest + opt_ map[string]interface{} } -// Delete: Deletes the specified ForwardingRule resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/delete -func (r *GlobalForwardingRulesService) Delete(project string, forwardingRule string) *GlobalForwardingRulesDeleteCall { - c := &GlobalForwardingRulesDeleteCall{s: r.s, opt_: make(map[string]interface{})} +// AbandonInstances: Removes the specified instances from the managed +// instance group, and from any target pools where they are a member. +// The instances are not deleted. The managed instance group +// automatically reduces its targetSize value by the number of instances +// that you abandon from the group. +func (r *InstanceGroupManagersService) AbandonInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersabandoninstancesrequest *InstanceGroupManagersAbandonInstancesRequest) *InstanceGroupManagersAbandonInstancesCall { + c := &InstanceGroupManagersAbandonInstancesCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.forwardingRule = forwardingRule + c.zone = zone + c.instanceGroupManager = instanceGroupManager + c.instancegroupmanagersabandoninstancesrequest = instancegroupmanagersabandoninstancesrequest 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 *GlobalForwardingRulesDeleteCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesDeleteCall { +func (c *InstanceGroupManagersAbandonInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersAbandonInstancesCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalForwardingRulesDeleteCall) Do() (*Operation, error) { +func (c *InstanceGroupManagersAbandonInstancesCall) Do() (*Operation, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroupmanagersabandoninstancesrequest) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/forwardingRules/{forwardingRule}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances") urls += "?" + params.Encode() - req, _ := http.NewRequest("DELETE", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "forwardingRule": c.forwardingRule, + "project": c.project, + "zone": c.zone, + "instanceGroupManager": c.instanceGroupManager, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -7958,30 +12010,39 @@ func (c *GlobalForwardingRulesDeleteCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Deletes the specified ForwardingRule resource.", - // "httpMethod": "DELETE", - // "id": "compute.globalForwardingRules.delete", + // "description": "Removes the specified instances from the managed instance group, and from any target pools where they are a member. The instances are not deleted. The managed instance group automatically reduces its targetSize value by the number of instances that you abandon from the group.", + // "httpMethod": "POST", + // "id": "compute.instanceGroupManagers.abandonInstances", // "parameterOrder": [ // "project", - // "forwardingRule" + // "zone", + // "instanceGroupManager" // ], // "parameters": { - // "forwardingRule": { - // "description": "Name of the ForwardingRule resource to delete.", + // "instanceGroupManager": { + // "description": "The name of the instance group manager.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Name of the project scoping this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the managed instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/forwardingRules/{forwardingRule}", + // "path": "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances", + // "request": { + // "$ref": "InstanceGroupManagersAbandonInstancesRequest" + // }, // "response": { // "$ref": "Operation" // }, @@ -7993,45 +12054,197 @@ func (c *GlobalForwardingRulesDeleteCall) Do() (*Operation, error) { } -// method id "compute.globalForwardingRules.get": +// method id "compute.instanceGroupManagers.aggregatedList": -type GlobalForwardingRulesGetCall struct { - s *Service - project string - forwardingRule string - opt_ map[string]interface{} +type InstanceGroupManagersAggregatedListCall struct { + s *Service + project string + opt_ map[string]interface{} } -// Get: Returns the specified ForwardingRule resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/get -func (r *GlobalForwardingRulesService) Get(project string, forwardingRule string) *GlobalForwardingRulesGetCall { - c := &GlobalForwardingRulesGetCall{s: r.s, opt_: make(map[string]interface{})} +// AggregatedList: Retrieves the list of managed instance groups, and +// groups them by project and zone. +func (r *InstanceGroupManagersService) AggregatedList(project string) *InstanceGroupManagersAggregatedListCall { + c := &InstanceGroupManagersAggregatedListCall{s: r.s, opt_: make(map[string]interface{})} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *InstanceGroupManagersAggregatedListCall) Filter(filter string) *InstanceGroupManagersAggregatedListCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *InstanceGroupManagersAggregatedListCall) MaxResults(maxResults int64) *InstanceGroupManagersAggregatedListCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *InstanceGroupManagersAggregatedListCall) PageToken(pageToken string) *InstanceGroupManagersAggregatedListCall { + c.opt_["pageToken"] = pageToken + 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 *InstanceGroupManagersAggregatedListCall) Fields(s ...googleapi.Field) *InstanceGroupManagersAggregatedListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *InstanceGroupManagersAggregatedListCall) Do() (*InstanceGroupManagerAggregatedList, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/aggregated/instanceGroupManagers") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *InstanceGroupManagerAggregatedList + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves the list of managed instance groups, and groups them by project and zone.", + // "httpMethod": "GET", + // "id": "compute.instanceGroupManagers.aggregatedList", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "{project}/aggregated/instanceGroupManagers", + // "response": { + // "$ref": "InstanceGroupManagerAggregatedList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.instanceGroupManagers.delete": + +type InstanceGroupManagersDeleteCall struct { + s *Service + project string + zone string + instanceGroupManager string + opt_ map[string]interface{} +} + +// Delete: Deletes the specified managed instance group resource. +func (r *InstanceGroupManagersService) Delete(project string, zone string, instanceGroupManager string) *InstanceGroupManagersDeleteCall { + c := &InstanceGroupManagersDeleteCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.forwardingRule = forwardingRule + c.zone = zone + c.instanceGroupManager = instanceGroupManager 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 *GlobalForwardingRulesGetCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesGetCall { +func (c *InstanceGroupManagersDeleteCall) Fields(s ...googleapi.Field) *InstanceGroupManagersDeleteCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalForwardingRulesGetCall) Do() (*ForwardingRule, error) { +func (c *InstanceGroupManagersDeleteCall) Do() (*Operation, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/forwardingRules/{forwardingRule}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}") urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) + req, _ := http.NewRequest("DELETE", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "forwardingRule": c.forwardingRule, + "project": c.project, + "zone": c.zone, + "instanceGroupManager": c.instanceGroupManager, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -8042,78 +12255,89 @@ func (c *GlobalForwardingRulesGetCall) Do() (*ForwardingRule, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *ForwardingRule + var ret *Operation if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Returns the specified ForwardingRule resource.", - // "httpMethod": "GET", - // "id": "compute.globalForwardingRules.get", + // "description": "Deletes the specified managed instance group resource.", + // "httpMethod": "DELETE", + // "id": "compute.instanceGroupManagers.delete", // "parameterOrder": [ // "project", - // "forwardingRule" + // "zone", + // "instanceGroupManager" // ], // "parameters": { - // "forwardingRule": { - // "description": "Name of the ForwardingRule resource to return.", + // "instanceGroupManager": { + // "description": "The name of the instance group manager to delete.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Name of the project scoping this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the managed instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/forwardingRules/{forwardingRule}", + // "path": "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}", // "response": { - // "$ref": "ForwardingRule" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/compute.readonly" + // "https://www.googleapis.com/auth/compute" // ] // } } -// method id "compute.globalForwardingRules.insert": +// method id "compute.instanceGroupManagers.deleteInstances": -type GlobalForwardingRulesInsertCall struct { - s *Service - project string - forwardingrule *ForwardingRule - opt_ map[string]interface{} +type InstanceGroupManagersDeleteInstancesCall struct { + s *Service + project string + zone string + instanceGroupManager string + instancegroupmanagersdeleteinstancesrequest *InstanceGroupManagersDeleteInstancesRequest + opt_ map[string]interface{} } -// Insert: Creates a ForwardingRule resource in the specified project -// and region using the data included in the request. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/insert -func (r *GlobalForwardingRulesService) Insert(project string, forwardingrule *ForwardingRule) *GlobalForwardingRulesInsertCall { - c := &GlobalForwardingRulesInsertCall{s: r.s, opt_: make(map[string]interface{})} +// DeleteInstances: Deletes the specified instances. The instances are +// deleted and removed from the instance group and any target pools +// where they are a member. The managed instance group automatically +// reduces its targetSize value by the number of instances that you +// delete. +func (r *InstanceGroupManagersService) DeleteInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersdeleteinstancesrequest *InstanceGroupManagersDeleteInstancesRequest) *InstanceGroupManagersDeleteInstancesCall { + c := &InstanceGroupManagersDeleteInstancesCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.forwardingrule = forwardingrule + c.zone = zone + c.instanceGroupManager = instanceGroupManager + c.instancegroupmanagersdeleteinstancesrequest = instancegroupmanagersdeleteinstancesrequest 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 *GlobalForwardingRulesInsertCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesInsertCall { +func (c *InstanceGroupManagersDeleteInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersDeleteInstancesCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalForwardingRulesInsertCall) Do() (*Operation, error) { +func (c *InstanceGroupManagersDeleteInstancesCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.forwardingrule) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroupmanagersdeleteinstancesrequest) if err != nil { return nil, err } @@ -8123,11 +12347,13 @@ func (c *GlobalForwardingRulesInsertCall) Do() (*Operation, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/forwardingRules") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances") urls += "?" + params.Encode() req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "zone": c.zone, + "instanceGroupManager": c.instanceGroupManager, }) req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) @@ -8145,24 +12371,38 @@ func (c *GlobalForwardingRulesInsertCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Creates a ForwardingRule resource in the specified project and region using the data included in the request.", + // "description": "Deletes the specified instances. The instances are deleted and removed from the instance group and any target pools where they are a member. The managed instance group automatically reduces its targetSize value by the number of instances that you delete.", // "httpMethod": "POST", - // "id": "compute.globalForwardingRules.insert", + // "id": "compute.instanceGroupManagers.deleteInstances", // "parameterOrder": [ - // "project" + // "project", + // "zone", + // "instanceGroupManager" // ], // "parameters": { + // "instanceGroupManager": { + // "description": "The name of the instance group manager.", + // "location": "path", + // "required": true, + // "type": "string" + // }, // "project": { - // "description": "Name of the project scoping this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the managed instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/forwardingRules", + // "path": "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances", // "request": { - // "$ref": "ForwardingRule" + // "$ref": "InstanceGroupManagersDeleteInstancesRequest" // }, // "response": { // "$ref": "Operation" @@ -8175,74 +12415,47 @@ func (c *GlobalForwardingRulesInsertCall) Do() (*Operation, error) { } -// method id "compute.globalForwardingRules.list": +// method id "compute.instanceGroupManagers.get": -type GlobalForwardingRulesListCall struct { - s *Service - project string - opt_ map[string]interface{} +type InstanceGroupManagersGetCall struct { + s *Service + project string + zone string + instanceGroupManager string + opt_ map[string]interface{} } -// List: Retrieves the list of ForwardingRule resources available to the -// specified project. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/list -func (r *GlobalForwardingRulesService) List(project string) *GlobalForwardingRulesListCall { - c := &GlobalForwardingRulesListCall{s: r.s, opt_: make(map[string]interface{})} +// Get: Returns the specified managed instance group resource. +func (r *InstanceGroupManagersService) Get(project string, zone string, instanceGroupManager string) *InstanceGroupManagersGetCall { + c := &InstanceGroupManagersGetCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - return c -} - -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *GlobalForwardingRulesListCall) Filter(filter string) *GlobalForwardingRulesListCall { - c.opt_["filter"] = filter - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum count of -// results to be returned. -func (c *GlobalForwardingRulesListCall) MaxResults(maxResults int64) *GlobalForwardingRulesListCall { - c.opt_["maxResults"] = maxResults - return c -} - -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *GlobalForwardingRulesListCall) PageToken(pageToken string) *GlobalForwardingRulesListCall { - c.opt_["pageToken"] = pageToken + c.zone = zone + c.instanceGroupManager = instanceGroupManager 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 *GlobalForwardingRulesListCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesListCall { +func (c *InstanceGroupManagersGetCall) Fields(s ...googleapi.Field) *InstanceGroupManagersGetCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalForwardingRulesListCall) Do() (*ForwardingRuleList, error) { +func (c *InstanceGroupManagersGetCall) Do() (*InstanceGroupManager, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") - if v, ok := c.opt_["filter"]; ok { - params.Set("filter", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["maxResults"]; ok { - params.Set("maxResults", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/forwardingRules") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "zone": c.zone, + "instanceGroupManager": c.instanceGroupManager, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -8253,49 +12466,44 @@ func (c *GlobalForwardingRulesListCall) Do() (*ForwardingRuleList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *ForwardingRuleList + var ret *InstanceGroupManager if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of ForwardingRule resources available to the specified project.", + // "description": "Returns the specified managed instance group resource.", // "httpMethod": "GET", - // "id": "compute.globalForwardingRules.list", + // "id": "compute.instanceGroupManagers.get", // "parameterOrder": [ - // "project" + // "project", + // "zone", + // "instanceGroupManager" // ], // "parameters": { - // "filter": { - // "description": "Filter expression for filtering listed resources.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "500", - // "description": "Maximum count of results to be returned.", - // "format": "uint32", - // "location": "query", - // "maximum": "500", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", - // "location": "query", + // "instanceGroupManager": { + // "description": "The name of the instance group manager resource.", + // "location": "path", + // "required": true, // "type": "string" // }, // "project": { - // "description": "Name of the project scoping this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the managed instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/forwardingRules", + // "path": "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}", // "response": { - // "$ref": "ForwardingRuleList" + // "$ref": "InstanceGroupManager" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -8306,37 +12514,37 @@ func (c *GlobalForwardingRulesListCall) Do() (*ForwardingRuleList, error) { } -// method id "compute.globalForwardingRules.setTarget": +// method id "compute.instanceGroupManagers.insert": -type GlobalForwardingRulesSetTargetCall struct { - s *Service - project string - forwardingRule string - targetreference *TargetReference - opt_ map[string]interface{} +type InstanceGroupManagersInsertCall struct { + s *Service + project string + zone string + instancegroupmanager *InstanceGroupManager + opt_ map[string]interface{} } -// SetTarget: Changes target url for forwarding rule. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/setTarget -func (r *GlobalForwardingRulesService) SetTarget(project string, forwardingRule string, targetreference *TargetReference) *GlobalForwardingRulesSetTargetCall { - c := &GlobalForwardingRulesSetTargetCall{s: r.s, opt_: make(map[string]interface{})} +// Insert: Creates a managed instance group resource in the specified +// project using the data that is included in the request. +func (r *InstanceGroupManagersService) Insert(project string, zone string, instancegroupmanager *InstanceGroupManager) *InstanceGroupManagersInsertCall { + c := &InstanceGroupManagersInsertCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.forwardingRule = forwardingRule - c.targetreference = targetreference + c.zone = zone + c.instancegroupmanager = instancegroupmanager 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 *GlobalForwardingRulesSetTargetCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesSetTargetCall { +func (c *InstanceGroupManagersInsertCall) Fields(s ...googleapi.Field) *InstanceGroupManagersInsertCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalForwardingRulesSetTargetCall) Do() (*Operation, error) { +func (c *InstanceGroupManagersInsertCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetreference) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroupmanager) if err != nil { return nil, err } @@ -8346,12 +12554,12 @@ func (c *GlobalForwardingRulesSetTargetCall) Do() (*Operation, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/forwardingRules/{forwardingRule}/setTarget") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroupManagers") urls += "?" + params.Encode() req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "forwardingRule": c.forwardingRule, + "project": c.project, + "zone": c.zone, }) req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) @@ -8369,32 +12577,31 @@ func (c *GlobalForwardingRulesSetTargetCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Changes target url for forwarding rule.", + // "description": "Creates a managed instance group resource in the specified project using the data that is included in the request.", // "httpMethod": "POST", - // "id": "compute.globalForwardingRules.setTarget", + // "id": "compute.instanceGroupManagers.insert", // "parameterOrder": [ // "project", - // "forwardingRule" + // "zone" // ], // "parameters": { - // "forwardingRule": { - // "description": "Name of the ForwardingRule resource in which target is to be set.", + // "project": { + // "description": "The project ID for this request.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // }, - // "project": { - // "description": "Name of the project scoping this request.", + // "zone": { + // "description": "The URL of the zone where the managed instance group is located.", // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // } // }, - // "path": "{project}/global/forwardingRules/{forwardingRule}/setTarget", + // "path": "{project}/zones/{zone}/instanceGroupManagers", // "request": { - // "$ref": "TargetReference" + // "$ref": "InstanceGroupManager" // }, // "response": { // "$ref": "Operation" @@ -8407,41 +12614,62 @@ func (c *GlobalForwardingRulesSetTargetCall) Do() (*Operation, error) { } -// method id "compute.globalOperations.aggregatedList": +// method id "compute.instanceGroupManagers.list": -type GlobalOperationsAggregatedListCall struct { +type InstanceGroupManagersListCall struct { s *Service project string + zone string opt_ map[string]interface{} } -// AggregatedList: Retrieves the list of all operations grouped by -// scope. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/aggregatedList -func (r *GlobalOperationsService) AggregatedList(project string) *GlobalOperationsAggregatedListCall { - c := &GlobalOperationsAggregatedListCall{s: r.s, opt_: make(map[string]interface{})} +// List: Retrieves a list of managed instance groups that are contained +// within the specified project and zone. +func (r *InstanceGroupManagersService) List(project string, zone string) *InstanceGroupManagersListCall { + c := &InstanceGroupManagersListCall{s: r.s, opt_: make(map[string]interface{})} c.project = project + c.zone = zone return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *GlobalOperationsAggregatedListCall) Filter(filter string) *GlobalOperationsAggregatedListCall { +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *InstanceGroupManagersListCall) Filter(filter string) *InstanceGroupManagersListCall { c.opt_["filter"] = filter return c } // MaxResults sets the optional parameter "maxResults": Maximum count of // results to be returned. -func (c *GlobalOperationsAggregatedListCall) MaxResults(maxResults int64) *GlobalOperationsAggregatedListCall { +func (c *InstanceGroupManagersListCall) MaxResults(maxResults int64) *InstanceGroupManagersListCall { c.opt_["maxResults"] = maxResults return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *GlobalOperationsAggregatedListCall) PageToken(pageToken string) *GlobalOperationsAggregatedListCall { +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *InstanceGroupManagersListCall) PageToken(pageToken string) *InstanceGroupManagersListCall { c.opt_["pageToken"] = pageToken return c } @@ -8449,12 +12677,12 @@ func (c *GlobalOperationsAggregatedListCall) PageToken(pageToken string) *Global // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *GlobalOperationsAggregatedListCall) Fields(s ...googleapi.Field) *GlobalOperationsAggregatedListCall { +func (c *InstanceGroupManagersListCall) Fields(s ...googleapi.Field) *InstanceGroupManagersListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalOperationsAggregatedListCall) Do() (*OperationAggregatedList, error) { +func (c *InstanceGroupManagersListCall) Do() (*InstanceGroupManagerList, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") @@ -8470,11 +12698,12 @@ func (c *GlobalOperationsAggregatedListCall) Do() (*OperationAggregatedList, err if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/aggregated/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroupManagers") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ "project": c.project, + "zone": c.zone, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -8485,21 +12714,22 @@ func (c *GlobalOperationsAggregatedListCall) Do() (*OperationAggregatedList, err if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *OperationAggregatedList + var ret *InstanceGroupManagerList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of all operations grouped by scope.", + // "description": "Retrieves a list of managed instance groups that are contained within the specified project and zone.", // "httpMethod": "GET", - // "id": "compute.globalOperations.aggregatedList", + // "id": "compute.instanceGroupManagers.list", // "parameterOrder": [ - // "project" + // "project", + // "zone" // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -8513,21 +12743,27 @@ func (c *GlobalOperationsAggregatedListCall) Do() (*OperationAggregatedList, err // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, // "project": { - // "description": "Project ID for this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the managed instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/aggregated/operations", + // "path": "{project}/zones/{zone}/instanceGroupManagers", // "response": { - // "$ref": "OperationAggregatedList" + // "$ref": "InstanceGroupManagerList" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -8538,129 +12774,157 @@ func (c *GlobalOperationsAggregatedListCall) Do() (*OperationAggregatedList, err } -// method id "compute.globalOperations.delete": +// method id "compute.instanceGroupManagers.listManagedInstances": -type GlobalOperationsDeleteCall struct { - s *Service - project string - operation string - opt_ map[string]interface{} +type InstanceGroupManagersListManagedInstancesCall struct { + s *Service + project string + zone string + instanceGroupManager string + opt_ map[string]interface{} } -// Delete: Deletes the specified operation resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/delete -func (r *GlobalOperationsService) Delete(project string, operation string) *GlobalOperationsDeleteCall { - c := &GlobalOperationsDeleteCall{s: r.s, opt_: make(map[string]interface{})} +// ListManagedInstances: Lists managed instances. +func (r *InstanceGroupManagersService) ListManagedInstances(project string, zone string, instanceGroupManager string) *InstanceGroupManagersListManagedInstancesCall { + c := &InstanceGroupManagersListManagedInstancesCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.operation = operation + c.zone = zone + c.instanceGroupManager = instanceGroupManager 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 *GlobalOperationsDeleteCall) Fields(s ...googleapi.Field) *GlobalOperationsDeleteCall { +func (c *InstanceGroupManagersListManagedInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersListManagedInstancesCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalOperationsDeleteCall) Do() error { +func (c *InstanceGroupManagersListManagedInstancesCall) Do() (*InstanceGroupManagersListManagedInstancesResponse, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/operations/{operation}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances") urls += "?" + params.Encode() - req, _ := http.NewRequest("DELETE", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "operation": c.operation, + "project": c.project, + "zone": c.zone, + "instanceGroupManager": c.instanceGroupManager, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { - return err + return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return nil, err } - return nil + var ret *InstanceGroupManagersListManagedInstancesResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil // { - // "description": "Deletes the specified operation resource.", - // "httpMethod": "DELETE", - // "id": "compute.globalOperations.delete", + // "description": "Lists managed instances.", + // "httpMethod": "POST", + // "id": "compute.instanceGroupManagers.listManagedInstances", // "parameterOrder": [ // "project", - // "operation" + // "zone", + // "instanceGroupManager" // ], // "parameters": { - // "operation": { - // "description": "Name of the operation resource to delete.", + // "instanceGroupManager": { + // "description": "The name of the managed instance group.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Project ID for this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the managed instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/operations/{operation}", + // "path": "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances", + // "response": { + // "$ref": "InstanceGroupManagersListManagedInstancesResponse" + // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" // ] // } } -// method id "compute.globalOperations.get": +// method id "compute.instanceGroupManagers.recreateInstances": -type GlobalOperationsGetCall struct { - s *Service - project string - operation string - opt_ map[string]interface{} +type InstanceGroupManagersRecreateInstancesCall struct { + s *Service + project string + zone string + instanceGroupManager string + instancegroupmanagersrecreateinstancesrequest *InstanceGroupManagersRecreateInstancesRequest + opt_ map[string]interface{} } -// Get: Retrieves the specified operation resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/get -func (r *GlobalOperationsService) Get(project string, operation string) *GlobalOperationsGetCall { - c := &GlobalOperationsGetCall{s: r.s, opt_: make(map[string]interface{})} +// RecreateInstances: Recreates the specified instances. The instances +// are deleted, then recreated using the managed instance group's +// current instance template. +func (r *InstanceGroupManagersService) RecreateInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersrecreateinstancesrequest *InstanceGroupManagersRecreateInstancesRequest) *InstanceGroupManagersRecreateInstancesCall { + c := &InstanceGroupManagersRecreateInstancesCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.operation = operation + c.zone = zone + c.instanceGroupManager = instanceGroupManager + c.instancegroupmanagersrecreateinstancesrequest = instancegroupmanagersrecreateinstancesrequest 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 *GlobalOperationsGetCall) Fields(s ...googleapi.Field) *GlobalOperationsGetCall { +func (c *InstanceGroupManagersRecreateInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersRecreateInstancesCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalOperationsGetCall) Do() (*Operation, error) { +func (c *InstanceGroupManagersRecreateInstancesCall) Do() (*Operation, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroupmanagersrecreateinstancesrequest) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/operations/{operation}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances") urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "operation": c.operation, + "project": c.project, + "zone": c.zone, + "instanceGroupManager": c.instanceGroupManager, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -8676,110 +12940,97 @@ func (c *GlobalOperationsGetCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Retrieves the specified operation resource.", - // "httpMethod": "GET", - // "id": "compute.globalOperations.get", + // "description": "Recreates the specified instances. The instances are deleted, then recreated using the managed instance group's current instance template.", + // "httpMethod": "POST", + // "id": "compute.instanceGroupManagers.recreateInstances", // "parameterOrder": [ // "project", - // "operation" + // "zone", + // "instanceGroupManager" // ], // "parameters": { - // "operation": { - // "description": "Name of the operation resource to return.", + // "instanceGroupManager": { + // "description": "The name of the instance group manager.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Project ID for this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the managed instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/operations/{operation}", + // "path": "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances", + // "request": { + // "$ref": "InstanceGroupManagersRecreateInstancesRequest" + // }, // "response": { // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/compute.readonly" + // "https://www.googleapis.com/auth/compute" // ] // } } -// method id "compute.globalOperations.list": +// method id "compute.instanceGroupManagers.resize": -type GlobalOperationsListCall struct { - s *Service - project string - opt_ map[string]interface{} +type InstanceGroupManagersResizeCall struct { + s *Service + project string + zone string + instanceGroupManager string + size int64 + opt_ map[string]interface{} } -// List: Retrieves the list of operation resources contained within the -// specified project. -// For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/list -func (r *GlobalOperationsService) List(project string) *GlobalOperationsListCall { - c := &GlobalOperationsListCall{s: r.s, opt_: make(map[string]interface{})} +// Resize: Resizes the managed instance group. If you increase the size, +// the group creates new instances using the current instance template. +// If you decrease the size, the group removes instances in the order +// that is outlined in Resizing a managed instance group. +func (r *InstanceGroupManagersService) Resize(project string, zone string, instanceGroupManager string, size int64) *InstanceGroupManagersResizeCall { + c := &InstanceGroupManagersResizeCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - return c -} - -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *GlobalOperationsListCall) Filter(filter string) *GlobalOperationsListCall { - c.opt_["filter"] = filter - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum count of -// results to be returned. -func (c *GlobalOperationsListCall) MaxResults(maxResults int64) *GlobalOperationsListCall { - c.opt_["maxResults"] = maxResults - return c -} - -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *GlobalOperationsListCall) PageToken(pageToken string) *GlobalOperationsListCall { - c.opt_["pageToken"] = pageToken + c.zone = zone + c.instanceGroupManager = instanceGroupManager + c.size = size 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 *GlobalOperationsListCall) Fields(s ...googleapi.Field) *GlobalOperationsListCall { +func (c *InstanceGroupManagersResizeCall) Fields(s ...googleapi.Field) *InstanceGroupManagersResizeCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *GlobalOperationsListCall) Do() (*OperationList, error) { +func (c *InstanceGroupManagersResizeCall) Do() (*Operation, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") - if v, ok := c.opt_["filter"]; ok { - params.Set("filter", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["maxResults"]; ok { - params.Set("maxResults", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } + params.Set("size", fmt.Sprintf("%v", c.size)) if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize") urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "zone": c.zone, + "instanceGroupManager": c.instanceGroupManager, }) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) @@ -8790,99 +13041,113 @@ func (c *GlobalOperationsListCall) Do() (*OperationList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *OperationList + var ret *Operation if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of operation resources contained within the specified project.", - // "httpMethod": "GET", - // "id": "compute.globalOperations.list", + // "description": "Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group removes instances in the order that is outlined in Resizing a managed instance group.", + // "httpMethod": "POST", + // "id": "compute.instanceGroupManagers.resize", // "parameterOrder": [ - // "project" + // "project", + // "zone", + // "instanceGroupManager", + // "size" // ], // "parameters": { - // "filter": { - // "description": "Filter expression for filtering listed resources.", - // "location": "query", + // "instanceGroupManager": { + // "description": "The name of the instance group manager.", + // "location": "path", + // "required": true, // "type": "string" // }, - // "maxResults": { - // "default": "500", - // "description": "Maximum count of results to be returned.", - // "format": "uint32", - // "location": "query", - // "maximum": "500", - // "minimum": "0", - // "type": "integer" + // "project": { + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" // }, - // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "size": { + // "description": "The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter.", + // "format": "int32", // "location": "query", - // "type": "string" + // "required": true, + // "type": "integer" // }, - // "project": { - // "description": "Project ID for this request.", + // "zone": { + // "description": "The URL of the zone where the managed instance group is located.", // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // } // }, - // "path": "{project}/global/operations", + // "path": "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize", // "response": { - // "$ref": "OperationList" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/compute.readonly" + // "https://www.googleapis.com/auth/compute" // ] // } } -// method id "compute.httpHealthChecks.delete": +// method id "compute.instanceGroupManagers.setInstanceTemplate": -type HttpHealthChecksDeleteCall struct { - s *Service - project string - httpHealthCheck string - opt_ map[string]interface{} +type InstanceGroupManagersSetInstanceTemplateCall struct { + s *Service + project string + zone string + instanceGroupManager string + instancegroupmanagerssetinstancetemplaterequest *InstanceGroupManagersSetInstanceTemplateRequest + opt_ map[string]interface{} } -// Delete: Deletes the specified HttpHealthCheck resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/delete -func (r *HttpHealthChecksService) Delete(project string, httpHealthCheck string) *HttpHealthChecksDeleteCall { - c := &HttpHealthChecksDeleteCall{s: r.s, opt_: make(map[string]interface{})} +// SetInstanceTemplate: Specifies the instance template to use when +// creating new instances in this group. The templates for existing +// instances in the group do not change unless you recreate them. +func (r *InstanceGroupManagersService) SetInstanceTemplate(project string, zone string, instanceGroupManager string, instancegroupmanagerssetinstancetemplaterequest *InstanceGroupManagersSetInstanceTemplateRequest) *InstanceGroupManagersSetInstanceTemplateCall { + c := &InstanceGroupManagersSetInstanceTemplateCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.httpHealthCheck = httpHealthCheck + c.zone = zone + c.instanceGroupManager = instanceGroupManager + c.instancegroupmanagerssetinstancetemplaterequest = instancegroupmanagerssetinstancetemplaterequest 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 *HttpHealthChecksDeleteCall) Fields(s ...googleapi.Field) *HttpHealthChecksDeleteCall { +func (c *InstanceGroupManagersSetInstanceTemplateCall) Fields(s ...googleapi.Field) *InstanceGroupManagersSetInstanceTemplateCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *HttpHealthChecksDeleteCall) Do() (*Operation, error) { +func (c *InstanceGroupManagersSetInstanceTemplateCall) Do() (*Operation, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroupmanagerssetinstancetemplaterequest) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/httpHealthChecks/{httpHealthCheck}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate") urls += "?" + params.Encode() - req, _ := http.NewRequest("DELETE", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "httpHealthCheck": c.httpHealthCheck, + "project": c.project, + "zone": c.zone, + "instanceGroupManager": c.instanceGroupManager, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -8898,30 +13163,39 @@ func (c *HttpHealthChecksDeleteCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Deletes the specified HttpHealthCheck resource.", - // "httpMethod": "DELETE", - // "id": "compute.httpHealthChecks.delete", + // "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you recreate them.", + // "httpMethod": "POST", + // "id": "compute.instanceGroupManagers.setInstanceTemplate", // "parameterOrder": [ // "project", - // "httpHealthCheck" + // "zone", + // "instanceGroupManager" // ], // "parameters": { - // "httpHealthCheck": { - // "description": "Name of the HttpHealthCheck resource to delete.", + // "instanceGroupManager": { + // "description": "The name of the instance group manager.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Name of the project scoping this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the managed instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/httpHealthChecks/{httpHealthCheck}", + // "path": "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate", + // "request": { + // "$ref": "InstanceGroupManagersSetInstanceTemplateRequest" + // }, // "response": { // "$ref": "Operation" // }, @@ -8933,46 +13207,58 @@ func (c *HttpHealthChecksDeleteCall) Do() (*Operation, error) { } -// method id "compute.httpHealthChecks.get": +// method id "compute.instanceGroupManagers.setTargetPools": -type HttpHealthChecksGetCall struct { - s *Service - project string - httpHealthCheck string - opt_ map[string]interface{} +type InstanceGroupManagersSetTargetPoolsCall struct { + s *Service + project string + zone string + instanceGroupManager string + instancegroupmanagerssettargetpoolsrequest *InstanceGroupManagersSetTargetPoolsRequest + opt_ map[string]interface{} } -// Get: Returns the specified HttpHealthCheck resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/get -func (r *HttpHealthChecksService) Get(project string, httpHealthCheck string) *HttpHealthChecksGetCall { - c := &HttpHealthChecksGetCall{s: r.s, opt_: make(map[string]interface{})} +// SetTargetPools: Modifies the target pools to which all new instances +// in this group are assigned. The target pools for existing instances +// in the group do not change unless you recreate them. +func (r *InstanceGroupManagersService) SetTargetPools(project string, zone string, instanceGroupManager string, instancegroupmanagerssettargetpoolsrequest *InstanceGroupManagersSetTargetPoolsRequest) *InstanceGroupManagersSetTargetPoolsCall { + c := &InstanceGroupManagersSetTargetPoolsCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.httpHealthCheck = httpHealthCheck + c.zone = zone + c.instanceGroupManager = instanceGroupManager + c.instancegroupmanagerssettargetpoolsrequest = instancegroupmanagerssettargetpoolsrequest 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 *HttpHealthChecksGetCall) Fields(s ...googleapi.Field) *HttpHealthChecksGetCall { +func (c *InstanceGroupManagersSetTargetPoolsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersSetTargetPoolsCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *HttpHealthChecksGetCall) Do() (*HttpHealthCheck, error) { +func (c *InstanceGroupManagersSetTargetPoolsCall) Do() (*Operation, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroupmanagerssettargetpoolsrequest) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/httpHealthChecks/{httpHealthCheck}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools") urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "httpHealthCheck": c.httpHealthCheck, + "project": c.project, + "zone": c.zone, + "instanceGroupManager": c.instanceGroupManager, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -8982,78 +13268,89 @@ func (c *HttpHealthChecksGetCall) Do() (*HttpHealthCheck, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *HttpHealthCheck + var ret *Operation if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Returns the specified HttpHealthCheck resource.", - // "httpMethod": "GET", - // "id": "compute.httpHealthChecks.get", + // "description": "Modifies the target pools to which all new instances in this group are assigned. The target pools for existing instances in the group do not change unless you recreate them.", + // "httpMethod": "POST", + // "id": "compute.instanceGroupManagers.setTargetPools", // "parameterOrder": [ // "project", - // "httpHealthCheck" + // "zone", + // "instanceGroupManager" // ], // "parameters": { - // "httpHealthCheck": { - // "description": "Name of the HttpHealthCheck resource to return.", + // "instanceGroupManager": { + // "description": "The name of the instance group manager.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Name of the project scoping this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the managed instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/httpHealthChecks/{httpHealthCheck}", + // "path": "{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools", + // "request": { + // "$ref": "InstanceGroupManagersSetTargetPoolsRequest" + // }, // "response": { - // "$ref": "HttpHealthCheck" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/compute.readonly" + // "https://www.googleapis.com/auth/compute" // ] // } } -// method id "compute.httpHealthChecks.insert": +// method id "compute.instanceGroups.addInstances": -type HttpHealthChecksInsertCall struct { - s *Service - project string - httphealthcheck *HttpHealthCheck - opt_ map[string]interface{} +type InstanceGroupsAddInstancesCall struct { + s *Service + project string + zone string + instanceGroup string + instancegroupsaddinstancesrequest *InstanceGroupsAddInstancesRequest + opt_ map[string]interface{} } -// Insert: Creates a HttpHealthCheck resource in the specified project -// using the data included in the request. -// For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/insert -func (r *HttpHealthChecksService) Insert(project string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksInsertCall { - c := &HttpHealthChecksInsertCall{s: r.s, opt_: make(map[string]interface{})} +// AddInstances: Adds a list of instances to an instance group. All of +// the instances in the instance group must be in the same network. +func (r *InstanceGroupsService) AddInstances(project string, zone string, instanceGroup string, instancegroupsaddinstancesrequest *InstanceGroupsAddInstancesRequest) *InstanceGroupsAddInstancesCall { + c := &InstanceGroupsAddInstancesCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.httphealthcheck = httphealthcheck + c.zone = zone + c.instanceGroup = instanceGroup + c.instancegroupsaddinstancesrequest = instancegroupsaddinstancesrequest 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 *HttpHealthChecksInsertCall) Fields(s ...googleapi.Field) *HttpHealthChecksInsertCall { +func (c *InstanceGroupsAddInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupsAddInstancesCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *HttpHealthChecksInsertCall) Do() (*Operation, error) { +func (c *InstanceGroupsAddInstancesCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.httphealthcheck) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroupsaddinstancesrequest) if err != nil { return nil, err } @@ -9063,11 +13360,13 @@ func (c *HttpHealthChecksInsertCall) Do() (*Operation, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/httpHealthChecks") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances") urls += "?" + params.Encode() req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "zone": c.zone, + "instanceGroup": c.instanceGroup, }) req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) @@ -9085,24 +13384,38 @@ func (c *HttpHealthChecksInsertCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Creates a HttpHealthCheck resource in the specified project using the data included in the request.", + // "description": "Adds a list of instances to an instance group. All of the instances in the instance group must be in the same network.", // "httpMethod": "POST", - // "id": "compute.httpHealthChecks.insert", + // "id": "compute.instanceGroups.addInstances", // "parameterOrder": [ - // "project" + // "project", + // "zone", + // "instanceGroup" // ], // "parameters": { + // "instanceGroup": { + // "description": "The name of the instance group where you are adding instances.", + // "location": "path", + // "required": true, + // "type": "string" + // }, // "project": { - // "description": "Name of the project scoping this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the instance group is located.", // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // } // }, - // "path": "{project}/global/httpHealthChecks", + // "path": "{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances", // "request": { - // "$ref": "HttpHealthCheck" + // "$ref": "InstanceGroupsAddInstancesRequest" // }, // "response": { // "$ref": "Operation" @@ -9115,41 +13428,60 @@ func (c *HttpHealthChecksInsertCall) Do() (*Operation, error) { } -// method id "compute.httpHealthChecks.list": +// method id "compute.instanceGroups.aggregatedList": -type HttpHealthChecksListCall struct { +type InstanceGroupsAggregatedListCall struct { s *Service project string opt_ map[string]interface{} } -// List: Retrieves the list of HttpHealthCheck resources available to -// the specified project. -// For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/list -func (r *HttpHealthChecksService) List(project string) *HttpHealthChecksListCall { - c := &HttpHealthChecksListCall{s: r.s, opt_: make(map[string]interface{})} +// AggregatedList: Retrieves the list of instance groups, and sorts them +// by zone. +func (r *InstanceGroupsService) AggregatedList(project string) *InstanceGroupsAggregatedListCall { + c := &InstanceGroupsAggregatedListCall{s: r.s, opt_: make(map[string]interface{})} c.project = project return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *HttpHealthChecksListCall) Filter(filter string) *HttpHealthChecksListCall { +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *InstanceGroupsAggregatedListCall) Filter(filter string) *InstanceGroupsAggregatedListCall { c.opt_["filter"] = filter return c } // MaxResults sets the optional parameter "maxResults": Maximum count of // results to be returned. -func (c *HttpHealthChecksListCall) MaxResults(maxResults int64) *HttpHealthChecksListCall { +func (c *InstanceGroupsAggregatedListCall) MaxResults(maxResults int64) *InstanceGroupsAggregatedListCall { c.opt_["maxResults"] = maxResults return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *HttpHealthChecksListCall) PageToken(pageToken string) *HttpHealthChecksListCall { +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *InstanceGroupsAggregatedListCall) PageToken(pageToken string) *InstanceGroupsAggregatedListCall { c.opt_["pageToken"] = pageToken return c } @@ -9157,12 +13489,12 @@ func (c *HttpHealthChecksListCall) PageToken(pageToken string) *HttpHealthChecks // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *HttpHealthChecksListCall) Fields(s ...googleapi.Field) *HttpHealthChecksListCall { +func (c *InstanceGroupsAggregatedListCall) Fields(s ...googleapi.Field) *InstanceGroupsAggregatedListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *HttpHealthChecksListCall) Do() (*HttpHealthCheckList, error) { +func (c *InstanceGroupsAggregatedListCall) Do() (*InstanceGroupAggregatedList, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") @@ -9178,7 +13510,7 @@ func (c *HttpHealthChecksListCall) Do() (*HttpHealthCheckList, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/httpHealthChecks") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/aggregated/instanceGroups") urls += "?" + params.Encode() req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ @@ -9193,21 +13525,21 @@ func (c *HttpHealthChecksListCall) Do() (*HttpHealthCheckList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *HttpHealthCheckList + var ret *InstanceGroupAggregatedList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of HttpHealthCheck resources available to the specified project.", + // "description": "Retrieves the list of instance groups, and sorts them by zone.", // "httpMethod": "GET", - // "id": "compute.httpHealthChecks.list", + // "id": "compute.instanceGroups.aggregatedList", // "parameterOrder": [ // "project" // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -9221,21 +13553,21 @@ func (c *HttpHealthChecksListCall) Do() (*HttpHealthCheckList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, // "project": { - // "description": "Name of the project scoping this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // } // }, - // "path": "{project}/global/httpHealthChecks", + // "path": "{project}/aggregated/instanceGroups", // "response": { - // "$ref": "HttpHealthCheckList" + // "$ref": "InstanceGroupAggregatedList" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -9246,56 +13578,48 @@ func (c *HttpHealthChecksListCall) Do() (*HttpHealthCheckList, error) { } -// method id "compute.httpHealthChecks.patch": +// method id "compute.instanceGroups.delete": -type HttpHealthChecksPatchCall struct { - s *Service - project string - httpHealthCheck string - httphealthcheck *HttpHealthCheck - opt_ map[string]interface{} +type InstanceGroupsDeleteCall struct { + s *Service + project string + zone string + instanceGroup string + opt_ map[string]interface{} } -// Patch: Updates a HttpHealthCheck resource in the specified project -// using the data included in the request. This method supports patch -// semantics. -// For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/patch -func (r *HttpHealthChecksService) Patch(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksPatchCall { - c := &HttpHealthChecksPatchCall{s: r.s, opt_: make(map[string]interface{})} +// Delete: Deletes the specified instance group. +func (r *InstanceGroupsService) Delete(project string, zone string, instanceGroup string) *InstanceGroupsDeleteCall { + c := &InstanceGroupsDeleteCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.httpHealthCheck = httpHealthCheck - c.httphealthcheck = httphealthcheck + c.zone = zone + c.instanceGroup = instanceGroup 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 *HttpHealthChecksPatchCall) Fields(s ...googleapi.Field) *HttpHealthChecksPatchCall { +func (c *InstanceGroupsDeleteCall) Fields(s ...googleapi.Field) *InstanceGroupsDeleteCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *HttpHealthChecksPatchCall) Do() (*Operation, error) { +func (c *InstanceGroupsDeleteCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.httphealthcheck) - if err != nil { - return nil, err - } - ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/httpHealthChecks/{httpHealthCheck}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroups/{instanceGroup}") urls += "?" + params.Encode() - req, _ := http.NewRequest("PATCH", urls, body) + req, _ := http.NewRequest("DELETE", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "httpHealthCheck": c.httpHealthCheck, + "project": c.project, + "zone": c.zone, + "instanceGroup": c.instanceGroup, }) - req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -9311,33 +13635,36 @@ func (c *HttpHealthChecksPatchCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Updates a HttpHealthCheck resource in the specified project using the data included in the request. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "compute.httpHealthChecks.patch", + // "description": "Deletes the specified instance group.", + // "httpMethod": "DELETE", + // "id": "compute.instanceGroups.delete", // "parameterOrder": [ // "project", - // "httpHealthCheck" + // "zone", + // "instanceGroup" // ], // "parameters": { - // "httpHealthCheck": { - // "description": "Name of the HttpHealthCheck resource to update.", + // "instanceGroup": { + // "description": "The name of the instance group to delete.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Name of the project scoping this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/httpHealthChecks/{httpHealthCheck}", - // "request": { - // "$ref": "HttpHealthCheck" - // }, + // "path": "{project}/zones/{zone}/instanceGroups/{instanceGroup}", // "response": { // "$ref": "Operation" // }, @@ -9349,55 +13676,48 @@ func (c *HttpHealthChecksPatchCall) Do() (*Operation, error) { } -// method id "compute.httpHealthChecks.update": +// method id "compute.instanceGroups.get": -type HttpHealthChecksUpdateCall struct { - s *Service - project string - httpHealthCheck string - httphealthcheck *HttpHealthCheck - opt_ map[string]interface{} +type InstanceGroupsGetCall struct { + s *Service + project string + zone string + instanceGroup string + opt_ map[string]interface{} } -// Update: Updates a HttpHealthCheck resource in the specified project -// using the data included in the request. -// For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/update -func (r *HttpHealthChecksService) Update(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksUpdateCall { - c := &HttpHealthChecksUpdateCall{s: r.s, opt_: make(map[string]interface{})} +// Get: Returns the specified instance group resource. +func (r *InstanceGroupsService) Get(project string, zone string, instanceGroup string) *InstanceGroupsGetCall { + c := &InstanceGroupsGetCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.httpHealthCheck = httpHealthCheck - c.httphealthcheck = httphealthcheck + c.zone = zone + c.instanceGroup = instanceGroup 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 *HttpHealthChecksUpdateCall) Fields(s ...googleapi.Field) *HttpHealthChecksUpdateCall { +func (c *InstanceGroupsGetCall) Fields(s ...googleapi.Field) *InstanceGroupsGetCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *HttpHealthChecksUpdateCall) Do() (*Operation, error) { +func (c *InstanceGroupsGetCall) Do() (*InstanceGroup, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.httphealthcheck) - if err != nil { - return nil, err - } - ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/httpHealthChecks/{httpHealthCheck}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroups/{instanceGroup}") urls += "?" + params.Encode() - req, _ := http.NewRequest("PUT", urls, body) + req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "httpHealthCheck": c.httpHealthCheck, + "project": c.project, + "zone": c.zone, + "instanceGroup": c.instanceGroup, }) - req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -9407,90 +13727,102 @@ func (c *HttpHealthChecksUpdateCall) Do() (*Operation, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *Operation + var ret *InstanceGroup if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Updates a HttpHealthCheck resource in the specified project using the data included in the request.", - // "httpMethod": "PUT", - // "id": "compute.httpHealthChecks.update", + // "description": "Returns the specified instance group resource.", + // "httpMethod": "GET", + // "id": "compute.instanceGroups.get", // "parameterOrder": [ // "project", - // "httpHealthCheck" + // "zone", + // "instanceGroup" // ], // "parameters": { - // "httpHealthCheck": { - // "description": "Name of the HttpHealthCheck resource to update.", + // "instanceGroup": { + // "description": "The name of the instance group.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, // "project": { - // "description": "Name of the project scoping this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/httpHealthChecks/{httpHealthCheck}", - // "request": { - // "$ref": "HttpHealthCheck" - // }, + // "path": "{project}/zones/{zone}/instanceGroups/{instanceGroup}", // "response": { - // "$ref": "Operation" + // "$ref": "InstanceGroup" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" // ] // } } -// method id "compute.images.delete": +// method id "compute.instanceGroups.insert": -type ImagesDeleteCall struct { - s *Service - project string - image string - opt_ map[string]interface{} +type InstanceGroupsInsertCall struct { + s *Service + project string + zone string + instancegroup *InstanceGroup + opt_ map[string]interface{} } -// Delete: Deletes the specified image resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/images/delete -func (r *ImagesService) Delete(project string, image string) *ImagesDeleteCall { - c := &ImagesDeleteCall{s: r.s, opt_: make(map[string]interface{})} +// Insert: Creates an instance group in the specified project using the +// parameters that are included in the request. +func (r *InstanceGroupsService) Insert(project string, zone string, instancegroup *InstanceGroup) *InstanceGroupsInsertCall { + c := &InstanceGroupsInsertCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.image = image + c.zone = zone + c.instancegroup = instancegroup 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 *ImagesDeleteCall) Fields(s ...googleapi.Field) *ImagesDeleteCall { +func (c *InstanceGroupsInsertCall) Fields(s ...googleapi.Field) *InstanceGroupsInsertCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *ImagesDeleteCall) Do() (*Operation, error) { +func (c *InstanceGroupsInsertCall) Do() (*Operation, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroup) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/images/{image}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroups") urls += "?" + params.Encode() - req, _ := http.NewRequest("DELETE", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "image": c.image, + "zone": c.zone, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -9506,30 +13838,32 @@ func (c *ImagesDeleteCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Deletes the specified image resource.", - // "httpMethod": "DELETE", - // "id": "compute.images.delete", + // "description": "Creates an instance group in the specified project using the parameters that are included in the request.", + // "httpMethod": "POST", + // "id": "compute.instanceGroups.insert", // "parameterOrder": [ // "project", - // "image" + // "zone" // ], // "parameters": { - // "image": { - // "description": "Name of the image resource to delete.", + // "project": { + // "description": "The project ID for this request.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // }, - // "project": { - // "description": "Project ID for this request.", + // "zone": { + // "description": "The URL of the zone where the instance group is located.", // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" // } // }, - // "path": "{project}/global/images/{image}", + // "path": "{project}/zones/{zone}/instanceGroups", + // "request": { + // "$ref": "InstanceGroup" + // }, // "response": { // "$ref": "Operation" // }, @@ -9541,57 +13875,97 @@ func (c *ImagesDeleteCall) Do() (*Operation, error) { } -// method id "compute.images.deprecate": +// method id "compute.instanceGroups.list": -type ImagesDeprecateCall struct { - s *Service - project string - image string - deprecationstatus *DeprecationStatus - opt_ map[string]interface{} +type InstanceGroupsListCall struct { + s *Service + project string + zone string + opt_ map[string]interface{} } -// Deprecate: Sets the deprecation status of an image. -// -// If an empty request body is given, clears the deprecation status -// instead. -// For details, see https://cloud.google.com/compute/docs/reference/latest/images/deprecate -func (r *ImagesService) Deprecate(project string, image string, deprecationstatus *DeprecationStatus) *ImagesDeprecateCall { - c := &ImagesDeprecateCall{s: r.s, opt_: make(map[string]interface{})} +// List: Retrieves the list of instance groups that are located in the +// specified project and zone. +func (r *InstanceGroupsService) List(project string, zone string) *InstanceGroupsListCall { + c := &InstanceGroupsListCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.image = image - c.deprecationstatus = deprecationstatus + c.zone = zone + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *InstanceGroupsListCall) Filter(filter string) *InstanceGroupsListCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *InstanceGroupsListCall) MaxResults(maxResults int64) *InstanceGroupsListCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *InstanceGroupsListCall) PageToken(pageToken string) *InstanceGroupsListCall { + c.opt_["pageToken"] = pageToken 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 *ImagesDeprecateCall) Fields(s ...googleapi.Field) *ImagesDeprecateCall { +func (c *InstanceGroupsListCall) Fields(s ...googleapi.Field) *InstanceGroupsListCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *ImagesDeprecateCall) Do() (*Operation, error) { +func (c *InstanceGroupsListCall) Do() (*InstanceGroupList, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.deprecationstatus) - if err != nil { - return nil, err - } - ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/images/{image}/deprecate") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroups") urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) + req, _ := http.NewRequest("GET", urls, body) googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "image": c.image, + "zone": c.zone, }) - req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -9601,90 +13975,169 @@ func (c *ImagesDeprecateCall) Do() (*Operation, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *Operation + var ret *InstanceGroupList if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Sets the deprecation status of an image.\n\nIf an empty request body is given, clears the deprecation status instead.", - // "httpMethod": "POST", - // "id": "compute.images.deprecate", + // "description": "Retrieves the list of instance groups that are located in the specified project and zone.", + // "httpMethod": "GET", + // "id": "compute.instanceGroups.list", // "parameterOrder": [ // "project", - // "image" + // "zone" // ], // "parameters": { - // "image": { - // "description": "Image name.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", // "type": "string" // }, // "project": { - // "description": "Project ID for this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/images/{image}/deprecate", - // "request": { - // "$ref": "DeprecationStatus" - // }, + // "path": "{project}/zones/{zone}/instanceGroups", // "response": { - // "$ref": "Operation" + // "$ref": "InstanceGroupList" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" // ] // } } -// method id "compute.images.get": +// method id "compute.instanceGroups.listInstances": -type ImagesGetCall struct { - s *Service - project string - image string - opt_ map[string]interface{} +type InstanceGroupsListInstancesCall struct { + s *Service + project string + zone string + instanceGroup string + instancegroupslistinstancesrequest *InstanceGroupsListInstancesRequest + opt_ map[string]interface{} } -// Get: Returns the specified image resource. -// For details, see https://cloud.google.com/compute/docs/reference/latest/images/get -func (r *ImagesService) Get(project string, image string) *ImagesGetCall { - c := &ImagesGetCall{s: r.s, opt_: make(map[string]interface{})} +// ListInstances: Lists instances in an instance group. The parameters +// for this method specify whether the list filters instances by state +// and named ports information. +func (r *InstanceGroupsService) ListInstances(project string, zone string, instanceGroup string, instancegroupslistinstancesrequest *InstanceGroupsListInstancesRequest) *InstanceGroupsListInstancesCall { + c := &InstanceGroupsListInstancesCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.image = image + c.zone = zone + c.instanceGroup = instanceGroup + c.instancegroupslistinstancesrequest = instancegroupslistinstancesrequest + return c +} + +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. +func (c *InstanceGroupsListInstancesCall) Filter(filter string) *InstanceGroupsListInstancesCall { + c.opt_["filter"] = filter + return c +} + +// MaxResults sets the optional parameter "maxResults": Maximum count of +// results to be returned. +func (c *InstanceGroupsListInstancesCall) MaxResults(maxResults int64) *InstanceGroupsListInstancesCall { + c.opt_["maxResults"] = maxResults + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. +func (c *InstanceGroupsListInstancesCall) PageToken(pageToken string) *InstanceGroupsListInstancesCall { + c.opt_["pageToken"] = pageToken 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 *ImagesGetCall) Fields(s ...googleapi.Field) *ImagesGetCall { +func (c *InstanceGroupsListInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupsListInstancesCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *ImagesGetCall) Do() (*Image, error) { +func (c *InstanceGroupsListInstancesCall) Do() (*InstanceGroupsListInstances, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroupslistinstancesrequest) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxResults"]; ok { + params.Set("maxResults", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/images/{image}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances") urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "image": c.image, + "project": c.project, + "zone": c.zone, + "instanceGroup": c.instanceGroup, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -9694,38 +14147,66 @@ func (c *ImagesGetCall) Do() (*Image, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *Image + var ret *InstanceGroupsListInstances if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Returns the specified image resource.", - // "httpMethod": "GET", - // "id": "compute.images.get", + // "description": "Lists instances in an instance group. The parameters for this method specify whether the list filters instances by state and named ports information.", + // "httpMethod": "POST", + // "id": "compute.instanceGroups.listInstances", // "parameterOrder": [ // "project", - // "image" + // "zone", + // "instanceGroup" // ], // "parameters": { - // "image": { - // "description": "Name of the image resource to return.", + // "filter": { + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", + // "location": "query", + // "type": "string" + // }, + // "instanceGroup": { + // "description": "The name of the instance group from which you want to generate a list of included instances.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, + // "maxResults": { + // "default": "500", + // "description": "Maximum count of results to be returned.", + // "format": "uint32", + // "location": "query", + // "maximum": "500", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", + // "location": "query", + // "type": "string" + // }, // "project": { - // "description": "Project ID for this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/images/{image}", + // "path": "{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances", + // "request": { + // "$ref": "InstanceGroupsListInstancesRequest" + // }, // "response": { - // "$ref": "Image" + // "$ref": "InstanceGroupsListInstances" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -9736,36 +14217,38 @@ func (c *ImagesGetCall) Do() (*Image, error) { } -// method id "compute.images.insert": +// method id "compute.instanceGroups.removeInstances": -type ImagesInsertCall struct { - s *Service - project string - image *Image - opt_ map[string]interface{} +type InstanceGroupsRemoveInstancesCall struct { + s *Service + project string + zone string + instanceGroup string + instancegroupsremoveinstancesrequest *InstanceGroupsRemoveInstancesRequest + opt_ map[string]interface{} } -// Insert: Creates an image resource in the specified project using the -// data included in the request. -// For details, see https://cloud.google.com/compute/docs/reference/latest/images/insert -func (r *ImagesService) Insert(project string, image *Image) *ImagesInsertCall { - c := &ImagesInsertCall{s: r.s, opt_: make(map[string]interface{})} +// RemoveInstances: Removes a list of instances from an instance group. +func (r *InstanceGroupsService) RemoveInstances(project string, zone string, instanceGroup string, instancegroupsremoveinstancesrequest *InstanceGroupsRemoveInstancesRequest) *InstanceGroupsRemoveInstancesCall { + c := &InstanceGroupsRemoveInstancesCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - c.image = image + c.zone = zone + c.instanceGroup = instanceGroup + c.instancegroupsremoveinstancesrequest = instancegroupsremoveinstancesrequest 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 *ImagesInsertCall) Fields(s ...googleapi.Field) *ImagesInsertCall { +func (c *InstanceGroupsRemoveInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupsRemoveInstancesCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *ImagesInsertCall) Do() (*Operation, error) { +func (c *InstanceGroupsRemoveInstancesCall) Do() (*Operation, error) { var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.image) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroupsremoveinstancesrequest) if err != nil { return nil, err } @@ -9775,11 +14258,13 @@ func (c *ImagesInsertCall) Do() (*Operation, error) { if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/images") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances") urls += "?" + params.Encode() req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "zone": c.zone, + "instanceGroup": c.instanceGroup, }) req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) @@ -9797,108 +14282,100 @@ func (c *ImagesInsertCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Creates an image resource in the specified project using the data included in the request.", + // "description": "Removes a list of instances from an instance group.", // "httpMethod": "POST", - // "id": "compute.images.insert", + // "id": "compute.instanceGroups.removeInstances", // "parameterOrder": [ - // "project" + // "project", + // "zone", + // "instanceGroup" // ], // "parameters": { + // "instanceGroup": { + // "description": "The name of the instance group where the specified instances will be removed.", + // "location": "path", + // "required": true, + // "type": "string" + // }, // "project": { - // "description": "Project ID for this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/images", + // "path": "{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances", // "request": { - // "$ref": "Image" + // "$ref": "InstanceGroupsRemoveInstancesRequest" // }, // "response": { // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_only", - // "https://www.googleapis.com/auth/devstorage.read_write" + // "https://www.googleapis.com/auth/compute" // ] // } } -// method id "compute.images.list": +// method id "compute.instanceGroups.setNamedPorts": -type ImagesListCall struct { - s *Service - project string - opt_ map[string]interface{} +type InstanceGroupsSetNamedPortsCall struct { + s *Service + project string + zone string + instanceGroup string + instancegroupssetnamedportsrequest *InstanceGroupsSetNamedPortsRequest + opt_ map[string]interface{} } -// List: Retrieves the list of image resources available to the -// specified project. -// For details, see https://cloud.google.com/compute/docs/reference/latest/images/list -func (r *ImagesService) List(project string) *ImagesListCall { - c := &ImagesListCall{s: r.s, opt_: make(map[string]interface{})} +// SetNamedPorts: Sets the named ports in an instance group. +func (r *InstanceGroupsService) SetNamedPorts(project string, zone string, instanceGroup string, instancegroupssetnamedportsrequest *InstanceGroupsSetNamedPortsRequest) *InstanceGroupsSetNamedPortsCall { + c := &InstanceGroupsSetNamedPortsCall{s: r.s, opt_: make(map[string]interface{})} c.project = project - return c -} - -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. -func (c *ImagesListCall) Filter(filter string) *ImagesListCall { - c.opt_["filter"] = filter - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum count of -// results to be returned. -func (c *ImagesListCall) MaxResults(maxResults int64) *ImagesListCall { - c.opt_["maxResults"] = maxResults - return c -} - -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. -func (c *ImagesListCall) PageToken(pageToken string) *ImagesListCall { - c.opt_["pageToken"] = pageToken + c.zone = zone + c.instanceGroup = instanceGroup + c.instancegroupssetnamedportsrequest = instancegroupssetnamedportsrequest 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 *ImagesListCall) Fields(s ...googleapi.Field) *ImagesListCall { +func (c *InstanceGroupsSetNamedPortsCall) Fields(s ...googleapi.Field) *InstanceGroupsSetNamedPortsCall { c.opt_["fields"] = googleapi.CombineFields(s) return c } -func (c *ImagesListCall) Do() (*ImageList, error) { +func (c *InstanceGroupsSetNamedPortsCall) Do() (*Operation, error) { var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroupssetnamedportsrequest) + if err != nil { + return nil, err + } + ctype := "application/json" params := make(url.Values) params.Set("alt", "json") - if v, ok := c.opt_["filter"]; ok { - params.Set("filter", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["maxResults"]; ok { - params.Set("maxResults", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/images") + urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts") urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) + req, _ := http.NewRequest("POST", urls, body) googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "zone": c.zone, + "instanceGroup": c.instanceGroup, }) + req.Header.Set("Content-Type", ctype) req.Header.Set("User-Agent", c.s.userAgent()) res, err := c.s.client.Do(req) if err != nil { @@ -9908,54 +14385,51 @@ func (c *ImagesListCall) Do() (*ImageList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - var ret *ImageList + var ret *Operation if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { - // "description": "Retrieves the list of image resources available to the specified project.", - // "httpMethod": "GET", - // "id": "compute.images.list", + // "description": "Sets the named ports in an instance group.", + // "httpMethod": "POST", + // "id": "compute.instanceGroups.setNamedPorts", // "parameterOrder": [ - // "project" + // "project", + // "zone", + // "instanceGroup" // ], // "parameters": { - // "filter": { - // "description": "Filter expression for filtering listed resources.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "500", - // "description": "Maximum count of results to be returned.", - // "format": "uint32", - // "location": "query", - // "maximum": "500", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", - // "location": "query", + // "instanceGroup": { + // "description": "The name of the instance group where the named ports are updated.", + // "location": "path", + // "required": true, // "type": "string" // }, // "project": { - // "description": "Project ID for this request.", + // "description": "The 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-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "The URL of the zone where the instance group is located.", + // "location": "path", + // "required": true, + // "type": "string" // } // }, - // "path": "{project}/global/images", + // "path": "{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts", + // "request": { + // "$ref": "InstanceGroupsSetNamedPortsRequest" + // }, // "response": { - // "$ref": "ImageList" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/compute.readonly" + // "https://www.googleapis.com/auth/compute" // ] // } @@ -10250,8 +14724,27 @@ func (r *InstanceTemplatesService) List(project string) *InstanceTemplatesListCa return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *InstanceTemplatesListCall) Filter(filter string) *InstanceTemplatesListCall { c.opt_["filter"] = filter return c @@ -10264,9 +14757,10 @@ func (c *InstanceTemplatesListCall) MaxResults(maxResults int64) *InstanceTempla return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *InstanceTemplatesListCall) PageToken(pageToken string) *InstanceTemplatesListCall { c.opt_["pageToken"] = pageToken return c @@ -10325,7 +14819,7 @@ func (c *InstanceTemplatesListCall) Do() (*InstanceTemplateList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -10339,7 +14833,7 @@ func (c *InstanceTemplatesListCall) Do() (*InstanceTemplateList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -10503,8 +14997,27 @@ func (r *InstancesService) AggregatedList(project string) *InstancesAggregatedLi return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *InstancesAggregatedListCall) Filter(filter string) *InstancesAggregatedListCall { c.opt_["filter"] = filter return c @@ -10517,9 +15030,10 @@ func (c *InstancesAggregatedListCall) MaxResults(maxResults int64) *InstancesAgg return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *InstancesAggregatedListCall) PageToken(pageToken string) *InstancesAggregatedListCall { c.opt_["pageToken"] = pageToken return c @@ -10577,7 +15091,7 @@ func (c *InstancesAggregatedListCall) Do() (*InstanceAggregatedList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -10591,7 +15105,7 @@ func (c *InstancesAggregatedListCall) Do() (*InstanceAggregatedList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -11187,8 +15701,8 @@ func (r *InstancesService) GetSerialPortOutput(project string, zone string, inst return c } -// Port sets the optional parameter "port": Which COM port to retrieve -// data from. +// Port sets the optional parameter "port": Specifies which COM or +// serial port to retrieve data from. func (c *InstancesGetSerialPortOutputCall) Port(port int64) *InstancesGetSerialPortOutputCall { c.opt_["port"] = port return c @@ -11253,7 +15767,7 @@ func (c *InstancesGetSerialPortOutputCall) Do() (*SerialPortOutput, error) { // }, // "port": { // "default": "1", - // "description": "Which COM port to retrieve data from.", + // "description": "Specifies which COM or serial port to retrieve data from.", // "format": "int32", // "location": "query", // "maximum": "4", @@ -11409,8 +15923,27 @@ func (r *InstancesService) List(project string, zone string) *InstancesListCall return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *InstancesListCall) Filter(filter string) *InstancesListCall { c.opt_["filter"] = filter return c @@ -11423,9 +15956,10 @@ func (c *InstancesListCall) MaxResults(maxResults int64) *InstancesListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *InstancesListCall) PageToken(pageToken string) *InstancesListCall { c.opt_["pageToken"] = pageToken return c @@ -11486,7 +16020,7 @@ func (c *InstancesListCall) Do() (*InstanceList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -11500,7 +16034,7 @@ func (c *InstancesListCall) Do() (*InstanceList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -12412,8 +16946,27 @@ func (r *MachineTypesService) AggregatedList(project string) *MachineTypesAggreg return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *MachineTypesAggregatedListCall) Filter(filter string) *MachineTypesAggregatedListCall { c.opt_["filter"] = filter return c @@ -12426,9 +16979,10 @@ func (c *MachineTypesAggregatedListCall) MaxResults(maxResults int64) *MachineTy return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *MachineTypesAggregatedListCall) PageToken(pageToken string) *MachineTypesAggregatedListCall { c.opt_["pageToken"] = pageToken return c @@ -12487,7 +17041,7 @@ func (c *MachineTypesAggregatedListCall) Do() (*MachineTypeAggregatedList, error // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -12501,7 +17055,7 @@ func (c *MachineTypesAggregatedListCall) Do() (*MachineTypeAggregatedList, error // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -12647,8 +17201,27 @@ func (r *MachineTypesService) List(project string, zone string) *MachineTypesLis return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *MachineTypesListCall) Filter(filter string) *MachineTypesListCall { c.opt_["filter"] = filter return c @@ -12661,9 +17234,10 @@ func (c *MachineTypesListCall) MaxResults(maxResults int64) *MachineTypesListCal return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *MachineTypesListCall) PageToken(pageToken string) *MachineTypesListCall { c.opt_["pageToken"] = pageToken return c @@ -12724,7 +17298,7 @@ func (c *MachineTypesListCall) Do() (*MachineTypeList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -12738,7 +17312,7 @@ func (c *MachineTypesListCall) Do() (*MachineTypeList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -13059,8 +17633,27 @@ func (r *NetworksService) List(project string) *NetworksListCall { return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *NetworksListCall) Filter(filter string) *NetworksListCall { c.opt_["filter"] = filter return c @@ -13073,9 +17666,10 @@ func (c *NetworksListCall) MaxResults(maxResults int64) *NetworksListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *NetworksListCall) PageToken(pageToken string) *NetworksListCall { c.opt_["pageToken"] = pageToken return c @@ -13134,7 +17728,7 @@ func (c *NetworksListCall) Do() (*NetworkList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -13148,7 +17742,7 @@ func (c *NetworksListCall) Do() (*NetworkList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -13629,7 +18223,7 @@ type RegionOperationsDeleteCall struct { opt_ map[string]interface{} } -// Delete: Deletes the specified region-specific operation resource. +// Delete: Deletes the specified region-specific Operations resource. // For details, see https://cloud.google.com/compute/docs/reference/latest/regionOperations/delete func (r *RegionOperationsService) Delete(project string, region string, operation string) *RegionOperationsDeleteCall { c := &RegionOperationsDeleteCall{s: r.s, opt_: make(map[string]interface{})} @@ -13673,7 +18267,7 @@ func (c *RegionOperationsDeleteCall) Do() error { } return nil // { - // "description": "Deletes the specified region-specific operation resource.", + // "description": "Deletes the specified region-specific Operations resource.", // "httpMethod": "DELETE", // "id": "compute.regionOperations.delete", // "parameterOrder": [ @@ -13683,7 +18277,7 @@ func (c *RegionOperationsDeleteCall) Do() error { // ], // "parameters": { // "operation": { - // "description": "Name of the operation resource to delete.", + // "description": "Name of the Operations resource to delete.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, @@ -13723,7 +18317,7 @@ type RegionOperationsGetCall struct { opt_ map[string]interface{} } -// Get: Retrieves the specified region-specific operation resource. +// Get: Retrieves the specified region-specific Operations resource. // For details, see https://cloud.google.com/compute/docs/reference/latest/regionOperations/get func (r *RegionOperationsService) Get(project string, region string, operation string) *RegionOperationsGetCall { c := &RegionOperationsGetCall{s: r.s, opt_: make(map[string]interface{})} @@ -13771,7 +18365,7 @@ func (c *RegionOperationsGetCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Retrieves the specified region-specific operation resource.", + // "description": "Retrieves the specified region-specific Operations resource.", // "httpMethod": "GET", // "id": "compute.regionOperations.get", // "parameterOrder": [ @@ -13781,7 +18375,7 @@ func (c *RegionOperationsGetCall) Do() (*Operation, error) { // ], // "parameters": { // "operation": { - // "description": "Name of the operation resource to return.", + // "description": "Name of the Operations resource to return.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, @@ -13824,7 +18418,7 @@ type RegionOperationsListCall struct { opt_ map[string]interface{} } -// List: Retrieves the list of operation resources contained within the +// List: Retrieves the list of Operation resources contained within the // specified region. // For details, see https://cloud.google.com/compute/docs/reference/latest/regionOperations/list func (r *RegionOperationsService) List(project string, region string) *RegionOperationsListCall { @@ -13834,8 +18428,27 @@ func (r *RegionOperationsService) List(project string, region string) *RegionOpe return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *RegionOperationsListCall) Filter(filter string) *RegionOperationsListCall { c.opt_["filter"] = filter return c @@ -13848,9 +18461,10 @@ func (c *RegionOperationsListCall) MaxResults(maxResults int64) *RegionOperation return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *RegionOperationsListCall) PageToken(pageToken string) *RegionOperationsListCall { c.opt_["pageToken"] = pageToken return c @@ -13902,7 +18516,7 @@ func (c *RegionOperationsListCall) Do() (*OperationList, error) { } return ret, nil // { - // "description": "Retrieves the list of operation resources contained within the specified region.", + // "description": "Retrieves the list of Operation resources contained within the specified region.", // "httpMethod": "GET", // "id": "compute.regionOperations.list", // "parameterOrder": [ @@ -13911,7 +18525,7 @@ func (c *RegionOperationsListCall) Do() (*OperationList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -13925,7 +18539,7 @@ func (c *RegionOperationsListCall) Do() (*OperationList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -14065,8 +18679,27 @@ func (r *RegionsService) List(project string) *RegionsListCall { return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *RegionsListCall) Filter(filter string) *RegionsListCall { c.opt_["filter"] = filter return c @@ -14079,9 +18712,10 @@ func (c *RegionsListCall) MaxResults(maxResults int64) *RegionsListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *RegionsListCall) PageToken(pageToken string) *RegionsListCall { c.opt_["pageToken"] = pageToken return c @@ -14140,7 +18774,7 @@ func (c *RegionsListCall) Do() (*RegionList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -14154,7 +18788,7 @@ func (c *RegionsListCall) Do() (*RegionList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -14468,8 +19102,27 @@ func (r *RoutesService) List(project string) *RoutesListCall { return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *RoutesListCall) Filter(filter string) *RoutesListCall { c.opt_["filter"] = filter return c @@ -14482,9 +19135,10 @@ func (c *RoutesListCall) MaxResults(maxResults int64) *RoutesListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *RoutesListCall) PageToken(pageToken string) *RoutesListCall { c.opt_["pageToken"] = pageToken return c @@ -14543,7 +19197,7 @@ func (c *RoutesListCall) Do() (*RouteList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -14557,7 +19211,7 @@ func (c *RoutesListCall) Do() (*RouteList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -14591,7 +19245,13 @@ type SnapshotsDeleteCall struct { opt_ map[string]interface{} } -// Delete: Deletes the specified persistent disk snapshot resource. +// Delete: Deletes the specified Snapshot resource. Keep in mind that +// deleting a single snapshot might not necessarily delete all the data +// on that snapshot. If any data on the snapshot that is marked for +// deletion is needed for subsequent snapshots, the data will be moved +// to the next corresponding snapshot. +// +// For more information, see Deleting snaphots. // For details, see https://cloud.google.com/compute/docs/reference/latest/snapshots/delete func (r *SnapshotsService) Delete(project string, snapshot string) *SnapshotsDeleteCall { c := &SnapshotsDeleteCall{s: r.s, opt_: make(map[string]interface{})} @@ -14637,7 +19297,7 @@ func (c *SnapshotsDeleteCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Deletes the specified persistent disk snapshot resource.", + // "description": "Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot.\n\nFor more information, see Deleting snaphots.", // "httpMethod": "DELETE", // "id": "compute.snapshots.delete", // "parameterOrder": [ @@ -14653,7 +19313,7 @@ func (c *SnapshotsDeleteCall) Do() (*Operation, error) { // "type": "string" // }, // "snapshot": { - // "description": "Name of the persistent disk snapshot resource to delete.", + // "description": "Name of the Snapshot resource to delete.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, @@ -14681,7 +19341,7 @@ type SnapshotsGetCall struct { opt_ map[string]interface{} } -// Get: Returns the specified persistent disk snapshot resource. +// Get: Returns the specified Snapshot resource. // For details, see https://cloud.google.com/compute/docs/reference/latest/snapshots/get func (r *SnapshotsService) Get(project string, snapshot string) *SnapshotsGetCall { c := &SnapshotsGetCall{s: r.s, opt_: make(map[string]interface{})} @@ -14727,7 +19387,7 @@ func (c *SnapshotsGetCall) Do() (*Snapshot, error) { } return ret, nil // { - // "description": "Returns the specified persistent disk snapshot resource.", + // "description": "Returns the specified Snapshot resource.", // "httpMethod": "GET", // "id": "compute.snapshots.get", // "parameterOrder": [ @@ -14743,7 +19403,7 @@ func (c *SnapshotsGetCall) Do() (*Snapshot, error) { // "type": "string" // }, // "snapshot": { - // "description": "Name of the persistent disk snapshot resource to return.", + // "description": "Name of the Snapshot resource to return.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, @@ -14771,8 +19431,8 @@ type SnapshotsListCall struct { opt_ map[string]interface{} } -// List: Retrieves the list of persistent disk snapshot resources -// contained within the specified project. +// List: Retrieves the list of Snapshot resources contained within the +// specified project. // For details, see https://cloud.google.com/compute/docs/reference/latest/snapshots/list func (r *SnapshotsService) List(project string) *SnapshotsListCall { c := &SnapshotsListCall{s: r.s, opt_: make(map[string]interface{})} @@ -14780,8 +19440,27 @@ func (r *SnapshotsService) List(project string) *SnapshotsListCall { return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *SnapshotsListCall) Filter(filter string) *SnapshotsListCall { c.opt_["filter"] = filter return c @@ -14794,9 +19473,10 @@ func (c *SnapshotsListCall) MaxResults(maxResults int64) *SnapshotsListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *SnapshotsListCall) PageToken(pageToken string) *SnapshotsListCall { c.opt_["pageToken"] = pageToken return c @@ -14847,7 +19527,7 @@ func (c *SnapshotsListCall) Do() (*SnapshotList, error) { } return ret, nil // { - // "description": "Retrieves the list of persistent disk snapshot resources contained within the specified project.", + // "description": "Retrieves the list of Snapshot resources contained within the specified project.", // "httpMethod": "GET", // "id": "compute.snapshots.list", // "parameterOrder": [ @@ -14855,7 +19535,7 @@ func (c *SnapshotsListCall) Do() (*SnapshotList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -14869,7 +19549,7 @@ func (c *SnapshotsListCall) Do() (*SnapshotList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -15183,8 +19863,27 @@ func (r *TargetHttpProxiesService) List(project string) *TargetHttpProxiesListCa return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *TargetHttpProxiesListCall) Filter(filter string) *TargetHttpProxiesListCall { c.opt_["filter"] = filter return c @@ -15197,9 +19896,10 @@ func (c *TargetHttpProxiesListCall) MaxResults(maxResults int64) *TargetHttpProx return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *TargetHttpProxiesListCall) PageToken(pageToken string) *TargetHttpProxiesListCall { c.opt_["pageToken"] = pageToken return c @@ -15258,7 +19958,7 @@ func (c *TargetHttpProxiesListCall) Do() (*TargetHttpProxyList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -15272,7 +19972,7 @@ func (c *TargetHttpProxiesListCall) Do() (*TargetHttpProxyList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -15415,8 +20115,27 @@ func (r *TargetInstancesService) AggregatedList(project string) *TargetInstances return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *TargetInstancesAggregatedListCall) Filter(filter string) *TargetInstancesAggregatedListCall { c.opt_["filter"] = filter return c @@ -15429,9 +20148,10 @@ func (c *TargetInstancesAggregatedListCall) MaxResults(maxResults int64) *Target return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *TargetInstancesAggregatedListCall) PageToken(pageToken string) *TargetInstancesAggregatedListCall { c.opt_["pageToken"] = pageToken return c @@ -15490,7 +20210,7 @@ func (c *TargetInstancesAggregatedListCall) Do() (*TargetInstanceAggregatedList, // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -15504,7 +20224,7 @@ func (c *TargetInstancesAggregatedListCall) Do() (*TargetInstanceAggregatedList, // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -15853,8 +20573,27 @@ func (r *TargetInstancesService) List(project string, zone string) *TargetInstan return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *TargetInstancesListCall) Filter(filter string) *TargetInstancesListCall { c.opt_["filter"] = filter return c @@ -15867,9 +20606,10 @@ func (c *TargetInstancesListCall) MaxResults(maxResults int64) *TargetInstancesL return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *TargetInstancesListCall) PageToken(pageToken string) *TargetInstancesListCall { c.opt_["pageToken"] = pageToken return c @@ -15930,7 +20670,7 @@ func (c *TargetInstancesListCall) Do() (*TargetInstanceList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -15944,7 +20684,7 @@ func (c *TargetInstancesListCall) Do() (*TargetInstanceList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -16214,8 +20954,27 @@ func (r *TargetPoolsService) AggregatedList(project string) *TargetPoolsAggregat return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *TargetPoolsAggregatedListCall) Filter(filter string) *TargetPoolsAggregatedListCall { c.opt_["filter"] = filter return c @@ -16228,9 +20987,10 @@ func (c *TargetPoolsAggregatedListCall) MaxResults(maxResults int64) *TargetPool return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *TargetPoolsAggregatedListCall) PageToken(pageToken string) *TargetPoolsAggregatedListCall { c.opt_["pageToken"] = pageToken return c @@ -16289,7 +21049,7 @@ func (c *TargetPoolsAggregatedListCall) Do() (*TargetPoolAggregatedList, error) // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -16303,7 +21063,7 @@ func (c *TargetPoolsAggregatedListCall) Do() (*TargetPoolAggregatedList, error) // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -16765,8 +21525,27 @@ func (r *TargetPoolsService) List(project string, region string) *TargetPoolsLis return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *TargetPoolsListCall) Filter(filter string) *TargetPoolsListCall { c.opt_["filter"] = filter return c @@ -16779,9 +21558,10 @@ func (c *TargetPoolsListCall) MaxResults(maxResults int64) *TargetPoolsListCall return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *TargetPoolsListCall) PageToken(pageToken string) *TargetPoolsListCall { c.opt_["pageToken"] = pageToken return c @@ -16842,7 +21622,7 @@ func (c *TargetPoolsListCall) Do() (*TargetPoolList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -16856,7 +21636,7 @@ func (c *TargetPoolsListCall) Do() (*TargetPoolList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -17254,8 +22034,27 @@ func (r *TargetVpnGatewaysService) AggregatedList(project string) *TargetVpnGate return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *TargetVpnGatewaysAggregatedListCall) Filter(filter string) *TargetVpnGatewaysAggregatedListCall { c.opt_["filter"] = filter return c @@ -17268,9 +22067,10 @@ func (c *TargetVpnGatewaysAggregatedListCall) MaxResults(maxResults int64) *Targ return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *TargetVpnGatewaysAggregatedListCall) PageToken(pageToken string) *TargetVpnGatewaysAggregatedListCall { c.opt_["pageToken"] = pageToken return c @@ -17329,7 +22129,7 @@ func (c *TargetVpnGatewaysAggregatedListCall) Do() (*TargetVpnGatewayAggregatedL // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -17343,7 +22143,7 @@ func (c *TargetVpnGatewaysAggregatedListCall) Do() (*TargetVpnGatewayAggregatedL // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -17688,8 +22488,27 @@ func (r *TargetVpnGatewaysService) List(project string, region string) *TargetVp return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *TargetVpnGatewaysListCall) Filter(filter string) *TargetVpnGatewaysListCall { c.opt_["filter"] = filter return c @@ -17702,9 +22521,10 @@ func (c *TargetVpnGatewaysListCall) MaxResults(maxResults int64) *TargetVpnGatew return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *TargetVpnGatewaysListCall) PageToken(pageToken string) *TargetVpnGatewaysListCall { c.opt_["pageToken"] = pageToken return c @@ -17765,7 +22585,7 @@ func (c *TargetVpnGatewaysListCall) Do() (*TargetVpnGatewayList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -17779,7 +22599,7 @@ func (c *TargetVpnGatewaysListCall) Do() (*TargetVpnGatewayList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -18100,8 +22920,27 @@ func (r *UrlMapsService) List(project string) *UrlMapsListCall { return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *UrlMapsListCall) Filter(filter string) *UrlMapsListCall { c.opt_["filter"] = filter return c @@ -18114,9 +22953,10 @@ func (c *UrlMapsListCall) MaxResults(maxResults int64) *UrlMapsListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *UrlMapsListCall) PageToken(pageToken string) *UrlMapsListCall { c.opt_["pageToken"] = pageToken return c @@ -18175,7 +23015,7 @@ func (c *UrlMapsListCall) Do() (*UrlMapList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -18189,7 +23029,7 @@ func (c *UrlMapsListCall) Do() (*UrlMapList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -18535,8 +23375,27 @@ func (r *VpnTunnelsService) AggregatedList(project string) *VpnTunnelsAggregated return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *VpnTunnelsAggregatedListCall) Filter(filter string) *VpnTunnelsAggregatedListCall { c.opt_["filter"] = filter return c @@ -18549,9 +23408,10 @@ func (c *VpnTunnelsAggregatedListCall) MaxResults(maxResults int64) *VpnTunnelsA return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *VpnTunnelsAggregatedListCall) PageToken(pageToken string) *VpnTunnelsAggregatedListCall { c.opt_["pageToken"] = pageToken return c @@ -18610,7 +23470,7 @@ func (c *VpnTunnelsAggregatedListCall) Do() (*VpnTunnelAggregatedList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -18624,7 +23484,7 @@ func (c *VpnTunnelsAggregatedListCall) Do() (*VpnTunnelAggregatedList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -18969,8 +23829,27 @@ func (r *VpnTunnelsService) List(project string, region string) *VpnTunnelsListC return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *VpnTunnelsListCall) Filter(filter string) *VpnTunnelsListCall { c.opt_["filter"] = filter return c @@ -18983,9 +23862,10 @@ func (c *VpnTunnelsListCall) MaxResults(maxResults int64) *VpnTunnelsListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *VpnTunnelsListCall) PageToken(pageToken string) *VpnTunnelsListCall { c.opt_["pageToken"] = pageToken return c @@ -19046,7 +23926,7 @@ func (c *VpnTunnelsListCall) Do() (*VpnTunnelList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -19060,7 +23940,7 @@ func (c *VpnTunnelsListCall) Do() (*VpnTunnelList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -19102,7 +23982,7 @@ type ZoneOperationsDeleteCall struct { opt_ map[string]interface{} } -// Delete: Deletes the specified zone-specific operation resource. +// Delete: Deletes the specified zone-specific Operations resource. // For details, see https://cloud.google.com/compute/docs/reference/latest/zoneOperations/delete func (r *ZoneOperationsService) Delete(project string, zone string, operation string) *ZoneOperationsDeleteCall { c := &ZoneOperationsDeleteCall{s: r.s, opt_: make(map[string]interface{})} @@ -19146,7 +24026,7 @@ func (c *ZoneOperationsDeleteCall) Do() error { } return nil // { - // "description": "Deletes the specified zone-specific operation resource.", + // "description": "Deletes the specified zone-specific Operations resource.", // "httpMethod": "DELETE", // "id": "compute.zoneOperations.delete", // "parameterOrder": [ @@ -19156,7 +24036,7 @@ func (c *ZoneOperationsDeleteCall) Do() error { // ], // "parameters": { // "operation": { - // "description": "Name of the operation resource to delete.", + // "description": "Name of the Operations resource to delete.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, @@ -19196,7 +24076,7 @@ type ZoneOperationsGetCall struct { opt_ map[string]interface{} } -// Get: Retrieves the specified zone-specific operation resource. +// Get: Retrieves the specified zone-specific Operations resource. // For details, see https://cloud.google.com/compute/docs/reference/latest/zoneOperations/get func (r *ZoneOperationsService) Get(project string, zone string, operation string) *ZoneOperationsGetCall { c := &ZoneOperationsGetCall{s: r.s, opt_: make(map[string]interface{})} @@ -19244,7 +24124,7 @@ func (c *ZoneOperationsGetCall) Do() (*Operation, error) { } return ret, nil // { - // "description": "Retrieves the specified zone-specific operation resource.", + // "description": "Retrieves the specified zone-specific Operations resource.", // "httpMethod": "GET", // "id": "compute.zoneOperations.get", // "parameterOrder": [ @@ -19254,7 +24134,7 @@ func (c *ZoneOperationsGetCall) Do() (*Operation, error) { // ], // "parameters": { // "operation": { - // "description": "Name of the operation resource to return.", + // "description": "Name of the Operations resource to return.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, @@ -19297,7 +24177,7 @@ type ZoneOperationsListCall struct { opt_ map[string]interface{} } -// List: Retrieves the list of operation resources contained within the +// List: Retrieves the list of Operation resources contained within the // specified zone. // For details, see https://cloud.google.com/compute/docs/reference/latest/zoneOperations/list func (r *ZoneOperationsService) List(project string, zone string) *ZoneOperationsListCall { @@ -19307,8 +24187,27 @@ func (r *ZoneOperationsService) List(project string, zone string) *ZoneOperation return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *ZoneOperationsListCall) Filter(filter string) *ZoneOperationsListCall { c.opt_["filter"] = filter return c @@ -19321,9 +24220,10 @@ func (c *ZoneOperationsListCall) MaxResults(maxResults int64) *ZoneOperationsLis return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *ZoneOperationsListCall) PageToken(pageToken string) *ZoneOperationsListCall { c.opt_["pageToken"] = pageToken return c @@ -19375,7 +24275,7 @@ func (c *ZoneOperationsListCall) Do() (*OperationList, error) { } return ret, nil // { - // "description": "Retrieves the list of operation resources contained within the specified zone.", + // "description": "Retrieves the list of Operation resources contained within the specified zone.", // "httpMethod": "GET", // "id": "compute.zoneOperations.list", // "parameterOrder": [ @@ -19384,7 +24284,7 @@ func (c *ZoneOperationsListCall) Do() (*OperationList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -19398,7 +24298,7 @@ func (c *ZoneOperationsListCall) Do() (*OperationList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -19538,8 +24438,27 @@ func (r *ZonesService) List(project string) *ZonesListCall { return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *ZonesListCall) Filter(filter string) *ZonesListCall { c.opt_["filter"] = filter return c @@ -19552,9 +24471,10 @@ func (c *ZonesListCall) MaxResults(maxResults int64) *ZonesListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *ZonesListCall) PageToken(pageToken string) *ZonesListCall { c.opt_["pageToken"] = pageToken return c @@ -19613,7 +24533,7 @@ func (c *ZonesListCall) Do() (*ZoneList, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -19627,7 +24547,7 @@ func (c *ZonesListCall) Do() (*ZoneList, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, diff --git a/content/v2/content-api.json b/content/v2/content-api.json index cab0ef22c28..cd251d91b77 100644 --- a/content/v2/content-api.json +++ b/content/v2/content-api.json @@ -1,12 +1,12 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/G-ZyOp5RRHFr1ENfVUNl9TTyO6w\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/ZkR-AOQeuSbCQ7gjAz0_-RpvTqg\"", "discoveryVersion": "v1", "id": "content:v2", "name": "content", "canonicalName": "Shopping Content", "version": "v2", - "revision": "20150424", + "revision": "20150710", "title": "Content API for Shopping", "description": "Manage product items, inventory, and Merchant Center accounts for Google Shopping.", "ownerDomain": "google.com", @@ -2703,6 +2703,13 @@ "path": "accounts/batch", "httpMethod": "POST", "description": "Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.", + "parameters": { + "dryRun": { + "type": "boolean", + "description": "Flag to run the request in dry-run mode.", + "location": "query" + } + }, "request": { "$ref": "AccountsCustomBatchRequest" }, @@ -2726,6 +2733,11 @@ "format": "uint64", "location": "path" }, + "dryRun": { + "type": "boolean", + "description": "Flag to run the request in dry-run mode.", + "location": "query" + }, "merchantId": { "type": "string", "description": "The ID of the managing account.", @@ -2780,6 +2792,11 @@ "httpMethod": "POST", "description": "Creates a Merchant Center sub-account.", "parameters": { + "dryRun": { + "type": "boolean", + "description": "Flag to run the request in dry-run mode.", + "location": "query" + }, "merchantId": { "type": "string", "description": "The ID of the managing account.", @@ -2849,6 +2866,11 @@ "format": "uint64", "location": "path" }, + "dryRun": { + "type": "boolean", + "description": "Flag to run the request in dry-run mode.", + "location": "query" + }, "merchantId": { "type": "string", "description": "The ID of the managing account.", @@ -2884,6 +2906,11 @@ "format": "uint64", "location": "path" }, + "dryRun": { + "type": "boolean", + "description": "Flag to run the request in dry-run mode.", + "location": "query" + }, "merchantId": { "type": "string", "description": "The ID of the managing account.", @@ -3345,6 +3372,13 @@ "id": "content.datafeeds.custombatch", "path": "datafeeds/batch", "httpMethod": "POST", + "parameters": { + "dryRun": { + "type": "boolean", + "description": "Flag to run the request in dry-run mode.", + "location": "query" + } + }, "request": { "$ref": "DatafeedsCustomBatchRequest" }, @@ -3367,6 +3401,11 @@ "format": "uint64", "location": "path" }, + "dryRun": { + "type": "boolean", + "description": "Flag to run the request in dry-run mode.", + "location": "query" + }, "merchantId": { "type": "string", "required": true, @@ -3418,6 +3457,11 @@ "httpMethod": "POST", "description": "Registers a datafeed with your Merchant Center account.", "parameters": { + "dryRun": { + "type": "boolean", + "description": "Flag to run the request in dry-run mode.", + "location": "query" + }, "merchantId": { "type": "string", "required": true, @@ -3485,6 +3529,11 @@ "format": "uint64", "location": "path" }, + "dryRun": { + "type": "boolean", + "description": "Flag to run the request in dry-run mode.", + "location": "query" + }, "merchantId": { "type": "string", "required": true, @@ -3518,6 +3567,11 @@ "format": "uint64", "location": "path" }, + "dryRun": { + "type": "boolean", + "description": "Flag to run the request in dry-run mode.", + "location": "query" + }, "merchantId": { "type": "string", "required": true, @@ -3631,6 +3685,13 @@ "path": "inventory/batch", "httpMethod": "POST", "description": "Updates price and availability for multiple products or stores in a single request.", + "parameters": { + "dryRun": { + "type": "boolean", + "description": "Flag to run the request in dry-run mode.", + "location": "query" + } + }, "request": { "$ref": "InventoryCustomBatchRequest" }, @@ -3647,6 +3708,11 @@ "httpMethod": "POST", "description": "Updates price and availability of a product in your Merchant Center account.", "parameters": { + "dryRun": { + "type": "boolean", + "description": "Flag to run the request in dry-run mode.", + "location": "query" + }, "merchantId": { "type": "string", "description": "The ID of the managing account.", diff --git a/content/v2/content-gen.go b/content/v2/content-gen.go index 907f04b6601..75ffaa756bb 100644 --- a/content/v2/content-gen.go +++ b/content/v2/content-gen.go @@ -1826,6 +1826,13 @@ func (r *AccountsService) Custombatch(accountscustombatchrequest *AccountsCustom return c } +// DryRun sets the optional parameter "dryRun": Flag to run the request +// in dry-run mode. +func (c *AccountsCustombatchCall) DryRun(dryRun bool) *AccountsCustombatchCall { + c.opt_["dryRun"] = dryRun + return c +} + // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -1843,6 +1850,9 @@ func (c *AccountsCustombatchCall) Do() (*AccountsCustomBatchResponse, error) { ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dryRun"]; ok { + params.Set("dryRun", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -1869,6 +1879,13 @@ func (c *AccountsCustombatchCall) Do() (*AccountsCustomBatchResponse, error) { // "description": "Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.", // "httpMethod": "POST", // "id": "content.accounts.custombatch", + // "parameters": { + // "dryRun": { + // "description": "Flag to run the request in dry-run mode.", + // "location": "query", + // "type": "boolean" + // } + // }, // "path": "accounts/batch", // "request": { // "$ref": "AccountsCustomBatchRequest" @@ -1900,6 +1917,13 @@ func (r *AccountsService) Delete(merchantId uint64, accountId uint64) *AccountsD return c } +// DryRun sets the optional parameter "dryRun": Flag to run the request +// in dry-run mode. +func (c *AccountsDeleteCall) DryRun(dryRun bool) *AccountsDeleteCall { + c.opt_["dryRun"] = dryRun + return c +} + // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -1912,6 +1936,9 @@ func (c *AccountsDeleteCall) Do() error { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dryRun"]; ok { + params.Set("dryRun", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -1948,6 +1975,11 @@ func (c *AccountsDeleteCall) Do() error { // "required": true, // "type": "string" // }, + // "dryRun": { + // "description": "Flag to run the request in dry-run mode.", + // "location": "query", + // "type": "boolean" + // }, // "merchantId": { // "description": "The ID of the managing account.", // "format": "uint64", @@ -2069,6 +2101,13 @@ func (r *AccountsService) Insert(merchantId uint64, account *Account) *AccountsI return c } +// DryRun sets the optional parameter "dryRun": Flag to run the request +// in dry-run mode. +func (c *AccountsInsertCall) DryRun(dryRun bool) *AccountsInsertCall { + c.opt_["dryRun"] = dryRun + return c +} + // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -2086,6 +2125,9 @@ func (c *AccountsInsertCall) Do() (*Account, error) { ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dryRun"]; ok { + params.Set("dryRun", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -2118,6 +2160,11 @@ func (c *AccountsInsertCall) Do() (*Account, error) { // "merchantId" // ], // "parameters": { + // "dryRun": { + // "description": "Flag to run the request in dry-run mode.", + // "location": "query", + // "type": "boolean" + // }, // "merchantId": { // "description": "The ID of the managing account.", // "format": "uint64", @@ -2268,6 +2315,13 @@ func (r *AccountsService) Patch(merchantId uint64, accountId uint64, account *Ac return c } +// DryRun sets the optional parameter "dryRun": Flag to run the request +// in dry-run mode. +func (c *AccountsPatchCall) DryRun(dryRun bool) *AccountsPatchCall { + c.opt_["dryRun"] = dryRun + return c +} + // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -2285,6 +2339,9 @@ func (c *AccountsPatchCall) Do() (*Account, error) { ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dryRun"]; ok { + params.Set("dryRun", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -2326,6 +2383,11 @@ func (c *AccountsPatchCall) Do() (*Account, error) { // "required": true, // "type": "string" // }, + // "dryRun": { + // "description": "Flag to run the request in dry-run mode.", + // "location": "query", + // "type": "boolean" + // }, // "merchantId": { // "description": "The ID of the managing account.", // "format": "uint64", @@ -2367,6 +2429,13 @@ func (r *AccountsService) Update(merchantId uint64, accountId uint64, account *A return c } +// DryRun sets the optional parameter "dryRun": Flag to run the request +// in dry-run mode. +func (c *AccountsUpdateCall) DryRun(dryRun bool) *AccountsUpdateCall { + c.opt_["dryRun"] = dryRun + return c +} + // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -2384,6 +2453,9 @@ func (c *AccountsUpdateCall) Do() (*Account, error) { ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dryRun"]; ok { + params.Set("dryRun", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -2425,6 +2497,11 @@ func (c *AccountsUpdateCall) Do() (*Account, error) { // "required": true, // "type": "string" // }, + // "dryRun": { + // "description": "Flag to run the request in dry-run mode.", + // "location": "query", + // "type": "boolean" + // }, // "merchantId": { // "description": "The ID of the managing account.", // "format": "uint64", @@ -3764,6 +3841,13 @@ func (r *DatafeedsService) Custombatch(datafeedscustombatchrequest *DatafeedsCus return c } +// DryRun sets the optional parameter "dryRun": Flag to run the request +// in dry-run mode. +func (c *DatafeedsCustombatchCall) DryRun(dryRun bool) *DatafeedsCustombatchCall { + c.opt_["dryRun"] = dryRun + return c +} + // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -3781,6 +3865,9 @@ func (c *DatafeedsCustombatchCall) Do() (*DatafeedsCustomBatchResponse, error) { ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dryRun"]; ok { + params.Set("dryRun", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -3806,6 +3893,13 @@ func (c *DatafeedsCustombatchCall) Do() (*DatafeedsCustomBatchResponse, error) { // { // "httpMethod": "POST", // "id": "content.datafeeds.custombatch", + // "parameters": { + // "dryRun": { + // "description": "Flag to run the request in dry-run mode.", + // "location": "query", + // "type": "boolean" + // } + // }, // "path": "datafeeds/batch", // "request": { // "$ref": "DatafeedsCustomBatchRequest" @@ -3837,6 +3931,13 @@ func (r *DatafeedsService) Delete(merchantId uint64, datafeedId uint64) *Datafee return c } +// DryRun sets the optional parameter "dryRun": Flag to run the request +// in dry-run mode. +func (c *DatafeedsDeleteCall) DryRun(dryRun bool) *DatafeedsDeleteCall { + c.opt_["dryRun"] = dryRun + return c +} + // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -3849,6 +3950,9 @@ func (c *DatafeedsDeleteCall) Do() error { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dryRun"]; ok { + params.Set("dryRun", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -3884,6 +3988,11 @@ func (c *DatafeedsDeleteCall) Do() error { // "required": true, // "type": "string" // }, + // "dryRun": { + // "description": "Flag to run the request in dry-run mode.", + // "location": "query", + // "type": "boolean" + // }, // "merchantId": { // "format": "uint64", // "location": "path", @@ -4002,6 +4111,13 @@ func (r *DatafeedsService) Insert(merchantId uint64, datafeed *Datafeed) *Datafe return c } +// DryRun sets the optional parameter "dryRun": Flag to run the request +// in dry-run mode. +func (c *DatafeedsInsertCall) DryRun(dryRun bool) *DatafeedsInsertCall { + c.opt_["dryRun"] = dryRun + return c +} + // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -4019,6 +4135,9 @@ func (c *DatafeedsInsertCall) Do() (*Datafeed, error) { ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dryRun"]; ok { + params.Set("dryRun", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -4051,6 +4170,11 @@ func (c *DatafeedsInsertCall) Do() (*Datafeed, error) { // "merchantId" // ], // "parameters": { + // "dryRun": { + // "description": "Flag to run the request in dry-run mode.", + // "location": "query", + // "type": "boolean" + // }, // "merchantId": { // "format": "uint64", // "location": "path", @@ -4200,6 +4324,13 @@ func (r *DatafeedsService) Patch(merchantId uint64, datafeedId uint64, datafeed return c } +// DryRun sets the optional parameter "dryRun": Flag to run the request +// in dry-run mode. +func (c *DatafeedsPatchCall) DryRun(dryRun bool) *DatafeedsPatchCall { + c.opt_["dryRun"] = dryRun + return c +} + // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -4217,6 +4348,9 @@ func (c *DatafeedsPatchCall) Do() (*Datafeed, error) { ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dryRun"]; ok { + params.Set("dryRun", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -4257,6 +4391,11 @@ func (c *DatafeedsPatchCall) Do() (*Datafeed, error) { // "required": true, // "type": "string" // }, + // "dryRun": { + // "description": "Flag to run the request in dry-run mode.", + // "location": "query", + // "type": "boolean" + // }, // "merchantId": { // "format": "uint64", // "location": "path", @@ -4297,6 +4436,13 @@ func (r *DatafeedsService) Update(merchantId uint64, datafeedId uint64, datafeed return c } +// DryRun sets the optional parameter "dryRun": Flag to run the request +// in dry-run mode. +func (c *DatafeedsUpdateCall) DryRun(dryRun bool) *DatafeedsUpdateCall { + c.opt_["dryRun"] = dryRun + return c +} + // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -4314,6 +4460,9 @@ func (c *DatafeedsUpdateCall) Do() (*Datafeed, error) { ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dryRun"]; ok { + params.Set("dryRun", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -4354,6 +4503,11 @@ func (c *DatafeedsUpdateCall) Do() (*Datafeed, error) { // "required": true, // "type": "string" // }, + // "dryRun": { + // "description": "Flag to run the request in dry-run mode.", + // "location": "query", + // "type": "boolean" + // }, // "merchantId": { // "format": "uint64", // "location": "path", @@ -4658,6 +4812,13 @@ func (r *InventoryService) Custombatch(inventorycustombatchrequest *InventoryCus return c } +// DryRun sets the optional parameter "dryRun": Flag to run the request +// in dry-run mode. +func (c *InventoryCustombatchCall) DryRun(dryRun bool) *InventoryCustombatchCall { + c.opt_["dryRun"] = dryRun + return c +} + // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -4675,6 +4836,9 @@ func (c *InventoryCustombatchCall) Do() (*InventoryCustomBatchResponse, error) { ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dryRun"]; ok { + params.Set("dryRun", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -4701,6 +4865,13 @@ func (c *InventoryCustombatchCall) Do() (*InventoryCustomBatchResponse, error) { // "description": "Updates price and availability for multiple products or stores in a single request.", // "httpMethod": "POST", // "id": "content.inventory.custombatch", + // "parameters": { + // "dryRun": { + // "description": "Flag to run the request in dry-run mode.", + // "location": "query", + // "type": "boolean" + // } + // }, // "path": "inventory/batch", // "request": { // "$ref": "InventoryCustomBatchRequest" @@ -4737,6 +4908,13 @@ func (r *InventoryService) Set(merchantId uint64, storeCode string, productId st return c } +// DryRun sets the optional parameter "dryRun": Flag to run the request +// in dry-run mode. +func (c *InventorySetCall) DryRun(dryRun bool) *InventorySetCall { + c.opt_["dryRun"] = dryRun + return c +} + // Fields allows partial responses to be retrieved. // See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -4754,6 +4932,9 @@ func (c *InventorySetCall) Do() (*InventorySetResponse, error) { ctype := "application/json" params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dryRun"]; ok { + params.Set("dryRun", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["fields"]; ok { params.Set("fields", fmt.Sprintf("%v", v)) } @@ -4790,6 +4971,11 @@ func (c *InventorySetCall) Do() (*InventorySetResponse, error) { // "productId" // ], // "parameters": { + // "dryRun": { + // "description": "Flag to run the request in dry-run mode.", + // "location": "query", + // "type": "boolean" + // }, // "merchantId": { // "description": "The ID of the managing account.", // "format": "uint64", diff --git a/dataflow/v1b4/dataflow-api.json b/dataflow/v1b4/dataflow-api.json deleted file mode 100644 index 12c52026bbc..00000000000 --- a/dataflow/v1b4/dataflow-api.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/dTcq0rCwnZSU5y5C-0jgoQiaKQA\"", - "discoveryVersion": "v1", - "id": "dataflow:v1b4", - "name": "dataflow", - "version": "v1b4", - "revision": "20141207", - "title": "Google Dataflow API", - "description": "Google Dataflow API.", - "ownerDomain": "google.com", - "ownerName": "Google", - "icons": { - "x16": "http://www.google.com/images/icons/product/search-16.gif", - "x32": "http://www.google.com/images/icons/product/search-32.gif" - }, - "documentationLink": "", - "protocol": "rest", - "baseUrl": "https://dataflow.googleapis.com/", - "basePath": "/", - "rootUrl": "https://dataflow.googleapis.com/", - "servicePath": "", - "batchPath": "batch", - "parameters": { - "alt": { - "type": "string", - "description": "Data format for the response.", - "default": "json", - "enum": [ - "json" - ], - "enumDescriptions": [ - "Responses with Content-Type of application/json" - ], - "location": "query" - }, - "fields": { - "type": "string", - "description": "Selector specifying which fields to include in a partial response.", - "location": "query" - }, - "key": { - "type": "string", - "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", - "location": "query" - }, - "oauth_token": { - "type": "string", - "description": "OAuth 2.0 token for the current user.", - "location": "query" - }, - "prettyPrint": { - "type": "boolean", - "description": "Returns response with indentations and line breaks.", - "default": "true", - "location": "query" - }, - "quotaUser": { - "type": "string", - "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.", - "location": "query" - }, - "userIp": { - "type": "string", - "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.", - "location": "query" - } - } -} diff --git a/dataflow/v1b4/dataflow-gen.go b/dataflow/v1b4/dataflow-gen.go deleted file mode 100644 index c1094764341..00000000000 --- a/dataflow/v1b4/dataflow-gen.go +++ /dev/null @@ -1,61 +0,0 @@ -// Package dataflow provides access to the Google Dataflow API. -// -// Usage example: -// -// import "google.golang.org/api/dataflow/v1b4" -// ... -// dataflowService, err := dataflow.New(oauthHttpClient) -package dataflow - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "golang.org/x/net/context" - "google.golang.org/api/googleapi" - "io" - "net/http" - "net/url" - "strconv" - "strings" -) - -// Always reference these packages, just in case the auto-generated code -// below doesn't. -var _ = bytes.NewBuffer -var _ = strconv.Itoa -var _ = fmt.Sprintf -var _ = json.NewDecoder -var _ = io.Copy -var _ = url.Parse -var _ = googleapi.Version -var _ = errors.New -var _ = strings.Replace -var _ = context.Background - -const apiId = "dataflow:v1b4" -const apiName = "dataflow" -const apiVersion = "v1b4" -const basePath = "https://dataflow.googleapis.com/" - -func New(client *http.Client) (*Service, error) { - if client == nil { - return nil, errors.New("client is nil") - } - s := &Service{client: client, BasePath: basePath} - return s, nil -} - -type Service struct { - client *http.Client - BasePath string // API endpoint base URL - UserAgent string // optional additional User-Agent fragment -} - -func (s *Service) userAgent() string { - if s.UserAgent == "" { - return googleapi.UserAgent - } - return googleapi.UserAgent + " " + s.UserAgent -} diff --git a/dataflow/v1beta3/dataflow-api.json b/dataflow/v1beta3/dataflow-api.json deleted file mode 100644 index 9ffb04ab284..00000000000 --- a/dataflow/v1beta3/dataflow-api.json +++ /dev/null @@ -1,1980 +0,0 @@ -{ - "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/d2Oqcnuo6ZlHC11ewFkLyJYZnGI\"", - "discoveryVersion": "v1", - "id": "dataflow:v1beta3", - "name": "dataflow", - "version": "v1beta3", - "revision": "20150417", - "title": "Google Dataflow API", - "description": "Google Dataflow API.", - "ownerDomain": "google.com", - "ownerName": "Google", - "icons": { - "x16": "http://www.google.com/images/icons/product/search-16.gif", - "x32": "http://www.google.com/images/icons/product/search-32.gif" - }, - "documentationLink": "", - "protocol": "rest", - "baseUrl": "https://www.googleapis.com/dataflow/v1b3/projects/", - "basePath": "/dataflow/v1b3/projects/", - "rootUrl": "https://www.googleapis.com/", - "servicePath": "dataflow/v1b3/projects/", - "batchPath": "batch", - "parameters": { - "alt": { - "type": "string", - "description": "Data format for the response.", - "default": "json", - "enum": [ - "json" - ], - "enumDescriptions": [ - "Responses with Content-Type of application/json" - ], - "location": "query" - }, - "fields": { - "type": "string", - "description": "Selector specifying which fields to include in a partial response.", - "location": "query" - }, - "key": { - "type": "string", - "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", - "location": "query" - }, - "oauth_token": { - "type": "string", - "description": "OAuth 2.0 token for the current user.", - "location": "query" - }, - "prettyPrint": { - "type": "boolean", - "description": "Returns response with indentations and line breaks.", - "default": "true", - "location": "query" - }, - "quotaUser": { - "type": "string", - "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.", - "location": "query" - }, - "userIp": { - "type": "string", - "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.", - "location": "query" - } - }, - "auth": { - "oauth2": { - "scopes": { - "https://www.googleapis.com/auth/cloud-platform": { - "description": "View and manage your data across Google Cloud Platform services" - }, - "https://www.googleapis.com/auth/userinfo.email": { - "description": "View your email address" - } - } - } - }, - "schemas": { - "ApproximateProgress": { - "id": "ApproximateProgress", - "type": "object", - "properties": { - "percentComplete": { - "type": "number", - "format": "float" - }, - "position": { - "$ref": "Position" - }, - "remainingTime": { - "type": "string" - } - } - }, - "AutoscalingSettings": { - "id": "AutoscalingSettings", - "type": "object", - "properties": { - "algorithm": { - "type": "string", - "enum": [ - "AUTOSCALING_ALGORITHM_BASIC", - "AUTOSCALING_ALGORITHM_NONE", - "AUTOSCALING_ALGORITHM_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "" - ] - }, - "maxNumWorkers": { - "type": "integer", - "format": "int32" - } - } - }, - "ComputationTopology": { - "id": "ComputationTopology", - "type": "object", - "properties": { - "computationId": { - "type": "string" - }, - "inputs": { - "type": "array", - "items": { - "$ref": "StreamLocation" - } - }, - "keyRanges": { - "type": "array", - "items": { - "$ref": "KeyRangeLocation" - } - }, - "outputs": { - "type": "array", - "items": { - "$ref": "StreamLocation" - } - } - } - }, - "DataDiskAssignment": { - "id": "DataDiskAssignment", - "type": "object", - "properties": { - "dataDisks": { - "type": "array", - "items": { - "type": "string" - } - }, - "vmInstance": { - "type": "string" - } - } - }, - "DerivedSource": { - "id": "DerivedSource", - "type": "object", - "properties": { - "derivationMode": { - "type": "string", - "enum": [ - "SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT", - "SOURCE_DERIVATION_MODE_INDEPENDENT", - "SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT", - "SOURCE_DERIVATION_MODE_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ] - }, - "source": { - "$ref": "Source" - } - } - }, - "Disk": { - "id": "Disk", - "type": "object", - "properties": { - "diskType": { - "type": "string" - }, - "mountPoint": { - "type": "string" - }, - "sizeGb": { - "type": "integer", - "format": "int32" - } - } - }, - "DynamicSourceSplit": { - "id": "DynamicSourceSplit", - "type": "object", - "properties": { - "primary": { - "$ref": "DerivedSource" - }, - "residual": { - "$ref": "DerivedSource" - } - } - }, - "Environment": { - "id": "Environment", - "type": "object", - "properties": { - "clusterManagerApiService": { - "type": "string" - }, - "dataset": { - "type": "string" - }, - "experiments": { - "type": "array", - "items": { - "type": "string" - } - }, - "sdkPipelineOptions": { - "type": "object", - "additionalProperties": { - "type": "any" - } - }, - "tempStoragePrefix": { - "type": "string" - }, - "userAgent": { - "type": "object", - "additionalProperties": { - "type": "any" - } - }, - "version": { - "type": "object", - "additionalProperties": { - "type": "any" - } - }, - "workerPools": { - "type": "array", - "items": { - "$ref": "WorkerPool" - } - } - } - }, - "FlattenInstruction": { - "id": "FlattenInstruction", - "type": "object", - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "InstructionInput" - } - } - } - }, - "GoogleprotobufValue": { - "id": "GoogleprotobufValue", - "type": "any" - }, - "InstructionInput": { - "id": "InstructionInput", - "type": "object", - "properties": { - "outputNum": { - "type": "integer", - "format": "int32" - }, - "producerInstructionIndex": { - "type": "integer", - "format": "int32" - } - } - }, - "InstructionOutput": { - "id": "InstructionOutput", - "type": "object", - "properties": { - "codec": { - "type": "object", - "additionalProperties": { - "type": "any" - } - }, - "name": { - "type": "string" - } - } - }, - "Job": { - "id": "Job", - "type": "object", - "properties": { - "createTime": { - "type": "string" - }, - "currentState": { - "type": "string", - "enum": [ - "JOB_STATE_CANCELLED", - "JOB_STATE_DONE", - "JOB_STATE_FAILED", - "JOB_STATE_RUNNING", - "JOB_STATE_STOPPED", - "JOB_STATE_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ] - }, - "currentStateTime": { - "type": "string" - }, - "environment": { - "$ref": "Environment" - }, - "executionInfo": { - "$ref": "JobExecutionInfo" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "projectId": { - "type": "string" - }, - "requestedState": { - "type": "string", - "enum": [ - "JOB_STATE_CANCELLED", - "JOB_STATE_DONE", - "JOB_STATE_FAILED", - "JOB_STATE_RUNNING", - "JOB_STATE_STOPPED", - "JOB_STATE_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ] - }, - "steps": { - "type": "array", - "items": { - "$ref": "Step" - } - }, - "type": { - "type": "string", - "enum": [ - "JOB_TYPE_BATCH", - "JOB_TYPE_STREAMING", - "JOB_TYPE_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "" - ] - } - } - }, - "JobExecutionInfo": { - "id": "JobExecutionInfo", - "type": "object", - "properties": { - "stages": { - "type": "object", - "additionalProperties": { - "$ref": "JobExecutionStageInfo" - } - } - } - }, - "JobExecutionStageInfo": { - "id": "JobExecutionStageInfo", - "type": "object", - "properties": { - "stepName": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "JobMessage": { - "id": "JobMessage", - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "messageImportance": { - "type": "string", - "enum": [ - "JOB_MESSAGE_DEBUG", - "JOB_MESSAGE_DETAILED", - "JOB_MESSAGE_ERROR", - "JOB_MESSAGE_IMPORTANCE_UNKNOWN", - "JOB_MESSAGE_WARNING" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ] - }, - "messageText": { - "type": "string" - }, - "time": { - "type": "string" - } - } - }, - "JobMetrics": { - "id": "JobMetrics", - "type": "object", - "properties": { - "metricTime": { - "type": "string" - }, - "metrics": { - "type": "array", - "items": { - "$ref": "MetricUpdate" - } - } - } - }, - "KeyRangeDataDiskAssignment": { - "id": "KeyRangeDataDiskAssignment", - "type": "object", - "properties": { - "dataDisk": { - "type": "string" - }, - "end": { - "type": "string" - }, - "start": { - "type": "string" - } - } - }, - "KeyRangeLocation": { - "id": "KeyRangeLocation", - "type": "object", - "properties": { - "dataDisk": { - "type": "string" - }, - "deliveryEndpoint": { - "type": "string" - }, - "end": { - "type": "string" - }, - "persistentDirectory": { - "type": "string" - }, - "start": { - "type": "string" - } - } - }, - "LeaseWorkItemRequest": { - "id": "LeaseWorkItemRequest", - "type": "object", - "properties": { - "currentWorkerTime": { - "type": "string" - }, - "requestedLeaseDuration": { - "type": "string" - }, - "workItemTypes": { - "type": "array", - "items": { - "type": "string" - } - }, - "workerCapabilities": { - "type": "array", - "items": { - "type": "string" - } - }, - "workerId": { - "type": "string" - } - } - }, - "LeaseWorkItemResponse": { - "id": "LeaseWorkItemResponse", - "type": "object", - "properties": { - "workItems": { - "type": "array", - "items": { - "$ref": "WorkItem" - } - } - } - }, - "ListJobMessagesResponse": { - "id": "ListJobMessagesResponse", - "type": "object", - "properties": { - "jobMessages": { - "type": "array", - "items": { - "$ref": "JobMessage" - } - }, - "nextPageToken": { - "type": "string" - } - } - }, - "ListJobsResponse": { - "id": "ListJobsResponse", - "type": "object", - "properties": { - "jobs": { - "type": "array", - "items": { - "$ref": "Job" - } - }, - "nextPageToken": { - "type": "string" - } - } - }, - "MapTask": { - "id": "MapTask", - "type": "object", - "properties": { - "instructions": { - "type": "array", - "items": { - "$ref": "ParallelInstruction" - } - }, - "stageName": { - "type": "string" - }, - "systemName": { - "type": "string" - } - } - }, - "MetricStructuredName": { - "id": "MetricStructuredName", - "type": "object", - "properties": { - "context": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "origin": { - "type": "string" - } - } - }, - "MetricUpdate": { - "id": "MetricUpdate", - "type": "object", - "properties": { - "cumulative": { - "type": "boolean" - }, - "internal": { - "$ref": "GoogleprotobufValue" - }, - "kind": { - "type": "string" - }, - "meanCount": { - "$ref": "GoogleprotobufValue" - }, - "meanSum": { - "$ref": "GoogleprotobufValue" - }, - "name": { - "$ref": "MetricStructuredName" - }, - "scalar": { - "$ref": "GoogleprotobufValue" - }, - "set": { - "$ref": "GoogleprotobufValue" - }, - "updateTime": { - "type": "string" - } - } - }, - "MountedDataDisk": { - "id": "MountedDataDisk", - "type": "object", - "properties": { - "dataDisk": { - "type": "string" - } - } - }, - "MultiOutputInfo": { - "id": "MultiOutputInfo", - "type": "object", - "properties": { - "tag": { - "type": "string" - } - } - }, - "Package": { - "id": "Package", - "type": "object", - "properties": { - "location": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "ParDoInstruction": { - "id": "ParDoInstruction", - "type": "object", - "properties": { - "input": { - "$ref": "InstructionInput" - }, - "multiOutputInfos": { - "type": "array", - "items": { - "$ref": "MultiOutputInfo" - } - }, - "numOutputs": { - "type": "integer", - "format": "int32" - }, - "sideInputs": { - "type": "array", - "items": { - "$ref": "SideInputInfo" - } - }, - "userFn": { - "type": "object", - "additionalProperties": { - "type": "any" - } - } - } - }, - "ParallelInstruction": { - "id": "ParallelInstruction", - "type": "object", - "properties": { - "flatten": { - "$ref": "FlattenInstruction" - }, - "name": { - "type": "string" - }, - "outputs": { - "type": "array", - "items": { - "$ref": "InstructionOutput" - } - }, - "parDo": { - "$ref": "ParDoInstruction" - }, - "partialGroupByKey": { - "$ref": "PartialGroupByKeyInstruction" - }, - "read": { - "$ref": "ReadInstruction" - }, - "systemName": { - "type": "string" - }, - "write": { - "$ref": "WriteInstruction" - } - } - }, - "PartialGroupByKeyInstruction": { - "id": "PartialGroupByKeyInstruction", - "type": "object", - "properties": { - "input": { - "$ref": "InstructionInput" - }, - "inputElementCodec": { - "type": "object", - "additionalProperties": { - "type": "any" - } - }, - "valueCombiningFn": { - "type": "object", - "additionalProperties": { - "type": "any" - } - } - } - }, - "Position": { - "id": "Position", - "type": "object", - "properties": { - "byteOffset": { - "type": "string", - "format": "int64" - }, - "end": { - "type": "boolean" - }, - "key": { - "type": "string" - }, - "recordIndex": { - "type": "string", - "format": "int64" - }, - "shufflePosition": { - "type": "string" - } - } - }, - "PubsubLocation": { - "id": "PubsubLocation", - "type": "object", - "properties": { - "dropLateData": { - "type": "boolean" - }, - "idLabel": { - "type": "string" - }, - "subscription": { - "type": "string" - }, - "timestampLabel": { - "type": "string" - }, - "topic": { - "type": "string" - }, - "trackingSubscription": { - "type": "string" - } - } - }, - "ReadInstruction": { - "id": "ReadInstruction", - "type": "object", - "properties": { - "source": { - "$ref": "Source" - } - } - }, - "ReportWorkItemStatusRequest": { - "id": "ReportWorkItemStatusRequest", - "type": "object", - "properties": { - "currentWorkerTime": { - "type": "string" - }, - "workItemStatuses": { - "type": "array", - "items": { - "$ref": "WorkItemStatus" - } - }, - "workerId": { - "type": "string" - } - } - }, - "ReportWorkItemStatusResponse": { - "id": "ReportWorkItemStatusResponse", - "type": "object", - "properties": { - "workItemServiceStates": { - "type": "array", - "items": { - "$ref": "WorkItemServiceState" - } - } - } - }, - "SeqMapTask": { - "id": "SeqMapTask", - "type": "object", - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "SideInputInfo" - } - }, - "name": { - "type": "string" - }, - "outputInfos": { - "type": "array", - "items": { - "$ref": "SeqMapTaskOutputInfo" - } - }, - "stageName": { - "type": "string" - }, - "systemName": { - "type": "string" - }, - "userFn": { - "type": "object", - "additionalProperties": { - "type": "any" - } - } - } - }, - "SeqMapTaskOutputInfo": { - "id": "SeqMapTaskOutputInfo", - "type": "object", - "properties": { - "sink": { - "$ref": "Sink" - }, - "tag": { - "type": "string" - } - } - }, - "ShellTask": { - "id": "ShellTask", - "type": "object", - "properties": { - "command": { - "type": "string" - }, - "exitCode": { - "type": "integer", - "format": "int32" - } - } - }, - "SideInputInfo": { - "id": "SideInputInfo", - "type": "object", - "properties": { - "kind": { - "type": "object", - "additionalProperties": { - "type": "any" - } - }, - "sources": { - "type": "array", - "items": { - "$ref": "Source" - } - }, - "tag": { - "type": "string" - } - } - }, - "Sink": { - "id": "Sink", - "type": "object", - "properties": { - "codec": { - "type": "object", - "additionalProperties": { - "type": "any" - } - }, - "spec": { - "type": "object", - "additionalProperties": { - "type": "any" - } - } - } - }, - "Source": { - "id": "Source", - "type": "object", - "properties": { - "baseSpecs": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "any" - } - } - }, - "codec": { - "type": "object", - "additionalProperties": { - "type": "any" - } - }, - "doesNotNeedSplitting": { - "type": "boolean" - }, - "metadata": { - "$ref": "SourceMetadata" - }, - "spec": { - "type": "object", - "additionalProperties": { - "type": "any" - } - } - } - }, - "SourceFork": { - "id": "SourceFork", - "type": "object", - "properties": { - "primary": { - "$ref": "SourceSplitShard" - }, - "primarySource": { - "$ref": "DerivedSource" - }, - "residual": { - "$ref": "SourceSplitShard" - }, - "residualSource": { - "$ref": "DerivedSource" - } - } - }, - "SourceGetMetadataRequest": { - "id": "SourceGetMetadataRequest", - "type": "object", - "properties": { - "source": { - "$ref": "Source" - } - } - }, - "SourceGetMetadataResponse": { - "id": "SourceGetMetadataResponse", - "type": "object", - "properties": { - "metadata": { - "$ref": "SourceMetadata" - } - } - }, - "SourceMetadata": { - "id": "SourceMetadata", - "type": "object", - "properties": { - "estimatedSizeBytes": { - "type": "string", - "format": "int64" - }, - "infinite": { - "type": "boolean" - }, - "producesSortedKeys": { - "type": "boolean" - } - } - }, - "SourceOperationRequest": { - "id": "SourceOperationRequest", - "type": "object", - "properties": { - "getMetadata": { - "$ref": "SourceGetMetadataRequest" - }, - "split": { - "$ref": "SourceSplitRequest" - } - } - }, - "SourceOperationResponse": { - "id": "SourceOperationResponse", - "type": "object", - "properties": { - "getMetadata": { - "$ref": "SourceGetMetadataResponse" - }, - "split": { - "$ref": "SourceSplitResponse" - } - } - }, - "SourceSplitOptions": { - "id": "SourceSplitOptions", - "type": "object", - "properties": { - "desiredBundleSizeBytes": { - "type": "string", - "format": "int64" - }, - "desiredShardSizeBytes": { - "type": "string", - "format": "int64" - } - } - }, - "SourceSplitRequest": { - "id": "SourceSplitRequest", - "type": "object", - "properties": { - "options": { - "$ref": "SourceSplitOptions" - }, - "source": { - "$ref": "Source" - } - } - }, - "SourceSplitResponse": { - "id": "SourceSplitResponse", - "type": "object", - "properties": { - "bundles": { - "type": "array", - "items": { - "$ref": "DerivedSource" - } - }, - "outcome": { - "type": "string", - "enum": [ - "SOURCE_SPLIT_OUTCOME_SPLITTING_HAPPENED", - "SOURCE_SPLIT_OUTCOME_UNKNOWN", - "SOURCE_SPLIT_OUTCOME_USE_CURRENT" - ], - "enumDescriptions": [ - "", - "", - "" - ] - }, - "shards": { - "type": "array", - "items": { - "$ref": "SourceSplitShard" - } - } - } - }, - "SourceSplitShard": { - "id": "SourceSplitShard", - "type": "object", - "properties": { - "derivationMode": { - "type": "string", - "enum": [ - "SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT", - "SOURCE_DERIVATION_MODE_INDEPENDENT", - "SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT", - "SOURCE_DERIVATION_MODE_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ] - }, - "source": { - "$ref": "Source" - } - } - }, - "Status": { - "id": "Status", - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "any" - } - } - }, - "message": { - "type": "string" - } - } - }, - "Step": { - "id": "Step", - "type": "object", - "properties": { - "kind": { - "type": "string" - }, - "name": { - "type": "string" - }, - "properties": { - "type": "object", - "additionalProperties": { - "type": "any" - } - } - } - }, - "StreamLocation": { - "id": "StreamLocation", - "type": "object", - "properties": { - "pubsubLocation": { - "$ref": "PubsubLocation" - }, - "sideInputLocation": { - "$ref": "StreamingSideInputLocation" - }, - "streamingStageLocation": { - "$ref": "StreamingStageLocation" - } - } - }, - "StreamingComputationRanges": { - "id": "StreamingComputationRanges", - "type": "object", - "properties": { - "computationId": { - "type": "string" - }, - "rangeAssignments": { - "type": "array", - "items": { - "$ref": "KeyRangeDataDiskAssignment" - } - } - } - }, - "StreamingComputationTask": { - "id": "StreamingComputationTask", - "type": "object", - "properties": { - "computationRanges": { - "type": "array", - "items": { - "$ref": "StreamingComputationRanges" - } - }, - "dataDisks": { - "type": "array", - "items": { - "$ref": "MountedDataDisk" - } - }, - "taskType": { - "type": "string", - "enum": [ - "STREAMING_COMPUTATION_TASK_START", - "STREAMING_COMPUTATION_TASK_STOP", - "STREAMING_COMPUTATION_TASK_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "" - ] - } - } - }, - "StreamingSetupTask": { - "id": "StreamingSetupTask", - "type": "object", - "properties": { - "receiveWorkPort": { - "type": "integer", - "format": "int32" - }, - "streamingComputationTopology": { - "$ref": "TopologyConfig" - }, - "workerHarnessPort": { - "type": "integer", - "format": "int32" - } - } - }, - "StreamingSideInputLocation": { - "id": "StreamingSideInputLocation", - "type": "object", - "properties": { - "tag": { - "type": "string" - } - } - }, - "StreamingStageLocation": { - "id": "StreamingStageLocation", - "type": "object", - "properties": { - "streamId": { - "type": "string" - } - } - }, - "TaskRunnerSettings": { - "id": "TaskRunnerSettings", - "type": "object", - "properties": { - "alsologtostderr": { - "type": "boolean" - }, - "baseTaskDir": { - "type": "string" - }, - "baseUrl": { - "type": "string" - }, - "commandlinesFileName": { - "type": "string" - }, - "continueOnException": { - "type": "boolean" - }, - "dataflowApiVersion": { - "type": "string" - }, - "harnessCommand": { - "type": "string" - }, - "languageHint": { - "type": "string" - }, - "logDir": { - "type": "string" - }, - "logToSerialconsole": { - "type": "boolean" - }, - "logUploadLocation": { - "type": "string" - }, - "oauthScopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "parallelWorkerSettings": { - "$ref": "WorkerSettings" - }, - "streamingWorkerMainClass": { - "type": "string" - }, - "taskGroup": { - "type": "string" - }, - "taskUser": { - "type": "string" - }, - "tempStoragePrefix": { - "type": "string" - }, - "vmId": { - "type": "string" - }, - "workflowFileName": { - "type": "string" - } - } - }, - "TopologyConfig": { - "id": "TopologyConfig", - "type": "object", - "properties": { - "computations": { - "type": "array", - "items": { - "$ref": "ComputationTopology" - } - }, - "dataDiskAssignments": { - "type": "array", - "items": { - "$ref": "DataDiskAssignment" - } - } - } - }, - "WorkItem": { - "id": "WorkItem", - "type": "object", - "properties": { - "configuration": { - "type": "string" - }, - "id": { - "type": "string", - "format": "int64" - }, - "initialReportIndex": { - "type": "string", - "format": "int64" - }, - "jobId": { - "type": "string" - }, - "leaseExpireTime": { - "type": "string" - }, - "mapTask": { - "$ref": "MapTask" - }, - "packages": { - "type": "array", - "items": { - "$ref": "Package" - } - }, - "projectId": { - "type": "string" - }, - "reportStatusInterval": { - "type": "string" - }, - "seqMapTask": { - "$ref": "SeqMapTask" - }, - "shellTask": { - "$ref": "ShellTask" - }, - "sourceOperationTask": { - "$ref": "SourceOperationRequest" - }, - "streamingComputationTask": { - "$ref": "StreamingComputationTask" - }, - "streamingSetupTask": { - "$ref": "StreamingSetupTask" - } - } - }, - "WorkItemServiceState": { - "id": "WorkItemServiceState", - "type": "object", - "properties": { - "harnessData": { - "type": "object", - "additionalProperties": { - "type": "any" - } - }, - "leaseExpireTime": { - "type": "string" - }, - "nextReportIndex": { - "type": "string", - "format": "int64" - }, - "reportStatusInterval": { - "type": "string" - }, - "suggestedStopPoint": { - "$ref": "ApproximateProgress" - }, - "suggestedStopPosition": { - "$ref": "Position" - } - } - }, - "WorkItemStatus": { - "id": "WorkItemStatus", - "type": "object", - "properties": { - "completed": { - "type": "boolean" - }, - "dynamicSourceSplit": { - "$ref": "DynamicSourceSplit" - }, - "errors": { - "type": "array", - "items": { - "$ref": "Status" - } - }, - "metricUpdates": { - "type": "array", - "items": { - "$ref": "MetricUpdate" - } - }, - "progress": { - "$ref": "ApproximateProgress" - }, - "reportIndex": { - "type": "string", - "format": "int64" - }, - "requestedLeaseDuration": { - "type": "string" - }, - "sourceFork": { - "$ref": "SourceFork" - }, - "sourceOperationResponse": { - "$ref": "SourceOperationResponse" - }, - "stopPosition": { - "$ref": "Position" - }, - "workItemId": { - "type": "string" - } - } - }, - "WorkerPool": { - "id": "WorkerPool", - "type": "object", - "properties": { - "autoscalingSettings": { - "$ref": "AutoscalingSettings" - }, - "dataDisks": { - "type": "array", - "items": { - "$ref": "Disk" - } - }, - "defaultPackageSet": { - "type": "string", - "enum": [ - "DEFAULT_PACKAGE_SET_JAVA", - "DEFAULT_PACKAGE_SET_NONE", - "DEFAULT_PACKAGE_SET_PYTHON", - "DEFAULT_PACKAGE_SET_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ] - }, - "diskSizeGb": { - "type": "integer", - "format": "int32" - }, - "diskSourceImage": { - "type": "string" - }, - "diskType": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "machineType": { - "type": "string" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "numWorkers": { - "type": "integer", - "format": "int32" - }, - "onHostMaintenance": { - "type": "string" - }, - "packages": { - "type": "array", - "items": { - "$ref": "Package" - } - }, - "poolArgs": { - "type": "object", - "additionalProperties": { - "type": "any" - } - }, - "taskrunnerSettings": { - "$ref": "TaskRunnerSettings" - }, - "teardownPolicy": { - "type": "string", - "enum": [ - "TEARDOWN_ALWAYS", - "TEARDOWN_NEVER", - "TEARDOWN_ON_SUCCESS", - "TEARDOWN_POLICY_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ] - }, - "zone": { - "type": "string" - } - } - }, - "WorkerSettings": { - "id": "WorkerSettings", - "type": "object", - "properties": { - "baseUrl": { - "type": "string" - }, - "reportingEnabled": { - "type": "boolean" - }, - "servicePath": { - "type": "string" - }, - "shuffleServicePath": { - "type": "string" - }, - "tempStoragePrefix": { - "type": "string" - }, - "workerId": { - "type": "string" - } - } - }, - "WriteInstruction": { - "id": "WriteInstruction", - "type": "object", - "properties": { - "input": { - "$ref": "InstructionInput" - }, - "sink": { - "$ref": "Sink" - } - } - } - }, - "resources": { - "v1b3": { - "resources": { - "projects": { - "resources": { - "jobs": { - "methods": { - "create": { - "id": "dataflow.v1b3.projects.jobs.create", - "path": "{projectId}/jobs", - "httpMethod": "POST", - "description": "Creates a dataflow job.", - "parameters": { - "projectId": { - "type": "string", - "required": true, - "location": "path" - }, - "replaceJobId": { - "type": "string", - "location": "query" - }, - "view": { - "type": "string", - "enum": [ - "JOB_VIEW_ALL", - "JOB_VIEW_SUMMARY", - "JOB_VIEW_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "location": "query" - } - }, - "parameterOrder": [ - "projectId" - ], - "request": { - "$ref": "Job" - }, - "response": { - "$ref": "Job" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/userinfo.email" - ] - }, - "get": { - "id": "dataflow.v1b3.projects.jobs.get", - "path": "{projectId}/jobs/{jobId}", - "httpMethod": "GET", - "description": "Gets the state of the specified dataflow job.", - "parameters": { - "jobId": { - "type": "string", - "required": true, - "location": "path" - }, - "projectId": { - "type": "string", - "required": true, - "location": "path" - }, - "view": { - "type": "string", - "enum": [ - "JOB_VIEW_ALL", - "JOB_VIEW_SUMMARY", - "JOB_VIEW_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "location": "query" - } - }, - "parameterOrder": [ - "projectId", - "jobId" - ], - "response": { - "$ref": "Job" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/userinfo.email" - ] - }, - "getMetrics": { - "id": "dataflow.v1b3.projects.jobs.getMetrics", - "path": "{projectId}/jobs/{jobId}/metrics", - "httpMethod": "GET", - "description": "Request the job status.", - "parameters": { - "jobId": { - "type": "string", - "required": true, - "location": "path" - }, - "projectId": { - "type": "string", - "required": true, - "location": "path" - }, - "startTime": { - "type": "string", - "location": "query" - } - }, - "parameterOrder": [ - "projectId", - "jobId" - ], - "response": { - "$ref": "JobMetrics" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/userinfo.email" - ] - }, - "list": { - "id": "dataflow.v1b3.projects.jobs.list", - "path": "{projectId}/jobs", - "httpMethod": "GET", - "description": "List the jobs of a project", - "parameters": { - "pageSize": { - "type": "integer", - "format": "int32", - "location": "query" - }, - "pageToken": { - "type": "string", - "location": "query" - }, - "projectId": { - "type": "string", - "required": true, - "location": "path" - }, - "view": { - "type": "string", - "enum": [ - "JOB_VIEW_ALL", - "JOB_VIEW_SUMMARY", - "JOB_VIEW_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "location": "query" - } - }, - "parameterOrder": [ - "projectId" - ], - "response": { - "$ref": "ListJobsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/userinfo.email" - ] - }, - "patch": { - "id": "dataflow.v1b3.projects.jobs.patch", - "path": "{projectId}/jobs/{jobId}", - "httpMethod": "PATCH", - "description": "Updates the state of an existing dataflow job. This method supports patch semantics.", - "parameters": { - "jobId": { - "type": "string", - "required": true, - "location": "path" - }, - "projectId": { - "type": "string", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "projectId", - "jobId" - ], - "request": { - "$ref": "Job" - }, - "response": { - "$ref": "Job" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/userinfo.email" - ] - }, - "update": { - "id": "dataflow.v1b3.projects.jobs.update", - "path": "{projectId}/jobs/{jobId}", - "httpMethod": "PUT", - "description": "Updates the state of an existing dataflow job.", - "parameters": { - "jobId": { - "type": "string", - "required": true, - "location": "path" - }, - "projectId": { - "type": "string", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "projectId", - "jobId" - ], - "request": { - "$ref": "Job" - }, - "response": { - "$ref": "Job" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/userinfo.email" - ] - } - }, - "resources": { - "messages": { - "methods": { - "list": { - "id": "dataflow.v1b3.projects.jobs.messages.list", - "path": "{projectId}/jobs/{jobId}/messages", - "httpMethod": "GET", - "description": "Request the job status.", - "parameters": { - "endTime": { - "type": "string", - "location": "query" - }, - "jobId": { - "type": "string", - "required": true, - "location": "path" - }, - "minimumImportance": { - "type": "string", - "enum": [ - "JOB_MESSAGE_DEBUG", - "JOB_MESSAGE_DETAILED", - "JOB_MESSAGE_ERROR", - "JOB_MESSAGE_IMPORTANCE_UNKNOWN", - "JOB_MESSAGE_WARNING" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "location": "query" - }, - "pageSize": { - "type": "integer", - "format": "int32", - "location": "query" - }, - "pageToken": { - "type": "string", - "location": "query" - }, - "projectId": { - "type": "string", - "required": true, - "location": "path" - }, - "startTime": { - "type": "string", - "location": "query" - } - }, - "parameterOrder": [ - "projectId", - "jobId" - ], - "response": { - "$ref": "ListJobMessagesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/userinfo.email" - ] - } - } - }, - "workItems": { - "methods": { - "lease": { - "id": "dataflow.v1b3.projects.jobs.workItems.lease", - "path": "{projectId}/jobs/{jobId}/workItems:lease", - "httpMethod": "POST", - "description": "Leases a dataflow WorkItem to run.", - "parameters": { - "jobId": { - "type": "string", - "required": true, - "location": "path" - }, - "projectId": { - "type": "string", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "projectId", - "jobId" - ], - "request": { - "$ref": "LeaseWorkItemRequest" - }, - "response": { - "$ref": "LeaseWorkItemResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/userinfo.email" - ] - }, - "reportStatus": { - "id": "dataflow.v1b3.projects.jobs.workItems.reportStatus", - "path": "{projectId}/jobs/{jobId}/workItems:reportStatus", - "httpMethod": "POST", - "description": "Reports the status of dataflow WorkItems leased by a worker.", - "parameters": { - "jobId": { - "type": "string", - "required": true, - "location": "path" - }, - "projectId": { - "type": "string", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "projectId", - "jobId" - ], - "request": { - "$ref": "ReportWorkItemStatusRequest" - }, - "response": { - "$ref": "ReportWorkItemStatusResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/userinfo.email" - ] - } - } - } - } - } - } - } - } - } - } -} diff --git a/dataflow/v1beta3/dataflow-gen.go b/dataflow/v1beta3/dataflow-gen.go deleted file mode 100644 index 3e09e253046..00000000000 --- a/dataflow/v1beta3/dataflow-gen.go +++ /dev/null @@ -1,1900 +0,0 @@ -// Package dataflow provides access to the Google Dataflow API. -// -// Usage example: -// -// import "google.golang.org/api/dataflow/v1beta3" -// ... -// dataflowService, err := dataflow.New(oauthHttpClient) -package dataflow - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "golang.org/x/net/context" - "google.golang.org/api/googleapi" - "io" - "net/http" - "net/url" - "strconv" - "strings" -) - -// Always reference these packages, just in case the auto-generated code -// below doesn't. -var _ = bytes.NewBuffer -var _ = strconv.Itoa -var _ = fmt.Sprintf -var _ = json.NewDecoder -var _ = io.Copy -var _ = url.Parse -var _ = googleapi.Version -var _ = errors.New -var _ = strings.Replace -var _ = context.Background - -const apiId = "dataflow:v1beta3" -const apiName = "dataflow" -const apiVersion = "v1beta3" -const basePath = "https://www.googleapis.com/dataflow/v1b3/projects/" - -// OAuth2 scopes used by this API. -const ( - // View and manage your data across Google Cloud Platform services - CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" - - // View your email address - UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email" -) - -func New(client *http.Client) (*Service, error) { - if client == nil { - return nil, errors.New("client is nil") - } - s := &Service{client: client, BasePath: basePath} - s.V1b3 = NewV1b3Service(s) - return s, nil -} - -type Service struct { - client *http.Client - BasePath string // API endpoint base URL - UserAgent string // optional additional User-Agent fragment - - V1b3 *V1b3Service -} - -func (s *Service) userAgent() string { - if s.UserAgent == "" { - return googleapi.UserAgent - } - return googleapi.UserAgent + " " + s.UserAgent -} - -func NewV1b3Service(s *Service) *V1b3Service { - rs := &V1b3Service{s: s} - rs.Projects = NewV1b3ProjectsService(s) - return rs -} - -type V1b3Service struct { - s *Service - - Projects *V1b3ProjectsService -} - -func NewV1b3ProjectsService(s *Service) *V1b3ProjectsService { - rs := &V1b3ProjectsService{s: s} - rs.Jobs = NewV1b3ProjectsJobsService(s) - return rs -} - -type V1b3ProjectsService struct { - s *Service - - Jobs *V1b3ProjectsJobsService -} - -func NewV1b3ProjectsJobsService(s *Service) *V1b3ProjectsJobsService { - rs := &V1b3ProjectsJobsService{s: s} - rs.Messages = NewV1b3ProjectsJobsMessagesService(s) - rs.WorkItems = NewV1b3ProjectsJobsWorkItemsService(s) - return rs -} - -type V1b3ProjectsJobsService struct { - s *Service - - Messages *V1b3ProjectsJobsMessagesService - - WorkItems *V1b3ProjectsJobsWorkItemsService -} - -func NewV1b3ProjectsJobsMessagesService(s *Service) *V1b3ProjectsJobsMessagesService { - rs := &V1b3ProjectsJobsMessagesService{s: s} - return rs -} - -type V1b3ProjectsJobsMessagesService struct { - s *Service -} - -func NewV1b3ProjectsJobsWorkItemsService(s *Service) *V1b3ProjectsJobsWorkItemsService { - rs := &V1b3ProjectsJobsWorkItemsService{s: s} - return rs -} - -type V1b3ProjectsJobsWorkItemsService struct { - s *Service -} - -type ApproximateProgress struct { - PercentComplete float64 `json:"percentComplete,omitempty"` - - Position *Position `json:"position,omitempty"` - - RemainingTime string `json:"remainingTime,omitempty"` -} - -type AutoscalingSettings struct { - // Possible values: - // "AUTOSCALING_ALGORITHM_BASIC" - // "AUTOSCALING_ALGORITHM_NONE" - // "AUTOSCALING_ALGORITHM_UNKNOWN" - Algorithm string `json:"algorithm,omitempty"` - - MaxNumWorkers int64 `json:"maxNumWorkers,omitempty"` -} - -type ComputationTopology struct { - ComputationId string `json:"computationId,omitempty"` - - Inputs []*StreamLocation `json:"inputs,omitempty"` - - KeyRanges []*KeyRangeLocation `json:"keyRanges,omitempty"` - - Outputs []*StreamLocation `json:"outputs,omitempty"` -} - -type DataDiskAssignment struct { - DataDisks []string `json:"dataDisks,omitempty"` - - VmInstance string `json:"vmInstance,omitempty"` -} - -type DerivedSource struct { - // Possible values: - // "SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT" - // "SOURCE_DERIVATION_MODE_INDEPENDENT" - // "SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT" - // "SOURCE_DERIVATION_MODE_UNKNOWN" - DerivationMode string `json:"derivationMode,omitempty"` - - Source *Source `json:"source,omitempty"` -} - -type Disk struct { - DiskType string `json:"diskType,omitempty"` - - MountPoint string `json:"mountPoint,omitempty"` - - SizeGb int64 `json:"sizeGb,omitempty"` -} - -type DynamicSourceSplit struct { - Primary *DerivedSource `json:"primary,omitempty"` - - Residual *DerivedSource `json:"residual,omitempty"` -} - -type Environment struct { - ClusterManagerApiService string `json:"clusterManagerApiService,omitempty"` - - Dataset string `json:"dataset,omitempty"` - - Experiments []string `json:"experiments,omitempty"` - - SdkPipelineOptions EnvironmentSdkPipelineOptions `json:"sdkPipelineOptions,omitempty"` - - TempStoragePrefix string `json:"tempStoragePrefix,omitempty"` - - UserAgent EnvironmentUserAgent `json:"userAgent,omitempty"` - - Version EnvironmentVersion `json:"version,omitempty"` - - WorkerPools []*WorkerPool `json:"workerPools,omitempty"` -} - -type EnvironmentSdkPipelineOptions interface{} - -type EnvironmentUserAgent interface{} - -type EnvironmentVersion interface{} - -type FlattenInstruction struct { - Inputs []*InstructionInput `json:"inputs,omitempty"` -} - -type GoogleprotobufValue interface{} - -type InstructionInput struct { - OutputNum int64 `json:"outputNum,omitempty"` - - ProducerInstructionIndex int64 `json:"producerInstructionIndex,omitempty"` -} - -type InstructionOutput struct { - Codec InstructionOutputCodec `json:"codec,omitempty"` - - Name string `json:"name,omitempty"` -} - -type InstructionOutputCodec interface{} - -type Job struct { - CreateTime string `json:"createTime,omitempty"` - - // Possible values: - // "JOB_STATE_CANCELLED" - // "JOB_STATE_DONE" - // "JOB_STATE_FAILED" - // "JOB_STATE_RUNNING" - // "JOB_STATE_STOPPED" - // "JOB_STATE_UNKNOWN" - CurrentState string `json:"currentState,omitempty"` - - CurrentStateTime string `json:"currentStateTime,omitempty"` - - Environment *Environment `json:"environment,omitempty"` - - ExecutionInfo *JobExecutionInfo `json:"executionInfo,omitempty"` - - Id string `json:"id,omitempty"` - - Name string `json:"name,omitempty"` - - ProjectId string `json:"projectId,omitempty"` - - // Possible values: - // "JOB_STATE_CANCELLED" - // "JOB_STATE_DONE" - // "JOB_STATE_FAILED" - // "JOB_STATE_RUNNING" - // "JOB_STATE_STOPPED" - // "JOB_STATE_UNKNOWN" - RequestedState string `json:"requestedState,omitempty"` - - Steps []*Step `json:"steps,omitempty"` - - // Possible values: - // "JOB_TYPE_BATCH" - // "JOB_TYPE_STREAMING" - // "JOB_TYPE_UNKNOWN" - Type string `json:"type,omitempty"` -} - -type JobExecutionInfo struct { - Stages map[string]JobExecutionStageInfo `json:"stages,omitempty"` -} - -type JobExecutionStageInfo struct { - StepName []string `json:"stepName,omitempty"` -} - -type JobMessage struct { - Id string `json:"id,omitempty"` - - // Possible values: - // "JOB_MESSAGE_DEBUG" - // "JOB_MESSAGE_DETAILED" - // "JOB_MESSAGE_ERROR" - // "JOB_MESSAGE_IMPORTANCE_UNKNOWN" - // "JOB_MESSAGE_WARNING" - MessageImportance string `json:"messageImportance,omitempty"` - - MessageText string `json:"messageText,omitempty"` - - Time string `json:"time,omitempty"` -} - -type JobMetrics struct { - MetricTime string `json:"metricTime,omitempty"` - - Metrics []*MetricUpdate `json:"metrics,omitempty"` -} - -type KeyRangeDataDiskAssignment struct { - DataDisk string `json:"dataDisk,omitempty"` - - End string `json:"end,omitempty"` - - Start string `json:"start,omitempty"` -} - -type KeyRangeLocation struct { - DataDisk string `json:"dataDisk,omitempty"` - - DeliveryEndpoint string `json:"deliveryEndpoint,omitempty"` - - End string `json:"end,omitempty"` - - PersistentDirectory string `json:"persistentDirectory,omitempty"` - - Start string `json:"start,omitempty"` -} - -type LeaseWorkItemRequest struct { - CurrentWorkerTime string `json:"currentWorkerTime,omitempty"` - - RequestedLeaseDuration string `json:"requestedLeaseDuration,omitempty"` - - WorkItemTypes []string `json:"workItemTypes,omitempty"` - - WorkerCapabilities []string `json:"workerCapabilities,omitempty"` - - WorkerId string `json:"workerId,omitempty"` -} - -type LeaseWorkItemResponse struct { - WorkItems []*WorkItem `json:"workItems,omitempty"` -} - -type ListJobMessagesResponse struct { - JobMessages []*JobMessage `json:"jobMessages,omitempty"` - - NextPageToken string `json:"nextPageToken,omitempty"` -} - -type ListJobsResponse struct { - Jobs []*Job `json:"jobs,omitempty"` - - NextPageToken string `json:"nextPageToken,omitempty"` -} - -type MapTask struct { - Instructions []*ParallelInstruction `json:"instructions,omitempty"` - - StageName string `json:"stageName,omitempty"` - - SystemName string `json:"systemName,omitempty"` -} - -type MetricStructuredName struct { - Context map[string]string `json:"context,omitempty"` - - Name string `json:"name,omitempty"` - - Origin string `json:"origin,omitempty"` -} - -type MetricUpdate struct { - Cumulative bool `json:"cumulative,omitempty"` - - Internal interface{} `json:"internal,omitempty"` - - Kind string `json:"kind,omitempty"` - - MeanCount interface{} `json:"meanCount,omitempty"` - - MeanSum interface{} `json:"meanSum,omitempty"` - - Name *MetricStructuredName `json:"name,omitempty"` - - Scalar interface{} `json:"scalar,omitempty"` - - Set interface{} `json:"set,omitempty"` - - UpdateTime string `json:"updateTime,omitempty"` -} - -type MountedDataDisk struct { - DataDisk string `json:"dataDisk,omitempty"` -} - -type MultiOutputInfo struct { - Tag string `json:"tag,omitempty"` -} - -type Package struct { - Location string `json:"location,omitempty"` - - Name string `json:"name,omitempty"` -} - -type ParDoInstruction struct { - Input *InstructionInput `json:"input,omitempty"` - - MultiOutputInfos []*MultiOutputInfo `json:"multiOutputInfos,omitempty"` - - NumOutputs int64 `json:"numOutputs,omitempty"` - - SideInputs []*SideInputInfo `json:"sideInputs,omitempty"` - - UserFn ParDoInstructionUserFn `json:"userFn,omitempty"` -} - -type ParDoInstructionUserFn interface{} - -type ParallelInstruction struct { - Flatten *FlattenInstruction `json:"flatten,omitempty"` - - Name string `json:"name,omitempty"` - - Outputs []*InstructionOutput `json:"outputs,omitempty"` - - ParDo *ParDoInstruction `json:"parDo,omitempty"` - - PartialGroupByKey *PartialGroupByKeyInstruction `json:"partialGroupByKey,omitempty"` - - Read *ReadInstruction `json:"read,omitempty"` - - SystemName string `json:"systemName,omitempty"` - - Write *WriteInstruction `json:"write,omitempty"` -} - -type PartialGroupByKeyInstruction struct { - Input *InstructionInput `json:"input,omitempty"` - - InputElementCodec PartialGroupByKeyInstructionInputElementCodec `json:"inputElementCodec,omitempty"` - - ValueCombiningFn PartialGroupByKeyInstructionValueCombiningFn `json:"valueCombiningFn,omitempty"` -} - -type PartialGroupByKeyInstructionInputElementCodec interface{} - -type PartialGroupByKeyInstructionValueCombiningFn interface{} - -type Position struct { - ByteOffset int64 `json:"byteOffset,omitempty,string"` - - End bool `json:"end,omitempty"` - - Key string `json:"key,omitempty"` - - RecordIndex int64 `json:"recordIndex,omitempty,string"` - - ShufflePosition string `json:"shufflePosition,omitempty"` -} - -type PubsubLocation struct { - DropLateData bool `json:"dropLateData,omitempty"` - - IdLabel string `json:"idLabel,omitempty"` - - Subscription string `json:"subscription,omitempty"` - - TimestampLabel string `json:"timestampLabel,omitempty"` - - Topic string `json:"topic,omitempty"` - - TrackingSubscription string `json:"trackingSubscription,omitempty"` -} - -type ReadInstruction struct { - Source *Source `json:"source,omitempty"` -} - -type ReportWorkItemStatusRequest struct { - CurrentWorkerTime string `json:"currentWorkerTime,omitempty"` - - WorkItemStatuses []*WorkItemStatus `json:"workItemStatuses,omitempty"` - - WorkerId string `json:"workerId,omitempty"` -} - -type ReportWorkItemStatusResponse struct { - WorkItemServiceStates []*WorkItemServiceState `json:"workItemServiceStates,omitempty"` -} - -type SeqMapTask struct { - Inputs []*SideInputInfo `json:"inputs,omitempty"` - - Name string `json:"name,omitempty"` - - OutputInfos []*SeqMapTaskOutputInfo `json:"outputInfos,omitempty"` - - StageName string `json:"stageName,omitempty"` - - SystemName string `json:"systemName,omitempty"` - - UserFn SeqMapTaskUserFn `json:"userFn,omitempty"` -} - -type SeqMapTaskUserFn interface{} - -type SeqMapTaskOutputInfo struct { - Sink *Sink `json:"sink,omitempty"` - - Tag string `json:"tag,omitempty"` -} - -type ShellTask struct { - Command string `json:"command,omitempty"` - - ExitCode int64 `json:"exitCode,omitempty"` -} - -type SideInputInfo struct { - Kind SideInputInfoKind `json:"kind,omitempty"` - - Sources []*Source `json:"sources,omitempty"` - - Tag string `json:"tag,omitempty"` -} - -type SideInputInfoKind interface{} - -type Sink struct { - Codec SinkCodec `json:"codec,omitempty"` - - Spec SinkSpec `json:"spec,omitempty"` -} - -type SinkCodec interface{} - -type SinkSpec interface{} - -type Source struct { - BaseSpecs []SourceBaseSpecs `json:"baseSpecs,omitempty"` - - Codec SourceCodec `json:"codec,omitempty"` - - DoesNotNeedSplitting bool `json:"doesNotNeedSplitting,omitempty"` - - Metadata *SourceMetadata `json:"metadata,omitempty"` - - Spec SourceSpec `json:"spec,omitempty"` -} - -type SourceBaseSpecs interface{} - -type SourceCodec interface{} - -type SourceSpec interface{} - -type SourceFork struct { - Primary *SourceSplitShard `json:"primary,omitempty"` - - PrimarySource *DerivedSource `json:"primarySource,omitempty"` - - Residual *SourceSplitShard `json:"residual,omitempty"` - - ResidualSource *DerivedSource `json:"residualSource,omitempty"` -} - -type SourceGetMetadataRequest struct { - Source *Source `json:"source,omitempty"` -} - -type SourceGetMetadataResponse struct { - Metadata *SourceMetadata `json:"metadata,omitempty"` -} - -type SourceMetadata struct { - EstimatedSizeBytes int64 `json:"estimatedSizeBytes,omitempty,string"` - - Infinite bool `json:"infinite,omitempty"` - - ProducesSortedKeys bool `json:"producesSortedKeys,omitempty"` -} - -type SourceOperationRequest struct { - GetMetadata *SourceGetMetadataRequest `json:"getMetadata,omitempty"` - - Split *SourceSplitRequest `json:"split,omitempty"` -} - -type SourceOperationResponse struct { - GetMetadata *SourceGetMetadataResponse `json:"getMetadata,omitempty"` - - Split *SourceSplitResponse `json:"split,omitempty"` -} - -type SourceSplitOptions struct { - DesiredBundleSizeBytes int64 `json:"desiredBundleSizeBytes,omitempty,string"` - - DesiredShardSizeBytes int64 `json:"desiredShardSizeBytes,omitempty,string"` -} - -type SourceSplitRequest struct { - Options *SourceSplitOptions `json:"options,omitempty"` - - Source *Source `json:"source,omitempty"` -} - -type SourceSplitResponse struct { - Bundles []*DerivedSource `json:"bundles,omitempty"` - - // Possible values: - // "SOURCE_SPLIT_OUTCOME_SPLITTING_HAPPENED" - // "SOURCE_SPLIT_OUTCOME_UNKNOWN" - // "SOURCE_SPLIT_OUTCOME_USE_CURRENT" - Outcome string `json:"outcome,omitempty"` - - Shards []*SourceSplitShard `json:"shards,omitempty"` -} - -type SourceSplitShard struct { - // Possible values: - // "SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT" - // "SOURCE_DERIVATION_MODE_INDEPENDENT" - // "SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT" - // "SOURCE_DERIVATION_MODE_UNKNOWN" - DerivationMode string `json:"derivationMode,omitempty"` - - Source *Source `json:"source,omitempty"` -} - -type Status struct { - Code int64 `json:"code,omitempty"` - - Details []StatusDetails `json:"details,omitempty"` - - Message string `json:"message,omitempty"` -} - -type StatusDetails interface{} - -type Step struct { - Kind string `json:"kind,omitempty"` - - Name string `json:"name,omitempty"` - - Properties StepProperties `json:"properties,omitempty"` -} - -type StepProperties interface{} - -type StreamLocation struct { - PubsubLocation *PubsubLocation `json:"pubsubLocation,omitempty"` - - SideInputLocation *StreamingSideInputLocation `json:"sideInputLocation,omitempty"` - - StreamingStageLocation *StreamingStageLocation `json:"streamingStageLocation,omitempty"` -} - -type StreamingComputationRanges struct { - ComputationId string `json:"computationId,omitempty"` - - RangeAssignments []*KeyRangeDataDiskAssignment `json:"rangeAssignments,omitempty"` -} - -type StreamingComputationTask struct { - ComputationRanges []*StreamingComputationRanges `json:"computationRanges,omitempty"` - - DataDisks []*MountedDataDisk `json:"dataDisks,omitempty"` - - // Possible values: - // "STREAMING_COMPUTATION_TASK_START" - // "STREAMING_COMPUTATION_TASK_STOP" - // "STREAMING_COMPUTATION_TASK_UNKNOWN" - TaskType string `json:"taskType,omitempty"` -} - -type StreamingSetupTask struct { - ReceiveWorkPort int64 `json:"receiveWorkPort,omitempty"` - - StreamingComputationTopology *TopologyConfig `json:"streamingComputationTopology,omitempty"` - - WorkerHarnessPort int64 `json:"workerHarnessPort,omitempty"` -} - -type StreamingSideInputLocation struct { - Tag string `json:"tag,omitempty"` -} - -type StreamingStageLocation struct { - StreamId string `json:"streamId,omitempty"` -} - -type TaskRunnerSettings struct { - Alsologtostderr bool `json:"alsologtostderr,omitempty"` - - BaseTaskDir string `json:"baseTaskDir,omitempty"` - - BaseUrl string `json:"baseUrl,omitempty"` - - CommandlinesFileName string `json:"commandlinesFileName,omitempty"` - - ContinueOnException bool `json:"continueOnException,omitempty"` - - DataflowApiVersion string `json:"dataflowApiVersion,omitempty"` - - HarnessCommand string `json:"harnessCommand,omitempty"` - - LanguageHint string `json:"languageHint,omitempty"` - - LogDir string `json:"logDir,omitempty"` - - LogToSerialconsole bool `json:"logToSerialconsole,omitempty"` - - LogUploadLocation string `json:"logUploadLocation,omitempty"` - - OauthScopes []string `json:"oauthScopes,omitempty"` - - ParallelWorkerSettings *WorkerSettings `json:"parallelWorkerSettings,omitempty"` - - StreamingWorkerMainClass string `json:"streamingWorkerMainClass,omitempty"` - - TaskGroup string `json:"taskGroup,omitempty"` - - TaskUser string `json:"taskUser,omitempty"` - - TempStoragePrefix string `json:"tempStoragePrefix,omitempty"` - - VmId string `json:"vmId,omitempty"` - - WorkflowFileName string `json:"workflowFileName,omitempty"` -} - -type TopologyConfig struct { - Computations []*ComputationTopology `json:"computations,omitempty"` - - DataDiskAssignments []*DataDiskAssignment `json:"dataDiskAssignments,omitempty"` -} - -type WorkItem struct { - Configuration string `json:"configuration,omitempty"` - - Id int64 `json:"id,omitempty,string"` - - InitialReportIndex int64 `json:"initialReportIndex,omitempty,string"` - - JobId string `json:"jobId,omitempty"` - - LeaseExpireTime string `json:"leaseExpireTime,omitempty"` - - MapTask *MapTask `json:"mapTask,omitempty"` - - Packages []*Package `json:"packages,omitempty"` - - ProjectId string `json:"projectId,omitempty"` - - ReportStatusInterval string `json:"reportStatusInterval,omitempty"` - - SeqMapTask *SeqMapTask `json:"seqMapTask,omitempty"` - - ShellTask *ShellTask `json:"shellTask,omitempty"` - - SourceOperationTask *SourceOperationRequest `json:"sourceOperationTask,omitempty"` - - StreamingComputationTask *StreamingComputationTask `json:"streamingComputationTask,omitempty"` - - StreamingSetupTask *StreamingSetupTask `json:"streamingSetupTask,omitempty"` -} - -type WorkItemServiceState struct { - HarnessData WorkItemServiceStateHarnessData `json:"harnessData,omitempty"` - - LeaseExpireTime string `json:"leaseExpireTime,omitempty"` - - NextReportIndex int64 `json:"nextReportIndex,omitempty,string"` - - ReportStatusInterval string `json:"reportStatusInterval,omitempty"` - - SuggestedStopPoint *ApproximateProgress `json:"suggestedStopPoint,omitempty"` - - SuggestedStopPosition *Position `json:"suggestedStopPosition,omitempty"` -} - -type WorkItemServiceStateHarnessData interface{} - -type WorkItemStatus struct { - Completed bool `json:"completed,omitempty"` - - DynamicSourceSplit *DynamicSourceSplit `json:"dynamicSourceSplit,omitempty"` - - Errors []*Status `json:"errors,omitempty"` - - MetricUpdates []*MetricUpdate `json:"metricUpdates,omitempty"` - - Progress *ApproximateProgress `json:"progress,omitempty"` - - ReportIndex int64 `json:"reportIndex,omitempty,string"` - - RequestedLeaseDuration string `json:"requestedLeaseDuration,omitempty"` - - SourceFork *SourceFork `json:"sourceFork,omitempty"` - - SourceOperationResponse *SourceOperationResponse `json:"sourceOperationResponse,omitempty"` - - StopPosition *Position `json:"stopPosition,omitempty"` - - WorkItemId string `json:"workItemId,omitempty"` -} - -type WorkerPool struct { - AutoscalingSettings *AutoscalingSettings `json:"autoscalingSettings,omitempty"` - - DataDisks []*Disk `json:"dataDisks,omitempty"` - - // Possible values: - // "DEFAULT_PACKAGE_SET_JAVA" - // "DEFAULT_PACKAGE_SET_NONE" - // "DEFAULT_PACKAGE_SET_PYTHON" - // "DEFAULT_PACKAGE_SET_UNKNOWN" - DefaultPackageSet string `json:"defaultPackageSet,omitempty"` - - DiskSizeGb int64 `json:"diskSizeGb,omitempty"` - - DiskSourceImage string `json:"diskSourceImage,omitempty"` - - DiskType string `json:"diskType,omitempty"` - - Kind string `json:"kind,omitempty"` - - MachineType string `json:"machineType,omitempty"` - - Metadata map[string]string `json:"metadata,omitempty"` - - NumWorkers int64 `json:"numWorkers,omitempty"` - - OnHostMaintenance string `json:"onHostMaintenance,omitempty"` - - Packages []*Package `json:"packages,omitempty"` - - PoolArgs WorkerPoolPoolArgs `json:"poolArgs,omitempty"` - - TaskrunnerSettings *TaskRunnerSettings `json:"taskrunnerSettings,omitempty"` - - // Possible values: - // "TEARDOWN_ALWAYS" - // "TEARDOWN_NEVER" - // "TEARDOWN_ON_SUCCESS" - // "TEARDOWN_POLICY_UNKNOWN" - TeardownPolicy string `json:"teardownPolicy,omitempty"` - - Zone string `json:"zone,omitempty"` -} - -type WorkerPoolPoolArgs interface{} - -type WorkerSettings struct { - BaseUrl string `json:"baseUrl,omitempty"` - - ReportingEnabled bool `json:"reportingEnabled,omitempty"` - - ServicePath string `json:"servicePath,omitempty"` - - ShuffleServicePath string `json:"shuffleServicePath,omitempty"` - - TempStoragePrefix string `json:"tempStoragePrefix,omitempty"` - - WorkerId string `json:"workerId,omitempty"` -} - -type WriteInstruction struct { - Input *InstructionInput `json:"input,omitempty"` - - Sink *Sink `json:"sink,omitempty"` -} - -// method id "dataflow.v1b3.projects.jobs.create": - -type V1b3ProjectsJobsCreateCall struct { - s *Service - projectId string - job *Job - opt_ map[string]interface{} -} - -// Create: Creates a dataflow job. -func (r *V1b3ProjectsJobsService) Create(projectId string, job *Job) *V1b3ProjectsJobsCreateCall { - c := &V1b3ProjectsJobsCreateCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.job = job - return c -} - -// ReplaceJobId sets the optional parameter "replaceJobId": -func (c *V1b3ProjectsJobsCreateCall) ReplaceJobId(replaceJobId string) *V1b3ProjectsJobsCreateCall { - c.opt_["replaceJobId"] = replaceJobId - return c -} - -// View sets the optional parameter "view": -// -// Possible values: -// "JOB_VIEW_ALL" -// "JOB_VIEW_SUMMARY" -// "JOB_VIEW_UNKNOWN" -func (c *V1b3ProjectsJobsCreateCall) View(view string) *V1b3ProjectsJobsCreateCall { - c.opt_["view"] = view - 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 *V1b3ProjectsJobsCreateCall) Fields(s ...googleapi.Field) *V1b3ProjectsJobsCreateCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *V1b3ProjectsJobsCreateCall) Do() (*Job, error) { - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.job) - if err != nil { - return nil, err - } - ctype := "application/json" - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["replaceJobId"]; ok { - params.Set("replaceJobId", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["view"]; ok { - params.Set("view", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "{projectId}/jobs") - urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - }) - req.Header.Set("Content-Type", ctype) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *Job - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Creates a dataflow job.", - // "httpMethod": "POST", - // "id": "dataflow.v1b3.projects.jobs.create", - // "parameterOrder": [ - // "projectId" - // ], - // "parameters": { - // "projectId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "replaceJobId": { - // "location": "query", - // "type": "string" - // }, - // "view": { - // "enum": [ - // "JOB_VIEW_ALL", - // "JOB_VIEW_SUMMARY", - // "JOB_VIEW_UNKNOWN" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{projectId}/jobs", - // "request": { - // "$ref": "Job" - // }, - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "dataflow.v1b3.projects.jobs.get": - -type V1b3ProjectsJobsGetCall struct { - s *Service - projectId string - jobId string - opt_ map[string]interface{} -} - -// Get: Gets the state of the specified dataflow job. -func (r *V1b3ProjectsJobsService) Get(projectId string, jobId string) *V1b3ProjectsJobsGetCall { - c := &V1b3ProjectsJobsGetCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.jobId = jobId - return c -} - -// View sets the optional parameter "view": -// -// Possible values: -// "JOB_VIEW_ALL" -// "JOB_VIEW_SUMMARY" -// "JOB_VIEW_UNKNOWN" -func (c *V1b3ProjectsJobsGetCall) View(view string) *V1b3ProjectsJobsGetCall { - c.opt_["view"] = view - 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 *V1b3ProjectsJobsGetCall) Fields(s ...googleapi.Field) *V1b3ProjectsJobsGetCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *V1b3ProjectsJobsGetCall) Do() (*Job, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["view"]; ok { - params.Set("view", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "{projectId}/jobs/{jobId}") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - "jobId": c.jobId, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *Job - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets the state of the specified dataflow job.", - // "httpMethod": "GET", - // "id": "dataflow.v1b3.projects.jobs.get", - // "parameterOrder": [ - // "projectId", - // "jobId" - // ], - // "parameters": { - // "jobId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "view": { - // "enum": [ - // "JOB_VIEW_ALL", - // "JOB_VIEW_SUMMARY", - // "JOB_VIEW_UNKNOWN" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{projectId}/jobs/{jobId}", - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "dataflow.v1b3.projects.jobs.getMetrics": - -type V1b3ProjectsJobsGetMetricsCall struct { - s *Service - projectId string - jobId string - opt_ map[string]interface{} -} - -// GetMetrics: Request the job status. -func (r *V1b3ProjectsJobsService) GetMetrics(projectId string, jobId string) *V1b3ProjectsJobsGetMetricsCall { - c := &V1b3ProjectsJobsGetMetricsCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.jobId = jobId - return c -} - -// StartTime sets the optional parameter "startTime": -func (c *V1b3ProjectsJobsGetMetricsCall) StartTime(startTime string) *V1b3ProjectsJobsGetMetricsCall { - c.opt_["startTime"] = startTime - 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 *V1b3ProjectsJobsGetMetricsCall) Fields(s ...googleapi.Field) *V1b3ProjectsJobsGetMetricsCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *V1b3ProjectsJobsGetMetricsCall) Do() (*JobMetrics, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["startTime"]; ok { - params.Set("startTime", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "{projectId}/jobs/{jobId}/metrics") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - "jobId": c.jobId, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *JobMetrics - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Request the job status.", - // "httpMethod": "GET", - // "id": "dataflow.v1b3.projects.jobs.getMetrics", - // "parameterOrder": [ - // "projectId", - // "jobId" - // ], - // "parameters": { - // "jobId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "startTime": { - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{projectId}/jobs/{jobId}/metrics", - // "response": { - // "$ref": "JobMetrics" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "dataflow.v1b3.projects.jobs.list": - -type V1b3ProjectsJobsListCall struct { - s *Service - projectId string - opt_ map[string]interface{} -} - -// List: List the jobs of a project -func (r *V1b3ProjectsJobsService) List(projectId string) *V1b3ProjectsJobsListCall { - c := &V1b3ProjectsJobsListCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - return c -} - -// PageSize sets the optional parameter "pageSize": -func (c *V1b3ProjectsJobsListCall) PageSize(pageSize int64) *V1b3ProjectsJobsListCall { - c.opt_["pageSize"] = pageSize - return c -} - -// PageToken sets the optional parameter "pageToken": -func (c *V1b3ProjectsJobsListCall) PageToken(pageToken string) *V1b3ProjectsJobsListCall { - c.opt_["pageToken"] = pageToken - return c -} - -// View sets the optional parameter "view": -// -// Possible values: -// "JOB_VIEW_ALL" -// "JOB_VIEW_SUMMARY" -// "JOB_VIEW_UNKNOWN" -func (c *V1b3ProjectsJobsListCall) View(view string) *V1b3ProjectsJobsListCall { - c.opt_["view"] = view - 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 *V1b3ProjectsJobsListCall) Fields(s ...googleapi.Field) *V1b3ProjectsJobsListCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *V1b3ProjectsJobsListCall) Do() (*ListJobsResponse, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["pageSize"]; ok { - params.Set("pageSize", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["view"]; ok { - params.Set("view", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "{projectId}/jobs") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *ListJobsResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "List the jobs of a project", - // "httpMethod": "GET", - // "id": "dataflow.v1b3.projects.jobs.list", - // "parameterOrder": [ - // "projectId" - // ], - // "parameters": { - // "pageSize": { - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "view": { - // "enum": [ - // "JOB_VIEW_ALL", - // "JOB_VIEW_SUMMARY", - // "JOB_VIEW_UNKNOWN" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{projectId}/jobs", - // "response": { - // "$ref": "ListJobsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "dataflow.v1b3.projects.jobs.patch": - -type V1b3ProjectsJobsPatchCall struct { - s *Service - projectId string - jobId string - job *Job - opt_ map[string]interface{} -} - -// Patch: Updates the state of an existing dataflow job. This method -// supports patch semantics. -func (r *V1b3ProjectsJobsService) Patch(projectId string, jobId string, job *Job) *V1b3ProjectsJobsPatchCall { - c := &V1b3ProjectsJobsPatchCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.jobId = jobId - c.job = job - 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 *V1b3ProjectsJobsPatchCall) Fields(s ...googleapi.Field) *V1b3ProjectsJobsPatchCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *V1b3ProjectsJobsPatchCall) Do() (*Job, error) { - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.job) - if err != nil { - return nil, err - } - ctype := "application/json" - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "{projectId}/jobs/{jobId}") - urls += "?" + params.Encode() - req, _ := http.NewRequest("PATCH", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - "jobId": c.jobId, - }) - req.Header.Set("Content-Type", ctype) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *Job - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Updates the state of an existing dataflow job. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dataflow.v1b3.projects.jobs.patch", - // "parameterOrder": [ - // "projectId", - // "jobId" - // ], - // "parameters": { - // "jobId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectId}/jobs/{jobId}", - // "request": { - // "$ref": "Job" - // }, - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "dataflow.v1b3.projects.jobs.update": - -type V1b3ProjectsJobsUpdateCall struct { - s *Service - projectId string - jobId string - job *Job - opt_ map[string]interface{} -} - -// Update: Updates the state of an existing dataflow job. -func (r *V1b3ProjectsJobsService) Update(projectId string, jobId string, job *Job) *V1b3ProjectsJobsUpdateCall { - c := &V1b3ProjectsJobsUpdateCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.jobId = jobId - c.job = job - 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 *V1b3ProjectsJobsUpdateCall) Fields(s ...googleapi.Field) *V1b3ProjectsJobsUpdateCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *V1b3ProjectsJobsUpdateCall) Do() (*Job, error) { - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.job) - if err != nil { - return nil, err - } - ctype := "application/json" - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "{projectId}/jobs/{jobId}") - urls += "?" + params.Encode() - req, _ := http.NewRequest("PUT", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - "jobId": c.jobId, - }) - req.Header.Set("Content-Type", ctype) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *Job - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Updates the state of an existing dataflow job.", - // "httpMethod": "PUT", - // "id": "dataflow.v1b3.projects.jobs.update", - // "parameterOrder": [ - // "projectId", - // "jobId" - // ], - // "parameters": { - // "jobId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectId}/jobs/{jobId}", - // "request": { - // "$ref": "Job" - // }, - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "dataflow.v1b3.projects.jobs.messages.list": - -type V1b3ProjectsJobsMessagesListCall struct { - s *Service - projectId string - jobId string - opt_ map[string]interface{} -} - -// List: Request the job status. -func (r *V1b3ProjectsJobsMessagesService) List(projectId string, jobId string) *V1b3ProjectsJobsMessagesListCall { - c := &V1b3ProjectsJobsMessagesListCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.jobId = jobId - return c -} - -// EndTime sets the optional parameter "endTime": -func (c *V1b3ProjectsJobsMessagesListCall) EndTime(endTime string) *V1b3ProjectsJobsMessagesListCall { - c.opt_["endTime"] = endTime - return c -} - -// MinimumImportance sets the optional parameter "minimumImportance": -// -// Possible values: -// "JOB_MESSAGE_DEBUG" -// "JOB_MESSAGE_DETAILED" -// "JOB_MESSAGE_ERROR" -// "JOB_MESSAGE_IMPORTANCE_UNKNOWN" -// "JOB_MESSAGE_WARNING" -func (c *V1b3ProjectsJobsMessagesListCall) MinimumImportance(minimumImportance string) *V1b3ProjectsJobsMessagesListCall { - c.opt_["minimumImportance"] = minimumImportance - return c -} - -// PageSize sets the optional parameter "pageSize": -func (c *V1b3ProjectsJobsMessagesListCall) PageSize(pageSize int64) *V1b3ProjectsJobsMessagesListCall { - c.opt_["pageSize"] = pageSize - return c -} - -// PageToken sets the optional parameter "pageToken": -func (c *V1b3ProjectsJobsMessagesListCall) PageToken(pageToken string) *V1b3ProjectsJobsMessagesListCall { - c.opt_["pageToken"] = pageToken - return c -} - -// StartTime sets the optional parameter "startTime": -func (c *V1b3ProjectsJobsMessagesListCall) StartTime(startTime string) *V1b3ProjectsJobsMessagesListCall { - c.opt_["startTime"] = startTime - 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 *V1b3ProjectsJobsMessagesListCall) Fields(s ...googleapi.Field) *V1b3ProjectsJobsMessagesListCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *V1b3ProjectsJobsMessagesListCall) Do() (*ListJobMessagesResponse, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["endTime"]; ok { - params.Set("endTime", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["minimumImportance"]; ok { - params.Set("minimumImportance", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageSize"]; ok { - params.Set("pageSize", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["startTime"]; ok { - params.Set("startTime", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "{projectId}/jobs/{jobId}/messages") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - "jobId": c.jobId, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *ListJobMessagesResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Request the job status.", - // "httpMethod": "GET", - // "id": "dataflow.v1b3.projects.jobs.messages.list", - // "parameterOrder": [ - // "projectId", - // "jobId" - // ], - // "parameters": { - // "endTime": { - // "location": "query", - // "type": "string" - // }, - // "jobId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "minimumImportance": { - // "enum": [ - // "JOB_MESSAGE_DEBUG", - // "JOB_MESSAGE_DETAILED", - // "JOB_MESSAGE_ERROR", - // "JOB_MESSAGE_IMPORTANCE_UNKNOWN", - // "JOB_MESSAGE_WARNING" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "startTime": { - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{projectId}/jobs/{jobId}/messages", - // "response": { - // "$ref": "ListJobMessagesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "dataflow.v1b3.projects.jobs.workItems.lease": - -type V1b3ProjectsJobsWorkItemsLeaseCall struct { - s *Service - projectId string - jobId string - leaseworkitemrequest *LeaseWorkItemRequest - opt_ map[string]interface{} -} - -// Lease: Leases a dataflow WorkItem to run. -func (r *V1b3ProjectsJobsWorkItemsService) Lease(projectId string, jobId string, leaseworkitemrequest *LeaseWorkItemRequest) *V1b3ProjectsJobsWorkItemsLeaseCall { - c := &V1b3ProjectsJobsWorkItemsLeaseCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.jobId = jobId - c.leaseworkitemrequest = leaseworkitemrequest - 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 *V1b3ProjectsJobsWorkItemsLeaseCall) Fields(s ...googleapi.Field) *V1b3ProjectsJobsWorkItemsLeaseCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *V1b3ProjectsJobsWorkItemsLeaseCall) Do() (*LeaseWorkItemResponse, error) { - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.leaseworkitemrequest) - if err != nil { - return nil, err - } - ctype := "application/json" - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "{projectId}/jobs/{jobId}/workItems:lease") - urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - "jobId": c.jobId, - }) - req.Header.Set("Content-Type", ctype) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *LeaseWorkItemResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Leases a dataflow WorkItem to run.", - // "httpMethod": "POST", - // "id": "dataflow.v1b3.projects.jobs.workItems.lease", - // "parameterOrder": [ - // "projectId", - // "jobId" - // ], - // "parameters": { - // "jobId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectId}/jobs/{jobId}/workItems:lease", - // "request": { - // "$ref": "LeaseWorkItemRequest" - // }, - // "response": { - // "$ref": "LeaseWorkItemResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "dataflow.v1b3.projects.jobs.workItems.reportStatus": - -type V1b3ProjectsJobsWorkItemsReportStatusCall struct { - s *Service - projectId string - jobId string - reportworkitemstatusrequest *ReportWorkItemStatusRequest - opt_ map[string]interface{} -} - -// ReportStatus: Reports the status of dataflow WorkItems leased by a -// worker. -func (r *V1b3ProjectsJobsWorkItemsService) ReportStatus(projectId string, jobId string, reportworkitemstatusrequest *ReportWorkItemStatusRequest) *V1b3ProjectsJobsWorkItemsReportStatusCall { - c := &V1b3ProjectsJobsWorkItemsReportStatusCall{s: r.s, opt_: make(map[string]interface{})} - c.projectId = projectId - c.jobId = jobId - c.reportworkitemstatusrequest = reportworkitemstatusrequest - 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 *V1b3ProjectsJobsWorkItemsReportStatusCall) Fields(s ...googleapi.Field) *V1b3ProjectsJobsWorkItemsReportStatusCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *V1b3ProjectsJobsWorkItemsReportStatusCall) Do() (*ReportWorkItemStatusResponse, error) { - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.reportworkitemstatusrequest) - if err != nil { - return nil, err - } - ctype := "application/json" - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "{projectId}/jobs/{jobId}/workItems:reportStatus") - urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "projectId": c.projectId, - "jobId": c.jobId, - }) - req.Header.Set("Content-Type", ctype) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *ReportWorkItemStatusResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Reports the status of dataflow WorkItems leased by a worker.", - // "httpMethod": "POST", - // "id": "dataflow.v1b3.projects.jobs.workItems.reportStatus", - // "parameterOrder": [ - // "projectId", - // "jobId" - // ], - // "parameters": { - // "jobId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectId}/jobs/{jobId}/workItems:reportStatus", - // "request": { - // "$ref": "ReportWorkItemStatusRequest" - // }, - // "response": { - // "$ref": "ReportWorkItemStatusResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} diff --git a/deploymentmanager/v2beta2/deploymentmanager-api.json b/deploymentmanager/v2beta2/deploymentmanager-api.json index 881fa0b8df9..cf62b9289c6 100644 --- a/deploymentmanager/v2beta2/deploymentmanager-api.json +++ b/deploymentmanager/v2beta2/deploymentmanager-api.json @@ -1,12 +1,12 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/8ArlEleWjHPXfgMfMmJYP7XsXgQ\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/vtl_4Vr3-scBrPOrGWCIMoQ4vnM\"", "discoveryVersion": "v1", "id": "deploymentmanager:v2beta2", "name": "deploymentmanager", "canonicalName": "Deployment Manager", "version": "v2beta2", - "revision": "20150526", + "revision": "20150713", "title": "Google Cloud Deployment Manager API V2", "description": "The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform.", "ownerDomain": "google.com", @@ -94,7 +94,7 @@ }, "fingerprint": { "type": "string", - "description": "Specifies a fingerprint for update() requests. A fingerprint is a randomly generated value that must be provided in update() requests to perform optimistic locking. This ensures optimistic concurrency so that only one update can be performed at a time.\n\nThe fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a get() request to a deployment.", + "description": "Specifies a fingerprint for update() requests. A fingerprint is a randomly generated value that must be provided in update() requests to perform optimistic locking. This ensures optimistic concurrency so that only one update can be performed at a time. The fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a get() request to a deployment.", "format": "byte" }, "id": { @@ -116,7 +116,7 @@ }, "name": { "type": "string", - "description": "The name of the deployment, which must be unique within the project." + "description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash." }, "state": { "type": "string", @@ -251,11 +251,11 @@ "Operation": { "id": "Operation", "type": "object", - "description": "An operation resource, used to manage asynchronous API requests.", + "description": "An Operation resource, used to manage asynchronous API requests.", "properties": { "clientOperationId": { "type": "string", - "description": "[Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project." + "description": "[Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all Operation resources in the project." }, "creationTimestamp": { "type": "string", @@ -451,7 +451,7 @@ }, "type": { "type": "string", - "description": "[Output Only] The type of the resource, for example ?compute.v1.instance?, or ?replicaPools.v1beta2.instanceGroupManager?" + "description": "[Output Only] The type of the resource, for example compute.v1.instance, or replicaPools.v1beta2.instanceGroupManager." }, "update": { "$ref": "ResourceUpdate", @@ -673,7 +673,7 @@ "parameters": { "filter": { "type": "string", - "description": "Filter expression for filtering listed resources.", + "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", "location": "query" }, "maxResults": { @@ -687,7 +687,7 @@ }, "pageToken": { "type": "string", - "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", "location": "query" }, "project": { @@ -927,7 +927,7 @@ }, "filter": { "type": "string", - "description": "Filter expression for filtering listed resources.", + "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", "location": "query" }, "maxResults": { @@ -941,7 +941,7 @@ }, "pageToken": { "type": "string", - "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", "location": "query" }, "project": { @@ -1010,7 +1010,7 @@ "parameters": { "filter": { "type": "string", - "description": "Filter expression for filtering listed resources.", + "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", "location": "query" }, "maxResults": { @@ -1024,7 +1024,7 @@ }, "pageToken": { "type": "string", - "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", "location": "query" }, "project": { @@ -1107,7 +1107,7 @@ }, "filter": { "type": "string", - "description": "Filter expression for filtering listed resources.", + "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", "location": "query" }, "maxResults": { @@ -1121,7 +1121,7 @@ }, "pageToken": { "type": "string", - "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", "location": "query" }, "project": { @@ -1157,7 +1157,7 @@ "parameters": { "filter": { "type": "string", - "description": "Filter expression for filtering listed resources.", + "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", "location": "query" }, "maxResults": { @@ -1171,7 +1171,7 @@ }, "pageToken": { "type": "string", - "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", "location": "query" }, "project": { diff --git a/deploymentmanager/v2beta2/deploymentmanager-gen.go b/deploymentmanager/v2beta2/deploymentmanager-gen.go index d13164c11db..2c1ffb16cd2 100644 --- a/deploymentmanager/v2beta2/deploymentmanager-gen.go +++ b/deploymentmanager/v2beta2/deploymentmanager-gen.go @@ -144,10 +144,8 @@ type Deployment struct { // fingerprint is a randomly generated value that must be provided in // update() requests to perform optimistic locking. This ensures // optimistic concurrency so that only one update can be performed at a - // time. - // - // The fingerprint is initially generated by Deployment Manager and - // changes after every request to modify data. To get the latest + // time. The fingerprint is initially generated by Deployment Manager + // and changes after every request to modify data. To get the latest // fingerprint value, perform a get() request to a deployment. Fingerprint string `json:"fingerprint,omitempty"` @@ -189,8 +187,13 @@ type Deployment struct { // manifest that was successfully deployed. Manifest string `json:"manifest,omitempty"` - // Name: The name of the deployment, which must be unique within the - // project. + // Name: Name of the resource; provided by the client when the resource + // is created. The name must be 1-63 characters long, and comply with + // RFC1035. Specifically, the name must be 1-63 characters long and + // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means + // the first character must be a lowercase letter, and all following + // characters must be a dash, lowercase letter, or digit, except the + // last character, which cannot be a dash. Name string `json:"name,omitempty"` // State: [Output Only] The current state of the deployment. This can be @@ -280,7 +283,7 @@ type ManifestsListResponse struct { type Operation struct { // ClientOperationId: [Output Only] An optional identifier specified by // the client when the mutation was initiated. Must be unique for all - // operation resources in the project. + // Operation resources in the project. ClientOperationId string `json:"clientOperationId,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text @@ -442,7 +445,7 @@ type Resource struct { Properties string `json:"properties,omitempty"` // Type: [Output Only] The type of the resource, for example - // ?compute.v1.instance?, or ?replicaPools.v1beta2.instanceGroupManager? + // compute.v1.instance, or replicaPools.v1beta2.instanceGroupManager. Type string `json:"type,omitempty"` // Update: [Output Only] If Deployment Manager is currently updating or @@ -801,8 +804,27 @@ func (r *DeploymentsService) List(project string) *DeploymentsListCall { return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *DeploymentsListCall) Filter(filter string) *DeploymentsListCall { c.opt_["filter"] = filter return c @@ -815,9 +837,10 @@ func (c *DeploymentsListCall) MaxResults(maxResults int64) *DeploymentsListCall return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *DeploymentsListCall) PageToken(pageToken string) *DeploymentsListCall { c.opt_["pageToken"] = pageToken return c @@ -876,7 +899,7 @@ func (c *DeploymentsListCall) Do() (*DeploymentsListResponse, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -890,7 +913,7 @@ func (c *DeploymentsListCall) Do() (*DeploymentsListResponse, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -1403,8 +1426,27 @@ func (r *ManifestsService) List(project string, deployment string) *ManifestsLis return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *ManifestsListCall) Filter(filter string) *ManifestsListCall { c.opt_["filter"] = filter return c @@ -1417,9 +1459,10 @@ func (c *ManifestsListCall) MaxResults(maxResults int64) *ManifestsListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *ManifestsListCall) PageToken(pageToken string) *ManifestsListCall { c.opt_["pageToken"] = pageToken return c @@ -1487,7 +1530,7 @@ func (c *ManifestsListCall) Do() (*ManifestsListResponse, error) { // "type": "string" // }, // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -1501,7 +1544,7 @@ func (c *ManifestsListCall) Do() (*ManifestsListResponse, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -1630,8 +1673,27 @@ func (r *OperationsService) List(project string) *OperationsListCall { return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.opt_["filter"] = filter return c @@ -1644,9 +1706,10 @@ func (c *OperationsListCall) MaxResults(maxResults int64) *OperationsListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { c.opt_["pageToken"] = pageToken return c @@ -1705,7 +1768,7 @@ func (c *OperationsListCall) Do() (*OperationsListResponse, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -1719,7 +1782,7 @@ func (c *OperationsListCall) Do() (*OperationsListResponse, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -1861,8 +1924,27 @@ func (r *ResourcesService) List(project string, deployment string) *ResourcesLis return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *ResourcesListCall) Filter(filter string) *ResourcesListCall { c.opt_["filter"] = filter return c @@ -1875,9 +1957,10 @@ func (c *ResourcesListCall) MaxResults(maxResults int64) *ResourcesListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *ResourcesListCall) PageToken(pageToken string) *ResourcesListCall { c.opt_["pageToken"] = pageToken return c @@ -1945,7 +2028,7 @@ func (c *ResourcesListCall) Do() (*ResourcesListResponse, error) { // "type": "string" // }, // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -1959,7 +2042,7 @@ func (c *ResourcesListCall) Do() (*ResourcesListResponse, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, @@ -1999,8 +2082,27 @@ func (r *TypesService) List(project string) *TypesListCall { return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Sets a filter expression +// for filtering listed resources, in the form filter={expression}. Your +// {expression} must contain the following: +// FIELD_NAME COMPARISON_STRING LITERAL_STRING +// +// - FIELD_NAME: The name of the field you want to compare. The field +// name must be valid for the type of resource being filtered. Only +// atomic field types are supported (string, number, boolean). Array and +// object fields are not currently supported. +// - COMPARISON_STRING: The comparison string, either eq (equals) or ne +// (not equals). +// - LITERAL_STRING: The literal string value to filter to. The literal +// value must be valid for the type of field (string, number, boolean). +// For string fields, the literal value is interpreted as a regular +// expression using RE2 syntax. The literal value must match the entire +// field. For example, you can filter by the name of a +// resource: +// filter=name ne example-instance +// The above filter returns only results whose name field does not equal +// example-instance. You can also enclose your literal string in single, +// double, or no quotes. func (c *TypesListCall) Filter(filter string) *TypesListCall { c.opt_["filter"] = filter return c @@ -2013,9 +2115,10 @@ func (c *TypesListCall) MaxResults(maxResults int64) *TypesListCall { return c } -// PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request when that list was truncated to maxResults. -// Used to continue a previous list request. +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Use this parameter if you want to list the next page of +// results. Set pageToken to the nextPageToken returned by a previous +// list request. func (c *TypesListCall) PageToken(pageToken string) *TypesListCall { c.opt_["pageToken"] = pageToken return c @@ -2074,7 +2177,7 @@ func (c *TypesListCall) Do() (*TypesListResponse, error) { // ], // "parameters": { // "filter": { - // "description": "Filter expression for filtering listed resources.", + // "description": "Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:\nFIELD_NAME COMPARISON_STRING LITERAL_STRING\n \n- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. \n- COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). \n- LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource:\nfilter=name ne example-instance\nThe above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.", // "location": "query", // "type": "string" // }, @@ -2088,7 +2191,7 @@ func (c *TypesListCall) Do() (*TypesListResponse, error) { // "type": "integer" // }, // "pageToken": { - // "description": "Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request.", + // "description": "Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.", // "location": "query", // "type": "string" // }, diff --git a/dns/v1/dns-api.json b/dns/v1/dns-api.json index 3789633af77..8748015acbb 100644 --- a/dns/v1/dns-api.json +++ b/dns/v1/dns-api.json @@ -1,11 +1,11 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/CZ8yv2Lu-gQSA--NRFSPzzXCW7A\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/-U4jrXk6-vTBoDv0IALjnOwY9tw\"", "discoveryVersion": "v1", "id": "dns:v1", "name": "dns", "version": "v1", - "revision": "20150218", + "revision": "20150624", "title": "Google Cloud DNS API", "description": "The Google Cloud DNS API provides services for configuring and serving authoritative DNS records.", "ownerDomain": "google.com", @@ -572,6 +572,11 @@ "httpMethod": "GET", "description": "Enumerate ManagedZones that have been created but not yet deleted.", "parameters": { + "dnsName": { + "type": "string", + "description": "Restricts the list to return only zones with this domain name.", + "location": "query" + }, "maxResults": { "type": "integer", "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", diff --git a/dns/v1/dns-gen.go b/dns/v1/dns-gen.go index 784be64ca52..9e0b7029eb5 100644 --- a/dns/v1/dns-gen.go +++ b/dns/v1/dns-gen.go @@ -946,6 +946,13 @@ func (r *ManagedZonesService) List(project string) *ManagedZonesListCall { return c } +// DnsName sets the optional parameter "dnsName": Restricts the list to +// return only zones with this domain name. +func (c *ManagedZonesListCall) DnsName(dnsName string) *ManagedZonesListCall { + c.opt_["dnsName"] = dnsName + return c +} + // MaxResults sets the optional parameter "maxResults": Maximum number // of results to be returned. If unspecified, the server will decide how // many results to return. @@ -974,6 +981,9 @@ func (c *ManagedZonesListCall) Do() (*ManagedZonesListResponse, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dnsName"]; ok { + params.Set("dnsName", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["maxResults"]; ok { params.Set("maxResults", fmt.Sprintf("%v", v)) } @@ -1011,6 +1021,11 @@ func (c *ManagedZonesListCall) Do() (*ManagedZonesListResponse, error) { // "project" // ], // "parameters": { + // "dnsName": { + // "description": "Restricts the list to return only zones with this domain name.", + // "location": "query", + // "type": "string" + // }, // "maxResults": { // "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", // "format": "int32", diff --git a/dns/v1beta1/dns-api.json b/dns/v1beta1/dns-api.json index c2495cb64ec..6e954683887 100644 --- a/dns/v1beta1/dns-api.json +++ b/dns/v1beta1/dns-api.json @@ -1,11 +1,11 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/oh0OKkMoXiShh-fNWjMyGYxRkos\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/oeG7uB52wsm8PPE9oV2doNReuXE\"", "discoveryVersion": "v1", "id": "dns:v1beta1", "name": "dns", "version": "v1beta1", - "revision": "20150218", + "revision": "20150624", "title": "Google Cloud DNS API", "description": "The Google Cloud DNS API provides services for configuring and serving authoritative DNS records.", "ownerDomain": "google.com", @@ -564,6 +564,11 @@ "httpMethod": "GET", "description": "Enumerate ManagedZones that have been created but not yet deleted.", "parameters": { + "dnsName": { + "type": "string", + "description": "Restricts the list to return only zones with this domain name.", + "location": "query" + }, "maxResults": { "type": "integer", "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", diff --git a/dns/v1beta1/dns-gen.go b/dns/v1beta1/dns-gen.go index 5910c1256da..46dad555813 100644 --- a/dns/v1beta1/dns-gen.go +++ b/dns/v1beta1/dns-gen.go @@ -942,6 +942,13 @@ func (r *ManagedZonesService) List(project string) *ManagedZonesListCall { return c } +// DnsName sets the optional parameter "dnsName": Restricts the list to +// return only zones with this domain name. +func (c *ManagedZonesListCall) DnsName(dnsName string) *ManagedZonesListCall { + c.opt_["dnsName"] = dnsName + return c +} + // MaxResults sets the optional parameter "maxResults": Maximum number // of results to be returned. If unspecified, the server will decide how // many results to return. @@ -970,6 +977,9 @@ func (c *ManagedZonesListCall) Do() (*ManagedZonesListResponse, error) { var body io.Reader = nil params := make(url.Values) params.Set("alt", "json") + if v, ok := c.opt_["dnsName"]; ok { + params.Set("dnsName", fmt.Sprintf("%v", v)) + } if v, ok := c.opt_["maxResults"]; ok { params.Set("maxResults", fmt.Sprintf("%v", v)) } @@ -1007,6 +1017,11 @@ func (c *ManagedZonesListCall) Do() (*ManagedZonesListResponse, error) { // "project" // ], // "parameters": { + // "dnsName": { + // "description": "Restricts the list to return only zones with this domain name.", + // "location": "query", + // "type": "string" + // }, // "maxResults": { // "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", // "format": "int32", diff --git a/fitness/v1/fitness-api.json b/fitness/v1/fitness-api.json index cac97fa784a..9b3c1c8aeee 100644 --- a/fitness/v1/fitness-api.json +++ b/fitness/v1/fitness-api.json @@ -1,11 +1,11 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/ON1-o8QnfSjPgDpi2fa5Rxma0qA\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/8cgZ31t4YEOSZZD8u9wfnyO_oYk\"", "discoveryVersion": "v1", "id": "fitness:v1", "name": "fitness", "version": "v1", - "revision": "20150527", + "revision": "20150715", "title": "Fitness", "description": "Google Fit API", "ownerDomain": "google.com", @@ -732,13 +732,33 @@ "properties": { "fpVal": { "type": "number", - "description": "Floating point value. When this is set, intVal must not be set.", + "description": "Floating point value. When this is set, other values must not be set.", "format": "double" }, "intVal": { "type": "integer", - "description": "Integer value. When this is set, fpVal must not be set.", + "description": "Integer value. When this is set, other values must not be set.", "format": "int32" + }, + "mapVal": { + "type": "array", + "description": "Map value. The valid key space and units for the corresponding value of each entry should be documented as part of the data type definition. Keys should be kept small whenever possible. Data streams with large keys and high data frequency may be down sampled.", + "items": { + "$ref": "ValueMapValEntry" + } + }, + "stringVal": { + "type": "string", + "description": "String value. When this is set, other values must not be set. Strings should be kept small whenever possible. Data streams with large string values and high data frequency may be down sampled." + } + } + }, + "ValueMapValEntry": { + "id": "ValueMapValEntry", + "type": "object", + "properties": { + "key": { + "type": "string" } } } diff --git a/fitness/v1/fitness-gen.go b/fitness/v1/fitness-gen.go index 6aba12f9977..c277f690cc0 100644 --- a/fitness/v1/fitness-gen.go +++ b/fitness/v1/fitness-gen.go @@ -505,12 +505,29 @@ type Session struct { } type Value struct { - // FpVal: Floating point value. When this is set, intVal must not be - // set. + // FpVal: Floating point value. When this is set, other values must not + // be set. FpVal float64 `json:"fpVal,omitempty"` - // IntVal: Integer value. When this is set, fpVal must not be set. + // IntVal: Integer value. When this is set, other values must not be + // set. IntVal int64 `json:"intVal,omitempty"` + + // MapVal: Map value. The valid key space and units for the + // corresponding value of each entry should be documented as part of the + // data type definition. Keys should be kept small whenever possible. + // Data streams with large keys and high data frequency may be down + // sampled. + MapVal []*ValueMapValEntry `json:"mapVal,omitempty"` + + // StringVal: String value. When this is set, other values must not be + // set. Strings should be kept small whenever possible. Data streams + // with large string values and high data frequency may be down sampled. + StringVal string `json:"stringVal,omitempty"` +} + +type ValueMapValEntry struct { + Key string `json:"key,omitempty"` } // method id "fitness.users.dataSources.create": diff --git a/games/v1/games-api.json b/games/v1/games-api.json index f3c34491520..cac3f9b3231 100644 --- a/games/v1/games-api.json +++ b/games/v1/games-api.json @@ -1,12 +1,12 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/Lk2G3wqb0mjcAChQC6sL6CdXNgs\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/zePdcB9UZrt3TRiL6gFnZKOSeZ0\"", "discoveryVersion": "v1", "id": "games:v1", "name": "games", "canonicalName": "Games", "version": "v1", - "revision": "20150119", + "revision": "20150707", "title": "Google Play Game Services API", "description": "The API for Google Play Game Services.", "ownerDomain": "google.com", @@ -3558,7 +3558,7 @@ "description": "The maximum number of player resources to return in the response, used for paging. For any response, the actual number of player resources returned may be less than the specified maxResults.", "format": "int32", "minimum": "1", - "maximum": "15", + "maximum": "50", "location": "query" }, "pageToken": { diff --git a/games/v1/games-gen.go b/games/v1/games-gen.go index 0ed13b20642..9fa4d6c4a4d 100644 --- a/games/v1/games-gen.go +++ b/games/v1/games-gen.go @@ -4269,7 +4269,7 @@ func (c *PlayersListCall) Do() (*PlayerListResponse, error) { // "description": "The maximum number of player resources to return in the response, used for paging. For any response, the actual number of player resources returned may be less than the specified maxResults.", // "format": "int32", // "location": "query", - // "maximum": "15", + // "maximum": "50", // "minimum": "1", // "type": "integer" // }, diff --git a/gamesmanagement/v1management/gamesmanagement-api.json b/gamesmanagement/v1management/gamesmanagement-api.json index 2dc4549dc9f..27bd75950ea 100644 --- a/gamesmanagement/v1management/gamesmanagement-api.json +++ b/gamesmanagement/v1management/gamesmanagement-api.json @@ -1,12 +1,12 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/6aiv7cDwqgyYEVRSZQkoMExBeXA\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/pd3kPnOWeE_pyZMoVhvVpjurmVg\"", "discoveryVersion": "v1", "id": "gamesManagement:v1management", "name": "gamesManagement", "canonicalName": "Games Management", "version": "v1management", - "revision": "20150119", + "revision": "20150707", "title": "Google Play Game Services Management API", "description": "The Management API for Google Play Game Services.", "ownerDomain": "google.com", @@ -504,7 +504,7 @@ "description": "The maximum number of player resources to return in the response, used for paging. For any response, the actual number of player resources returned may be less than the specified maxResults.", "format": "int32", "minimum": "1", - "maximum": "15", + "maximum": "50", "location": "query" }, "pageToken": { diff --git a/gamesmanagement/v1management/gamesmanagement-gen.go b/gamesmanagement/v1management/gamesmanagement-gen.go index 09e696ada65..45308c8fb5d 100644 --- a/gamesmanagement/v1management/gamesmanagement-gen.go +++ b/gamesmanagement/v1management/gamesmanagement-gen.go @@ -798,7 +798,7 @@ func (c *ApplicationsListHiddenCall) Do() (*HiddenPlayerList, error) { // "description": "The maximum number of player resources to return in the response, used for paging. For any response, the actual number of player resources returned may be less than the specified maxResults.", // "format": "int32", // "location": "query", - // "maximum": "15", + // "maximum": "50", // "minimum": "1", // "type": "integer" // }, diff --git a/genomics/v1/genomics-api.json b/genomics/v1/genomics-api.json index 198d03e9e34..63203c974d8 100644 --- a/genomics/v1/genomics-api.json +++ b/genomics/v1/genomics-api.json @@ -1,11 +1,11 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/YYaUv6xTS7AlD1MxifAEIzVFLqI\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/6T02iZtL4UiPkkk0cgUgafyvtLM\"", "discoveryVersion": "v1", "id": "genomics:v1", "name": "genomics", "version": "v1", - "revision": "20150623", + "revision": "20150707", "title": "Genomics API", "description": "An API to store, process, explore, and share DNA sequence reads, reference-based alignments, and variant calls.", "ownerDomain": "google.com", @@ -99,5 +99,2478 @@ ], "location": "query" } + }, + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/bigquery": { + "description": "View and manage your data in Google BigQuery" + }, + "https://www.googleapis.com/auth/cloud-platform": { + "description": "View and manage your data across Google Cloud Platform services" + }, + "https://www.googleapis.com/auth/devstorage.read_write": { + "description": "Manage your data in Google Cloud Storage" + }, + "https://www.googleapis.com/auth/genomics": { + "description": "View and manage Genomics data" + }, + "https://www.googleapis.com/auth/genomics.readonly": { + "description": "View Genomics data" + } + } + } + }, + "schemas": { + "ListDatasetsResponse": { + "id": "ListDatasetsResponse", + "type": "object", + "description": "The dataset list response.", + "properties": { + "datasets": { + "type": "array", + "description": "The list of matching Datasets.", + "items": { + "$ref": "Dataset" + } + }, + "nextPageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. This field will be empty if there aren't any additional results." + } + } + }, + "Dataset": { + "id": "Dataset", + "type": "object", + "description": "A Dataset is a collection of genomic data.", + "properties": { + "id": { + "type": "string", + "description": "The server-assigned dataset ID, immutable." + }, + "projectId": { + "type": "string", + "description": "The Google Developers Console project ID that this dataset belongs to." + }, + "name": { + "type": "string", + "description": "The dataset name." + }, + "createTime": { + "type": "string", + "description": "The time this dataset was created, in seconds from the epoch." + } + } + }, + "Empty": { + "id": "Empty", + "type": "object", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`." + }, + "UndeleteDatasetRequest": { + "id": "UndeleteDatasetRequest", + "type": "object" + }, + "Operation": { + "id": "Operation", + "type": "object", + "description": "This resource represents a long-running operation that is the result of a network API call.", + "properties": { + "name": { + "type": "string", + "description": "The server-assigned name, which is only unique within the same service that originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL-qzoWAgEw`" + }, + "metadata": { + "type": "object", + "description": "An [OperationMetadata][google.genomics.v1.OperationMetadata] object. This will always be returned with the [Operation][google.longrunning.Operation].", + "additionalProperties": { + "type": "any", + "description": "Properties of the object. Contains field @ype with type URL." + } + }, + "done": { + "type": "boolean", + "description": "If the value is false, it means the operation is still in progress. If true, the operation is completed and the `result` is available." + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure." + }, + "response": { + "type": "object", + "description": "If importing [ReadGroupSets][google.genomics.v1.ReadGroupSet], an [ImportReadGroupSetsResponse][google.genomics.v1.ImportReadGroupSetsResponse] is returned. If importing [Variants][google.genomics.v1.Variant], an [ImportVariantsResponse][google.genomics.v1.ImportVariantsResponse] is returned. For exports, an empty response is returned.", + "additionalProperties": { + "type": "any", + "description": "Properties of the object. Contains field @ype with type URL." + } + } + } + }, + "Status": { + "id": "Status", + "type": "object", + "description": "The `Status` defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). The error model is designed to be: - Simple to use and understand for most users. - Flexible enough to meet unexpected needs. # Overview The `Status` message contains 3 pieces of data: error code, error message, and error details. The error code should be an enum value of [google.rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, it can be sent in the error details or localized by the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` which can be used for common error conditions. # Language mapping The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` message can be used in a variety of environments - either with or without APIs - to provide consistent developer experience across different environments. Example uses of this error model include: - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response. - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons.", + "properties": { + "code": { + "type": "integer", + "description": "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].", + "format": "int32" + }, + "message": { + "type": "string", + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client." + }, + "details": { + "type": "array", + "description": "A list of messages that carry the error details. There will be a common set of message types for APIs to use.", + "items": { + "type": "object", + "additionalProperties": { + "type": "any", + "description": "Properties of the object. Contains field @ype with type URL." + } + } + } + } + }, + "ListOperationsResponse": { + "id": "ListOperationsResponse", + "type": "object", + "description": "The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].", + "properties": { + "operations": { + "type": "array", + "description": "A list of operations that match the specified filter in the request.", + "items": { + "$ref": "Operation" + } + }, + "nextPageToken": { + "type": "string", + "description": "The standard List next-page token." + } + } + }, + "CancelOperationRequest": { + "id": "CancelOperationRequest", + "type": "object", + "description": "The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]." + }, + "ImportReadGroupSetsRequest": { + "id": "ImportReadGroupSetsRequest", + "type": "object", + "description": "The read group set import request.", + "properties": { + "datasetId": { + "type": "string", + "description": "Required. The ID of the dataset these read group sets will belong to. The caller must have WRITE permissions to this dataset." + }, + "referenceSetId": { + "type": "string", + "description": "The reference set to which the imported read group sets are aligned to, if any. The reference names of this reference set must be a superset of those found in the imported file headers. If no reference set id is provided, a best effort is made to associate with a matching reference set." + }, + "sourceUris": { + "type": "array", + "description": "A list of URIs pointing at BAM files in Google Cloud Storage.", + "items": { + "type": "string" + } + }, + "partitionStrategy": { + "type": "string", + "description": "The partition strategy describes how read groups are partitioned into read group sets.", + "enum": [ + "PARTITION_STRATEGY_UNSPECIFIED", + "PER_FILE_PER_SAMPLE", + "MERGE_ALL" + ] + } + } + }, + "ExportReadGroupSetRequest": { + "id": "ExportReadGroupSetRequest", + "type": "object", + "description": "The read group set export request.", + "properties": { + "projectId": { + "type": "string", + "description": "Required. The Google Developers Console project ID that owns this export." + }, + "exportUri": { + "type": "string", + "description": "Required. A Google Cloud Storage URI for the exported BAM file. The currently authenticated user must have write access to the new file. An error will be returned if the URI already contains data." + }, + "referenceNames": { + "type": "array", + "description": "The reference names to export. If this is not specified, all reference sequences, including unmapped reads, are exported. Use `*` to export only unmapped reads.", + "items": { + "type": "string" + } + } + } + }, + "SearchReadGroupSetsRequest": { + "id": "SearchReadGroupSetsRequest", + "type": "object", + "description": "The read group set search request.", + "properties": { + "datasetIds": { + "type": "array", + "description": "Restricts this query to read group sets within the given datasets. At least one ID must be provided.", + "items": { + "type": "string" + } + }, + "name": { + "type": "string", + "description": "Only return read group sets for which a substring of the name matches this string." + }, + "pageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response." + }, + "pageSize": { + "type": "integer", + "description": "Specifies number of results to return in a single page. If unspecified, it will default to 256. The maximum value is 1024.", + "format": "int32" + } + } + }, + "SearchReadGroupSetsResponse": { + "id": "SearchReadGroupSetsResponse", + "type": "object", + "description": "The read group set search response.", + "properties": { + "readGroupSets": { + "type": "array", + "description": "The list of matching read group sets.", + "items": { + "$ref": "ReadGroupSet" + } + }, + "nextPageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. This field will be empty if there aren't any additional results." + } + } + }, + "ReadGroupSet": { + "id": "ReadGroupSet", + "type": "object", + "description": "A read group set is a logical collection of read groups, which are collections of reads produced by a sequencer. A read group set typically models reads corresponding to one sample, sequenced one way, and aligned one way. * A read group set belongs to one dataset. * A read group belongs to one read group set. * A read belongs to one read group.", + "properties": { + "id": { + "type": "string", + "description": "The read group set ID." + }, + "datasetId": { + "type": "string", + "description": "The dataset ID." + }, + "referenceSetId": { + "type": "string", + "description": "The reference set the reads in this read group set are aligned to." + }, + "name": { + "type": "string", + "description": "The read group set name. By default this will be initialized to the sample name of the sequenced data contained in this set." + }, + "filename": { + "type": "string", + "description": "The filename of the original source file for this read group set, if any." + }, + "readGroups": { + "type": "array", + "description": "The read groups in this set. There are typically 1-10 read groups in a read group set.", + "items": { + "$ref": "ReadGroup" + } + }, + "info": { + "type": "object", + "description": "A map of additional read group set information.", + "additionalProperties": { + "type": "array", + "items": { + "type": "any" + } + } + } + } + }, + "ReadGroup": { + "id": "ReadGroup", + "type": "object", + "description": "A read group is all the data that's processed the same way by the sequencer.", + "properties": { + "id": { + "type": "string", + "description": "The generated unique read group ID. Note: This is different than the @RG ID field in the SAM spec. For that value, see the `name` field." + }, + "datasetId": { + "type": "string", + "description": "The ID of the dataset this read group belongs to." + }, + "name": { + "type": "string", + "description": "The read group name. This corresponds to the @RG ID field in the SAM spec." + }, + "description": { + "type": "string", + "description": "A free-form text description of this read group." + }, + "sampleId": { + "type": "string", + "description": "The sample this read group's data was generated from. Note: This is not an actual ID within this repository, but rather an identifier for a sample which may be meaningful to some external system." + }, + "experiment": { + "$ref": "Experiment", + "description": "The experiment used to generate this read group." + }, + "predictedInsertSize": { + "type": "integer", + "description": "The predicted insert size of this read group. The insert size is the length the sequenced DNA fragment from end-to-end, not including the adapters.", + "format": "int32" + }, + "programs": { + "type": "array", + "description": "The programs used to generate this read group. Programs are always identical for all read groups within a read group set. For this reason, only the first read group in a returned set will have this field populated.", + "items": { + "$ref": "Program" + } + }, + "referenceSetId": { + "type": "string", + "description": "The reference set the reads in this read group are aligned to. Required if there are any read alignments." + }, + "info": { + "type": "object", + "description": "A map of additional read group information. This must be of the form map (string key mapping to a list of string values).", + "additionalProperties": { + "type": "array", + "items": { + "type": "any" + } + } + } + } + }, + "Experiment": { + "id": "Experiment", + "type": "object", + "properties": { + "libraryId": { + "type": "string", + "description": "The library used as part of this experiment. Note: This is not an actual ID within this repository, but rather an identifier for a library which may be meaningful to some external system." + }, + "platformUnit": { + "type": "string", + "description": "The platform unit used as part of this experiment e.g. flowcell-barcode.lane for Illumina or slide for SOLiD. Corresponds to the @RG PU field in the SAM spec." + }, + "sequencingCenter": { + "type": "string", + "description": "The sequencing center used as part of this experiment." + }, + "instrumentModel": { + "type": "string", + "description": "The instrument model used as part of this experiment. This maps to sequencing technology in BAM." + } + } + }, + "Program": { + "id": "Program", + "type": "object", + "properties": { + "commandLine": { + "type": "string", + "description": "The command line used to run this program." + }, + "id": { + "type": "string", + "description": "The user specified locally unique ID of the program. Used along with `prevProgramId` to define an ordering between programs." + }, + "name": { + "type": "string", + "description": "The name of the program." + }, + "prevProgramId": { + "type": "string", + "description": "The ID of the program run before this one." + }, + "version": { + "type": "string", + "description": "The version of the program run." + } + } + }, + "ListCoverageBucketsResponse": { + "id": "ListCoverageBucketsResponse", + "type": "object", + "properties": { + "bucketWidth": { + "type": "string", + "description": "The length of each coverage bucket in base pairs. Note that buckets at the end of a reference sequence may be shorter. This value is omitted if the bucket width is infinity (the default behaviour, with no range or `targetBucketWidth`).", + "format": "int64" + }, + "coverageBuckets": { + "type": "array", + "description": "The coverage buckets. The list of buckets is sparse; a bucket with 0 overlapping reads is not returned. A bucket never crosses more than one reference sequence. Each bucket has width `bucketWidth`, unless its end is the end of the reference sequence.", + "items": { + "$ref": "CoverageBucket" + } + }, + "nextPageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. This field will be empty if there aren't any additional results." + } + } + }, + "CoverageBucket": { + "id": "CoverageBucket", + "type": "object", + "description": "A bucket over which read coverage has been precomputed. A bucket corresponds to a specific range of the reference sequence.", + "properties": { + "range": { + "$ref": "Range", + "description": "The genomic coordinate range spanned by this bucket." + }, + "meanCoverage": { + "type": "number", + "description": "The average number of reads which are aligned to each individual reference base in this bucket.", + "format": "float" + } + } + }, + "Range": { + "id": "Range", + "type": "object", + "description": "A 0-based half-open genomic coordinate range for search requests.", + "properties": { + "referenceName": { + "type": "string", + "description": "The reference sequence name, for example `chr1`, `1`, or `chrX`." + }, + "start": { + "type": "string", + "description": "The start position of the range on the reference, 0-based inclusive.", + "format": "int64" + }, + "end": { + "type": "string", + "description": "The end position of the range on the reference, 0-based exclusive.", + "format": "int64" + } + } + }, + "SearchReadsRequest": { + "id": "SearchReadsRequest", + "type": "object", + "description": "The read search request.", + "properties": { + "readGroupSetIds": { + "type": "array", + "description": "The IDs of the read groups sets within which to search for reads. All specified read group sets must be aligned against a common set of reference sequences; this defines the genomic coordinates for the query. Must specify one of `readGroupSetIds` or `readGroupIds`.", + "items": { + "type": "string" + } + }, + "readGroupIds": { + "type": "array", + "description": "The IDs of the read groups within which to search for reads. All specified read groups must belong to the same read group sets. Must specify one of `readGroupSetIds` or `readGroupIds`.", + "items": { + "type": "string" + } + }, + "referenceName": { + "type": "string", + "description": "The reference sequence name, for example `chr1`, `1`, or `chrX`. If set to *, only unmapped reads are returned." + }, + "start": { + "type": "string", + "description": "The start position of the range on the reference, 0-based inclusive. If specified, `referenceName` must also be specified.", + "format": "int64" + }, + "end": { + "type": "string", + "description": "The end position of the range on the reference, 0-based exclusive. If specified, `referenceName` must also be specified.", + "format": "int64" + }, + "pageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response." + }, + "pageSize": { + "type": "integer", + "description": "Specifies number of results to return in a single page. If unspecified, it will default to 256. The maximum value is 2048.", + "format": "int32" + } + } + }, + "SearchReadsResponse": { + "id": "SearchReadsResponse", + "type": "object", + "description": "The read search response.", + "properties": { + "alignments": { + "type": "array", + "description": "The list of matching alignments sorted by mapped genomic coordinate, if any, ascending in position within the same reference. Unmapped reads, which have no position, are returned last and are further sorted in ascending lexicographic order by fragment name.", + "items": { + "$ref": "Read" + } + }, + "nextPageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. This field will be empty if there aren't any additional results." + } + } + }, + "Read": { + "id": "Read", + "type": "object", + "description": "A read alignment describes a linear alignment of a string of DNA to a [reference sequence][google.genomics.v1.Reference], in addition to metadata about the fragment (the molecule of DNA sequenced) and the read (the bases which were read by the sequencer). A read is equivalent to a line in a SAM file. A read belongs to exactly one read group and exactly one [read group set][google.genomics.v1.ReadGroupSet]. ### Generating a reference-aligned sequence string When interacting with mapped reads, it's often useful to produce a string representing the local alignment of the read to reference. The following pseudocode demonstrates one way of doing this: out = \"\" offset = 0 for c in read.alignment.cigar { switch c.operation { case \"ALIGNMENT_MATCH\", \"SEQUENCE_MATCH\", \"SEQUENCE_MISMATCH\": out += read.alignedSequence[offset:offset+c.operationLength] offset += c.operationLength break case \"CLIP_SOFT\", \"INSERT\": offset += c.operationLength break case \"PAD\": out += repeat(\"*\", c.operationLength) break case \"DELETE\": out += repeat(\"-\", c.operationLength) break case \"SKIP\": out += repeat(\" \", c.operationLength) break case \"CLIP_HARD\": break } } return out ### Converting to SAM's CIGAR string The following pseudocode generates a SAM CIGAR string from the `cigar` field. Note that this is a lossy conversion (`cigar.referenceSequence` is lost). cigarMap = { \"ALIGNMENT_MATCH\": \"M\", \"INSERT\": \"I\", \"DELETE\": \"D\", \"SKIP\": \"N\", \"CLIP_SOFT\": \"S\", \"CLIP_HARD\": \"H\", \"PAD\": \"P\", \"SEQUENCE_MATCH\": \"=\", \"SEQUENCE_MISMATCH\": \"X\", } cigarStr = \"\" for c in read.alignment.cigar { cigarStr += c.operationLength + cigarMap[c.operation] } return cigarStr", + "properties": { + "id": { + "type": "string", + "description": "The unique ID for this read. This is a generated unique ID, not to be confused with fragmentName." + }, + "readGroupId": { + "type": "string", + "description": "The ID of the read group this read belongs to. (Every read must belong to exactly one read group.)" + }, + "readGroupSetId": { + "type": "string", + "description": "The ID of the read group set this read belongs to. (Every read must belong to exactly one read group set.)" + }, + "fragmentName": { + "type": "string", + "description": "The fragment name. Equivalent to QNAME (query template name) in SAM." + }, + "properPlacement": { + "type": "boolean", + "description": "The orientation and the distance between reads from the fragment are consistent with the sequencing protocol (SAM flag 0x2)" + }, + "duplicateFragment": { + "type": "boolean", + "description": "The fragment is a PCR or optical duplicate (SAM flag 0x400)" + }, + "fragmentLength": { + "type": "integer", + "description": "The observed length of the fragment, equivalent to TLEN in SAM.", + "format": "int32" + }, + "readNumber": { + "type": "integer", + "description": "The read number in sequencing. 0-based and less than numberReads. This field replaces SAM flag 0x40 and 0x80.", + "format": "int32" + }, + "numberReads": { + "type": "integer", + "description": "The number of reads in the fragment (extension to SAM flag 0x1).", + "format": "int32" + }, + "failedVendorQualityChecks": { + "type": "boolean", + "description": "SAM flag 0x200" + }, + "alignment": { + "$ref": "LinearAlignment", + "description": "The linear alignment for this alignment record. This field will be null if the read is unmapped." + }, + "secondaryAlignment": { + "type": "boolean", + "description": "Whether this alignment is secondary. Equivalent to SAM flag 0x100. A secondary alignment represents an alternative to the primary alignment for this read. Aligners may return secondary alignments if a read can map ambiguously to multiple coordinates in the genome. By convention, each read has one and only one alignment where both `secondaryAlignment` and `supplementaryAlignment` are false." + }, + "supplementaryAlignment": { + "type": "boolean", + "description": "Whether this alignment is supplementary. Equivalent to SAM flag 0x800. Supplementary alignments are used in the representation of a chimeric alignment. In a chimeric alignment, a read is split into multiple linear alignments that map to different reference contigs. The first linear alignment in the read will be designated as the representative alignment; the remaining linear alignments will be designated as supplementary alignments. These alignments may have different mapping quality scores. In each linear alignment in a chimeric alignment, the read will be hard clipped. The `alignedSequence` and `alignedQuality` fields in the alignment record will only represent the bases for its respective linear alignment." + }, + "alignedSequence": { + "type": "string", + "description": "The bases of the read sequence contained in this alignment record, *without CIGAR operations applied*. `alignedSequence` and `alignedQuality` may be shorter than the full read sequence and quality. This will occur if the alignment is part of a chimeric alignment, or if the read was trimmed. When this occurs, the CIGAR for this read will begin/end with a hard clip operator that will indicate the length of the excised sequence." + }, + "alignedQuality": { + "type": "array", + "description": "The quality of the read sequence contained in this alignment record. `alignedSequence` and `alignedQuality` may be shorter than the full read sequence and quality. This will occur if the alignment is part of a chimeric alignment, or if the read was trimmed. When this occurs, the CIGAR for this read will begin/end with a hard clip operator that will indicate the length of the excised sequence.", + "items": { + "type": "integer", + "format": "int32" + } + }, + "nextMatePosition": { + "$ref": "Position", + "description": "The mapping of the primary alignment of the `(readNumber+1)%numberReads` read in the fragment. It replaces mate position and mate strand in SAM." + }, + "info": { + "type": "object", + "description": "A map of additional read alignment information. This must be of the form map (string key mapping to a list of string values).", + "additionalProperties": { + "type": "array", + "items": { + "type": "any" + } + } + } + } + }, + "LinearAlignment": { + "id": "LinearAlignment", + "type": "object", + "description": "A linear alignment can be represented by one CIGAR string. Describes the mapped position and local alignment of the read to the reference.", + "properties": { + "position": { + "$ref": "Position", + "description": "The position of this alignment." + }, + "mappingQuality": { + "type": "integer", + "description": "The mapping quality of this alignment. Represents how likely the read maps to this position as opposed to other locations.", + "format": "int32" + }, + "cigar": { + "type": "array", + "description": "Represents the local alignment of this sequence (alignment matches, indels, etc) against the reference.", + "items": { + "$ref": "CigarUnit" + } + } + } + }, + "Position": { + "id": "Position", + "type": "object", + "description": "An abstraction for referring to a genomic position, in relation to some already known reference. For now, represents a genomic position as a reference name, a base number on that reference (0-based), and a determination of forward or reverse strand.", + "properties": { + "referenceName": { + "type": "string", + "description": "The name of the reference in whatever reference set is being used." + }, + "position": { + "type": "string", + "description": "The 0-based offset from the start of the forward strand for that reference.", + "format": "int64" + }, + "reverseStrand": { + "type": "boolean", + "description": "Whether this position is on the reverse strand, as opposed to the forward strand." + } + } + }, + "CigarUnit": { + "id": "CigarUnit", + "type": "object", + "description": "A single CIGAR operation.", + "properties": { + "operation": { + "type": "string", + "enum": [ + "OPERATION_UNSPECIFIED", + "ALIGNMENT_MATCH", + "INSERT", + "DELETE", + "SKIP", + "CLIP_SOFT", + "CLIP_HARD", + "PAD", + "SEQUENCE_MATCH", + "SEQUENCE_MISMATCH" + ] + }, + "operationLength": { + "type": "string", + "description": "The number of genomic bases that the operation runs for. Required.", + "format": "int64" + }, + "referenceSequence": { + "type": "string", + "description": "`referenceSequence` is only used at mismatches (`SEQUENCE_MISMATCH`) and deletions (`DELETE`). Filling this field replaces SAM's MD tag. If the relevant information is not available, this field is unset." + } + } + }, + "SearchReferenceSetsRequest": { + "id": "SearchReferenceSetsRequest", + "type": "object", + "properties": { + "md5checksums": { + "type": "array", + "description": "If present, return references for which the `md5checksum` matches. See `ReferenceSet.md5checksum` for details.", + "items": { + "type": "string" + } + }, + "accessions": { + "type": "array", + "description": "If present, return references for which the accession matches any of these strings. Best to give a version number, for example `GCF_000001405.26`. If only the main accession number is given then all records with that main accession will be returned, whichever version. Note that different versions will have different sequences.", + "items": { + "type": "string" + } + }, + "assemblyId": { + "type": "string", + "description": "If present, return reference sets for which a substring of their `assemblyId` matches this string (case insensitive)." + }, + "pageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response." + }, + "pageSize": { + "type": "integer", + "description": "Specifies the maximum number of results to return in a single page.", + "format": "int32" + } + } + }, + "SearchReferenceSetsResponse": { + "id": "SearchReferenceSetsResponse", + "type": "object", + "properties": { + "referenceSets": { + "type": "array", + "description": "The matching references sets.", + "items": { + "$ref": "ReferenceSet" + } + }, + "nextPageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. This field will be empty if there aren't any additional results." + } + } + }, + "ReferenceSet": { + "id": "ReferenceSet", + "type": "object", + "description": "A reference set is a set of references which typically comprise a reference assembly for a species, such as `GRCh38` which is representative of the human genome. A reference set defines a common coordinate space for comparing reference-aligned experimental data. A reference set contains 1 or more references.", + "properties": { + "id": { + "type": "string", + "description": "The Google generated immutable ID of the reference set." + }, + "referenceIds": { + "type": "array", + "description": "The IDs of the reference objects that are part of this set. `Reference.md5checksum` must be unique within this set.", + "items": { + "type": "string" + } + }, + "md5checksum": { + "type": "string", + "description": "Order-independent MD5 checksum which identifies this reference set. The checksum is computed by sorting all lower case hexidecimal string `reference.md5checksum` (for all reference in this set) in ascending lexicographic order, concatenating, and taking the MD5 of that value. The resulting value is represented in lower case hexadecimal format." + }, + "ncbiTaxonId": { + "type": "integer", + "description": "ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606-\u003ehuman) indicating the species which this assembly is intended to model. Note that contained references may specify a different `ncbiTaxonId`, as assemblies may contain reference sequences which do not belong to the modeled species, e.g. EBV in a human reference genome.", + "format": "int32" + }, + "description": { + "type": "string", + "description": "Free text description of this reference set." + }, + "assemblyId": { + "type": "string", + "description": "Public id of this reference set, such as `GRCh37`." + }, + "sourceUri": { + "type": "string", + "description": "The URI from which the references were obtained." + }, + "sourceAccessions": { + "type": "array", + "description": "All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally with a version number, for example `NC_000001.11`.", + "items": { + "type": "string" + } + } + } + }, + "SearchReferencesRequest": { + "id": "SearchReferencesRequest", + "type": "object", + "properties": { + "md5checksums": { + "type": "array", + "description": "If present, return references for which the `md5checksum` matches. See `Reference.md5checksum` for construction details.", + "items": { + "type": "string" + } + }, + "accessions": { + "type": "array", + "description": "If present, return references for which the accession matches this string. Best to give a version number, for example `GCF_000001405.26`. If only the main accession number is given then all records with that main accession will be returned, whichever version. Note that different versions will have different sequences.", + "items": { + "type": "string" + } + }, + "referenceSetId": { + "type": "string", + "description": "If present, return only references which belong to this reference set." + }, + "pageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response." + }, + "pageSize": { + "type": "integer", + "description": "Specifies the maximum number of results to return in a single page.", + "format": "int32" + } + } + }, + "SearchReferencesResponse": { + "id": "SearchReferencesResponse", + "type": "object", + "properties": { + "references": { + "type": "array", + "description": "The matching references.", + "items": { + "$ref": "Reference" + } + }, + "nextPageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. This field will be empty if there aren't any additional results." + } + } + }, + "Reference": { + "id": "Reference", + "type": "object", + "description": "A reference is a canonical assembled DNA sequence, intended to act as a reference coordinate space for other genomic annotations. A single reference might represent the human chromosome 1 or mitochandrial DNA, for instance. A reference belongs to one or more reference sets.", + "properties": { + "id": { + "type": "string", + "description": "The Google generated immutable ID of the reference." + }, + "length": { + "type": "string", + "description": "The length of this reference's sequence.", + "format": "int64" + }, + "md5checksum": { + "type": "string", + "description": "MD5 of the upper-case sequence excluding all whitespace characters (this is equivalent to SQ:M5 in SAM). This value is represented in lower case hexadecimal format." + }, + "name": { + "type": "string", + "description": "The name of this reference, for example `22`." + }, + "sourceUri": { + "type": "string", + "description": "The URI from which the sequence was obtained. Specifies a FASTA format file/string with one name, sequence pair." + }, + "sourceAccessions": { + "type": "array", + "description": "All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally with a version number, for example `GCF_000001405.26`.", + "items": { + "type": "string" + } + }, + "ncbiTaxonId": { + "type": "integer", + "description": "ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606-\u003ehuman) if not specified by the containing reference set.", + "format": "int32" + } + } + }, + "ListBasesResponse": { + "id": "ListBasesResponse", + "type": "object", + "properties": { + "offset": { + "type": "string", + "description": "The offset position (0-based) of the given `sequence` from the start of this `Reference`. This value will differ for each page in a paginated request.", + "format": "int64" + }, + "sequence": { + "type": "string", + "description": "A substring of the bases that make up this reference." + }, + "nextPageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. This field will be empty if there aren't any additional results." + } + } + }, + "ImportVariantsRequest": { + "id": "ImportVariantsRequest", + "type": "object", + "description": "The variant data import request.", + "properties": { + "variantSetId": { + "type": "string", + "description": "Required. The variant set to which variant data should be imported." + }, + "sourceUris": { + "type": "array", + "description": "A list of URIs referencing variant files in Google Cloud Storage. URIs can include wildcards [as described here](https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). Note that recursive wildcards ('**') are not supported.", + "items": { + "type": "string" + } + }, + "format": { + "type": "string", + "description": "The format of the variant data being imported. If unspecified, defaults to to `VCF`.", + "enum": [ + "FORMAT_UNSPECIFIED", + "FORMAT_VCF", + "FORMAT_COMPLETE_GENOMICS" + ] + }, + "normalizeReferenceNames": { + "type": "boolean", + "description": "Convert reference names to the canonical representation. hg19 haploytypes (those reference names containing \"_hap\") are not modified in any way. All other reference names are modified according to the following rules: The reference name is capitalized. The \"chr\" prefix is dropped for all autosomes and sex chromsomes. For example \"chr17\" becomes \"17\" and \"chrX\" becomes \"X\". All mitochondrial chromosomes (\"chrM\", \"chrMT\", etc) become \"MT\"." + } + } + }, + "VariantSet": { + "id": "VariantSet", + "type": "object", + "description": "A variant set is a collection of call sets and variants. It contains summary statistics of those contents. A variant set belongs to a dataset.", + "properties": { + "datasetId": { + "type": "string", + "description": "The dataset to which this variant set belongs." + }, + "id": { + "type": "string", + "description": "The Google-generated ID of the variant set." + }, + "referenceBounds": { + "type": "array", + "description": "A list of all references used by the variants in a variant set with associated coordinate upper bounds for each one.", + "items": { + "$ref": "ReferenceBound" + } + }, + "metadata": { + "type": "array", + "description": "The metadata associated with this variant set.", + "items": { + "$ref": "VariantSetMetadata" + } + } + } + }, + "ReferenceBound": { + "id": "ReferenceBound", + "type": "object", + "description": "ReferenceBound records an upper bound for the starting coordinate of variants in a particular reference.", + "properties": { + "referenceName": { + "type": "string", + "description": "The reference the bound is associate with." + }, + "upperBound": { + "type": "string", + "description": "An upper bound (inclusive) on the starting coordinate of any variant in the reference sequence.", + "format": "int64" + } + } + }, + "VariantSetMetadata": { + "id": "VariantSetMetadata", + "type": "object", + "description": "Metadata describes a single piece of variant call metadata. These data include a top level key and either a single value string (value) or a list of key-value pairs (info.) Value and info are mutually exclusive.", + "properties": { + "key": { + "type": "string", + "description": "The top-level key." + }, + "value": { + "type": "string", + "description": "The value field for simple metadata" + }, + "id": { + "type": "string", + "description": "User-provided ID field, not enforced by this API. Two or more pieces of structured metadata with identical id and key fields are considered equivalent." + }, + "type": { + "type": "string", + "description": "The type of data. Possible types include: Integer, Float, Flag, Character, and String.", + "enum": [ + "TYPE_UNSPECIFIED", + "INTEGER", + "FLOAT", + "FLAG", + "CHARACTER", + "STRING" + ] + }, + "number": { + "type": "integer", + "description": "The number of values that can be included in a field described by this metadata.", + "format": "int32" + }, + "description": { + "type": "string", + "description": "A textual description of this metadata." + }, + "info": { + "type": "object", + "description": "Remaining structured metadata key-value pairs. This must be of the form map (string key mapping to a list of string values).", + "additionalProperties": { + "type": "array", + "items": { + "type": "any" + } + } + } + } + }, + "ExportVariantSetRequest": { + "id": "ExportVariantSetRequest", + "type": "object", + "description": "The variant data export request.", + "properties": { + "callSetIds": { + "type": "array", + "description": "If provided, only variant call information from the specified call sets will be exported. By default all variant calls are exported.", + "items": { + "type": "string" + } + }, + "projectId": { + "type": "string", + "description": "Required. The Google Cloud project ID that owns the destination BigQuery dataset. The caller must have WRITE access to this project. This project will also own the resulting export job." + }, + "format": { + "type": "string", + "description": "The format for the exported data.", + "enum": [ + "FORMAT_UNSPECIFIED", + "FORMAT_BIGQUERY" + ] + }, + "bigqueryDataset": { + "type": "string", + "description": "Required. The BigQuery dataset to export data to. This dataset must already exist. Note that this is distinct from the Genomics concept of \"dataset\"." + }, + "bigqueryTable": { + "type": "string", + "description": "Required. The BigQuery table to export data to. If the table doesn't exist, it will be created. If it already exists, it will be overwritten." + } + } + }, + "SearchVariantSetsRequest": { + "id": "SearchVariantSetsRequest", + "type": "object", + "description": "The search variant sets request.", + "properties": { + "datasetIds": { + "type": "array", + "description": "Exactly one dataset ID must be provided here. Only variant sets which belong to this dataset will be returned.", + "items": { + "type": "string" + } + }, + "pageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response." + }, + "pageSize": { + "type": "integer", + "description": "The maximum number of variant sets to return in a request.", + "format": "int32" + } + } + }, + "SearchVariantSetsResponse": { + "id": "SearchVariantSetsResponse", + "type": "object", + "description": "The search variant sets response.", + "properties": { + "variantSets": { + "type": "array", + "description": "The variant sets belonging to the requested dataset.", + "items": { + "$ref": "VariantSet" + } + }, + "nextPageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. This field will be empty if there aren't any additional results." + } + } + }, + "SearchVariantsRequest": { + "id": "SearchVariantsRequest", + "type": "object", + "description": "The variant search request.", + "properties": { + "variantSetIds": { + "type": "array", + "description": "At most one variant set ID must be provided. Only variants from this variant set will be returned. If omitted, a call set id must be included in the request.", + "items": { + "type": "string" + } + }, + "variantName": { + "type": "string", + "description": "Only return variants which have exactly this name." + }, + "callSetIds": { + "type": "array", + "description": "Only return variant calls which belong to call sets with these ids. Leaving this blank returns all variant calls. If a variant has no calls belonging to any of these call sets, it won't be returned at all. Currently, variants with no calls from any call set will never be returned.", + "items": { + "type": "string" + } + }, + "referenceName": { + "type": "string", + "description": "Required. Only return variants in this reference sequence." + }, + "start": { + "type": "string", + "description": "The beginning of the window (0-based, inclusive) for which overlapping variants should be returned. If unspecified, defaults to 0.", + "format": "int64" + }, + "end": { + "type": "string", + "description": "The end of the window, 0-based exclusive. If unspecified or 0, defaults to the length of the reference.", + "format": "int64" + }, + "pageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response." + }, + "pageSize": { + "type": "integer", + "description": "The maximum number of variants to return. If unspecified, defaults to 5000.", + "format": "int32" + }, + "maxCalls": { + "type": "integer", + "description": "The maximum number of calls to return. However, at least one variant will always be returned, even if it has more calls than this limit. If unspecified, defaults to 5000.", + "format": "int32" + } + } + }, + "SearchVariantsResponse": { + "id": "SearchVariantsResponse", + "type": "object", + "description": "The variant search response.", + "properties": { + "variants": { + "type": "array", + "description": "The list of matching Variants.", + "items": { + "$ref": "Variant" + } + }, + "nextPageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. This field will be empty if there aren't any additional results." + } + } + }, + "Variant": { + "id": "Variant", + "type": "object", + "description": "A variant represents a change in DNA sequence relative to a reference sequence. For example, a variant could represent a SNP or an insertion. Variants belong to a variant set. Each of the calls on a variant represent a determination of genotype with respect to that variant. For example, a call might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call belongs to a call set, which contains related calls typically from one sample.", + "properties": { + "variantSetId": { + "type": "string", + "description": "The ID of the variant set this variant belongs to." + }, + "id": { + "type": "string", + "description": "The Google generated ID of the variant, immutable." + }, + "names": { + "type": "array", + "description": "Names for the variant, for example a RefSNP ID.", + "items": { + "type": "string" + } + }, + "created": { + "type": "string", + "description": "The date this variant was created, in milliseconds from the epoch.", + "format": "int64" + }, + "referenceName": { + "type": "string", + "description": "The reference on which this variant occurs. (such as `chr20` or `X`)" + }, + "start": { + "type": "string", + "description": "The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.", + "format": "int64" + }, + "end": { + "type": "string", + "description": "The end position (0-based) of this variant. This corresponds to the first base after the last base in the reference allele. So, the length of the reference allele is (end - start). This is useful for variants that don't explicitly give alternate bases, for example large deletions.", + "format": "int64" + }, + "referenceBases": { + "type": "string", + "description": "The reference bases for this variant. They start at the given position." + }, + "alternateBases": { + "type": "array", + "description": "The bases that appear instead of the reference bases.", + "items": { + "type": "string" + } + }, + "quality": { + "type": "number", + "description": "A measure of how likely this variant is to be real. A higher value is better.", + "format": "double" + }, + "filter": { + "type": "array", + "description": "A list of filters (normally quality filters) this variant has failed. `PASS` indicates this variant has passed all filters.", + "items": { + "type": "string" + } + }, + "info": { + "type": "object", + "description": "A map of additional variant information. This must be of the form map (string key mapping to a list of string values).", + "additionalProperties": { + "type": "array", + "items": { + "type": "any" + } + } + }, + "calls": { + "type": "array", + "description": "The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.", + "items": { + "$ref": "VariantCall" + } + } + } + }, + "VariantCall": { + "id": "VariantCall", + "type": "object", + "description": "A call represents the determination of genotype with respect to a particular variant. It may include associated information such as quality and phasing. For example, a call might assign a probability of 0.32 to the occurrence of a SNP named rs1234 in a call set with the name NA12345.", + "properties": { + "callSetId": { + "type": "string", + "description": "The ID of the call set this variant call belongs to." + }, + "callSetName": { + "type": "string", + "description": "The name of the call set this variant call belongs to." + }, + "genotype": { + "type": "array", + "description": "The genotype of this variant call. Each value represents either the value of the `referenceBases` field or a 1-based index into `alternateBases`. If a variant had a `referenceBases` value of `T` and an `alternateBases` value of `[\"A\", \"C\"]`, and the `genotype` was `[2, 1]`, that would mean the call represented the heterozygous value `CA` for this variant. If the `genotype` was instead `[0, 1]`, the represented value would be `TA`. Ordering of the genotype values is important if the `phaseset` is present. If a genotype is not called (that is, a `.` is present in the GT string) -1 is returned.", + "items": { + "type": "integer", + "format": "int32" + } + }, + "phaseset": { + "type": "string", + "description": "If this field is present, this variant call's genotype ordering implies the phase of the bases and is consistent with any other variant calls in the same reference sequence which have the same phaseset value. When importing data from VCF, if the genotype data was phased but no phase set was specified this field will be set to `*`." + }, + "genotypeLikelihood": { + "type": "array", + "description": "The genotype likelihoods for this variant call. Each array entry represents how likely a specific genotype is for this call. The value ordering is defined by the GL tag in the VCF spec. If Phred-scaled genotype likelihood scores (PL) are available and log10(P) genotype likelihood scores (GL) are not, PL scores are converted to GL scores. If both are available, PL scores are stored in `info`.", + "items": { + "type": "number", + "format": "double" + } + }, + "info": { + "type": "object", + "description": "A map of additional variant call information. This must be of the form map (string key mapping to a list of string values).", + "additionalProperties": { + "type": "array", + "items": { + "type": "any" + } + } + } + } + }, + "MergeVariantsRequest": { + "id": "MergeVariantsRequest", + "type": "object", + "properties": { + "variantSetId": { + "type": "string", + "description": "The destination variant set." + }, + "variants": { + "type": "array", + "description": "The variants to be merged with existing variants.", + "items": { + "$ref": "Variant" + } + } + } + }, + "SearchCallSetsRequest": { + "id": "SearchCallSetsRequest", + "type": "object", + "description": "The call set search request.", + "properties": { + "variantSetIds": { + "type": "array", + "description": "Restrict the query to call sets within the given variant sets. At least one ID must be provided.", + "items": { + "type": "string" + } + }, + "name": { + "type": "string", + "description": "Only return call sets for which a substring of the name matches this string." + }, + "pageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response." + }, + "pageSize": { + "type": "integer", + "description": "The maximum number of call sets to return. If unspecified, defaults to 1000.", + "format": "int32" + } + } + }, + "SearchCallSetsResponse": { + "id": "SearchCallSetsResponse", + "type": "object", + "description": "The call set search response.", + "properties": { + "callSets": { + "type": "array", + "description": "The list of matching call sets.", + "items": { + "$ref": "CallSet" + } + }, + "nextPageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. This field will be empty if there aren't any additional results." + } + } + }, + "CallSet": { + "id": "CallSet", + "type": "object", + "description": "A call set is a collection of variant calls, typically for one sample. It belongs to a variant set.", + "properties": { + "id": { + "type": "string", + "description": "The Google generated ID of the call set, immutable." + }, + "name": { + "type": "string", + "description": "The call set name." + }, + "sampleId": { + "type": "string", + "description": "The sample ID this call set corresponds to." + }, + "variantSetIds": { + "type": "array", + "description": "The IDs of the variant sets this call set belongs to.", + "items": { + "type": "string" + } + }, + "created": { + "type": "string", + "description": "The date this call set was created in milliseconds from the epoch.", + "format": "int64" + }, + "info": { + "type": "object", + "description": "A map of additional call set information. This must be of the form map (string key mapping to a list of string values).", + "additionalProperties": { + "type": "array", + "items": { + "type": "any" + } + } + } + } + } + }, + "resources": { + "datasets": { + "methods": { + "list": { + "id": "genomics.datasets.list", + "path": "v1/datasets", + "httpMethod": "GET", + "description": "Lists datasets within a project.", + "parameters": { + "projectId": { + "type": "string", + "description": "Required. The project to list datasets for.", + "location": "query" + }, + "pageSize": { + "type": "integer", + "description": "The maximum number of results returned by this request. If unspecified, defaults to 50. The maximum value is 1024.", + "format": "int32", + "location": "query" + }, + "pageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response.", + "location": "query" + } + }, + "response": { + "$ref": "ListDatasetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + }, + "create": { + "id": "genomics.datasets.create", + "path": "v1/datasets", + "httpMethod": "POST", + "description": "Creates a new dataset.", + "request": { + "$ref": "Dataset" + }, + "response": { + "$ref": "Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "get": { + "id": "genomics.datasets.get", + "path": "v1/datasets/{datasetId}", + "httpMethod": "GET", + "description": "Gets a dataset by ID.", + "parameters": { + "datasetId": { + "type": "string", + "description": "The ID of the dataset.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "datasetId" + ], + "response": { + "$ref": "Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + }, + "patch": { + "id": "genomics.datasets.patch", + "path": "v1/datasets/{datasetId}", + "httpMethod": "PATCH", + "description": "Updates a dataset. This method supports patch semantics.", + "parameters": { + "datasetId": { + "type": "string", + "description": "The ID of the dataset to be updated.", + "required": true, + "location": "path" + }, + "updateMask": { + "type": "string", + "description": "An optional mask specifying which fields to update. At this time, the only mutable field is [name][google.genomics.v1.Dataset.name]. The only acceptable value is \"name\". If unspecified, all mutable fields will be updated.", + "location": "query" + } + }, + "parameterOrder": [ + "datasetId" + ], + "request": { + "$ref": "Dataset" + }, + "response": { + "$ref": "Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "delete": { + "id": "genomics.datasets.delete", + "path": "v1/datasets/{datasetId}", + "httpMethod": "DELETE", + "description": "Deletes a dataset.", + "parameters": { + "datasetId": { + "type": "string", + "description": "The ID of the dataset to be deleted.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "datasetId" + ], + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "undelete": { + "id": "genomics.datasets.undelete", + "path": "v1/datasets/{datasetId}:undelete", + "httpMethod": "POST", + "description": "Undeletes a dataset by restoring a dataset which was deleted via this API. This operation is only possible for a week after the deletion occurred.", + "parameters": { + "datasetId": { + "type": "string", + "description": "The ID of the dataset to be undeleted.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "datasetId" + ], + "request": { + "$ref": "UndeleteDatasetRequest" + }, + "response": { + "$ref": "Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + } + } + }, + "operations": { + "methods": { + "get": { + "id": "genomics.operations.get", + "path": "v1/{+name}", + "httpMethod": "GET", + "description": "Gets the latest state of a long-running operation. Clients may use this method to poll the operation result at intervals as recommended by the API service.", + "parameters": { + "name": { + "type": "string", + "description": "The name of the operation resource.", + "required": true, + "pattern": "^operations/.*$", + "location": "path" + } + }, + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "list": { + "id": "genomics.operations.list", + "path": "v1/{+name}", + "httpMethod": "GET", + "description": "Lists operations that match the specified filter in the request.", + "parameters": { + "name": { + "type": "string", + "description": "The name of the operation collection.", + "required": true, + "pattern": "^operations$", + "location": "path" + }, + "filter": { + "type": "string", + "description": "A string for filtering [Operations][google.longrunning.Operation]. The following filter fields are supported: * projectId: Required. Corresponds to [OperationMetadata.projectId][google.genomics.v1.OperationMetadata.project_id]. * createTime: The time this job was created, in seconds from the [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `\u003e=` and/or `= 1432140000` * `projectId = my-project AND createTime \u003e= 1432140000 AND createTime \u003c= 1432150000 AND status = RUNNING`", + "location": "query" + }, + "pageSize": { + "type": "integer", + "description": "The maximum number of results to return. If unspecified, defaults to 256. The maximum value is 2048.", + "format": "int32", + "location": "query" + }, + "pageToken": { + "type": "string", + "description": "The standard List page token.", + "location": "query" + } + }, + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "cancel": { + "id": "genomics.operations.cancel", + "path": "v1/{+name}:cancel", + "httpMethod": "POST", + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients may use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or [Operations.ListOperations][google.longrunning.Operations.ListOperations] to check whether the cancellation succeeded or the operation completed despite cancellation.", + "parameters": { + "name": { + "type": "string", + "description": "The name of the operation resource to be cancelled.", + "required": true, + "pattern": "^operations/.*$", + "location": "path" + } + }, + "parameterOrder": [ + "name" + ], + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "delete": { + "id": "genomics.operations.delete", + "path": "v1/{+name}", + "httpMethod": "DELETE", + "description": "This method is not implemented. To cancel an operation, please use [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].", + "parameters": { + "name": { + "type": "string", + "description": "The name of the operation resource to be deleted.", + "required": true, + "pattern": "^operations/.*$", + "location": "path" + } + }, + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + } + } + }, + "readgroupsets": { + "methods": { + "import": { + "id": "genomics.readgroupsets.import", + "path": "v1/readgroupsets:import", + "httpMethod": "POST", + "description": "Creates read group sets by asynchronously importing the provided information. Note that currently comments in the input file header are **not** imported and some custom tags will be converted to strings, rather than preserving tag types. The caller must have WRITE permissions to the dataset.", + "request": { + "$ref": "ImportReadGroupSetsRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/devstorage.read_write", + "https://www.googleapis.com/auth/genomics" + ] + }, + "export": { + "id": "genomics.readgroupsets.export", + "path": "v1/readgroupsets/{readGroupSetId}:export", + "httpMethod": "POST", + "description": "Exports a read group set to a BAM file in Google Cloud Storage. Note that currently there may be some differences between exported BAM files and the original BAM file at the time of import. In particular, comments in the input file header will not be preserved, some custom tags will be converted to strings, and original reference sequence order is not necessarily preserved.", + "parameters": { + "readGroupSetId": { + "type": "string", + "description": "Required. The ID of the read group set to export.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "readGroupSetId" + ], + "request": { + "$ref": "ExportReadGroupSetRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/devstorage.read_write", + "https://www.googleapis.com/auth/genomics" + ] + }, + "search": { + "id": "genomics.readgroupsets.search", + "path": "v1/readgroupsets/search", + "httpMethod": "POST", + "description": "Searches for read group sets matching the criteria. Implements [GlobalAllianceApi.searchReadGroupSets](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReadGroupSets).", + "request": { + "$ref": "SearchReadGroupSetsRequest" + }, + "response": { + "$ref": "SearchReadGroupSetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + }, + "patch": { + "id": "genomics.readgroupsets.patch", + "path": "v1/readgroupsets/{readGroupSetId}", + "httpMethod": "PATCH", + "description": "Updates a read group set. This method supports patch semantics.", + "parameters": { + "readGroupSetId": { + "type": "string", + "description": "The ID of the read group set to be updated. The caller must have WRITE permissions to the dataset associated with this read group set.", + "required": true, + "location": "path" + }, + "updateMask": { + "type": "string", + "description": "An optional mask specifying which fields to update. At this time, mutable fields are [referenceSetId][google.genomics.v1.ReadGroupSet.reference_set_id] and [name][google.genomics.v1.ReadGroupSet.name]. Acceptable values are \"referenceSetId\" and \"name\". If unspecified, all mutable fields will be updated.", + "location": "query" + } + }, + "parameterOrder": [ + "readGroupSetId" + ], + "request": { + "$ref": "ReadGroupSet" + }, + "response": { + "$ref": "ReadGroupSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "delete": { + "id": "genomics.readgroupsets.delete", + "path": "v1/readgroupsets/{readGroupSetId}", + "httpMethod": "DELETE", + "description": "Deletes a read group set.", + "parameters": { + "readGroupSetId": { + "type": "string", + "description": "The ID of the read group set to be deleted. The caller must have WRITE permissions to the dataset associated with this read group set.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "readGroupSetId" + ], + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "get": { + "id": "genomics.readgroupsets.get", + "path": "v1/readgroupsets/{readGroupSetId}", + "httpMethod": "GET", + "description": "Gets a read group set by ID.", + "parameters": { + "readGroupSetId": { + "type": "string", + "description": "The ID of the read group set.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "readGroupSetId" + ], + "response": { + "$ref": "ReadGroupSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + } + }, + "resources": { + "coveragebuckets": { + "methods": { + "list": { + "id": "genomics.readgroupsets.coveragebuckets.list", + "path": "v1/readgroupsets/{readGroupSetId}/coveragebuckets", + "httpMethod": "GET", + "description": "Lists fixed width coverage buckets for a read group set, each of which correspond to a range of a reference sequence. Each bucket summarizes coverage information across its corresponding genomic range. Coverage is defined as the number of reads which are aligned to a given base in the reference sequence. Coverage buckets are available at several precomputed bucket widths, enabling retrieval of various coverage 'zoom levels'. The caller must have READ permissions for the target read group set.", + "parameters": { + "readGroupSetId": { + "type": "string", + "description": "Required. The ID of the read group set over which coverage is requested.", + "required": true, + "location": "path" + }, + "referenceName": { + "type": "string", + "description": "The name of the reference to query, within the reference set associated with this query. Optional.", + "location": "query" + }, + "start": { + "type": "string", + "description": "The start position of the range on the reference, 0-based inclusive. If specified, `referenceName` must also be specified. Defaults to 0.", + "format": "int64", + "location": "query" + }, + "end": { + "type": "string", + "description": "The end position of the range on the reference, 0-based exclusive. If specified, `referenceName` must also be specified. If unset or 0, defaults to the length of the reference.", + "format": "int64", + "location": "query" + }, + "targetBucketWidth": { + "type": "string", + "description": "The desired width of each reported coverage bucket in base pairs. This will be rounded down to the nearest precomputed bucket width; the value of which is returned as `bucketWidth` in the response. Defaults to infinity (each bucket spans an entire reference sequence) or the length of the target range, if specified. The smallest precomputed `bucketWidth` is currently 2048 base pairs; this is subject to change.", + "format": "int64", + "location": "query" + }, + "pageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response.", + "location": "query" + }, + "pageSize": { + "type": "integer", + "description": "The maximum number of results to return in a single page. If unspecified, defaults to 1024. The maximum value is 2048.", + "format": "int32", + "location": "query" + } + }, + "parameterOrder": [ + "readGroupSetId" + ], + "response": { + "$ref": "ListCoverageBucketsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + } + } + } + } + }, + "reads": { + "methods": { + "search": { + "id": "genomics.reads.search", + "path": "v1/reads/search", + "httpMethod": "POST", + "description": "Gets a list of reads for one or more read group sets. Reads search operates over a genomic coordinate space of reference sequence & position defined over the reference sequences to which the requested read group sets are aligned. If a target positional range is specified, search returns all reads whose alignment to the reference genome overlap the range. A query which specifies only read group set IDs yields all reads in those read group sets, including unmapped reads. All reads returned (including reads on subsequent pages) are ordered by genomic coordinate (reference sequence & position). Reads with equivalent genomic coordinates are returned in a deterministic order. Implements [GlobalAllianceApi.searchReads](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReads).", + "request": { + "$ref": "SearchReadsRequest" + }, + "response": { + "$ref": "SearchReadsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + } + } + }, + "referencesets": { + "methods": { + "search": { + "id": "genomics.referencesets.search", + "path": "v1/referencesets/search", + "httpMethod": "POST", + "description": "Searches for reference sets which match the given criteria. Implements [GlobalAllianceApi.searchReferenceSets](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReferenceSets)", + "request": { + "$ref": "SearchReferenceSetsRequest" + }, + "response": { + "$ref": "SearchReferenceSetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + }, + "get": { + "id": "genomics.referencesets.get", + "path": "v1/referencesets/{referenceSetId}", + "httpMethod": "GET", + "description": "Gets a reference set. Implements [GlobalAllianceApi.getReferenceSet](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.getReferenceSet\").", + "parameters": { + "referenceSetId": { + "type": "string", + "description": "The ID of the reference set.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "referenceSetId" + ], + "response": { + "$ref": "ReferenceSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + } + } + }, + "references": { + "methods": { + "search": { + "id": "genomics.references.search", + "path": "v1/references/search", + "httpMethod": "POST", + "description": "Searches for references which match the given criteria. Implements [GlobalAllianceApi.searchReferences](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReferences).", + "request": { + "$ref": "SearchReferencesRequest" + }, + "response": { + "$ref": "SearchReferencesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + }, + "get": { + "id": "genomics.references.get", + "path": "v1/references/{referenceId}", + "httpMethod": "GET", + "description": "Gets a reference. Implements [GlobalAllianceApi.getReference](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.getReference).", + "parameters": { + "referenceId": { + "type": "string", + "description": "The ID of the reference.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "referenceId" + ], + "response": { + "$ref": "Reference" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + } + }, + "resources": { + "bases": { + "methods": { + "list": { + "id": "genomics.references.bases.list", + "path": "v1/references/{referenceId}/bases", + "httpMethod": "GET", + "description": "Lists the bases in a reference, optionally restricted to a range. Implements [GlobalAllianceApi.getReferenceBases](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.getReferenceBases).", + "parameters": { + "referenceId": { + "type": "string", + "description": "The ID of the reference.", + "required": true, + "location": "path" + }, + "start": { + "type": "string", + "description": "The start position (0-based) of this query. Defaults to 0.", + "format": "int64", + "location": "query" + }, + "end": { + "type": "string", + "description": "The end position (0-based, exclusive) of this query. Defaults to the length of this reference.", + "format": "int64", + "location": "query" + }, + "pageToken": { + "type": "string", + "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response.", + "location": "query" + }, + "pageSize": { + "type": "integer", + "description": "Specifies the maximum number of bases to return in a single page.", + "format": "int32", + "location": "query" + } + }, + "parameterOrder": [ + "referenceId" + ], + "response": { + "$ref": "ListBasesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + } + } + } + } + }, + "variants": { + "methods": { + "import": { + "id": "genomics.variants.import", + "path": "v1/variants:import", + "httpMethod": "POST", + "description": "Creates variant data by asynchronously importing the provided information. The variants for import will be merged with any existing data and each other according to the behavior of mergeVariants. In particular, this means for merged VCF variants that have conflicting INFO fields, some data will be arbitrarily discarded. As a special case, for single-sample VCF files, QUAL and FILTER fields will be moved to the call level; these are sometimes interpreted in a call-specific context. Imported VCF headers are appended to the metadata already in a variant set.", + "request": { + "$ref": "ImportVariantsRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/devstorage.read_write", + "https://www.googleapis.com/auth/genomics" + ] + }, + "search": { + "id": "genomics.variants.search", + "path": "v1/variants/search", + "httpMethod": "POST", + "description": "Gets a list of variants matching the criteria. Implements [GlobalAllianceApi.searchVariants](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchVariants).", + "request": { + "$ref": "SearchVariantsRequest" + }, + "response": { + "$ref": "SearchVariantsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + }, + "create": { + "id": "genomics.variants.create", + "path": "v1/variants", + "httpMethod": "POST", + "description": "Creates a new variant.", + "request": { + "$ref": "Variant" + }, + "response": { + "$ref": "Variant" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "patch": { + "id": "genomics.variants.patch", + "path": "v1/variants/{variantId}", + "httpMethod": "PATCH", + "description": "Updates a variant. This method supports patch semantics. Returns the modified variant without its calls.", + "parameters": { + "variantId": { + "type": "string", + "description": "The ID of the variant to be updated.", + "required": true, + "location": "path" + }, + "updateMask": { + "type": "string", + "description": "An optional mask specifying which fields to update. At this time, mutable fields are [names][google.genomics.v1.Variant.names] and [info][google.genomics.v1.Variant.info]. Acceptable values are \"names\" and \"info\". If unspecified, all mutable fields will be updated.", + "location": "query" + } + }, + "parameterOrder": [ + "variantId" + ], + "request": { + "$ref": "Variant" + }, + "response": { + "$ref": "Variant" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "delete": { + "id": "genomics.variants.delete", + "path": "v1/variants/{variantId}", + "httpMethod": "DELETE", + "description": "Deletes a variant.", + "parameters": { + "variantId": { + "type": "string", + "description": "The ID of the variant to be deleted.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "variantId" + ], + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "get": { + "id": "genomics.variants.get", + "path": "v1/variants/{variantId}", + "httpMethod": "GET", + "description": "Gets a variant by ID.", + "parameters": { + "variantId": { + "type": "string", + "description": "The ID of the variant.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "variantId" + ], + "response": { + "$ref": "Variant" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + }, + "merge": { + "id": "genomics.variants.merge", + "path": "v1/variants:merge", + "httpMethod": "POST", + "description": "Merges the given variants with existing variants. Each variant will be merged with an existing variant that matches its reference sequence, start, end, reference bases, and alternative bases. If no such variant exists, a new one will be created. When variants are merged, the call information from the new variant is added to the existing variant, and other fields (such as key/value pairs) are discarded.", + "request": { + "$ref": "MergeVariantsRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + } + } + }, + "variantsets": { + "methods": { + "create": { + "id": "genomics.variantsets.create", + "path": "v1/variantsets", + "httpMethod": "POST", + "description": "Creates a new variant set.", + "request": { + "$ref": "VariantSet" + }, + "response": { + "$ref": "VariantSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "export": { + "id": "genomics.variantsets.export", + "path": "v1/variantsets/{variantSetId}:export", + "httpMethod": "POST", + "description": "Exports variant set data to an external destination.", + "parameters": { + "variantSetId": { + "type": "string", + "description": "Required. The ID of the variant set that contains variant data which should be exported. The caller must have READ access to this variant set.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "variantSetId" + ], + "request": { + "$ref": "ExportVariantSetRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "get": { + "id": "genomics.variantsets.get", + "path": "v1/variantsets/{variantSetId}", + "httpMethod": "GET", + "description": "Gets a variant set by ID.", + "parameters": { + "variantSetId": { + "type": "string", + "description": "Required. The ID of the variant set.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "variantSetId" + ], + "response": { + "$ref": "VariantSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + }, + "search": { + "id": "genomics.variantsets.search", + "path": "v1/variantsets/search", + "httpMethod": "POST", + "description": "Returns a list of all variant sets matching search criteria. Implements [GlobalAllianceApi.searchVariantSets](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchVariantSets).", + "request": { + "$ref": "SearchVariantSetsRequest" + }, + "response": { + "$ref": "SearchVariantSetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + }, + "delete": { + "id": "genomics.variantsets.delete", + "path": "v1/variantsets/{variantSetId}", + "httpMethod": "DELETE", + "description": "Deletes the contents of a variant set. The variant set object is not deleted.", + "parameters": { + "variantSetId": { + "type": "string", + "description": "The ID of the variant set to be deleted.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "variantSetId" + ], + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "patch": { + "id": "genomics.variantsets.patch", + "path": "v1/variantsets/{variantSetId}", + "httpMethod": "PATCH", + "description": "Updates a variant set. This method supports patch semantics.", + "parameters": { + "variantSetId": { + "type": "string", + "description": "The ID of the variant to be updated (must already exist).", + "required": true, + "location": "path" + }, + "updateMask": { + "type": "string", + "description": "An optional mask specifying which fields to update. At this time, the only mutable field is [metadata][google.genomics.v1.VariantSet.metadata]. The only acceptable value is \"metadata\". If unspecified, all mutable fields will be updated.", + "location": "query" + } + }, + "parameterOrder": [ + "variantSetId" + ], + "request": { + "$ref": "VariantSet" + }, + "response": { + "$ref": "VariantSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + } + } + }, + "callsets": { + "methods": { + "search": { + "id": "genomics.callsets.search", + "path": "v1/callsets/search", + "httpMethod": "POST", + "description": "Gets a list of call sets matching the criteria. Implements [GlobalAllianceApi.searchCallSets](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchCallSets).", + "request": { + "$ref": "SearchCallSetsRequest" + }, + "response": { + "$ref": "SearchCallSetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + }, + "create": { + "id": "genomics.callsets.create", + "path": "v1/callsets", + "httpMethod": "POST", + "description": "Creates a new call set.", + "request": { + "$ref": "CallSet" + }, + "response": { + "$ref": "CallSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "patch": { + "id": "genomics.callsets.patch", + "path": "v1/callsets/{callSetId}", + "httpMethod": "PATCH", + "description": "Updates a call set. This method supports patch semantics.", + "parameters": { + "callSetId": { + "type": "string", + "description": "The ID of the call set to be updated.", + "required": true, + "location": "path" + }, + "updateMask": { + "type": "string", + "description": "An optional mask specifying which fields to update. At this time, the only mutable field is [name][google.genomics.v1.CallSet.name]. The only acceptable value is \"name\". If unspecified, all mutable fields will be updated.", + "location": "query" + } + }, + "parameterOrder": [ + "callSetId" + ], + "request": { + "$ref": "CallSet" + }, + "response": { + "$ref": "CallSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "delete": { + "id": "genomics.callsets.delete", + "path": "v1/callsets/{callSetId}", + "httpMethod": "DELETE", + "description": "Deletes a call set.", + "parameters": { + "callSetId": { + "type": "string", + "description": "The ID of the call set to be deleted.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "callSetId" + ], + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics" + ] + }, + "get": { + "id": "genomics.callsets.get", + "path": "v1/callsets/{callSetId}", + "httpMethod": "GET", + "description": "Gets a call set by ID.", + "parameters": { + "callSetId": { + "type": "string", + "description": "The ID of the call set.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "callSetId" + ], + "response": { + "$ref": "CallSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/genomics", + "https://www.googleapis.com/auth/genomics.readonly" + ] + } + } + } } } diff --git a/genomics/v1/genomics-gen.go b/genomics/v1/genomics-gen.go index 32ed31ab5fb..5183ee726db 100644 --- a/genomics/v1/genomics-gen.go +++ b/genomics/v1/genomics-gen.go @@ -39,11 +39,38 @@ const apiName = "genomics" const apiVersion = "v1" const basePath = "https://genomics.googleapis.com/" +// OAuth2 scopes used by this API. +const ( + // View and manage your data in Google BigQuery + BigqueryScope = "https://www.googleapis.com/auth/bigquery" + + // View and manage your data across Google Cloud Platform services + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" + + // Manage your data in Google Cloud Storage + DevstorageReadWriteScope = "https://www.googleapis.com/auth/devstorage.read_write" + + // View and manage Genomics data + GenomicsScope = "https://www.googleapis.com/auth/genomics" + + // View Genomics data + GenomicsReadonlyScope = "https://www.googleapis.com/auth/genomics.readonly" +) + func New(client *http.Client) (*Service, error) { if client == nil { return nil, errors.New("client is nil") } s := &Service{client: client, BasePath: basePath} + s.Callsets = NewCallsetsService(s) + s.Datasets = NewDatasetsService(s) + s.Operations = NewOperationsService(s) + s.Readgroupsets = NewReadgroupsetsService(s) + s.Reads = NewReadsService(s) + s.References = NewReferencesService(s) + s.Referencesets = NewReferencesetsService(s) + s.Variants = NewVariantsService(s) + s.Variantsets = NewVariantsetsService(s) return s, nil } @@ -51,6 +78,24 @@ type Service struct { client *http.Client BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment + + Callsets *CallsetsService + + Datasets *DatasetsService + + Operations *OperationsService + + Readgroupsets *ReadgroupsetsService + + Reads *ReadsService + + References *ReferencesService + + Referencesets *ReferencesetsService + + Variants *VariantsService + + Variantsets *VariantsetsService } func (s *Service) userAgent() string { @@ -59,3 +104,4819 @@ func (s *Service) userAgent() string { } return googleapi.UserAgent + " " + s.UserAgent } + +func NewCallsetsService(s *Service) *CallsetsService { + rs := &CallsetsService{s: s} + return rs +} + +type CallsetsService struct { + s *Service +} + +func NewDatasetsService(s *Service) *DatasetsService { + rs := &DatasetsService{s: s} + return rs +} + +type DatasetsService struct { + s *Service +} + +func NewOperationsService(s *Service) *OperationsService { + rs := &OperationsService{s: s} + return rs +} + +type OperationsService struct { + s *Service +} + +func NewReadgroupsetsService(s *Service) *ReadgroupsetsService { + rs := &ReadgroupsetsService{s: s} + rs.Coveragebuckets = NewReadgroupsetsCoveragebucketsService(s) + return rs +} + +type ReadgroupsetsService struct { + s *Service + + Coveragebuckets *ReadgroupsetsCoveragebucketsService +} + +func NewReadgroupsetsCoveragebucketsService(s *Service) *ReadgroupsetsCoveragebucketsService { + rs := &ReadgroupsetsCoveragebucketsService{s: s} + return rs +} + +type ReadgroupsetsCoveragebucketsService struct { + s *Service +} + +func NewReadsService(s *Service) *ReadsService { + rs := &ReadsService{s: s} + return rs +} + +type ReadsService struct { + s *Service +} + +func NewReferencesService(s *Service) *ReferencesService { + rs := &ReferencesService{s: s} + rs.Bases = NewReferencesBasesService(s) + return rs +} + +type ReferencesService struct { + s *Service + + Bases *ReferencesBasesService +} + +func NewReferencesBasesService(s *Service) *ReferencesBasesService { + rs := &ReferencesBasesService{s: s} + return rs +} + +type ReferencesBasesService struct { + s *Service +} + +func NewReferencesetsService(s *Service) *ReferencesetsService { + rs := &ReferencesetsService{s: s} + return rs +} + +type ReferencesetsService struct { + s *Service +} + +func NewVariantsService(s *Service) *VariantsService { + rs := &VariantsService{s: s} + return rs +} + +type VariantsService struct { + s *Service +} + +func NewVariantsetsService(s *Service) *VariantsetsService { + rs := &VariantsetsService{s: s} + return rs +} + +type VariantsetsService struct { + s *Service +} + +type CallSet struct { + // Created: The date this call set was created in milliseconds from the + // epoch. + Created int64 `json:"created,omitempty,string"` + + // Id: The Google generated ID of the call set, immutable. + Id string `json:"id,omitempty"` + + // Info: A map of additional call set information. This must be of the + // form map (string key mapping to a list of string values). + Info *CallSetInfo `json:"info,omitempty"` + + // Name: The call set name. + Name string `json:"name,omitempty"` + + // SampleId: The sample ID this call set corresponds to. + SampleId string `json:"sampleId,omitempty"` + + // VariantSetIds: The IDs of the variant sets this call set belongs to. + VariantSetIds []string `json:"variantSetIds,omitempty"` +} + +type CallSetInfo struct { +} + +type CancelOperationRequest struct { +} + +type CigarUnit struct { + // Possible values: + // "OPERATION_UNSPECIFIED" + // "ALIGNMENT_MATCH" + // "INSERT" + // "DELETE" + // "SKIP" + // "CLIP_SOFT" + // "CLIP_HARD" + // "PAD" + // "SEQUENCE_MATCH" + // "SEQUENCE_MISMATCH" + Operation string `json:"operation,omitempty"` + + // OperationLength: The number of genomic bases that the operation runs + // for. Required. + OperationLength int64 `json:"operationLength,omitempty,string"` + + // ReferenceSequence: `referenceSequence` is only used at mismatches + // (`SEQUENCE_MISMATCH`) and deletions (`DELETE`). Filling this field + // replaces SAM's MD tag. If the relevant information is not available, + // this field is unset. + ReferenceSequence string `json:"referenceSequence,omitempty"` +} + +type CoverageBucket struct { + // MeanCoverage: The average number of reads which are aligned to each + // individual reference base in this bucket. + MeanCoverage float64 `json:"meanCoverage,omitempty"` + + // Range: The genomic coordinate range spanned by this bucket. + Range *Range `json:"range,omitempty"` +} + +type Dataset struct { + // CreateTime: The time this dataset was created, in seconds from the + // epoch. + CreateTime string `json:"createTime,omitempty"` + + // Id: The server-assigned dataset ID, immutable. + Id string `json:"id,omitempty"` + + // Name: The dataset name. + Name string `json:"name,omitempty"` + + // ProjectId: The Google Developers Console project ID that this dataset + // belongs to. + ProjectId string `json:"projectId,omitempty"` +} + +type Empty struct { +} + +type Experiment struct { + // InstrumentModel: The instrument model used as part of this + // experiment. This maps to sequencing technology in BAM. + InstrumentModel string `json:"instrumentModel,omitempty"` + + // LibraryId: The library used as part of this experiment. Note: This is + // not an actual ID within this repository, but rather an identifier for + // a library which may be meaningful to some external system. + LibraryId string `json:"libraryId,omitempty"` + + // PlatformUnit: The platform unit used as part of this experiment e.g. + // flowcell-barcode.lane for Illumina or slide for SOLiD. Corresponds to + // the @RG PU field in the SAM spec. + PlatformUnit string `json:"platformUnit,omitempty"` + + // SequencingCenter: The sequencing center used as part of this + // experiment. + SequencingCenter string `json:"sequencingCenter,omitempty"` +} + +type ExportReadGroupSetRequest struct { + // ExportUri: Required. A Google Cloud Storage URI for the exported BAM + // file. The currently authenticated user must have write access to the + // new file. An error will be returned if the URI already contains data. + ExportUri string `json:"exportUri,omitempty"` + + // ProjectId: Required. The Google Developers Console project ID that + // owns this export. + ProjectId string `json:"projectId,omitempty"` + + // ReferenceNames: The reference names to export. If this is not + // specified, all reference sequences, including unmapped reads, are + // exported. Use `*` to export only unmapped reads. + ReferenceNames []string `json:"referenceNames,omitempty"` +} + +type ExportVariantSetRequest struct { + // BigqueryDataset: Required. The BigQuery dataset to export data to. + // This dataset must already exist. Note that this is distinct from the + // Genomics concept of "dataset". + BigqueryDataset string `json:"bigqueryDataset,omitempty"` + + // BigqueryTable: Required. The BigQuery table to export data to. If the + // table doesn't exist, it will be created. If it already exists, it + // will be overwritten. + BigqueryTable string `json:"bigqueryTable,omitempty"` + + // CallSetIds: If provided, only variant call information from the + // specified call sets will be exported. By default all variant calls + // are exported. + CallSetIds []string `json:"callSetIds,omitempty"` + + // Format: The format for the exported data. + // + // Possible values: + // "FORMAT_UNSPECIFIED" + // "FORMAT_BIGQUERY" + Format string `json:"format,omitempty"` + + // ProjectId: Required. The Google Cloud project ID that owns the + // destination BigQuery dataset. The caller must have WRITE access to + // this project. This project will also own the resulting export job. + ProjectId string `json:"projectId,omitempty"` +} + +type ImportReadGroupSetsRequest struct { + // DatasetId: Required. The ID of the dataset these read group sets will + // belong to. The caller must have WRITE permissions to this dataset. + DatasetId string `json:"datasetId,omitempty"` + + // PartitionStrategy: The partition strategy describes how read groups + // are partitioned into read group sets. + // + // Possible values: + // "PARTITION_STRATEGY_UNSPECIFIED" + // "PER_FILE_PER_SAMPLE" + // "MERGE_ALL" + PartitionStrategy string `json:"partitionStrategy,omitempty"` + + // ReferenceSetId: The reference set to which the imported read group + // sets are aligned to, if any. The reference names of this reference + // set must be a superset of those found in the imported file headers. + // If no reference set id is provided, a best effort is made to + // associate with a matching reference set. + ReferenceSetId string `json:"referenceSetId,omitempty"` + + // SourceUris: A list of URIs pointing at BAM files in Google Cloud + // Storage. + SourceUris []string `json:"sourceUris,omitempty"` +} + +type ImportVariantsRequest struct { + // Format: The format of the variant data being imported. If + // unspecified, defaults to to `VCF`. + // + // Possible values: + // "FORMAT_UNSPECIFIED" + // "FORMAT_VCF" + // "FORMAT_COMPLETE_GENOMICS" + Format string `json:"format,omitempty"` + + // NormalizeReferenceNames: Convert reference names to the canonical + // representation. hg19 haploytypes (those reference names containing + // "_hap") are not modified in any way. All other reference names are + // modified according to the following rules: The reference name is + // capitalized. The "chr" prefix is dropped for all autosomes and sex + // chromsomes. For example "chr17" becomes "17" and "chrX" becomes "X". + // All mitochondrial chromosomes ("chrM", "chrMT", etc) become "MT". + NormalizeReferenceNames bool `json:"normalizeReferenceNames,omitempty"` + + // SourceUris: A list of URIs referencing variant files in Google Cloud + // Storage. URIs can include wildcards [as described + // here](https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNa + // mes). Note that recursive wildcards ('**') are not supported. + SourceUris []string `json:"sourceUris,omitempty"` + + // VariantSetId: Required. The variant set to which variant data should + // be imported. + VariantSetId string `json:"variantSetId,omitempty"` +} + +type LinearAlignment struct { + // Cigar: Represents the local alignment of this sequence (alignment + // matches, indels, etc) against the reference. + Cigar []*CigarUnit `json:"cigar,omitempty"` + + // MappingQuality: The mapping quality of this alignment. Represents how + // likely the read maps to this position as opposed to other locations. + MappingQuality int64 `json:"mappingQuality,omitempty"` + + // Position: The position of this alignment. + Position *Position `json:"position,omitempty"` +} + +type ListBasesResponse struct { + // NextPageToken: The continuation token, which is used to page through + // large result sets. Provide this value in a subsequent request to + // return the next page of results. This field will be empty if there + // aren't any additional results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Offset: The offset position (0-based) of the given `sequence` from + // the start of this `Reference`. This value will differ for each page + // in a paginated request. + Offset int64 `json:"offset,omitempty,string"` + + // Sequence: A substring of the bases that make up this reference. + Sequence string `json:"sequence,omitempty"` +} + +type ListCoverageBucketsResponse struct { + // BucketWidth: The length of each coverage bucket in base pairs. Note + // that buckets at the end of a reference sequence may be shorter. This + // value is omitted if the bucket width is infinity (the default + // behaviour, with no range or `targetBucketWidth`). + BucketWidth int64 `json:"bucketWidth,omitempty,string"` + + // CoverageBuckets: The coverage buckets. The list of buckets is sparse; + // a bucket with 0 overlapping reads is not returned. A bucket never + // crosses more than one reference sequence. Each bucket has width + // `bucketWidth`, unless its end is the end of the reference sequence. + CoverageBuckets []*CoverageBucket `json:"coverageBuckets,omitempty"` + + // NextPageToken: The continuation token, which is used to page through + // large result sets. Provide this value in a subsequent request to + // return the next page of results. This field will be empty if there + // aren't any additional results. + NextPageToken string `json:"nextPageToken,omitempty"` +} + +type ListDatasetsResponse struct { + // Datasets: The list of matching Datasets. + Datasets []*Dataset `json:"datasets,omitempty"` + + // NextPageToken: The continuation token, which is used to page through + // large result sets. Provide this value in a subsequent request to + // return the next page of results. This field will be empty if there + // aren't any additional results. + NextPageToken string `json:"nextPageToken,omitempty"` +} + +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that match the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` +} + +type MergeVariantsRequest struct { + // VariantSetId: The destination variant set. + VariantSetId string `json:"variantSetId,omitempty"` + + // Variants: The variants to be merged with existing variants. + Variants []*Variant `json:"variants,omitempty"` +} + +type Operation struct { + // Done: If the value is false, it means the operation is still in + // progress. If true, the operation is completed and the `result` is + // available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure. + Error *Status `json:"error,omitempty"` + + // Metadata: An + // [OperationMetadata][google.genomics.v1.OperationMetadata] object. + // This will always be returned with the + // [Operation][google.longrunning.Operation]. + Metadata OperationMetadata `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. For example: + // `operations/CJHU7Oi_ChDrveSpBRjfuL-qzoWAgEw` + Name string `json:"name,omitempty"` + + // Response: If importing + // [ReadGroupSets][google.genomics.v1.ReadGroupSet], an + // [ImportReadGroupSetsResponse][google.genomics.v1.ImportReadGroupSetsRe + // sponse] is returned. If importing + // [Variants][google.genomics.v1.Variant], an + // [ImportVariantsResponse][google.genomics.v1.ImportVariantsResponse] + // is returned. For exports, an empty response is returned. + Response OperationResponse `json:"response,omitempty"` +} + +type OperationMetadata interface{} + +type OperationResponse interface{} + +type Position struct { + // Position: The 0-based offset from the start of the forward strand for + // that reference. + Position int64 `json:"position,omitempty,string"` + + // ReferenceName: The name of the reference in whatever reference set is + // being used. + ReferenceName string `json:"referenceName,omitempty"` + + // ReverseStrand: Whether this position is on the reverse strand, as + // opposed to the forward strand. + ReverseStrand bool `json:"reverseStrand,omitempty"` +} + +type Program struct { + // CommandLine: The command line used to run this program. + CommandLine string `json:"commandLine,omitempty"` + + // Id: The user specified locally unique ID of the program. Used along + // with `prevProgramId` to define an ordering between programs. + Id string `json:"id,omitempty"` + + // Name: The name of the program. + Name string `json:"name,omitempty"` + + // PrevProgramId: The ID of the program run before this one. + PrevProgramId string `json:"prevProgramId,omitempty"` + + // Version: The version of the program run. + Version string `json:"version,omitempty"` +} + +type Range struct { + // End: The end position of the range on the reference, 0-based + // exclusive. + End int64 `json:"end,omitempty,string"` + + // ReferenceName: The reference sequence name, for example `chr1`, `1`, + // or `chrX`. + ReferenceName string `json:"referenceName,omitempty"` + + // Start: The start position of the range on the reference, 0-based + // inclusive. + Start int64 `json:"start,omitempty,string"` +} + +type Read struct { + // AlignedQuality: The quality of the read sequence contained in this + // alignment record. `alignedSequence` and `alignedQuality` may be + // shorter than the full read sequence and quality. This will occur if + // the alignment is part of a chimeric alignment, or if the read was + // trimmed. When this occurs, the CIGAR for this read will begin/end + // with a hard clip operator that will indicate the length of the + // excised sequence. + AlignedQuality []int64 `json:"alignedQuality,omitempty"` + + // AlignedSequence: The bases of the read sequence contained in this + // alignment record, *without CIGAR operations applied*. + // `alignedSequence` and `alignedQuality` may be shorter than the full + // read sequence and quality. This will occur if the alignment is part + // of a chimeric alignment, or if the read was trimmed. When this + // occurs, the CIGAR for this read will begin/end with a hard clip + // operator that will indicate the length of the excised sequence. + AlignedSequence string `json:"alignedSequence,omitempty"` + + // Alignment: The linear alignment for this alignment record. This field + // will be null if the read is unmapped. + Alignment *LinearAlignment `json:"alignment,omitempty"` + + // DuplicateFragment: The fragment is a PCR or optical duplicate (SAM + // flag 0x400) + DuplicateFragment bool `json:"duplicateFragment,omitempty"` + + // FailedVendorQualityChecks: SAM flag 0x200 + FailedVendorQualityChecks bool `json:"failedVendorQualityChecks,omitempty"` + + // FragmentLength: The observed length of the fragment, equivalent to + // TLEN in SAM. + FragmentLength int64 `json:"fragmentLength,omitempty"` + + // FragmentName: The fragment name. Equivalent to QNAME (query template + // name) in SAM. + FragmentName string `json:"fragmentName,omitempty"` + + // Id: The unique ID for this read. This is a generated unique ID, not + // to be confused with fragmentName. + Id string `json:"id,omitempty"` + + // Info: A map of additional read alignment information. This must be of + // the form map (string key mapping to a list of string values). + Info *ReadInfo `json:"info,omitempty"` + + // NextMatePosition: The mapping of the primary alignment of the + // `(readNumber+1)%numberReads` read in the fragment. It replaces mate + // position and mate strand in SAM. + NextMatePosition *Position `json:"nextMatePosition,omitempty"` + + // NumberReads: The number of reads in the fragment (extension to SAM + // flag 0x1). + NumberReads int64 `json:"numberReads,omitempty"` + + // ProperPlacement: The orientation and the distance between reads from + // the fragment are consistent with the sequencing protocol (SAM flag + // 0x2) + ProperPlacement bool `json:"properPlacement,omitempty"` + + // ReadGroupId: The ID of the read group this read belongs to. (Every + // read must belong to exactly one read group.) + ReadGroupId string `json:"readGroupId,omitempty"` + + // ReadGroupSetId: The ID of the read group set this read belongs to. + // (Every read must belong to exactly one read group set.) + ReadGroupSetId string `json:"readGroupSetId,omitempty"` + + // ReadNumber: The read number in sequencing. 0-based and less than + // numberReads. This field replaces SAM flag 0x40 and 0x80. + ReadNumber int64 `json:"readNumber,omitempty"` + + // SecondaryAlignment: Whether this alignment is secondary. Equivalent + // to SAM flag 0x100. A secondary alignment represents an alternative to + // the primary alignment for this read. Aligners may return secondary + // alignments if a read can map ambiguously to multiple coordinates in + // the genome. By convention, each read has one and only one alignment + // where both `secondaryAlignment` and `supplementaryAlignment` are + // false. + SecondaryAlignment bool `json:"secondaryAlignment,omitempty"` + + // SupplementaryAlignment: Whether this alignment is supplementary. + // Equivalent to SAM flag 0x800. Supplementary alignments are used in + // the representation of a chimeric alignment. In a chimeric alignment, + // a read is split into multiple linear alignments that map to different + // reference contigs. The first linear alignment in the read will be + // designated as the representative alignment; the remaining linear + // alignments will be designated as supplementary alignments. These + // alignments may have different mapping quality scores. In each linear + // alignment in a chimeric alignment, the read will be hard clipped. The + // `alignedSequence` and `alignedQuality` fields in the alignment record + // will only represent the bases for its respective linear alignment. + SupplementaryAlignment bool `json:"supplementaryAlignment,omitempty"` +} + +type ReadInfo struct { +} + +type ReadGroup struct { + // DatasetId: The ID of the dataset this read group belongs to. + DatasetId string `json:"datasetId,omitempty"` + + // Description: A free-form text description of this read group. + Description string `json:"description,omitempty"` + + // Experiment: The experiment used to generate this read group. + Experiment *Experiment `json:"experiment,omitempty"` + + // Id: The generated unique read group ID. Note: This is different than + // the @RG ID field in the SAM spec. For that value, see the `name` + // field. + Id string `json:"id,omitempty"` + + // Info: A map of additional read group information. This must be of the + // form map (string key mapping to a list of string values). + Info *ReadGroupInfo `json:"info,omitempty"` + + // Name: The read group name. This corresponds to the @RG ID field in + // the SAM spec. + Name string `json:"name,omitempty"` + + // PredictedInsertSize: The predicted insert size of this read group. + // The insert size is the length the sequenced DNA fragment from + // end-to-end, not including the adapters. + PredictedInsertSize int64 `json:"predictedInsertSize,omitempty"` + + // Programs: The programs used to generate this read group. Programs are + // always identical for all read groups within a read group set. For + // this reason, only the first read group in a returned set will have + // this field populated. + Programs []*Program `json:"programs,omitempty"` + + // ReferenceSetId: The reference set the reads in this read group are + // aligned to. Required if there are any read alignments. + ReferenceSetId string `json:"referenceSetId,omitempty"` + + // SampleId: The sample this read group's data was generated from. Note: + // This is not an actual ID within this repository, but rather an + // identifier for a sample which may be meaningful to some external + // system. + SampleId string `json:"sampleId,omitempty"` +} + +type ReadGroupInfo struct { +} + +type ReadGroupSet struct { + // DatasetId: The dataset ID. + DatasetId string `json:"datasetId,omitempty"` + + // Filename: The filename of the original source file for this read + // group set, if any. + Filename string `json:"filename,omitempty"` + + // Id: The read group set ID. + Id string `json:"id,omitempty"` + + // Info: A map of additional read group set information. + Info *ReadGroupSetInfo `json:"info,omitempty"` + + // Name: The read group set name. By default this will be initialized to + // the sample name of the sequenced data contained in this set. + Name string `json:"name,omitempty"` + + // ReadGroups: The read groups in this set. There are typically 1-10 + // read groups in a read group set. + ReadGroups []*ReadGroup `json:"readGroups,omitempty"` + + // ReferenceSetId: The reference set the reads in this read group set + // are aligned to. + ReferenceSetId string `json:"referenceSetId,omitempty"` +} + +type ReadGroupSetInfo struct { +} + +type Reference struct { + // Id: The Google generated immutable ID of the reference. + Id string `json:"id,omitempty"` + + // Length: The length of this reference's sequence. + Length int64 `json:"length,omitempty,string"` + + // Md5checksum: MD5 of the upper-case sequence excluding all whitespace + // characters (this is equivalent to SQ:M5 in SAM). This value is + // represented in lower case hexadecimal format. + Md5checksum string `json:"md5checksum,omitempty"` + + // Name: The name of this reference, for example `22`. + Name string `json:"name,omitempty"` + + // NcbiTaxonId: ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. + // 9606->human) if not specified by the containing reference set. + NcbiTaxonId int64 `json:"ncbiTaxonId,omitempty"` + + // SourceAccessions: All known corresponding accession IDs in INSDC + // (GenBank/ENA/DDBJ) ideally with a version number, for example + // `GCF_000001405.26`. + SourceAccessions []string `json:"sourceAccessions,omitempty"` + + // SourceUri: The URI from which the sequence was obtained. Specifies a + // FASTA format file/string with one name, sequence pair. + SourceUri string `json:"sourceUri,omitempty"` +} + +type ReferenceBound struct { + // ReferenceName: The reference the bound is associate with. + ReferenceName string `json:"referenceName,omitempty"` + + // UpperBound: An upper bound (inclusive) on the starting coordinate of + // any variant in the reference sequence. + UpperBound int64 `json:"upperBound,omitempty,string"` +} + +type ReferenceSet struct { + // AssemblyId: Public id of this reference set, such as `GRCh37`. + AssemblyId string `json:"assemblyId,omitempty"` + + // Description: Free text description of this reference set. + Description string `json:"description,omitempty"` + + // Id: The Google generated immutable ID of the reference set. + Id string `json:"id,omitempty"` + + // Md5checksum: Order-independent MD5 checksum which identifies this + // reference set. The checksum is computed by sorting all lower case + // hexidecimal string `reference.md5checksum` (for all reference in this + // set) in ascending lexicographic order, concatenating, and taking the + // MD5 of that value. The resulting value is represented in lower case + // hexadecimal format. + Md5checksum string `json:"md5checksum,omitempty"` + + // NcbiTaxonId: ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. + // 9606->human) indicating the species which this assembly is intended + // to model. Note that contained references may specify a different + // `ncbiTaxonId`, as assemblies may contain reference sequences which do + // not belong to the modeled species, e.g. EBV in a human reference + // genome. + NcbiTaxonId int64 `json:"ncbiTaxonId,omitempty"` + + // ReferenceIds: The IDs of the reference objects that are part of this + // set. `Reference.md5checksum` must be unique within this set. + ReferenceIds []string `json:"referenceIds,omitempty"` + + // SourceAccessions: All known corresponding accession IDs in INSDC + // (GenBank/ENA/DDBJ) ideally with a version number, for example + // `NC_000001.11`. + SourceAccessions []string `json:"sourceAccessions,omitempty"` + + // SourceUri: The URI from which the references were obtained. + SourceUri string `json:"sourceUri,omitempty"` +} + +type SearchCallSetsRequest struct { + // Name: Only return call sets for which a substring of the name matches + // this string. + Name string `json:"name,omitempty"` + + // PageSize: The maximum number of call sets to return. If unspecified, + // defaults to 1000. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: The continuation token, which is used to page through + // large result sets. To get the next page of results, set this + // parameter to the value of `nextPageToken` from the previous response. + PageToken string `json:"pageToken,omitempty"` + + // VariantSetIds: Restrict the query to call sets within the given + // variant sets. At least one ID must be provided. + VariantSetIds []string `json:"variantSetIds,omitempty"` +} + +type SearchCallSetsResponse struct { + // CallSets: The list of matching call sets. + CallSets []*CallSet `json:"callSets,omitempty"` + + // NextPageToken: The continuation token, which is used to page through + // large result sets. Provide this value in a subsequent request to + // return the next page of results. This field will be empty if there + // aren't any additional results. + NextPageToken string `json:"nextPageToken,omitempty"` +} + +type SearchReadGroupSetsRequest struct { + // DatasetIds: Restricts this query to read group sets within the given + // datasets. At least one ID must be provided. + DatasetIds []string `json:"datasetIds,omitempty"` + + // Name: Only return read group sets for which a substring of the name + // matches this string. + Name string `json:"name,omitempty"` + + // PageSize: Specifies number of results to return in a single page. If + // unspecified, it will default to 256. The maximum value is 1024. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: The continuation token, which is used to page through + // large result sets. To get the next page of results, set this + // parameter to the value of `nextPageToken` from the previous response. + PageToken string `json:"pageToken,omitempty"` +} + +type SearchReadGroupSetsResponse struct { + // NextPageToken: The continuation token, which is used to page through + // large result sets. Provide this value in a subsequent request to + // return the next page of results. This field will be empty if there + // aren't any additional results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ReadGroupSets: The list of matching read group sets. + ReadGroupSets []*ReadGroupSet `json:"readGroupSets,omitempty"` +} + +type SearchReadsRequest struct { + // End: The end position of the range on the reference, 0-based + // exclusive. If specified, `referenceName` must also be specified. + End int64 `json:"end,omitempty,string"` + + // PageSize: Specifies number of results to return in a single page. If + // unspecified, it will default to 256. The maximum value is 2048. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: The continuation token, which is used to page through + // large result sets. To get the next page of results, set this + // parameter to the value of `nextPageToken` from the previous response. + PageToken string `json:"pageToken,omitempty"` + + // ReadGroupIds: The IDs of the read groups within which to search for + // reads. All specified read groups must belong to the same read group + // sets. Must specify one of `readGroupSetIds` or `readGroupIds`. + ReadGroupIds []string `json:"readGroupIds,omitempty"` + + // ReadGroupSetIds: The IDs of the read groups sets within which to + // search for reads. All specified read group sets must be aligned + // against a common set of reference sequences; this defines the genomic + // coordinates for the query. Must specify one of `readGroupSetIds` or + // `readGroupIds`. + ReadGroupSetIds []string `json:"readGroupSetIds,omitempty"` + + // ReferenceName: The reference sequence name, for example `chr1`, `1`, + // or `chrX`. If set to *, only unmapped reads are returned. + ReferenceName string `json:"referenceName,omitempty"` + + // Start: The start position of the range on the reference, 0-based + // inclusive. If specified, `referenceName` must also be specified. + Start int64 `json:"start,omitempty,string"` +} + +type SearchReadsResponse struct { + // Alignments: The list of matching alignments sorted by mapped genomic + // coordinate, if any, ascending in position within the same reference. + // Unmapped reads, which have no position, are returned last and are + // further sorted in ascending lexicographic order by fragment name. + Alignments []*Read `json:"alignments,omitempty"` + + // NextPageToken: The continuation token, which is used to page through + // large result sets. Provide this value in a subsequent request to + // return the next page of results. This field will be empty if there + // aren't any additional results. + NextPageToken string `json:"nextPageToken,omitempty"` +} + +type SearchReferenceSetsRequest struct { + // Accessions: If present, return references for which the accession + // matches any of these strings. Best to give a version number, for + // example `GCF_000001405.26`. If only the main accession number is + // given then all records with that main accession will be returned, + // whichever version. Note that different versions will have different + // sequences. + Accessions []string `json:"accessions,omitempty"` + + // AssemblyId: If present, return reference sets for which a substring + // of their `assemblyId` matches this string (case insensitive). + AssemblyId string `json:"assemblyId,omitempty"` + + // Md5checksums: If present, return references for which the + // `md5checksum` matches. See `ReferenceSet.md5checksum` for details. + Md5checksums []string `json:"md5checksums,omitempty"` + + // PageSize: Specifies the maximum number of results to return in a + // single page. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: The continuation token, which is used to page through + // large result sets. To get the next page of results, set this + // parameter to the value of `nextPageToken` from the previous response. + PageToken string `json:"pageToken,omitempty"` +} + +type SearchReferenceSetsResponse struct { + // NextPageToken: The continuation token, which is used to page through + // large result sets. Provide this value in a subsequent request to + // return the next page of results. This field will be empty if there + // aren't any additional results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ReferenceSets: The matching references sets. + ReferenceSets []*ReferenceSet `json:"referenceSets,omitempty"` +} + +type SearchReferencesRequest struct { + // Accessions: If present, return references for which the accession + // matches this string. Best to give a version number, for example + // `GCF_000001405.26`. If only the main accession number is given then + // all records with that main accession will be returned, whichever + // version. Note that different versions will have different sequences. + Accessions []string `json:"accessions,omitempty"` + + // Md5checksums: If present, return references for which the + // `md5checksum` matches. See `Reference.md5checksum` for construction + // details. + Md5checksums []string `json:"md5checksums,omitempty"` + + // PageSize: Specifies the maximum number of results to return in a + // single page. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: The continuation token, which is used to page through + // large result sets. To get the next page of results, set this + // parameter to the value of `nextPageToken` from the previous response. + PageToken string `json:"pageToken,omitempty"` + + // ReferenceSetId: If present, return only references which belong to + // this reference set. + ReferenceSetId string `json:"referenceSetId,omitempty"` +} + +type SearchReferencesResponse struct { + // NextPageToken: The continuation token, which is used to page through + // large result sets. Provide this value in a subsequent request to + // return the next page of results. This field will be empty if there + // aren't any additional results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // References: The matching references. + References []*Reference `json:"references,omitempty"` +} + +type SearchVariantSetsRequest struct { + // DatasetIds: Exactly one dataset ID must be provided here. Only + // variant sets which belong to this dataset will be returned. + DatasetIds []string `json:"datasetIds,omitempty"` + + // PageSize: The maximum number of variant sets to return in a request. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: The continuation token, which is used to page through + // large result sets. To get the next page of results, set this + // parameter to the value of `nextPageToken` from the previous response. + PageToken string `json:"pageToken,omitempty"` +} + +type SearchVariantSetsResponse struct { + // NextPageToken: The continuation token, which is used to page through + // large result sets. Provide this value in a subsequent request to + // return the next page of results. This field will be empty if there + // aren't any additional results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // VariantSets: The variant sets belonging to the requested dataset. + VariantSets []*VariantSet `json:"variantSets,omitempty"` +} + +type SearchVariantsRequest struct { + // CallSetIds: Only return variant calls which belong to call sets with + // these ids. Leaving this blank returns all variant calls. If a variant + // has no calls belonging to any of these call sets, it won't be + // returned at all. Currently, variants with no calls from any call set + // will never be returned. + CallSetIds []string `json:"callSetIds,omitempty"` + + // End: The end of the window, 0-based exclusive. If unspecified or 0, + // defaults to the length of the reference. + End int64 `json:"end,omitempty,string"` + + // MaxCalls: The maximum number of calls to return. However, at least + // one variant will always be returned, even if it has more calls than + // this limit. If unspecified, defaults to 5000. + MaxCalls int64 `json:"maxCalls,omitempty"` + + // PageSize: The maximum number of variants to return. If unspecified, + // defaults to 5000. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: The continuation token, which is used to page through + // large result sets. To get the next page of results, set this + // parameter to the value of `nextPageToken` from the previous response. + PageToken string `json:"pageToken,omitempty"` + + // ReferenceName: Required. Only return variants in this reference + // sequence. + ReferenceName string `json:"referenceName,omitempty"` + + // Start: The beginning of the window (0-based, inclusive) for which + // overlapping variants should be returned. If unspecified, defaults to + // 0. + Start int64 `json:"start,omitempty,string"` + + // VariantName: Only return variants which have exactly this name. + VariantName string `json:"variantName,omitempty"` + + // VariantSetIds: At most one variant set ID must be provided. Only + // variants from this variant set will be returned. If omitted, a call + // set id must be included in the request. + VariantSetIds []string `json:"variantSetIds,omitempty"` +} + +type SearchVariantsResponse struct { + // NextPageToken: The continuation token, which is used to page through + // large result sets. Provide this value in a subsequent request to + // return the next page of results. This field will be empty if there + // aren't any additional results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Variants: The list of matching Variants. + Variants []*Variant `json:"variants,omitempty"` +} + +type Status struct { + // Code: The status code, which should be an enum value of + // [google.rpc.Code][google.rpc.Code]. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There will + // be a common set of message types for APIs to use. + Details []StatusDetails `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the [google.rpc.Status.details][google.rpc.Status.details] field, + // or localized by the client. + Message string `json:"message,omitempty"` +} + +type StatusDetails interface{} + +type UndeleteDatasetRequest struct { +} + +type Variant struct { + // AlternateBases: The bases that appear instead of the reference bases. + AlternateBases []string `json:"alternateBases,omitempty"` + + // Calls: The variant calls for this particular variant. Each one + // represents the determination of genotype with respect to this + // variant. + Calls []*VariantCall `json:"calls,omitempty"` + + // Created: The date this variant was created, in milliseconds from the + // epoch. + Created int64 `json:"created,omitempty,string"` + + // End: The end position (0-based) of this variant. This corresponds to + // the first base after the last base in the reference allele. So, the + // length of the reference allele is (end - start). This is useful for + // variants that don't explicitly give alternate bases, for example + // large deletions. + End int64 `json:"end,omitempty,string"` + + // Filter: A list of filters (normally quality filters) this variant has + // failed. `PASS` indicates this variant has passed all filters. + Filter []string `json:"filter,omitempty"` + + // Id: The Google generated ID of the variant, immutable. + Id string `json:"id,omitempty"` + + // Info: A map of additional variant information. This must be of the + // form map (string key mapping to a list of string values). + Info *VariantInfo `json:"info,omitempty"` + + // Names: Names for the variant, for example a RefSNP ID. + Names []string `json:"names,omitempty"` + + // Quality: A measure of how likely this variant is to be real. A higher + // value is better. + Quality float64 `json:"quality,omitempty"` + + // ReferenceBases: The reference bases for this variant. They start at + // the given position. + ReferenceBases string `json:"referenceBases,omitempty"` + + // ReferenceName: The reference on which this variant occurs. (such as + // `chr20` or `X`) + ReferenceName string `json:"referenceName,omitempty"` + + // Start: The position at which this variant occurs (0-based). This + // corresponds to the first base of the string of reference bases. + Start int64 `json:"start,omitempty,string"` + + // VariantSetId: The ID of the variant set this variant belongs to. + VariantSetId string `json:"variantSetId,omitempty"` +} + +type VariantInfo struct { +} + +type VariantCall struct { + // CallSetId: The ID of the call set this variant call belongs to. + CallSetId string `json:"callSetId,omitempty"` + + // CallSetName: The name of the call set this variant call belongs to. + CallSetName string `json:"callSetName,omitempty"` + + // Genotype: The genotype of this variant call. Each value represents + // either the value of the `referenceBases` field or a 1-based index + // into `alternateBases`. If a variant had a `referenceBases` value of + // `T` and an `alternateBases` value of `["A", "C"]`, and the `genotype` + // was `[2, 1]`, that would mean the call represented the heterozygous + // value `CA` for this variant. If the `genotype` was instead `[0, 1]`, + // the represented value would be `TA`. Ordering of the genotype values + // is important if the `phaseset` is present. If a genotype is not + // called (that is, a `.` is present in the GT string) -1 is returned. + Genotype []int64 `json:"genotype,omitempty"` + + // GenotypeLikelihood: The genotype likelihoods for this variant call. + // Each array entry represents how likely a specific genotype is for + // this call. The value ordering is defined by the GL tag in the VCF + // spec. If Phred-scaled genotype likelihood scores (PL) are available + // and log10(P) genotype likelihood scores (GL) are not, PL scores are + // converted to GL scores. If both are available, PL scores are stored + // in `info`. + GenotypeLikelihood []float64 `json:"genotypeLikelihood,omitempty"` + + // Info: A map of additional variant call information. This must be of + // the form map (string key mapping to a list of string values). + Info *VariantCallInfo `json:"info,omitempty"` + + // Phaseset: If this field is present, this variant call's genotype + // ordering implies the phase of the bases and is consistent with any + // other variant calls in the same reference sequence which have the + // same phaseset value. When importing data from VCF, if the genotype + // data was phased but no phase set was specified this field will be set + // to `*`. + Phaseset string `json:"phaseset,omitempty"` +} + +type VariantCallInfo struct { +} + +type VariantSet struct { + // DatasetId: The dataset to which this variant set belongs. + DatasetId string `json:"datasetId,omitempty"` + + // Id: The Google-generated ID of the variant set. + Id string `json:"id,omitempty"` + + // Metadata: The metadata associated with this variant set. + Metadata []*VariantSetMetadata `json:"metadata,omitempty"` + + // ReferenceBounds: A list of all references used by the variants in a + // variant set with associated coordinate upper bounds for each one. + ReferenceBounds []*ReferenceBound `json:"referenceBounds,omitempty"` +} + +type VariantSetMetadata struct { + // Description: A textual description of this metadata. + Description string `json:"description,omitempty"` + + // Id: User-provided ID field, not enforced by this API. Two or more + // pieces of structured metadata with identical id and key fields are + // considered equivalent. + Id string `json:"id,omitempty"` + + // Info: Remaining structured metadata key-value pairs. This must be of + // the form map (string key mapping to a list of string values). + Info *VariantSetMetadataInfo `json:"info,omitempty"` + + // Key: The top-level key. + Key string `json:"key,omitempty"` + + // Number: The number of values that can be included in a field + // described by this metadata. + Number int64 `json:"number,omitempty"` + + // Type: The type of data. Possible types include: Integer, Float, Flag, + // Character, and String. + // + // Possible values: + // "TYPE_UNSPECIFIED" + // "INTEGER" + // "FLOAT" + // "FLAG" + // "CHARACTER" + // "STRING" + Type string `json:"type,omitempty"` + + // Value: The value field for simple metadata + Value string `json:"value,omitempty"` +} + +type VariantSetMetadataInfo struct { +} + +// method id "genomics.callsets.create": + +type CallsetsCreateCall struct { + s *Service + callset *CallSet + opt_ map[string]interface{} +} + +// Create: Creates a new call set. +func (r *CallsetsService) Create(callset *CallSet) *CallsetsCreateCall { + c := &CallsetsCreateCall{s: r.s, opt_: make(map[string]interface{})} + c.callset = callset + 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 *CallsetsCreateCall) Fields(s ...googleapi.Field) *CallsetsCreateCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *CallsetsCreateCall) Do() (*CallSet, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.callset) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/callsets") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *CallSet + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new call set.", + // "httpMethod": "POST", + // "id": "genomics.callsets.create", + // "path": "v1/callsets", + // "request": { + // "$ref": "CallSet" + // }, + // "response": { + // "$ref": "CallSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.callsets.delete": + +type CallsetsDeleteCall struct { + s *Service + callSetId string + opt_ map[string]interface{} +} + +// Delete: Deletes a call set. +func (r *CallsetsService) Delete(callSetId string) *CallsetsDeleteCall { + c := &CallsetsDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.callSetId = callSetId + 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 *CallsetsDeleteCall) Fields(s ...googleapi.Field) *CallsetsDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *CallsetsDeleteCall) Do() (*Empty, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/callsets/{callSetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "callSetId": c.callSetId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Empty + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a call set.", + // "httpMethod": "DELETE", + // "id": "genomics.callsets.delete", + // "parameterOrder": [ + // "callSetId" + // ], + // "parameters": { + // "callSetId": { + // "description": "The ID of the call set to be deleted.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/callsets/{callSetId}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.callsets.get": + +type CallsetsGetCall struct { + s *Service + callSetId string + opt_ map[string]interface{} +} + +// Get: Gets a call set by ID. +func (r *CallsetsService) Get(callSetId string) *CallsetsGetCall { + c := &CallsetsGetCall{s: r.s, opt_: make(map[string]interface{})} + c.callSetId = callSetId + 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 *CallsetsGetCall) Fields(s ...googleapi.Field) *CallsetsGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *CallsetsGetCall) Do() (*CallSet, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/callsets/{callSetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "callSetId": c.callSetId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *CallSet + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a call set by ID.", + // "httpMethod": "GET", + // "id": "genomics.callsets.get", + // "parameterOrder": [ + // "callSetId" + // ], + // "parameters": { + // "callSetId": { + // "description": "The ID of the call set.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/callsets/{callSetId}", + // "response": { + // "$ref": "CallSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.callsets.patch": + +type CallsetsPatchCall struct { + s *Service + callSetId string + callset *CallSet + opt_ map[string]interface{} +} + +// Patch: Updates a call set. This method supports patch semantics. +func (r *CallsetsService) Patch(callSetId string, callset *CallSet) *CallsetsPatchCall { + c := &CallsetsPatchCall{s: r.s, opt_: make(map[string]interface{})} + c.callSetId = callSetId + c.callset = callset + return c +} + +// UpdateMask sets the optional parameter "updateMask": An optional mask +// specifying which fields to update. At this time, the only mutable +// field is [name][google.genomics.v1.CallSet.name]. The only acceptable +// value is "name". If unspecified, all mutable fields will be updated. +func (c *CallsetsPatchCall) UpdateMask(updateMask string) *CallsetsPatchCall { + c.opt_["updateMask"] = updateMask + 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 *CallsetsPatchCall) Fields(s ...googleapi.Field) *CallsetsPatchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *CallsetsPatchCall) Do() (*CallSet, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.callset) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["updateMask"]; ok { + params.Set("updateMask", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/callsets/{callSetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("PATCH", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "callSetId": c.callSetId, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *CallSet + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a call set. This method supports patch semantics.", + // "httpMethod": "PATCH", + // "id": "genomics.callsets.patch", + // "parameterOrder": [ + // "callSetId" + // ], + // "parameters": { + // "callSetId": { + // "description": "The ID of the call set to be updated.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "An optional mask specifying which fields to update. At this time, the only mutable field is [name][google.genomics.v1.CallSet.name]. The only acceptable value is \"name\". If unspecified, all mutable fields will be updated.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/callsets/{callSetId}", + // "request": { + // "$ref": "CallSet" + // }, + // "response": { + // "$ref": "CallSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.callsets.search": + +type CallsetsSearchCall struct { + s *Service + searchcallsetsrequest *SearchCallSetsRequest + opt_ map[string]interface{} +} + +// Search: Gets a list of call sets matching the criteria. Implements +// [GlobalAllianceApi.searchCallSets](http://ga4gh.org/documentation/api/ +// v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchCallSets). +func (r *CallsetsService) Search(searchcallsetsrequest *SearchCallSetsRequest) *CallsetsSearchCall { + c := &CallsetsSearchCall{s: r.s, opt_: make(map[string]interface{})} + c.searchcallsetsrequest = searchcallsetsrequest + 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 *CallsetsSearchCall) Fields(s ...googleapi.Field) *CallsetsSearchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *CallsetsSearchCall) Do() (*SearchCallSetsResponse, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchcallsetsrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/callsets/search") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *SearchCallSetsResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a list of call sets matching the criteria. Implements [GlobalAllianceApi.searchCallSets](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchCallSets).", + // "httpMethod": "POST", + // "id": "genomics.callsets.search", + // "path": "v1/callsets/search", + // "request": { + // "$ref": "SearchCallSetsRequest" + // }, + // "response": { + // "$ref": "SearchCallSetsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.datasets.create": + +type DatasetsCreateCall struct { + s *Service + dataset *Dataset + opt_ map[string]interface{} +} + +// Create: Creates a new dataset. +func (r *DatasetsService) Create(dataset *Dataset) *DatasetsCreateCall { + c := &DatasetsCreateCall{s: r.s, opt_: make(map[string]interface{})} + c.dataset = dataset + 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 *DatasetsCreateCall) Fields(s ...googleapi.Field) *DatasetsCreateCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *DatasetsCreateCall) Do() (*Dataset, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/datasets") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Dataset + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new dataset.", + // "httpMethod": "POST", + // "id": "genomics.datasets.create", + // "path": "v1/datasets", + // "request": { + // "$ref": "Dataset" + // }, + // "response": { + // "$ref": "Dataset" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.datasets.delete": + +type DatasetsDeleteCall struct { + s *Service + datasetId string + opt_ map[string]interface{} +} + +// Delete: Deletes a dataset. +func (r *DatasetsService) Delete(datasetId string) *DatasetsDeleteCall { + c := &DatasetsDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.datasetId = datasetId + 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 *DatasetsDeleteCall) Fields(s ...googleapi.Field) *DatasetsDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *DatasetsDeleteCall) Do() (*Empty, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/datasets/{datasetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "datasetId": c.datasetId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Empty + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a dataset.", + // "httpMethod": "DELETE", + // "id": "genomics.datasets.delete", + // "parameterOrder": [ + // "datasetId" + // ], + // "parameters": { + // "datasetId": { + // "description": "The ID of the dataset to be deleted.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/datasets/{datasetId}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.datasets.get": + +type DatasetsGetCall struct { + s *Service + datasetId string + opt_ map[string]interface{} +} + +// Get: Gets a dataset by ID. +func (r *DatasetsService) Get(datasetId string) *DatasetsGetCall { + c := &DatasetsGetCall{s: r.s, opt_: make(map[string]interface{})} + c.datasetId = datasetId + 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 *DatasetsGetCall) Fields(s ...googleapi.Field) *DatasetsGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *DatasetsGetCall) Do() (*Dataset, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/datasets/{datasetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "datasetId": c.datasetId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Dataset + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a dataset by ID.", + // "httpMethod": "GET", + // "id": "genomics.datasets.get", + // "parameterOrder": [ + // "datasetId" + // ], + // "parameters": { + // "datasetId": { + // "description": "The ID of the dataset.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/datasets/{datasetId}", + // "response": { + // "$ref": "Dataset" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.datasets.list": + +type DatasetsListCall struct { + s *Service + opt_ map[string]interface{} +} + +// List: Lists datasets within a project. +func (r *DatasetsService) List() *DatasetsListCall { + c := &DatasetsListCall{s: r.s, opt_: make(map[string]interface{})} + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results returned by this request. If unspecified, defaults to 50. +// The maximum value is 1024. +func (c *DatasetsListCall) PageSize(pageSize int64) *DatasetsListCall { + c.opt_["pageSize"] = pageSize + return c +} + +// PageToken sets the optional parameter "pageToken": The continuation +// token, which is used to page through large result sets. To get the +// next page of results, set this parameter to the value of +// `nextPageToken` from the previous response. +func (c *DatasetsListCall) PageToken(pageToken string) *DatasetsListCall { + c.opt_["pageToken"] = pageToken + return c +} + +// ProjectId sets the optional parameter "projectId": Required. The +// project to list datasets for. +func (c *DatasetsListCall) ProjectId(projectId string) *DatasetsListCall { + c.opt_["projectId"] = projectId + 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 *DatasetsListCall) Fields(s ...googleapi.Field) *DatasetsListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *DatasetsListCall) Do() (*ListDatasetsResponse, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["pageSize"]; ok { + params.Set("pageSize", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["projectId"]; ok { + params.Set("projectId", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/datasets") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ListDatasetsResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists datasets within a project.", + // "httpMethod": "GET", + // "id": "genomics.datasets.list", + // "parameters": { + // "pageSize": { + // "description": "The maximum number of results returned by this request. If unspecified, defaults to 50. The maximum value is 1024.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response.", + // "location": "query", + // "type": "string" + // }, + // "projectId": { + // "description": "Required. The project to list datasets for.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/datasets", + // "response": { + // "$ref": "ListDatasetsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.datasets.patch": + +type DatasetsPatchCall struct { + s *Service + datasetId string + dataset *Dataset + opt_ map[string]interface{} +} + +// Patch: Updates a dataset. This method supports patch semantics. +func (r *DatasetsService) Patch(datasetId string, dataset *Dataset) *DatasetsPatchCall { + c := &DatasetsPatchCall{s: r.s, opt_: make(map[string]interface{})} + c.datasetId = datasetId + c.dataset = dataset + return c +} + +// UpdateMask sets the optional parameter "updateMask": An optional mask +// specifying which fields to update. At this time, the only mutable +// field is [name][google.genomics.v1.Dataset.name]. The only acceptable +// value is "name". If unspecified, all mutable fields will be updated. +func (c *DatasetsPatchCall) UpdateMask(updateMask string) *DatasetsPatchCall { + c.opt_["updateMask"] = updateMask + 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 *DatasetsPatchCall) Fields(s ...googleapi.Field) *DatasetsPatchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *DatasetsPatchCall) Do() (*Dataset, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["updateMask"]; ok { + params.Set("updateMask", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/datasets/{datasetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("PATCH", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "datasetId": c.datasetId, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Dataset + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a dataset. This method supports patch semantics.", + // "httpMethod": "PATCH", + // "id": "genomics.datasets.patch", + // "parameterOrder": [ + // "datasetId" + // ], + // "parameters": { + // "datasetId": { + // "description": "The ID of the dataset to be updated.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "An optional mask specifying which fields to update. At this time, the only mutable field is [name][google.genomics.v1.Dataset.name]. The only acceptable value is \"name\". If unspecified, all mutable fields will be updated.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/datasets/{datasetId}", + // "request": { + // "$ref": "Dataset" + // }, + // "response": { + // "$ref": "Dataset" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.datasets.undelete": + +type DatasetsUndeleteCall struct { + s *Service + datasetId string + undeletedatasetrequest *UndeleteDatasetRequest + opt_ map[string]interface{} +} + +// Undelete: Undeletes a dataset by restoring a dataset which was +// deleted via this API. This operation is only possible for a week +// after the deletion occurred. +func (r *DatasetsService) Undelete(datasetId string, undeletedatasetrequest *UndeleteDatasetRequest) *DatasetsUndeleteCall { + c := &DatasetsUndeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.datasetId = datasetId + c.undeletedatasetrequest = undeletedatasetrequest + 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 *DatasetsUndeleteCall) Fields(s ...googleapi.Field) *DatasetsUndeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *DatasetsUndeleteCall) Do() (*Dataset, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeletedatasetrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/datasets/{datasetId}:undelete") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "datasetId": c.datasetId, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Dataset + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Undeletes a dataset by restoring a dataset which was deleted via this API. This operation is only possible for a week after the deletion occurred.", + // "httpMethod": "POST", + // "id": "genomics.datasets.undelete", + // "parameterOrder": [ + // "datasetId" + // ], + // "parameters": { + // "datasetId": { + // "description": "The ID of the dataset to be undeleted.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/datasets/{datasetId}:undelete", + // "request": { + // "$ref": "UndeleteDatasetRequest" + // }, + // "response": { + // "$ref": "Dataset" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.operations.cancel": + +type OperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + opt_ map[string]interface{} +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. Clients may use +// [Operations.GetOperation][google.longrunning.Operations.GetOperation] +// or +// [Operations.ListOperations][google.longrunning.Operations.ListOperatio +// ns] to check whether the cancellation succeeded or the operation +// completed despite cancellation. +func (r *OperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OperationsCancelCall { + c := &OperationsCancelCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + c.canceloperationrequest = canceloperationrequest + 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 *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *OperationsCancelCall) Do() (*Empty, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Empty + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients may use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or [Operations.ListOperations][google.longrunning.Operations.ListOperations] to check whether the cancellation succeeded or the operation completed despite cancellation.", + // "httpMethod": "POST", + // "id": "genomics.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^operations/.*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.operations.delete": + +type OperationsDeleteCall struct { + s *Service + name string + opt_ map[string]interface{} +} + +// Delete: This method is not implemented. To cancel an operation, +// please use +// [Operations.CancelOperation][google.longrunning.Operations.CancelOpera +// tion]. +func (r *OperationsService) Delete(name string) *OperationsDeleteCall { + c := &OperationsDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + 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 *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *OperationsDeleteCall) Do() (*Empty, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Empty + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "This method is not implemented. To cancel an operation, please use [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].", + // "httpMethod": "DELETE", + // "id": "genomics.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^operations/.*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.operations.get": + +type OperationsGetCall struct { + s *Service + name string + opt_ map[string]interface{} +} + +// Get: Gets the latest state of a long-running operation. Clients may +// use this method to poll the operation result at intervals as +// recommended by the API service. +func (r *OperationsService) Get(name string) *OperationsGetCall { + c := &OperationsGetCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + 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 *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *OperationsGetCall) Do() (*Operation, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients may use this method to poll the operation result at intervals as recommended by the API service.", + // "httpMethod": "GET", + // "id": "genomics.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^operations/.*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.operations.list": + +type OperationsListCall struct { + s *Service + name string + opt_ map[string]interface{} +} + +// List: Lists operations that match the specified filter in the +// request. +func (r *OperationsService) List(name string) *OperationsListCall { + c := &OperationsListCall{s: r.s, opt_: make(map[string]interface{})} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A string for filtering +// [Operations][google.longrunning.Operation]. The following filter +// fields are supported: * projectId: Required. Corresponds to +// [OperationMetadata.projectId][google.genomics.v1.OperationMetadata.pro +// ject_id]. * createTime: The time this job was created, in seconds +// from the [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use +// `>=` and/or `= 1432140000` * `projectId = my-project AND createTime +// >= 1432140000 AND createTime <= 1432150000 AND status = RUNNING` +func (c *OperationsListCall) Filter(filter string) *OperationsListCall { + c.opt_["filter"] = filter + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If unspecified, defaults to 256. The maximum +// value is 2048. +func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { + c.opt_["pageSize"] = pageSize + return c +} + +// PageToken sets the optional parameter "pageToken": The standard List +// page token. +func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { + c.opt_["pageToken"] = pageToken + 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 *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *OperationsListCall) Do() (*ListOperationsResponse, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["filter"]; ok { + params.Set("filter", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageSize"]; ok { + params.Set("pageSize", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ListOperationsResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request.", + // "httpMethod": "GET", + // "id": "genomics.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A string for filtering [Operations][google.longrunning.Operation]. The following filter fields are supported: * projectId: Required. Corresponds to [OperationMetadata.projectId][google.genomics.v1.OperationMetadata.project_id]. * createTime: The time this job was created, in seconds from the [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `\u003e=` and/or `= 1432140000` * `projectId = my-project AND createTime \u003e= 1432140000 AND createTime \u003c= 1432150000 AND status = RUNNING`", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation collection.", + // "location": "path", + // "pattern": "^operations$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If unspecified, defaults to 256. The maximum value is 2048.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard List page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.readgroupsets.delete": + +type ReadgroupsetsDeleteCall struct { + s *Service + readGroupSetId string + opt_ map[string]interface{} +} + +// Delete: Deletes a read group set. +func (r *ReadgroupsetsService) Delete(readGroupSetId string) *ReadgroupsetsDeleteCall { + c := &ReadgroupsetsDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.readGroupSetId = readGroupSetId + 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 *ReadgroupsetsDeleteCall) Fields(s ...googleapi.Field) *ReadgroupsetsDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReadgroupsetsDeleteCall) Do() (*Empty, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/readgroupsets/{readGroupSetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "readGroupSetId": c.readGroupSetId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Empty + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a read group set.", + // "httpMethod": "DELETE", + // "id": "genomics.readgroupsets.delete", + // "parameterOrder": [ + // "readGroupSetId" + // ], + // "parameters": { + // "readGroupSetId": { + // "description": "The ID of the read group set to be deleted. The caller must have WRITE permissions to the dataset associated with this read group set.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/readgroupsets/{readGroupSetId}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.readgroupsets.export": + +type ReadgroupsetsExportCall struct { + s *Service + readGroupSetId string + exportreadgroupsetrequest *ExportReadGroupSetRequest + opt_ map[string]interface{} +} + +// Export: Exports a read group set to a BAM file in Google Cloud +// Storage. Note that currently there may be some differences between +// exported BAM files and the original BAM file at the time of import. +// In particular, comments in the input file header will not be +// preserved, some custom tags will be converted to strings, and +// original reference sequence order is not necessarily preserved. +func (r *ReadgroupsetsService) Export(readGroupSetId string, exportreadgroupsetrequest *ExportReadGroupSetRequest) *ReadgroupsetsExportCall { + c := &ReadgroupsetsExportCall{s: r.s, opt_: make(map[string]interface{})} + c.readGroupSetId = readGroupSetId + c.exportreadgroupsetrequest = exportreadgroupsetrequest + 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 *ReadgroupsetsExportCall) Fields(s ...googleapi.Field) *ReadgroupsetsExportCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReadgroupsetsExportCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportreadgroupsetrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/readgroupsets/{readGroupSetId}:export") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "readGroupSetId": c.readGroupSetId, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Exports a read group set to a BAM file in Google Cloud Storage. Note that currently there may be some differences between exported BAM files and the original BAM file at the time of import. In particular, comments in the input file header will not be preserved, some custom tags will be converted to strings, and original reference sequence order is not necessarily preserved.", + // "httpMethod": "POST", + // "id": "genomics.readgroupsets.export", + // "parameterOrder": [ + // "readGroupSetId" + // ], + // "parameters": { + // "readGroupSetId": { + // "description": "Required. The ID of the read group set to export.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/readgroupsets/{readGroupSetId}:export", + // "request": { + // "$ref": "ExportReadGroupSetRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/devstorage.read_write", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.readgroupsets.get": + +type ReadgroupsetsGetCall struct { + s *Service + readGroupSetId string + opt_ map[string]interface{} +} + +// Get: Gets a read group set by ID. +func (r *ReadgroupsetsService) Get(readGroupSetId string) *ReadgroupsetsGetCall { + c := &ReadgroupsetsGetCall{s: r.s, opt_: make(map[string]interface{})} + c.readGroupSetId = readGroupSetId + 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 *ReadgroupsetsGetCall) Fields(s ...googleapi.Field) *ReadgroupsetsGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReadgroupsetsGetCall) Do() (*ReadGroupSet, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/readgroupsets/{readGroupSetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "readGroupSetId": c.readGroupSetId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ReadGroupSet + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a read group set by ID.", + // "httpMethod": "GET", + // "id": "genomics.readgroupsets.get", + // "parameterOrder": [ + // "readGroupSetId" + // ], + // "parameters": { + // "readGroupSetId": { + // "description": "The ID of the read group set.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/readgroupsets/{readGroupSetId}", + // "response": { + // "$ref": "ReadGroupSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.readgroupsets.import": + +type ReadgroupsetsImportCall struct { + s *Service + importreadgroupsetsrequest *ImportReadGroupSetsRequest + opt_ map[string]interface{} +} + +// Import: Creates read group sets by asynchronously importing the +// provided information. Note that currently comments in the input file +// header are **not** imported and some custom tags will be converted to +// strings, rather than preserving tag types. The caller must have WRITE +// permissions to the dataset. +func (r *ReadgroupsetsService) Import(importreadgroupsetsrequest *ImportReadGroupSetsRequest) *ReadgroupsetsImportCall { + c := &ReadgroupsetsImportCall{s: r.s, opt_: make(map[string]interface{})} + c.importreadgroupsetsrequest = importreadgroupsetsrequest + 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 *ReadgroupsetsImportCall) Fields(s ...googleapi.Field) *ReadgroupsetsImportCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReadgroupsetsImportCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.importreadgroupsetsrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/readgroupsets:import") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates read group sets by asynchronously importing the provided information. Note that currently comments in the input file header are **not** imported and some custom tags will be converted to strings, rather than preserving tag types. The caller must have WRITE permissions to the dataset.", + // "httpMethod": "POST", + // "id": "genomics.readgroupsets.import", + // "path": "v1/readgroupsets:import", + // "request": { + // "$ref": "ImportReadGroupSetsRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/devstorage.read_write", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.readgroupsets.patch": + +type ReadgroupsetsPatchCall struct { + s *Service + readGroupSetId string + readgroupset *ReadGroupSet + opt_ map[string]interface{} +} + +// Patch: Updates a read group set. This method supports patch +// semantics. +func (r *ReadgroupsetsService) Patch(readGroupSetId string, readgroupset *ReadGroupSet) *ReadgroupsetsPatchCall { + c := &ReadgroupsetsPatchCall{s: r.s, opt_: make(map[string]interface{})} + c.readGroupSetId = readGroupSetId + c.readgroupset = readgroupset + return c +} + +// UpdateMask sets the optional parameter "updateMask": An optional mask +// specifying which fields to update. At this time, mutable fields are +// [referenceSetId][google.genomics.v1.ReadGroupSet.reference_set_id] +// and [name][google.genomics.v1.ReadGroupSet.name]. Acceptable values +// are "referenceSetId" and "name". If unspecified, all mutable fields +// will be updated. +func (c *ReadgroupsetsPatchCall) UpdateMask(updateMask string) *ReadgroupsetsPatchCall { + c.opt_["updateMask"] = updateMask + 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 *ReadgroupsetsPatchCall) Fields(s ...googleapi.Field) *ReadgroupsetsPatchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReadgroupsetsPatchCall) Do() (*ReadGroupSet, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.readgroupset) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["updateMask"]; ok { + params.Set("updateMask", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/readgroupsets/{readGroupSetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("PATCH", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "readGroupSetId": c.readGroupSetId, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ReadGroupSet + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a read group set. This method supports patch semantics.", + // "httpMethod": "PATCH", + // "id": "genomics.readgroupsets.patch", + // "parameterOrder": [ + // "readGroupSetId" + // ], + // "parameters": { + // "readGroupSetId": { + // "description": "The ID of the read group set to be updated. The caller must have WRITE permissions to the dataset associated with this read group set.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "An optional mask specifying which fields to update. At this time, mutable fields are [referenceSetId][google.genomics.v1.ReadGroupSet.reference_set_id] and [name][google.genomics.v1.ReadGroupSet.name]. Acceptable values are \"referenceSetId\" and \"name\". If unspecified, all mutable fields will be updated.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/readgroupsets/{readGroupSetId}", + // "request": { + // "$ref": "ReadGroupSet" + // }, + // "response": { + // "$ref": "ReadGroupSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.readgroupsets.search": + +type ReadgroupsetsSearchCall struct { + s *Service + searchreadgroupsetsrequest *SearchReadGroupSetsRequest + opt_ map[string]interface{} +} + +// Search: Searches for read group sets matching the criteria. +// Implements +// [GlobalAllianceApi.searchReadGroupSets](http://ga4gh.org/documentation +// /api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReadGroupSets). +func (r *ReadgroupsetsService) Search(searchreadgroupsetsrequest *SearchReadGroupSetsRequest) *ReadgroupsetsSearchCall { + c := &ReadgroupsetsSearchCall{s: r.s, opt_: make(map[string]interface{})} + c.searchreadgroupsetsrequest = searchreadgroupsetsrequest + 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 *ReadgroupsetsSearchCall) Fields(s ...googleapi.Field) *ReadgroupsetsSearchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReadgroupsetsSearchCall) Do() (*SearchReadGroupSetsResponse, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchreadgroupsetsrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/readgroupsets/search") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *SearchReadGroupSetsResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Searches for read group sets matching the criteria. Implements [GlobalAllianceApi.searchReadGroupSets](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReadGroupSets).", + // "httpMethod": "POST", + // "id": "genomics.readgroupsets.search", + // "path": "v1/readgroupsets/search", + // "request": { + // "$ref": "SearchReadGroupSetsRequest" + // }, + // "response": { + // "$ref": "SearchReadGroupSetsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.readgroupsets.coveragebuckets.list": + +type ReadgroupsetsCoveragebucketsListCall struct { + s *Service + readGroupSetId string + opt_ map[string]interface{} +} + +// List: Lists fixed width coverage buckets for a read group set, each +// of which correspond to a range of a reference sequence. Each bucket +// summarizes coverage information across its corresponding genomic +// range. Coverage is defined as the number of reads which are aligned +// to a given base in the reference sequence. Coverage buckets are +// available at several precomputed bucket widths, enabling retrieval of +// various coverage 'zoom levels'. The caller must have READ permissions +// for the target read group set. +func (r *ReadgroupsetsCoveragebucketsService) List(readGroupSetId string) *ReadgroupsetsCoveragebucketsListCall { + c := &ReadgroupsetsCoveragebucketsListCall{s: r.s, opt_: make(map[string]interface{})} + c.readGroupSetId = readGroupSetId + return c +} + +// End sets the optional parameter "end": The end position of the range +// on the reference, 0-based exclusive. If specified, `referenceName` +// must also be specified. If unset or 0, defaults to the length of the +// reference. +func (c *ReadgroupsetsCoveragebucketsListCall) End(end int64) *ReadgroupsetsCoveragebucketsListCall { + c.opt_["end"] = end + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return in a single page. If unspecified, defaults to +// 1024. The maximum value is 2048. +func (c *ReadgroupsetsCoveragebucketsListCall) PageSize(pageSize int64) *ReadgroupsetsCoveragebucketsListCall { + c.opt_["pageSize"] = pageSize + return c +} + +// PageToken sets the optional parameter "pageToken": The continuation +// token, which is used to page through large result sets. To get the +// next page of results, set this parameter to the value of +// `nextPageToken` from the previous response. +func (c *ReadgroupsetsCoveragebucketsListCall) PageToken(pageToken string) *ReadgroupsetsCoveragebucketsListCall { + c.opt_["pageToken"] = pageToken + return c +} + +// ReferenceName sets the optional parameter "referenceName": The name +// of the reference to query, within the reference set associated with +// this query. +func (c *ReadgroupsetsCoveragebucketsListCall) ReferenceName(referenceName string) *ReadgroupsetsCoveragebucketsListCall { + c.opt_["referenceName"] = referenceName + return c +} + +// Start sets the optional parameter "start": The start position of the +// range on the reference, 0-based inclusive. If specified, +// `referenceName` must also be specified. Defaults to 0. +func (c *ReadgroupsetsCoveragebucketsListCall) Start(start int64) *ReadgroupsetsCoveragebucketsListCall { + c.opt_["start"] = start + return c +} + +// TargetBucketWidth sets the optional parameter "targetBucketWidth": +// The desired width of each reported coverage bucket in base pairs. +// This will be rounded down to the nearest precomputed bucket width; +// the value of which is returned as `bucketWidth` in the response. +// Defaults to infinity (each bucket spans an entire reference sequence) +// or the length of the target range, if specified. The smallest +// precomputed `bucketWidth` is currently 2048 base pairs; this is +// subject to change. +func (c *ReadgroupsetsCoveragebucketsListCall) TargetBucketWidth(targetBucketWidth int64) *ReadgroupsetsCoveragebucketsListCall { + c.opt_["targetBucketWidth"] = targetBucketWidth + 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 *ReadgroupsetsCoveragebucketsListCall) Fields(s ...googleapi.Field) *ReadgroupsetsCoveragebucketsListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReadgroupsetsCoveragebucketsListCall) Do() (*ListCoverageBucketsResponse, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["end"]; ok { + params.Set("end", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageSize"]; ok { + params.Set("pageSize", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["referenceName"]; ok { + params.Set("referenceName", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["start"]; ok { + params.Set("start", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["targetBucketWidth"]; ok { + params.Set("targetBucketWidth", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/readgroupsets/{readGroupSetId}/coveragebuckets") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "readGroupSetId": c.readGroupSetId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ListCoverageBucketsResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists fixed width coverage buckets for a read group set, each of which correspond to a range of a reference sequence. Each bucket summarizes coverage information across its corresponding genomic range. Coverage is defined as the number of reads which are aligned to a given base in the reference sequence. Coverage buckets are available at several precomputed bucket widths, enabling retrieval of various coverage 'zoom levels'. The caller must have READ permissions for the target read group set.", + // "httpMethod": "GET", + // "id": "genomics.readgroupsets.coveragebuckets.list", + // "parameterOrder": [ + // "readGroupSetId" + // ], + // "parameters": { + // "end": { + // "description": "The end position of the range on the reference, 0-based exclusive. If specified, `referenceName` must also be specified. If unset or 0, defaults to the length of the reference.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return in a single page. If unspecified, defaults to 1024. The maximum value is 2048.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response.", + // "location": "query", + // "type": "string" + // }, + // "readGroupSetId": { + // "description": "Required. The ID of the read group set over which coverage is requested.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "referenceName": { + // "description": "The name of the reference to query, within the reference set associated with this query. Optional.", + // "location": "query", + // "type": "string" + // }, + // "start": { + // "description": "The start position of the range on the reference, 0-based inclusive. If specified, `referenceName` must also be specified. Defaults to 0.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "targetBucketWidth": { + // "description": "The desired width of each reported coverage bucket in base pairs. This will be rounded down to the nearest precomputed bucket width; the value of which is returned as `bucketWidth` in the response. Defaults to infinity (each bucket spans an entire reference sequence) or the length of the target range, if specified. The smallest precomputed `bucketWidth` is currently 2048 base pairs; this is subject to change.", + // "format": "int64", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/readgroupsets/{readGroupSetId}/coveragebuckets", + // "response": { + // "$ref": "ListCoverageBucketsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.reads.search": + +type ReadsSearchCall struct { + s *Service + searchreadsrequest *SearchReadsRequest + opt_ map[string]interface{} +} + +// Search: Gets a list of reads for one or more read group sets. Reads +// search operates over a genomic coordinate space of reference sequence +// & position defined over the reference sequences to which the +// requested read group sets are aligned. If a target positional range +// is specified, search returns all reads whose alignment to the +// reference genome overlap the range. A query which specifies only read +// group set IDs yields all reads in those read group sets, including +// unmapped reads. All reads returned (including reads on subsequent +// pages) are ordered by genomic coordinate (reference sequence & +// position). Reads with equivalent genomic coordinates are returned in +// a deterministic order. Implements +// [GlobalAllianceApi.searchReads](http://ga4gh.org/documentation/api/v0. +// 5.1/ga4gh_api.html#/schema/org.ga4gh.searchReads). +func (r *ReadsService) Search(searchreadsrequest *SearchReadsRequest) *ReadsSearchCall { + c := &ReadsSearchCall{s: r.s, opt_: make(map[string]interface{})} + c.searchreadsrequest = searchreadsrequest + 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 *ReadsSearchCall) Fields(s ...googleapi.Field) *ReadsSearchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReadsSearchCall) Do() (*SearchReadsResponse, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchreadsrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/reads/search") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *SearchReadsResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a list of reads for one or more read group sets. Reads search operates over a genomic coordinate space of reference sequence \u0026 position defined over the reference sequences to which the requested read group sets are aligned. If a target positional range is specified, search returns all reads whose alignment to the reference genome overlap the range. A query which specifies only read group set IDs yields all reads in those read group sets, including unmapped reads. All reads returned (including reads on subsequent pages) are ordered by genomic coordinate (reference sequence \u0026 position). Reads with equivalent genomic coordinates are returned in a deterministic order. Implements [GlobalAllianceApi.searchReads](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReads).", + // "httpMethod": "POST", + // "id": "genomics.reads.search", + // "path": "v1/reads/search", + // "request": { + // "$ref": "SearchReadsRequest" + // }, + // "response": { + // "$ref": "SearchReadsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.references.get": + +type ReferencesGetCall struct { + s *Service + referenceId string + opt_ map[string]interface{} +} + +// Get: Gets a reference. Implements +// [GlobalAllianceApi.getReference](http://ga4gh.org/documentation/api/v0 +// .5.1/ga4gh_api.html#/schema/org.ga4gh.getReference). +func (r *ReferencesService) Get(referenceId string) *ReferencesGetCall { + c := &ReferencesGetCall{s: r.s, opt_: make(map[string]interface{})} + c.referenceId = referenceId + 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 *ReferencesGetCall) Fields(s ...googleapi.Field) *ReferencesGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReferencesGetCall) Do() (*Reference, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/references/{referenceId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "referenceId": c.referenceId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Reference + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a reference. Implements [GlobalAllianceApi.getReference](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.getReference).", + // "httpMethod": "GET", + // "id": "genomics.references.get", + // "parameterOrder": [ + // "referenceId" + // ], + // "parameters": { + // "referenceId": { + // "description": "The ID of the reference.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/references/{referenceId}", + // "response": { + // "$ref": "Reference" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.references.search": + +type ReferencesSearchCall struct { + s *Service + searchreferencesrequest *SearchReferencesRequest + opt_ map[string]interface{} +} + +// Search: Searches for references which match the given criteria. +// Implements +// [GlobalAllianceApi.searchReferences](http://ga4gh.org/documentation/ap +// i/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReferences). +func (r *ReferencesService) Search(searchreferencesrequest *SearchReferencesRequest) *ReferencesSearchCall { + c := &ReferencesSearchCall{s: r.s, opt_: make(map[string]interface{})} + c.searchreferencesrequest = searchreferencesrequest + 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 *ReferencesSearchCall) Fields(s ...googleapi.Field) *ReferencesSearchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReferencesSearchCall) Do() (*SearchReferencesResponse, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchreferencesrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/references/search") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *SearchReferencesResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Searches for references which match the given criteria. Implements [GlobalAllianceApi.searchReferences](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReferences).", + // "httpMethod": "POST", + // "id": "genomics.references.search", + // "path": "v1/references/search", + // "request": { + // "$ref": "SearchReferencesRequest" + // }, + // "response": { + // "$ref": "SearchReferencesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.references.bases.list": + +type ReferencesBasesListCall struct { + s *Service + referenceId string + opt_ map[string]interface{} +} + +// List: Lists the bases in a reference, optionally restricted to a +// range. Implements +// [GlobalAllianceApi.getReferenceBases](http://ga4gh.org/documentation/a +// pi/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.getReferenceBases). +func (r *ReferencesBasesService) List(referenceId string) *ReferencesBasesListCall { + c := &ReferencesBasesListCall{s: r.s, opt_: make(map[string]interface{})} + c.referenceId = referenceId + return c +} + +// End sets the optional parameter "end": The end position (0-based, +// exclusive) of this query. Defaults to the length of this reference. +func (c *ReferencesBasesListCall) End(end int64) *ReferencesBasesListCall { + c.opt_["end"] = end + return c +} + +// PageSize sets the optional parameter "pageSize": Specifies the +// maximum number of bases to return in a single page. +func (c *ReferencesBasesListCall) PageSize(pageSize int64) *ReferencesBasesListCall { + c.opt_["pageSize"] = pageSize + return c +} + +// PageToken sets the optional parameter "pageToken": The continuation +// token, which is used to page through large result sets. To get the +// next page of results, set this parameter to the value of +// `nextPageToken` from the previous response. +func (c *ReferencesBasesListCall) PageToken(pageToken string) *ReferencesBasesListCall { + c.opt_["pageToken"] = pageToken + return c +} + +// Start sets the optional parameter "start": The start position +// (0-based) of this query. Defaults to 0. +func (c *ReferencesBasesListCall) Start(start int64) *ReferencesBasesListCall { + c.opt_["start"] = start + 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 *ReferencesBasesListCall) Fields(s ...googleapi.Field) *ReferencesBasesListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReferencesBasesListCall) Do() (*ListBasesResponse, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["end"]; ok { + params.Set("end", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageSize"]; ok { + params.Set("pageSize", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["start"]; ok { + params.Set("start", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/references/{referenceId}/bases") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "referenceId": c.referenceId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ListBasesResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the bases in a reference, optionally restricted to a range. Implements [GlobalAllianceApi.getReferenceBases](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.getReferenceBases).", + // "httpMethod": "GET", + // "id": "genomics.references.bases.list", + // "parameterOrder": [ + // "referenceId" + // ], + // "parameters": { + // "end": { + // "description": "The end position (0-based, exclusive) of this query. Defaults to the length of this reference.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Specifies the maximum number of bases to return in a single page.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response.", + // "location": "query", + // "type": "string" + // }, + // "referenceId": { + // "description": "The ID of the reference.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "start": { + // "description": "The start position (0-based) of this query. Defaults to 0.", + // "format": "int64", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/references/{referenceId}/bases", + // "response": { + // "$ref": "ListBasesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.referencesets.get": + +type ReferencesetsGetCall struct { + s *Service + referenceSetId string + opt_ map[string]interface{} +} + +// Get: Gets a reference set. Implements +// [GlobalAllianceApi.getReferenceSet](http://ga4gh.org/documentation/api +// /v0.5.1/ga4gh_api.html#/schema/org.ga4gh.getReferenceSet"). +func (r *ReferencesetsService) Get(referenceSetId string) *ReferencesetsGetCall { + c := &ReferencesetsGetCall{s: r.s, opt_: make(map[string]interface{})} + c.referenceSetId = referenceSetId + 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 *ReferencesetsGetCall) Fields(s ...googleapi.Field) *ReferencesetsGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReferencesetsGetCall) Do() (*ReferenceSet, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/referencesets/{referenceSetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "referenceSetId": c.referenceSetId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ReferenceSet + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a reference set. Implements [GlobalAllianceApi.getReferenceSet](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.getReferenceSet\").", + // "httpMethod": "GET", + // "id": "genomics.referencesets.get", + // "parameterOrder": [ + // "referenceSetId" + // ], + // "parameters": { + // "referenceSetId": { + // "description": "The ID of the reference set.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/referencesets/{referenceSetId}", + // "response": { + // "$ref": "ReferenceSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.referencesets.search": + +type ReferencesetsSearchCall struct { + s *Service + searchreferencesetsrequest *SearchReferenceSetsRequest + opt_ map[string]interface{} +} + +// Search: Searches for reference sets which match the given criteria. +// Implements +// [GlobalAllianceApi.searchReferenceSets](http://ga4gh.org/documentation +// /api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReferenceSets) +func (r *ReferencesetsService) Search(searchreferencesetsrequest *SearchReferenceSetsRequest) *ReferencesetsSearchCall { + c := &ReferencesetsSearchCall{s: r.s, opt_: make(map[string]interface{})} + c.searchreferencesetsrequest = searchreferencesetsrequest + 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 *ReferencesetsSearchCall) Fields(s ...googleapi.Field) *ReferencesetsSearchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ReferencesetsSearchCall) Do() (*SearchReferenceSetsResponse, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchreferencesetsrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/referencesets/search") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *SearchReferenceSetsResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Searches for reference sets which match the given criteria. Implements [GlobalAllianceApi.searchReferenceSets](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReferenceSets)", + // "httpMethod": "POST", + // "id": "genomics.referencesets.search", + // "path": "v1/referencesets/search", + // "request": { + // "$ref": "SearchReferenceSetsRequest" + // }, + // "response": { + // "$ref": "SearchReferenceSetsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.variants.create": + +type VariantsCreateCall struct { + s *Service + variant *Variant + opt_ map[string]interface{} +} + +// Create: Creates a new variant. +func (r *VariantsService) Create(variant *Variant) *VariantsCreateCall { + c := &VariantsCreateCall{s: r.s, opt_: make(map[string]interface{})} + c.variant = variant + 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 *VariantsCreateCall) Fields(s ...googleapi.Field) *VariantsCreateCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsCreateCall) Do() (*Variant, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.variant) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variants") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Variant + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new variant.", + // "httpMethod": "POST", + // "id": "genomics.variants.create", + // "path": "v1/variants", + // "request": { + // "$ref": "Variant" + // }, + // "response": { + // "$ref": "Variant" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.variants.delete": + +type VariantsDeleteCall struct { + s *Service + variantId string + opt_ map[string]interface{} +} + +// Delete: Deletes a variant. +func (r *VariantsService) Delete(variantId string) *VariantsDeleteCall { + c := &VariantsDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.variantId = variantId + 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 *VariantsDeleteCall) Fields(s ...googleapi.Field) *VariantsDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsDeleteCall) Do() (*Empty, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variants/{variantId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "variantId": c.variantId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Empty + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a variant.", + // "httpMethod": "DELETE", + // "id": "genomics.variants.delete", + // "parameterOrder": [ + // "variantId" + // ], + // "parameters": { + // "variantId": { + // "description": "The ID of the variant to be deleted.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/variants/{variantId}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.variants.get": + +type VariantsGetCall struct { + s *Service + variantId string + opt_ map[string]interface{} +} + +// Get: Gets a variant by ID. +func (r *VariantsService) Get(variantId string) *VariantsGetCall { + c := &VariantsGetCall{s: r.s, opt_: make(map[string]interface{})} + c.variantId = variantId + 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 *VariantsGetCall) Fields(s ...googleapi.Field) *VariantsGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsGetCall) Do() (*Variant, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variants/{variantId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "variantId": c.variantId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Variant + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a variant by ID.", + // "httpMethod": "GET", + // "id": "genomics.variants.get", + // "parameterOrder": [ + // "variantId" + // ], + // "parameters": { + // "variantId": { + // "description": "The ID of the variant.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/variants/{variantId}", + // "response": { + // "$ref": "Variant" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.variants.import": + +type VariantsImportCall struct { + s *Service + importvariantsrequest *ImportVariantsRequest + opt_ map[string]interface{} +} + +// Import: Creates variant data by asynchronously importing the provided +// information. The variants for import will be merged with any existing +// data and each other according to the behavior of mergeVariants. In +// particular, this means for merged VCF variants that have conflicting +// INFO fields, some data will be arbitrarily discarded. As a special +// case, for single-sample VCF files, QUAL and FILTER fields will be +// moved to the call level; these are sometimes interpreted in a +// call-specific context. Imported VCF headers are appended to the +// metadata already in a variant set. +func (r *VariantsService) Import(importvariantsrequest *ImportVariantsRequest) *VariantsImportCall { + c := &VariantsImportCall{s: r.s, opt_: make(map[string]interface{})} + c.importvariantsrequest = importvariantsrequest + 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 *VariantsImportCall) Fields(s ...googleapi.Field) *VariantsImportCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsImportCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.importvariantsrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variants:import") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates variant data by asynchronously importing the provided information. The variants for import will be merged with any existing data and each other according to the behavior of mergeVariants. In particular, this means for merged VCF variants that have conflicting INFO fields, some data will be arbitrarily discarded. As a special case, for single-sample VCF files, QUAL and FILTER fields will be moved to the call level; these are sometimes interpreted in a call-specific context. Imported VCF headers are appended to the metadata already in a variant set.", + // "httpMethod": "POST", + // "id": "genomics.variants.import", + // "path": "v1/variants:import", + // "request": { + // "$ref": "ImportVariantsRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/devstorage.read_write", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.variants.merge": + +type VariantsMergeCall struct { + s *Service + mergevariantsrequest *MergeVariantsRequest + opt_ map[string]interface{} +} + +// Merge: Merges the given variants with existing variants. Each variant +// will be merged with an existing variant that matches its reference +// sequence, start, end, reference bases, and alternative bases. If no +// such variant exists, a new one will be created. When variants are +// merged, the call information from the new variant is added to the +// existing variant, and other fields (such as key/value pairs) are +// discarded. +func (r *VariantsService) Merge(mergevariantsrequest *MergeVariantsRequest) *VariantsMergeCall { + c := &VariantsMergeCall{s: r.s, opt_: make(map[string]interface{})} + c.mergevariantsrequest = mergevariantsrequest + 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 *VariantsMergeCall) Fields(s ...googleapi.Field) *VariantsMergeCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsMergeCall) Do() (*Empty, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.mergevariantsrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variants:merge") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Empty + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Merges the given variants with existing variants. Each variant will be merged with an existing variant that matches its reference sequence, start, end, reference bases, and alternative bases. If no such variant exists, a new one will be created. When variants are merged, the call information from the new variant is added to the existing variant, and other fields (such as key/value pairs) are discarded.", + // "httpMethod": "POST", + // "id": "genomics.variants.merge", + // "path": "v1/variants:merge", + // "request": { + // "$ref": "MergeVariantsRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.variants.patch": + +type VariantsPatchCall struct { + s *Service + variantId string + variant *Variant + opt_ map[string]interface{} +} + +// Patch: Updates a variant. This method supports patch semantics. +// Returns the modified variant without its calls. +func (r *VariantsService) Patch(variantId string, variant *Variant) *VariantsPatchCall { + c := &VariantsPatchCall{s: r.s, opt_: make(map[string]interface{})} + c.variantId = variantId + c.variant = variant + return c +} + +// UpdateMask sets the optional parameter "updateMask": An optional mask +// specifying which fields to update. At this time, mutable fields are +// [names][google.genomics.v1.Variant.names] and +// [info][google.genomics.v1.Variant.info]. Acceptable values are +// "names" and "info". If unspecified, all mutable fields will be +// updated. +func (c *VariantsPatchCall) UpdateMask(updateMask string) *VariantsPatchCall { + c.opt_["updateMask"] = updateMask + 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 *VariantsPatchCall) Fields(s ...googleapi.Field) *VariantsPatchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsPatchCall) Do() (*Variant, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.variant) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["updateMask"]; ok { + params.Set("updateMask", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variants/{variantId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("PATCH", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "variantId": c.variantId, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Variant + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a variant. This method supports patch semantics. Returns the modified variant without its calls.", + // "httpMethod": "PATCH", + // "id": "genomics.variants.patch", + // "parameterOrder": [ + // "variantId" + // ], + // "parameters": { + // "updateMask": { + // "description": "An optional mask specifying which fields to update. At this time, mutable fields are [names][google.genomics.v1.Variant.names] and [info][google.genomics.v1.Variant.info]. Acceptable values are \"names\" and \"info\". If unspecified, all mutable fields will be updated.", + // "location": "query", + // "type": "string" + // }, + // "variantId": { + // "description": "The ID of the variant to be updated.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/variants/{variantId}", + // "request": { + // "$ref": "Variant" + // }, + // "response": { + // "$ref": "Variant" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.variants.search": + +type VariantsSearchCall struct { + s *Service + searchvariantsrequest *SearchVariantsRequest + opt_ map[string]interface{} +} + +// Search: Gets a list of variants matching the criteria. Implements +// [GlobalAllianceApi.searchVariants](http://ga4gh.org/documentation/api/ +// v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchVariants). +func (r *VariantsService) Search(searchvariantsrequest *SearchVariantsRequest) *VariantsSearchCall { + c := &VariantsSearchCall{s: r.s, opt_: make(map[string]interface{})} + c.searchvariantsrequest = searchvariantsrequest + 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 *VariantsSearchCall) Fields(s ...googleapi.Field) *VariantsSearchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsSearchCall) Do() (*SearchVariantsResponse, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchvariantsrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variants/search") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *SearchVariantsResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a list of variants matching the criteria. Implements [GlobalAllianceApi.searchVariants](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchVariants).", + // "httpMethod": "POST", + // "id": "genomics.variants.search", + // "path": "v1/variants/search", + // "request": { + // "$ref": "SearchVariantsRequest" + // }, + // "response": { + // "$ref": "SearchVariantsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.variantsets.create": + +type VariantsetsCreateCall struct { + s *Service + variantset *VariantSet + opt_ map[string]interface{} +} + +// Create: Creates a new variant set. +func (r *VariantsetsService) Create(variantset *VariantSet) *VariantsetsCreateCall { + c := &VariantsetsCreateCall{s: r.s, opt_: make(map[string]interface{})} + c.variantset = variantset + 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 *VariantsetsCreateCall) Fields(s ...googleapi.Field) *VariantsetsCreateCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsetsCreateCall) Do() (*VariantSet, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.variantset) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variantsets") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *VariantSet + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new variant set.", + // "httpMethod": "POST", + // "id": "genomics.variantsets.create", + // "path": "v1/variantsets", + // "request": { + // "$ref": "VariantSet" + // }, + // "response": { + // "$ref": "VariantSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.variantsets.delete": + +type VariantsetsDeleteCall struct { + s *Service + variantSetId string + opt_ map[string]interface{} +} + +// Delete: Deletes the contents of a variant set. The variant set object +// is not deleted. +func (r *VariantsetsService) Delete(variantSetId string) *VariantsetsDeleteCall { + c := &VariantsetsDeleteCall{s: r.s, opt_: make(map[string]interface{})} + c.variantSetId = variantSetId + 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 *VariantsetsDeleteCall) Fields(s ...googleapi.Field) *VariantsetsDeleteCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsetsDeleteCall) Do() (*Empty, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variantsets/{variantSetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("DELETE", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "variantSetId": c.variantSetId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Empty + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the contents of a variant set. The variant set object is not deleted.", + // "httpMethod": "DELETE", + // "id": "genomics.variantsets.delete", + // "parameterOrder": [ + // "variantSetId" + // ], + // "parameters": { + // "variantSetId": { + // "description": "The ID of the variant set to be deleted.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/variantsets/{variantSetId}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.variantsets.export": + +type VariantsetsExportCall struct { + s *Service + variantSetId string + exportvariantsetrequest *ExportVariantSetRequest + opt_ map[string]interface{} +} + +// Export: Exports variant set data to an external destination. +func (r *VariantsetsService) Export(variantSetId string, exportvariantsetrequest *ExportVariantSetRequest) *VariantsetsExportCall { + c := &VariantsetsExportCall{s: r.s, opt_: make(map[string]interface{})} + c.variantSetId = variantSetId + c.exportvariantsetrequest = exportvariantsetrequest + 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 *VariantsetsExportCall) Fields(s ...googleapi.Field) *VariantsetsExportCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsetsExportCall) Do() (*Operation, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportvariantsetrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variantsets/{variantSetId}:export") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "variantSetId": c.variantSetId, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Operation + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Exports variant set data to an external destination.", + // "httpMethod": "POST", + // "id": "genomics.variantsets.export", + // "parameterOrder": [ + // "variantSetId" + // ], + // "parameters": { + // "variantSetId": { + // "description": "Required. The ID of the variant set that contains variant data which should be exported. The caller must have READ access to this variant set.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/variantsets/{variantSetId}:export", + // "request": { + // "$ref": "ExportVariantSetRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.variantsets.get": + +type VariantsetsGetCall struct { + s *Service + variantSetId string + opt_ map[string]interface{} +} + +// Get: Gets a variant set by ID. +func (r *VariantsetsService) Get(variantSetId string) *VariantsetsGetCall { + c := &VariantsetsGetCall{s: r.s, opt_: make(map[string]interface{})} + c.variantSetId = variantSetId + 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 *VariantsetsGetCall) Fields(s ...googleapi.Field) *VariantsetsGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsetsGetCall) Do() (*VariantSet, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variantsets/{variantSetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "variantSetId": c.variantSetId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *VariantSet + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a variant set by ID.", + // "httpMethod": "GET", + // "id": "genomics.variantsets.get", + // "parameterOrder": [ + // "variantSetId" + // ], + // "parameters": { + // "variantSetId": { + // "description": "Required. The ID of the variant set.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/variantsets/{variantSetId}", + // "response": { + // "$ref": "VariantSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} + +// method id "genomics.variantsets.patch": + +type VariantsetsPatchCall struct { + s *Service + variantSetId string + variantset *VariantSet + opt_ map[string]interface{} +} + +// Patch: Updates a variant set. This method supports patch semantics. +func (r *VariantsetsService) Patch(variantSetId string, variantset *VariantSet) *VariantsetsPatchCall { + c := &VariantsetsPatchCall{s: r.s, opt_: make(map[string]interface{})} + c.variantSetId = variantSetId + c.variantset = variantset + return c +} + +// UpdateMask sets the optional parameter "updateMask": An optional mask +// specifying which fields to update. At this time, the only mutable +// field is [metadata][google.genomics.v1.VariantSet.metadata]. The only +// acceptable value is "metadata". If unspecified, all mutable fields +// will be updated. +func (c *VariantsetsPatchCall) UpdateMask(updateMask string) *VariantsetsPatchCall { + c.opt_["updateMask"] = updateMask + 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 *VariantsetsPatchCall) Fields(s ...googleapi.Field) *VariantsetsPatchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsetsPatchCall) Do() (*VariantSet, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.variantset) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["updateMask"]; ok { + params.Set("updateMask", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variantsets/{variantSetId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("PATCH", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "variantSetId": c.variantSetId, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *VariantSet + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a variant set. This method supports patch semantics.", + // "httpMethod": "PATCH", + // "id": "genomics.variantsets.patch", + // "parameterOrder": [ + // "variantSetId" + // ], + // "parameters": { + // "updateMask": { + // "description": "An optional mask specifying which fields to update. At this time, the only mutable field is [metadata][google.genomics.v1.VariantSet.metadata]. The only acceptable value is \"metadata\". If unspecified, all mutable fields will be updated.", + // "location": "query", + // "type": "string" + // }, + // "variantSetId": { + // "description": "The ID of the variant to be updated (must already exist).", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/variantsets/{variantSetId}", + // "request": { + // "$ref": "VariantSet" + // }, + // "response": { + // "$ref": "VariantSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics" + // ] + // } + +} + +// method id "genomics.variantsets.search": + +type VariantsetsSearchCall struct { + s *Service + searchvariantsetsrequest *SearchVariantSetsRequest + opt_ map[string]interface{} +} + +// Search: Returns a list of all variant sets matching search criteria. +// Implements +// [GlobalAllianceApi.searchVariantSets](http://ga4gh.org/documentation/a +// pi/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchVariantSets). +func (r *VariantsetsService) Search(searchvariantsetsrequest *SearchVariantSetsRequest) *VariantsetsSearchCall { + c := &VariantsetsSearchCall{s: r.s, opt_: make(map[string]interface{})} + c.searchvariantsetsrequest = searchvariantsetsrequest + 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 *VariantsetsSearchCall) Fields(s ...googleapi.Field) *VariantsetsSearchCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *VariantsetsSearchCall) Do() (*SearchVariantSetsResponse, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchvariantsetsrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/variantsets/search") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *SearchVariantSetsResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns a list of all variant sets matching search criteria. Implements [GlobalAllianceApi.searchVariantSets](http://ga4gh.org/documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchVariantSets).", + // "httpMethod": "POST", + // "id": "genomics.variantsets.search", + // "path": "v1/variantsets/search", + // "request": { + // "$ref": "SearchVariantSetsRequest" + // }, + // "response": { + // "$ref": "SearchVariantSetsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/genomics", + // "https://www.googleapis.com/auth/genomics.readonly" + // ] + // } + +} diff --git a/oauth2/v1/oauth2-api.json b/oauth2/v1/oauth2-api.json index 7d74c8c633b..c7142e8cc25 100644 --- a/oauth2/v1/oauth2-api.json +++ b/oauth2/v1/oauth2-api.json @@ -1,11 +1,11 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/vv3fLLsrVMZFFO9YpWcdsminG6Y\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/E7VrRWc2416Btp9uIQ42rmbOltA\"", "discoveryVersion": "v1", "id": "oauth2:v1", "name": "oauth2", "version": "v1", - "revision": "20150302", + "revision": "20150714", "title": "Google OAuth2 API", "description": "Lets you access OAuth2 protocol related APIs.", "ownerDomain": "google.com", @@ -85,6 +85,41 @@ } }, "schemas": { + "Jwk": { + "id": "Jwk", + "type": "object", + "properties": { + "keys": { + "type": "array", + "items": { + "type": "object", + "properties": { + "alg": { + "type": "string", + "default": "RS256" + }, + "e": { + "type": "string" + }, + "kid": { + "type": "string" + }, + "kty": { + "type": "string", + "default": "RSA" + }, + "n": { + "type": "string" + }, + "use": { + "type": "string", + "default": "sig" + } + } + } + } + } + }, "Raw": { "id": "Raw", "type": "object", @@ -244,6 +279,25 @@ "$ref": "Raw" } }, + "getRobotJwk": { + "id": "oauth2.getRobotJwk", + "path": "service_accounts/v1/jwk/{robotEmail}", + "httpMethod": "GET", + "parameters": { + "robotEmail": { + "type": "string", + "description": "The email of robot account.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "robotEmail" + ], + "response": { + "$ref": "Jwk" + } + }, "getRobotMetadataRaw": { "id": "oauth2.getRobotMetadataRaw", "path": "service_accounts/v1/metadata/raw/{robotEmail}", diff --git a/oauth2/v1/oauth2-gen.go b/oauth2/v1/oauth2-gen.go index c643e7a97cc..1438d06dd22 100644 --- a/oauth2/v1/oauth2-gen.go +++ b/oauth2/v1/oauth2-gen.go @@ -113,6 +113,24 @@ type UserinfoV2MeService struct { s *Service } +type Jwk struct { + Keys []*JwkKeys `json:"keys,omitempty"` +} + +type JwkKeys struct { + Alg string `json:"alg,omitempty"` + + E string `json:"e,omitempty"` + + Kid string `json:"kid,omitempty"` + + Kty string `json:"kty,omitempty"` + + N string `json:"n,omitempty"` + + Use string `json:"use,omitempty"` +} + type Raw struct { Keyvalues []*RawKeyvalues `json:"keyvalues,omitempty"` } @@ -326,6 +344,78 @@ func (c *GetCertForOpenIdConnectRawCall) Do() (*Raw, error) { } +// method id "oauth2.getRobotJwk": + +type GetRobotJwkCall struct { + s *Service + robotEmail string + opt_ map[string]interface{} +} + +// GetRobotJwk: +func (s *Service) GetRobotJwk(robotEmail string) *GetRobotJwkCall { + c := &GetRobotJwkCall{s: s, opt_: make(map[string]interface{})} + c.robotEmail = robotEmail + 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 *GetRobotJwkCall) Fields(s ...googleapi.Field) *GetRobotJwkCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *GetRobotJwkCall) Do() (*Jwk, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "service_accounts/v1/jwk/{robotEmail}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "robotEmail": c.robotEmail, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *Jwk + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "httpMethod": "GET", + // "id": "oauth2.getRobotJwk", + // "parameterOrder": [ + // "robotEmail" + // ], + // "parameters": { + // "robotEmail": { + // "description": "The email of robot account.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "service_accounts/v1/jwk/{robotEmail}", + // "response": { + // "$ref": "Jwk" + // } + // } + +} + // method id "oauth2.getRobotMetadataRaw": type GetRobotMetadataRawCall struct { diff --git a/partners/v2/partners-api.json b/partners/v2/partners-api.json new file mode 100644 index 00000000000..b7ce37a7626 --- /dev/null +++ b/partners/v2/partners-api.json @@ -0,0 +1,1246 @@ +{ + "kind": "discovery#restDescription", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/1Ga4VljpBO1qvW0HZr8thYTjtTw\"", + "discoveryVersion": "v1", + "id": "partners:v2", + "name": "partners", + "version": "v2", + "revision": "20150712", + "title": "Google Partners API", + "description": "Lets advertisers search certified companies and create contact leads with them, and also audits the usage of clients.", + "ownerDomain": "google.com", + "ownerName": "Google", + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "documentationLink": "https://developers.google.com/partners/", + "protocol": "rest", + "baseUrl": "https://partners.googleapis.com/", + "basePath": "", + "rootUrl": "https://partners.googleapis.com/", + "servicePath": "", + "batchPath": "batch", + "parameters": { + "access_token": { + "type": "string", + "description": "OAuth access token.", + "location": "query" + }, + "alt": { + "type": "string", + "description": "Data format for response.", + "default": "json", + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query" + }, + "bearer_token": { + "type": "string", + "description": "OAuth bearer token.", + "location": "query" + }, + "callback": { + "type": "string", + "description": "JSONP", + "location": "query" + }, + "fields": { + "type": "string", + "description": "Selector specifying which fields to include in a partial response.", + "location": "query" + }, + "key": { + "type": "string", + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query" + }, + "oauth_token": { + "type": "string", + "description": "OAuth 2.0 token for the current user.", + "location": "query" + }, + "pp": { + "type": "boolean", + "description": "Pretty-print response.", + "default": "true", + "location": "query" + }, + "prettyPrint": { + "type": "boolean", + "description": "Returns response with indentations and line breaks.", + "default": "true", + "location": "query" + }, + "quotaUser": { + "type": "string", + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query" + }, + "upload_protocol": { + "type": "string", + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query" + }, + "uploadType": { + "type": "string", + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query" + }, + "$.xgafv": { + "type": "string", + "description": "V1 error format.", + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query" + } + }, + "schemas": { + "LogUserEventRequest": { + "id": "LogUserEventRequest", + "type": "object", + "description": "Request message for [LogUserEvent][google.partners.v2.ClientAuditor.LogUserEvent].", + "properties": { + "requestMetadata": { + "$ref": "RequestMetadata", + "description": "Current request metadata." + }, + "eventAction": { + "type": "string", + "description": "The action that occurred.", + "enum": [ + "EVENT_ACTION_UNSPECIFIED", + "SMB_CLICKED_FIND_A_PARTNER_BUTTON_BOTTOM", + "SMB_CLICKED_FIND_A_PARTNER_BUTTON_TOP", + "AGENCY_CLICKED_JOIN_NOW_BUTTON_BOTTOM", + "AGENCY_CLICKED_JOIN_NOW_BUTTON_TOP", + "SMB_CANCELED_PARTNER_CONTACT_FORM", + "SMB_CLICKED_CONTACT_A_PARTNER", + "SMB_COMPLETED_PARTNER_CONTACT_FORM", + "SMB_ENTERED_EMAIL_IN_CONTACT_PARTNER_FORM", + "SMB_ENTERED_NAME_IN_CONTACT_PARTNER_FORM", + "SMB_ENTERED_PHONE_IN_CONTACT_PARTNER_FORM", + "SMB_FAILED_RECAPTCHA_IN_CONTACT_PARTNER_FORM", + "PARTNER_VIEWED_BY_SMB", + "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_GPS", + "SMB_CHANGED_A_SEARCH_PARAMETER_TOP", + "SMB_CLICKED_CONTACT_A_PARTNER_ON_GPS", + "SMB_CLICKED_SHOW_MORE_PARTNERS_BUTTON_BOTTOM", + "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_GPS", + "SMB_NO_PARTNERS_AVAILABLE_WITH_SEARCH_CRITERIA", + "SMB_PERFORMED_SEARCH_ON_GPS", + "SMB_VIEWED_A_PARTNER_ON_GPS", + "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE", + "SMB_CLICKED_CONTACT_A_PARTNER_ON_PROFILE_PAGE", + "SMB_CLICKED_PARTNER_WEBSITE", + "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE", + "SMB_VIEWED_A_PARTNER_PROFILE", + "AGENCY_CLICKED_ACCEPT_TOS_BUTTON", + "AGENCY_CHANGED_TOS_COUNTRY", + "AGENCY_ADDED_ADDRESS_IN_MY_PROFILE_PORTAL", + "AGENCY_ADDED_PHONE_NUMBER_IN_MY_PROFILE_PORTAL", + "AGENCY_CHANGED_PRIMARY_ACCOUNT_ASSOCIATION", + "AGENCY_CHANGED_PRIMARY_COUNTRY_ASSOCIATION", + "AGENCY_CLICKED_AFFILIATE_BUTTON_IN_MY_PROFILE_IN_PORTAL", + "AGENCY_CLICKED_GIVE_EDIT_ACCESS_IN_MY_PROFILE_PORTAL", + "AGENCY_CLICKED_LOG_OUT_IN_MY_PROFILE_PORTAL", + "AGENCY_CLICKED_MY_PROFILE_LEFT_NAV_IN_PORTAL", + "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_COMPLETE_PROFILE", + "AGENCY_CLICKED_UNAFFILIATE_IN_MY_PROFILE_PORTAL", + "AGENCY_FILLED_OUT_COMP_AFFILIATION_IN_MY_PROFILE_PORTAL", + "AGENCY_SUCCESSFULLY_CONNECTED_WITH_COMPANY_IN_MY_PROFILE", + "AGENCY_CLICKED_CREATE_MCC_IN_MY_PROFILE_PORTAL", + "AGENCY_DIDNT_HAVE_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE", + "AGENCY_HAD_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE", + "AGENCY_ADDED_JOB_FUNCTION_IN_MY_PROFILE_PORTAL", + "AGENCY_LOOKED_AT_JOB_FUNCTION_DROP_DOWN", + "AGENCY_SELECTED_ACCOUNT_MANAGER_AS_JOB_FUNCTION", + "AGENCY_SELECTED_ACCOUNT_PLANNER_AS_JOB_FUNCTION", + "AGENCY_SELECTED_ANALYTICS_AS_JOB_FUNCTION", + "AGENCY_SELECTED_CREATIVE_AS_JOB_FUNCTION", + "AGENCY_SELECTED_MEDIA_BUYER_AS_JOB_FUNCTION", + "AGENCY_SELECTED_MEDIA_PLANNER_AS_JOB_FUNCTION", + "AGENCY_SELECTED_OTHER_AS_JOB_FUNCTION", + "AGENCY_SELECTED_PRODUCTION_AS_JOB_FUNCTION", + "AGENCY_SELECTED_SEO_AS_JOB_FUNCTION", + "AGENCY_SELECTED_SALES_REP_AS_JOB_FUNCTION", + "AGENCY_SELECTED_SEARCH_SPECIALIST_AS_JOB_FUNCTION", + "AGENCY_ADDED_CHANNELS_IN_MY_PROFILE_PORTAL", + "AGENCY_LOOKED_AT_ADD_CHANNEL_DROP_DOWN", + "AGENCY_SELECTED_CROSS_CHANNEL_FROM_ADD_CHANNEL", + "AGENCY_SELECTED_DISPLAY_FROM_ADD_CHANNEL", + "AGENCY_SELECTED_MOBILE_FROM_ADD_CHANNEL", + "AGENCY_SELECTED_SEARCH_FROM_ADD_CHANNEL", + "AGENCY_SELECTED_SOCIAL_FROM_ADD_CHANNEL", + "AGENCY_SELECTED_TOOLS_FROM_ADD_CHANNEL", + "AGENCY_SELECTED_YOUTUBE_FROM_ADD_CHANNEL", + "AGENCY_ADDED_INDUSTRIES_IN_MY_PROFILE_PORTAL", + "AGENCY_CHANGED_ADD_INDUSTRIES_DROP_DOWN", + "AGENCY_ADDED_MARKETS_IN_MY_PROFILE_PORTAL", + "AGENCY_CHANGED_ADD_MARKETS_DROP_DOWN", + "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_MYPROFILE", + "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_SIGNUP", + "AGENCY_SELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH", + "AGENCY_SELECTED_OPT_IN_BETA_TESTS_IN_MY_PROFILE_PORTAL", + "AGENCY_SELECTED_OPT_IN_NEWS_IN_MY_PROFILE_PORTAL", + "AGENCY_SELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS", + "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUG_IN_MY_PROFILE_PORTAL", + "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS", + "AGENCY_SELECTED_OPT_IN_SELECT_ALL_EMAIL_NOTIFICATIONS", + "AGENCY_SELECTED_SELECT_ALL_OPT_INS_IN_MY_PROFILE_PORTAL", + "AGENCY_CLICKED_BACK_BUTTON_ON_CONNECT_WITH_COMPANY", + "AGENCY_CLICKED_CONTINUE_TO_OVERVIEW_ON_CONNECT_WITH_COMPANY", + "AGECNY_CLICKED_CREATE_MCC_CONNECT_WITH_COMPANY_NOT_FOUND", + "AGECNY_CLICKED_GIVE_EDIT_ACCESS_CONNECT_WITH_COMPANY_NOT_FOUND", + "AGECNY_CLICKED_LOG_OUT_CONNECT_WITH_COMPANY_NOT_FOUND", + "AGENCY_CLICKED_SKIP_FOR_NOW_ON_CONNECT_WITH_COMPANY_PAGE", + "AGENCY_CLOSED_CONNECTED_TO_COMPANY_X_BUTTON_WRONG_COMPANY", + "AGENCY_COMPLETED_FIELD_CONNECT_WITH_COMPANY", + "AGECNY_FOUND_COMPANY_TO_CONNECT_WITH", + "AGENCY_SUCCESSFULLY_CREATED_COMPANY", + "AGENCY_ADDED_NEW_COMPANY_LOCATION", + "AGENCY_CLICKED_COMMUNITY_JOIN_NOW_LINK_IN_PORTAL_NOTIFICATIONS", + "AGENCY_CLICKED_CONNECT_TO_COMPANY_LINK_IN_PORTAL_NOTIFICATIONS", + "AGENCY_CLICKED_GET_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS", + "AGENCY_CLICKED_GET_VIDEO_ADS_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS", + "AGENCY_CLICKED_LINK_TO_MCC_LINK_IN_PORTAL_NOTIFICATIONS", + "AGENCY_CLICKED_INSIGHT_CONTENT_IN_PORTAL", + "AGENCY_CLICKED_INSIGHTS_VIEW_NOW_PITCH_DECKS_IN_PORTAL", + "AGENCY_CLICKED_INSIGHTS_LEFT_NAV_IN_PORTAL", + "AGENCY_CLICKED_INSIGHTS_UPLOAD_CONTENT", + "AGENCY_CLICKED_INSIGHTS_VIEWED_DEPRECATED", + "AGENCY_CLICKED_COMMUNITY_LEFT_NAV_IN_PORTAL", + "AGENCY_CLICKED_JOIN_COMMUNITY_BUTTON_COMMUNITY_PORTAL", + "AGENCY_CLICKED_CERTIFICATIONS_LEFT_NAV_IN_PORTAL", + "AGENCY_CLICKED_CERTIFICATIONS_PRODUCT_LEFT_NAV_IN_PORTAL", + "AGENCY_CLICKED_PARTNER_STATUS_LEFT_NAV_IN_PORTAL", + "AGENCY_CLICKED_PARTNER_STATUS_PRODUCT_LEFT_NAV_IN_PORTAL", + "AGENCY_CLICKED_OFFERS_LEFT_NAV_IN_PORTAL", + "AGENCY_CLICKED_SEND_BUTTON_ON_OFFERS_PAGE", + "AGENCY_CLICKED_EXAM_DETAILS_ON_CERT_ADWORDS_PAGE", + "AGENCY_CLICKED_SEE_EXAMS_CERTIFICATION_MAIN_PAGE", + "AGENCY_CLICKED_TAKE_EXAM_ON_CERT_EXAM_PAGE", + "AGENCY_OPENED_LAST_ADMIN_DIALOG", + "AGENCY_OPENED_DIALOG_WITH_NO_USERS", + "AGENCY_PROMOTED_USER_TO_ADMIN", + "AGENCY_UNAFFILIATED", + "AGENCY_CHANGED_ROLES", + "SMB_CLICKED_COMPANY_NAME_LINK_TO_PROFILE", + "SMB_VIEWED_ADWORDS_CERTIFICATE", + "SMB_CLICKED_ADWORDS_CERTIFICATE_HELP_ICON", + "SMB_VIEWED_ANALYTICS_CERTIFICATE", + "SMB_VIEWED_DOUBLECLICK_CERTIFICATE", + "SMB_VIEWED_VIDEO_ADS_CERTIFICATE", + "SMB_VIEWED_SHOPPING_CERTIFICATE", + "SMB_CLICKED_VIDEO_ADS_CERTIFICATE_HELP_ICON", + "CLICKED_HELP_AT_BOTTOM", + "CLICKED_HELP_AT_TOP", + "CLIENT_ERROR", + "AGENCY_CLICKED_LEFT_NAV_STORIES", + "CLICKED", + "SMB_VIEWED_MOBILE_CERTIFICATE", + "AGENCY_FAILED_COMPANY_VERIFICATION", + "VISITED_LANDING", + "VISITED_GPS", + "VISITED_AGENCY_PORTAL" + ] + }, + "eventCategory": { + "type": "string", + "description": "The category the action belongs to.", + "enum": [ + "EVENT_CATEGORY_UNSPECIFIED", + "GOOGLE_PARTNER_SEARCH", + "GOOGLE_PARTNER_SIGNUP_FLOW", + "GOOGLE_PARTNER_PORTAL", + "GOOGLE_PARTNER_PORTAL_MY_PROFILE", + "GOOGLE_PARTNER_PORTAL_CERTIFICATIONS", + "GOOGLE_PARTNER_PORTAL_COMMUNITY", + "GOOGLE_PARTNER_PORTAL_INSIGHTS", + "GOOGLE_PARTNER_PORTAL_CLIENTS", + "GOOGLE_PARTNER_PUBLIC_USER_PROFILE", + "GOOGLE_PARTNER_PANEL", + "GOOGLE_PARTNER_PORTAL_LAST_ADMIN_DIALOG", + "GOOGLE_PARTNER_CLIENT", + "GOOGLE_PARTNER_PORTAL_COMPANY_PROFILE", + "EXTERNAL_LINKS", + "GOOGLE_PARTNER_LANDING" + ] + }, + "eventScope": { + "type": "string", + "description": "The scope of the event.", + "enum": [ + "EVENT_SCOPE_UNSPECIFIED", + "VISITOR", + "SESSION", + "PAGE" + ] + }, + "eventDatas": { + "type": "array", + "description": "List of event data for the event.", + "items": { + "$ref": "EventData" + } + }, + "url": { + "type": "string", + "description": "The URL where the event occurred." + }, + "lead": { + "$ref": "Lead", + "description": "Advertiser lead information." + } + } + }, + "RequestMetadata": { + "id": "RequestMetadata", + "type": "object", + "description": "Common data that is in each API request.", + "properties": { + "locale": { + "type": "string", + "description": "Locale to use for the current request." + }, + "partnersSessionId": { + "type": "string", + "description": "Google Partners session ID." + }, + "experimentIds": { + "type": "array", + "description": "Experiment IDs the current request belongs to.", + "items": { + "type": "string" + } + } + } + }, + "EventData": { + "id": "EventData", + "type": "object", + "description": "Key value data pair for an event.", + "properties": { + "key": { + "type": "string", + "description": "Data type.", + "enum": [ + "EVENT_DATA_TYPE_UNSPECIFIED", + "ACTION", + "AGENCY_ID", + "AGENCY_NAME", + "AGENCY_PHONE_NUMBER", + "AGENCY_WEBSITE", + "BUDGET", + "CENTER_POINT", + "CERTIFICATION", + "COMMENT", + "COUNTRY", + "CURRENCY", + "CURRENTLY_VIEWED_AGENCY_ID", + "DISTANCE", + "DISTANCE_TYPE", + "EXAM", + "HISTORY_TOKEN", + "IDENTIFIER", + "INDUSTRY", + "INSIGHT_TAG", + "LANGUAGE", + "LOCATION", + "MARKETING_OPT_IN", + "QUERY", + "SEARCH_START_INDEX", + "SERVICE", + "SHOW_VOW", + "SOLUTION", + "TRAFFIC_SOURCE_ID", + "TRAFFIC_SUB_ID", + "VIEW_PORT", + "WEBSITE", + "DETAILS", + "EXPERIMENT_ID", + "GPS_MOTIVATION", + "URL", + "ELEMENT_FOCUS" + ] + }, + "values": { + "type": "array", + "description": "Data values.", + "items": { + "type": "string" + } + } + } + }, + "Lead": { + "id": "Lead", + "type": "object", + "description": "A lead resource that represents an advertiser contact for a `Company`. These are usually generated via Google Partner Search (the advertiser portal).", + "properties": { + "id": { + "type": "string", + "description": "ID of the lead." + }, + "type": { + "type": "string", + "description": "Type of lead.", + "enum": [ + "LEAD_TYPE_UNSPECIFIED", + "LT_GPS" + ] + }, + "email": { + "type": "string", + "description": "Email address of lead source." + }, + "givenName": { + "type": "string", + "description": "First name of lead source." + }, + "familyName": { + "type": "string", + "description": "Last name of lead source." + }, + "websiteUrl": { + "type": "string", + "description": "Website URL of lead source." + }, + "phoneNumber": { + "type": "string", + "description": "Phone number of lead source." + }, + "comments": { + "type": "string", + "description": "Comments lead source gave." + }, + "gpsMotivations": { + "type": "array", + "description": "List of reasons for using Google Partner Search and creating a lead.", + "enumDescriptions": [ + "Unchosen.", + "Advertiser needs help with their advertising.", + "Advertiser needs help with their website.", + "Advertiser does not have a website." + ], + "items": { + "type": "string", + "enum": [ + "GPS_MOTIVATION_UNSPECIFIED", + "GPSM_HELP_WITH_ADVERTISING", + "GPSM_HELP_WITH_WEBSITE", + "GPSM_NO_WEBSITE" + ] + } + }, + "minMonthlyBudget": { + "$ref": "Money", + "description": "The minimum monthly budget lead source is willing to spend." + } + } + }, + "Money": { + "id": "Money", + "type": "object", + "description": "Represents an amount of money with its currency type.", + "properties": { + "currencyCode": { + "type": "string", + "description": "The 3-letter currency code defined in ISO 4217." + }, + "units": { + "type": "string", + "description": "The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.", + "format": "int64" + }, + "nanos": { + "type": "integer", + "description": "Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", + "format": "int32" + } + } + }, + "LogUserEventResponse": { + "id": "LogUserEventResponse", + "type": "object", + "description": "Response message for [LogUserEvent][google.partners.v2.ClientAuditor.LogUserEvent].", + "properties": { + "responseMetadata": { + "$ref": "ResponseMetadata", + "description": "Current response metadata." + } + } + }, + "ResponseMetadata": { + "id": "ResponseMetadata", + "type": "object", + "description": "Common data that is in each API response.", + "properties": { + "debugInfo": { + "$ref": "DebugInfo", + "description": "Debug information about this request." + } + } + }, + "DebugInfo": { + "id": "DebugInfo", + "type": "object", + "description": "Debug information about this request." + }, + "LogMessageRequest": { + "id": "LogMessageRequest", + "type": "object", + "description": "Request message for [LogClientMessage][google.partners.v2.ClientAuditor.LogClientMessage].", + "properties": { + "requestMetadata": { + "$ref": "RequestMetadata", + "description": "Current request metadata." + }, + "level": { + "type": "string", + "description": "Message level of client message.", + "enum": [ + "MESSAGE_LEVEL_UNSPECIFIED", + "ML_FINE", + "ML_INFO", + "ML_WARNING", + "ML_SEVERE" + ] + }, + "details": { + "type": "string", + "description": "Details about the client message." + }, + "clientInfo": { + "type": "object", + "description": "Map of client info, such as URL, browser navigator, browser platform, etc.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "LogMessageResponse": { + "id": "LogMessageResponse", + "type": "object", + "description": "Response message for [LogClientMessage][google.partners.v2.ClientAuditor.LogClientMessage].", + "properties": { + "responseMetadata": { + "$ref": "ResponseMetadata", + "description": "Current response metadata." + } + } + }, + "ListUserStatesResponse": { + "id": "ListUserStatesResponse", + "type": "object", + "description": "Response message for [ListUserStates][google.partners.v2.ClientAuditor.ListUserStates].", + "properties": { + "responseMetadata": { + "$ref": "ResponseMetadata", + "description": "Current response metadata." + }, + "userStates": { + "type": "array", + "description": "User's states.", + "enumDescriptions": [ + "Unchosen.", + "User must pass reCaptcha to contact a Partner via Google Partner Search." + ], + "items": { + "type": "string", + "enum": [ + "USER_STATE_UNSPECIFIED", + "US_REQUIRES_RECAPTCHA_FOR_GPS_CONTACT" + ] + } + } + } + }, + "GetCompanyResponse": { + "id": "GetCompanyResponse", + "type": "object", + "description": "Response message for [GetCompany][google.partners.v2.Partner.GetCompany].", + "properties": { + "responseMetadata": { + "$ref": "ResponseMetadata", + "description": "Current response metadata." + }, + "company": { + "$ref": "Company", + "description": "The company." + } + } + }, + "Company": { + "id": "Company", + "type": "object", + "description": "A company resource in the Google Partners API. Once certified, it qualifies for being searched by advertisers.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the company." + }, + "name": { + "type": "string", + "description": "The name of the company." + }, + "localizedInfos": { + "type": "array", + "description": "The list of localized info for the company.", + "items": { + "$ref": "LocalizedCompanyInfo" + } + }, + "locations": { + "type": "array", + "description": "The list of company locations.", + "items": { + "$ref": "Location" + } + }, + "convertedMinMonthlyBudget": { + "$ref": "Money", + "description": "The minimum monthly budget that the company accepts for partner business, converted to the requested currency code." + }, + "originalMinMonthlyBudget": { + "$ref": "Money", + "description": "The unconverted minimum monthly budget that the company accepts for partner business." + }, + "publicProfile": { + "$ref": "PublicProfile", + "description": "Basic information from the company's public profile." + }, + "certificationStatuses": { + "type": "array", + "description": "The list of Google Partners certification statuses for the company.", + "items": { + "$ref": "CertificationStatus" + } + }, + "ranks": { + "type": "array", + "description": "Information related to the ranking of the company within the list of companies.", + "items": { + "$ref": "Rank" + } + }, + "websiteUrl": { + "type": "string", + "description": "URL of the company's website." + }, + "industries": { + "type": "array", + "description": "Industries the company can help with.", + "enumDescriptions": [ + "Unchosen.", + "The automotive industry.", + "The business-to-business industry.", + "The consumer packaged goods industry.", + "The education industry.", + "The finance industry.", + "The healthcare industry.", + "The media and entertainment industry.", + "The retail industry.", + "The technology industry.", + "The travel industry." + ], + "items": { + "type": "string", + "enum": [ + "INDUSTRY_UNSPECIFIED", + "I_AUTOMOTIVE", + "I_BUSINESS_TO_BUSINESS", + "I_CONSUMER_PACKAGED_GOODS", + "I_EDUCATION", + "I_FINANCE", + "I_HEALTHCARE", + "I_MEDIA_AND_ENTERTAINMENT", + "I_RETAIL", + "I_TECHNOLOGY", + "I_TRAVEL" + ] + } + }, + "services": { + "type": "array", + "description": "Services the company can help with.", + "enumDescriptions": [ + "Unchosen.", + "Help with advanced AdWords support.", + "Help with advertising on Google.", + "Help with an enhanced website.", + "Help with an online marketing plan.", + "Help with mobile and video ads." + ], + "items": { + "type": "string", + "enum": [ + "SERVICE_UNSPECIFIED", + "S_ADVANCED_ADWORDS_SUPPORT", + "S_ADVERTISING_ON_GOOGLE", + "S_AN_ENHANCED_WEBSITE", + "S_AN_ONLINE_MARKETING_PLAN", + "S_MOBILE_AND_VIDEO_ADS" + ] + } + } + } + }, + "LocalizedCompanyInfo": { + "id": "LocalizedCompanyInfo", + "type": "object", + "description": "The localized company information.", + "properties": { + "languageCode": { + "type": "string", + "description": "Language code of the localized company info, as defined by BCP 47 (IETF BCP 47, \"Tags for Identifying Languages\")." + }, + "displayName": { + "type": "string", + "description": "Localized display name." + }, + "overview": { + "type": "string", + "description": "Localized brief description that the company uses to advertise themselves." + }, + "countryCodes": { + "type": "array", + "description": "List of country codes for the localized company info.", + "items": { + "type": "string" + } + } + } + }, + "Location": { + "id": "Location", + "type": "object", + "description": "A location with address and geographic coordinates.", + "properties": { + "address": { + "type": "string", + "description": "The complete address of the location." + }, + "latLng": { + "$ref": "LatLng", + "description": "The latitude and longitude of the location, in degrees." + } + } + }, + "LatLng": { + "id": "LatLng", + "type": "object", + "description": "An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", + "properties": { + "latitude": { + "type": "number", + "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].", + "format": "double" + }, + "longitude": { + "type": "number", + "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", + "format": "double" + } + } + }, + "PublicProfile": { + "id": "PublicProfile", + "type": "object", + "description": "Basic information from a public profile.", + "properties": { + "id": { + "type": "string", + "description": "The ID which can be used to retrieve more details about the public profile." + }, + "displayName": { + "type": "string", + "description": "The display name of the public profile." + }, + "url": { + "type": "string", + "description": "The URL of the public profile." + }, + "displayImageUrl": { + "type": "string", + "description": "The URL to the main display image of the public profile." + } + } + }, + "CertificationStatus": { + "id": "CertificationStatus", + "type": "object", + "description": "Google Partners certification status.", + "properties": { + "type": { + "type": "string", + "description": "The type of the certification.", + "enum": [ + "CERTIFICATION_TYPE_UNSPECIFIED", + "CT_ADWORDS", + "CT_YOUTUBE", + "CT_VIDEOADS", + "CT_ANALYTICS", + "CT_DOUBLECLICK", + "CT_SHOPPING", + "CT_MOBILE" + ] + }, + "examStatuses": { + "type": "array", + "description": "List of certification exam statuses.", + "items": { + "$ref": "CertificationExamStatus" + } + }, + "isCertified": { + "type": "boolean", + "description": "Whether certification is passing." + } + } + }, + "CertificationExamStatus": { + "id": "CertificationExamStatus", + "type": "object", + "description": "Status for a Google Partners certification exam.", + "properties": { + "type": { + "type": "string", + "description": "The type of certification exam.", + "enum": [ + "CERTIFICATION_EXAM_TYPE_UNSPECIFIED", + "CET_ADWORDS_ADVANCED_SEARCH", + "CET_ADWORDS_ADVANCED_DISPLAY", + "CET_VIDEO_ADS", + "CET_ANALYTICS", + "CET_DOUBLECLICK", + "CET_SHOPPING", + "CET_MOBILE" + ] + }, + "numberUsersPass": { + "type": "integer", + "description": "The number of people who have passed the certification exam.", + "format": "int32" + } + } + }, + "Rank": { + "id": "Rank", + "type": "object", + "description": "Information related to ranking of results.", + "properties": { + "type": { + "type": "string", + "description": "The type of rank.", + "enum": [ + "RANK_TYPE_UNSPECIFIED", + "RT_FINAL_SCORE" + ] + }, + "value": { + "type": "number", + "description": "The numerical value of the rank.", + "format": "double" + } + } + }, + "ListCompaniesResponse": { + "id": "ListCompaniesResponse", + "type": "object", + "description": "Response message for [ListCompanies][google.partners.v2.Partner.ListCompanies].", + "properties": { + "responseMetadata": { + "$ref": "ResponseMetadata", + "description": "Current response metadata." + }, + "companies": { + "type": "array", + "description": "The list of companies.", + "items": { + "$ref": "Company" + } + }, + "nextPageToken": { + "type": "string", + "description": "A token to retrieve next page of results. Pass this value in the `ListCompaniesRequest.page_token` field in the subsequent call to [ListCompanies][google.partners.v2.Partner.ListCompanies] to retrieve the next page of results." + } + } + }, + "CreateLeadRequest": { + "id": "CreateLeadRequest", + "type": "object", + "description": "Request message for [CreateLead][google.partners.v2.Partner.CreateLead].", + "properties": { + "requestMetadata": { + "$ref": "RequestMetadata", + "description": "Current request metadata." + }, + "lead": { + "$ref": "Lead", + "description": "The lead resource. The `LeadType` must not be `LEAD_TYPE_UNSPECIFIED` and either `email` or `phone_number` must be provided." + }, + "recaptchaChallenge": { + "$ref": "RecaptchaChallenge", + "description": "reCaptcha challenge info." + } + } + }, + "RecaptchaChallenge": { + "id": "RecaptchaChallenge", + "type": "object", + "description": "reCaptcha challenge info.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the reCaptcha challenge." + }, + "response": { + "type": "string", + "description": "The response to the reCaptcha challenge." + } + } + }, + "CreateLeadResponse": { + "id": "CreateLeadResponse", + "type": "object", + "description": "Response message for [CreateLead][google.partners.v2.Partner.CreateLead]. Debug information about this request.", + "properties": { + "responseMetadata": { + "$ref": "ResponseMetadata", + "description": "Current response metadata." + }, + "lead": { + "$ref": "Lead", + "description": "Lead that was created depending on the outcome of reCaptcha validation." + }, + "recaptchaStatus": { + "type": "string", + "description": "The outcome of reCaptcha validation.", + "enum": [ + "RECAPTCHA_STATUS_UNSPECIFIED", + "RS_NOT_NEEDED", + "RS_PASSED", + "RS_FAILED" + ] + } + } + } + }, + "resources": { + "userEvents": { + "methods": { + "log": { + "id": "partners.userEvents.log", + "path": "v2/userEvents:log", + "httpMethod": "POST", + "description": "Logs a user event.", + "request": { + "$ref": "LogUserEventRequest" + }, + "response": { + "$ref": "LogUserEventResponse" + } + } + } + }, + "clientMessages": { + "methods": { + "log": { + "id": "partners.clientMessages.log", + "path": "v2/clientMessages:log", + "httpMethod": "POST", + "description": "Logs a generic message from the client, such as `Failed to render component`, `Profile page is running slow`, `More than 500 users have accessed this result.`, etc.", + "request": { + "$ref": "LogMessageRequest" + }, + "response": { + "$ref": "LogMessageResponse" + } + } + } + }, + "userStates": { + "methods": { + "list": { + "id": "partners.userStates.list", + "path": "v2/userStates", + "httpMethod": "GET", + "description": "Lists states for current user.", + "parameters": { + "requestMetadata.locale": { + "type": "string", + "description": "Locale to use for the current request.", + "location": "query" + }, + "requestMetadata.partnersSessionId": { + "type": "string", + "description": "Google Partners session ID.", + "location": "query" + }, + "requestMetadata.experimentIds": { + "type": "string", + "description": "Experiment IDs the current request belongs to.", + "repeated": true, + "location": "query" + } + }, + "response": { + "$ref": "ListUserStatesResponse" + } + } + } + }, + "companies": { + "methods": { + "get": { + "id": "partners.companies.get", + "path": "v2/companies/{companyId}", + "httpMethod": "GET", + "description": "Gets a company.", + "parameters": { + "companyId": { + "type": "string", + "description": "The ID of the company to retrieve.", + "required": true, + "location": "path" + }, + "requestMetadata.locale": { + "type": "string", + "description": "Locale to use for the current request.", + "location": "query" + }, + "requestMetadata.partnersSessionId": { + "type": "string", + "description": "Google Partners session ID.", + "location": "query" + }, + "requestMetadata.experimentIds": { + "type": "string", + "description": "Experiment IDs the current request belongs to.", + "repeated": true, + "location": "query" + }, + "view": { + "type": "string", + "description": "The view of `Company` resource to be returned. This must not be `COMPANY_VIEW_UNSPECIFIED`.", + "enum": [ + "COMPANY_VIEW_UNSPECIFIED", + "CV_GOOGLE_PARTNER_SEARCH" + ], + "location": "query" + }, + "orderBy": { + "type": "string", + "description": "How to order addresses within the returned company. Currently, only `address` and `address desc` is supported which will sorted by closest to farthest in distance from given address and farthest to closest distance from given address respectively.", + "location": "query" + }, + "currencyCode": { + "type": "string", + "description": "If the company's budget is in a different currency code than this one, then the converted budget is converted to this currency code.", + "location": "query" + }, + "address": { + "type": "string", + "description": "The address to use for sorting the company's addresses by proximity. If not given, the geo-located address of the request is used. Used when order_by is set.", + "location": "query" + } + }, + "parameterOrder": [ + "companyId" + ], + "response": { + "$ref": "GetCompanyResponse" + } + }, + "list": { + "id": "partners.companies.list", + "path": "v2/companies", + "httpMethod": "GET", + "description": "Lists companies.", + "parameters": { + "requestMetadata.locale": { + "type": "string", + "description": "Locale to use for the current request.", + "location": "query" + }, + "requestMetadata.partnersSessionId": { + "type": "string", + "description": "Google Partners session ID.", + "location": "query" + }, + "requestMetadata.experimentIds": { + "type": "string", + "description": "Experiment IDs the current request belongs to.", + "repeated": true, + "location": "query" + }, + "pageSize": { + "type": "integer", + "description": "Requested page size. Server may return fewer companies than requested. If unspecified, server picks an appropriate default.", + "format": "int32", + "location": "query" + }, + "pageToken": { + "type": "string", + "description": "A token identifying a page of results that the server returns. Typically, this is the value of `ListCompaniesResponse.next_page_token` returned from the previous call to [ListCompanies][google.partners.v2.Partner.ListCompanies].", + "location": "query" + }, + "companyName": { + "type": "string", + "description": "Company name to search for.", + "location": "query" + }, + "view": { + "type": "string", + "description": "The view of the `Company` resource to be returned. This must not be `COMPANY_VIEW_UNSPECIFIED`.", + "enum": [ + "COMPANY_VIEW_UNSPECIFIED", + "CV_GOOGLE_PARTNER_SEARCH" + ], + "location": "query" + }, + "minMonthlyBudget.currencyCode": { + "type": "string", + "description": "The 3-letter currency code defined in ISO 4217.", + "location": "query" + }, + "minMonthlyBudget.units": { + "type": "string", + "description": "The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.", + "format": "int64", + "location": "query" + }, + "minMonthlyBudget.nanos": { + "type": "integer", + "description": "Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", + "format": "int32", + "location": "query" + }, + "maxMonthlyBudget.currencyCode": { + "type": "string", + "description": "The 3-letter currency code defined in ISO 4217.", + "location": "query" + }, + "maxMonthlyBudget.units": { + "type": "string", + "description": "The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.", + "format": "int64", + "location": "query" + }, + "maxMonthlyBudget.nanos": { + "type": "integer", + "description": "Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", + "format": "int32", + "location": "query" + }, + "industries": { + "type": "string", + "description": "List of industries the company can help with.", + "enum": [ + "INDUSTRY_UNSPECIFIED", + "I_AUTOMOTIVE", + "I_BUSINESS_TO_BUSINESS", + "I_CONSUMER_PACKAGED_GOODS", + "I_EDUCATION", + "I_FINANCE", + "I_HEALTHCARE", + "I_MEDIA_AND_ENTERTAINMENT", + "I_RETAIL", + "I_TECHNOLOGY", + "I_TRAVEL" + ], + "repeated": true, + "location": "query" + }, + "services": { + "type": "string", + "description": "List of services the company can help with.", + "enum": [ + "SERVICE_UNSPECIFIED", + "S_ADVANCED_ADWORDS_SUPPORT", + "S_ADVERTISING_ON_GOOGLE", + "S_AN_ENHANCED_WEBSITE", + "S_AN_ONLINE_MARKETING_PLAN", + "S_MOBILE_AND_VIDEO_ADS" + ], + "repeated": true, + "location": "query" + }, + "languageCodes": { + "type": "string", + "description": "List of language codes that company can support. Only primary language subtags are accepted as defined by BCP 47 (IETF BCP 47, \"Tags for Identifying Languages\").", + "repeated": true, + "location": "query" + }, + "address": { + "type": "string", + "description": "The address to use when searching for companies. If not given, the geo-located address of the request is used.", + "location": "query" + }, + "orderBy": { + "type": "string", + "description": "How to order addresses within the returned companies. Currently, only `address` and `address desc` is supported which will sorted by closest to farthest in distance from given address and farthest to closest distance from given address respectively.", + "location": "query" + }, + "gpsMotivations": { + "type": "string", + "description": "List of reasons for using Google Partner Search to get companies.", + "enum": [ + "GPS_MOTIVATION_UNSPECIFIED", + "GPSM_HELP_WITH_ADVERTISING", + "GPSM_HELP_WITH_WEBSITE", + "GPSM_NO_WEBSITE" + ], + "repeated": true, + "location": "query" + }, + "websiteUrl": { + "type": "string", + "description": "Website URL that will help to find a better matched company. .", + "location": "query" + } + }, + "response": { + "$ref": "ListCompaniesResponse" + } + } + }, + "resources": { + "leads": { + "methods": { + "create": { + "id": "partners.companies.leads.create", + "path": "v2/companies/{companyId}/leads", + "httpMethod": "POST", + "description": "Creates an advertiser lead for the given company ID.", + "parameters": { + "companyId": { + "type": "string", + "description": "The ID of the company to contact.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "companyId" + ], + "request": { + "$ref": "CreateLeadRequest" + }, + "response": { + "$ref": "CreateLeadResponse" + } + } + } + } + } + } + } +} diff --git a/partners/v2/partners-gen.go b/partners/v2/partners-gen.go new file mode 100644 index 00000000000..0686cf16729 --- /dev/null +++ b/partners/v2/partners-gen.go @@ -0,0 +1,1657 @@ +// Package partners provides access to the Google Partners API. +// +// See https://developers.google.com/partners/ +// +// Usage example: +// +// import "google.golang.org/api/partners/v2" +// ... +// partnersService, err := partners.New(oauthHttpClient) +package partners + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "golang.org/x/net/context" + "google.golang.org/api/googleapi" + "io" + "net/http" + "net/url" + "strconv" + "strings" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Background + +const apiId = "partners:v2" +const apiName = "partners" +const apiVersion = "v2" +const basePath = "https://partners.googleapis.com/" + +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.ClientMessages = NewClientMessagesService(s) + s.Companies = NewCompaniesService(s) + s.UserEvents = NewUserEventsService(s) + s.UserStates = NewUserStatesService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + ClientMessages *ClientMessagesService + + Companies *CompaniesService + + UserEvents *UserEventsService + + UserStates *UserStatesService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewClientMessagesService(s *Service) *ClientMessagesService { + rs := &ClientMessagesService{s: s} + return rs +} + +type ClientMessagesService struct { + s *Service +} + +func NewCompaniesService(s *Service) *CompaniesService { + rs := &CompaniesService{s: s} + rs.Leads = NewCompaniesLeadsService(s) + return rs +} + +type CompaniesService struct { + s *Service + + Leads *CompaniesLeadsService +} + +func NewCompaniesLeadsService(s *Service) *CompaniesLeadsService { + rs := &CompaniesLeadsService{s: s} + return rs +} + +type CompaniesLeadsService struct { + s *Service +} + +func NewUserEventsService(s *Service) *UserEventsService { + rs := &UserEventsService{s: s} + return rs +} + +type UserEventsService struct { + s *Service +} + +func NewUserStatesService(s *Service) *UserStatesService { + rs := &UserStatesService{s: s} + return rs +} + +type UserStatesService struct { + s *Service +} + +type CertificationExamStatus struct { + // NumberUsersPass: The number of people who have passed the + // certification exam. + NumberUsersPass int64 `json:"numberUsersPass,omitempty"` + + // Type: The type of certification exam. + // + // Possible values: + // "CERTIFICATION_EXAM_TYPE_UNSPECIFIED" + // "CET_ADWORDS_ADVANCED_SEARCH" + // "CET_ADWORDS_ADVANCED_DISPLAY" + // "CET_VIDEO_ADS" + // "CET_ANALYTICS" + // "CET_DOUBLECLICK" + // "CET_SHOPPING" + // "CET_MOBILE" + Type string `json:"type,omitempty"` +} + +type CertificationStatus struct { + // ExamStatuses: List of certification exam statuses. + ExamStatuses []*CertificationExamStatus `json:"examStatuses,omitempty"` + + // IsCertified: Whether certification is passing. + IsCertified bool `json:"isCertified,omitempty"` + + // Type: The type of the certification. + // + // Possible values: + // "CERTIFICATION_TYPE_UNSPECIFIED" + // "CT_ADWORDS" + // "CT_YOUTUBE" + // "CT_VIDEOADS" + // "CT_ANALYTICS" + // "CT_DOUBLECLICK" + // "CT_SHOPPING" + // "CT_MOBILE" + Type string `json:"type,omitempty"` +} + +type Company struct { + // CertificationStatuses: The list of Google Partners certification + // statuses for the company. + CertificationStatuses []*CertificationStatus `json:"certificationStatuses,omitempty"` + + // ConvertedMinMonthlyBudget: The minimum monthly budget that the + // company accepts for partner business, converted to the requested + // currency code. + ConvertedMinMonthlyBudget *Money `json:"convertedMinMonthlyBudget,omitempty"` + + // Id: The ID of the company. + Id string `json:"id,omitempty"` + + // Industries: Industries the company can help with. + Industries []string `json:"industries,omitempty"` + + // LocalizedInfos: The list of localized info for the company. + LocalizedInfos []*LocalizedCompanyInfo `json:"localizedInfos,omitempty"` + + // Locations: The list of company locations. + Locations []*Location `json:"locations,omitempty"` + + // Name: The name of the company. + Name string `json:"name,omitempty"` + + // OriginalMinMonthlyBudget: The unconverted minimum monthly budget that + // the company accepts for partner business. + OriginalMinMonthlyBudget *Money `json:"originalMinMonthlyBudget,omitempty"` + + // PublicProfile: Basic information from the company's public profile. + PublicProfile *PublicProfile `json:"publicProfile,omitempty"` + + // Ranks: Information related to the ranking of the company within the + // list of companies. + Ranks []*Rank `json:"ranks,omitempty"` + + // Services: Services the company can help with. + Services []string `json:"services,omitempty"` + + // WebsiteUrl: URL of the company's website. + WebsiteUrl string `json:"websiteUrl,omitempty"` +} + +type CreateLeadRequest struct { + // Lead: The lead resource. The `LeadType` must not be + // `LEAD_TYPE_UNSPECIFIED` and either `email` or `phone_number` must be + // provided. + Lead *Lead `json:"lead,omitempty"` + + // RecaptchaChallenge: reCaptcha challenge info. + RecaptchaChallenge *RecaptchaChallenge `json:"recaptchaChallenge,omitempty"` + + // RequestMetadata: Current request metadata. + RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"` +} + +type CreateLeadResponse struct { + // Lead: Lead that was created depending on the outcome of reCaptcha + // validation. + Lead *Lead `json:"lead,omitempty"` + + // RecaptchaStatus: The outcome of reCaptcha validation. + // + // Possible values: + // "RECAPTCHA_STATUS_UNSPECIFIED" + // "RS_NOT_NEEDED" + // "RS_PASSED" + // "RS_FAILED" + RecaptchaStatus string `json:"recaptchaStatus,omitempty"` + + // ResponseMetadata: Current response metadata. + ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` +} + +type DebugInfo struct { +} + +type EventData struct { + // Key: Data type. + // + // Possible values: + // "EVENT_DATA_TYPE_UNSPECIFIED" + // "ACTION" + // "AGENCY_ID" + // "AGENCY_NAME" + // "AGENCY_PHONE_NUMBER" + // "AGENCY_WEBSITE" + // "BUDGET" + // "CENTER_POINT" + // "CERTIFICATION" + // "COMMENT" + // "COUNTRY" + // "CURRENCY" + // "CURRENTLY_VIEWED_AGENCY_ID" + // "DISTANCE" + // "DISTANCE_TYPE" + // "EXAM" + // "HISTORY_TOKEN" + // "IDENTIFIER" + // "INDUSTRY" + // "INSIGHT_TAG" + // "LANGUAGE" + // "LOCATION" + // "MARKETING_OPT_IN" + // "QUERY" + // "SEARCH_START_INDEX" + // "SERVICE" + // "SHOW_VOW" + // "SOLUTION" + // "TRAFFIC_SOURCE_ID" + // "TRAFFIC_SUB_ID" + // "VIEW_PORT" + // "WEBSITE" + // "DETAILS" + // "EXPERIMENT_ID" + // "GPS_MOTIVATION" + // "URL" + // "ELEMENT_FOCUS" + Key string `json:"key,omitempty"` + + // Values: Data values. + Values []string `json:"values,omitempty"` +} + +type GetCompanyResponse struct { + // Company: The company. + Company *Company `json:"company,omitempty"` + + // ResponseMetadata: Current response metadata. + ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` +} + +type LatLng struct { + // Latitude: The latitude in degrees. It must be in the range [-90.0, + // +90.0]. + Latitude float64 `json:"latitude,omitempty"` + + // Longitude: The longitude in degrees. It must be in the range [-180.0, + // +180.0]. + Longitude float64 `json:"longitude,omitempty"` +} + +type Lead struct { + // Comments: Comments lead source gave. + Comments string `json:"comments,omitempty"` + + // Email: Email address of lead source. + Email string `json:"email,omitempty"` + + // FamilyName: Last name of lead source. + FamilyName string `json:"familyName,omitempty"` + + // GivenName: First name of lead source. + GivenName string `json:"givenName,omitempty"` + + // GpsMotivations: List of reasons for using Google Partner Search and + // creating a lead. + GpsMotivations []string `json:"gpsMotivations,omitempty"` + + // Id: ID of the lead. + Id string `json:"id,omitempty"` + + // MinMonthlyBudget: The minimum monthly budget lead source is willing + // to spend. + MinMonthlyBudget *Money `json:"minMonthlyBudget,omitempty"` + + // PhoneNumber: Phone number of lead source. + PhoneNumber string `json:"phoneNumber,omitempty"` + + // Type: Type of lead. + // + // Possible values: + // "LEAD_TYPE_UNSPECIFIED" + // "LT_GPS" + Type string `json:"type,omitempty"` + + // WebsiteUrl: Website URL of lead source. + WebsiteUrl string `json:"websiteUrl,omitempty"` +} + +type ListCompaniesResponse struct { + // Companies: The list of companies. + Companies []*Company `json:"companies,omitempty"` + + // NextPageToken: A token to retrieve next page of results. Pass this + // value in the `ListCompaniesRequest.page_token` field in the + // subsequent call to + // [ListCompanies][google.partners.v2.Partner.ListCompanies] to retrieve + // the next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ResponseMetadata: Current response metadata. + ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` +} + +type ListUserStatesResponse struct { + // ResponseMetadata: Current response metadata. + ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` + + // UserStates: User's states. + UserStates []string `json:"userStates,omitempty"` +} + +type LocalizedCompanyInfo struct { + // CountryCodes: List of country codes for the localized company info. + CountryCodes []string `json:"countryCodes,omitempty"` + + // DisplayName: Localized display name. + DisplayName string `json:"displayName,omitempty"` + + // LanguageCode: Language code of the localized company info, as defined + // by BCP 47 (IETF BCP 47, "Tags for Identifying Languages"). + LanguageCode string `json:"languageCode,omitempty"` + + // Overview: Localized brief description that the company uses to + // advertise themselves. + Overview string `json:"overview,omitempty"` +} + +type Location struct { + // Address: The complete address of the location. + Address string `json:"address,omitempty"` + + // LatLng: The latitude and longitude of the location, in degrees. + LatLng *LatLng `json:"latLng,omitempty"` +} + +type LogMessageRequest struct { + // ClientInfo: Map of client info, such as URL, browser navigator, + // browser platform, etc. + ClientInfo map[string]string `json:"clientInfo,omitempty"` + + // Details: Details about the client message. + Details string `json:"details,omitempty"` + + // Level: Message level of client message. + // + // Possible values: + // "MESSAGE_LEVEL_UNSPECIFIED" + // "ML_FINE" + // "ML_INFO" + // "ML_WARNING" + // "ML_SEVERE" + Level string `json:"level,omitempty"` + + // RequestMetadata: Current request metadata. + RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"` +} + +type LogMessageResponse struct { + // ResponseMetadata: Current response metadata. + ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` +} + +type LogUserEventRequest struct { + // EventAction: The action that occurred. + // + // Possible values: + // "EVENT_ACTION_UNSPECIFIED" + // "SMB_CLICKED_FIND_A_PARTNER_BUTTON_BOTTOM" + // "SMB_CLICKED_FIND_A_PARTNER_BUTTON_TOP" + // "AGENCY_CLICKED_JOIN_NOW_BUTTON_BOTTOM" + // "AGENCY_CLICKED_JOIN_NOW_BUTTON_TOP" + // "SMB_CANCELED_PARTNER_CONTACT_FORM" + // "SMB_CLICKED_CONTACT_A_PARTNER" + // "SMB_COMPLETED_PARTNER_CONTACT_FORM" + // "SMB_ENTERED_EMAIL_IN_CONTACT_PARTNER_FORM" + // "SMB_ENTERED_NAME_IN_CONTACT_PARTNER_FORM" + // "SMB_ENTERED_PHONE_IN_CONTACT_PARTNER_FORM" + // "SMB_FAILED_RECAPTCHA_IN_CONTACT_PARTNER_FORM" + // "PARTNER_VIEWED_BY_SMB" + // "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_GPS" + // "SMB_CHANGED_A_SEARCH_PARAMETER_TOP" + // "SMB_CLICKED_CONTACT_A_PARTNER_ON_GPS" + // "SMB_CLICKED_SHOW_MORE_PARTNERS_BUTTON_BOTTOM" + // "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_GPS" + // "SMB_NO_PARTNERS_AVAILABLE_WITH_SEARCH_CRITERIA" + // "SMB_PERFORMED_SEARCH_ON_GPS" + // "SMB_VIEWED_A_PARTNER_ON_GPS" + // "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" + // "SMB_CLICKED_CONTACT_A_PARTNER_ON_PROFILE_PAGE" + // "SMB_CLICKED_PARTNER_WEBSITE" + // "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" + // "SMB_VIEWED_A_PARTNER_PROFILE" + // "AGENCY_CLICKED_ACCEPT_TOS_BUTTON" + // "AGENCY_CHANGED_TOS_COUNTRY" + // "AGENCY_ADDED_ADDRESS_IN_MY_PROFILE_PORTAL" + // "AGENCY_ADDED_PHONE_NUMBER_IN_MY_PROFILE_PORTAL" + // "AGENCY_CHANGED_PRIMARY_ACCOUNT_ASSOCIATION" + // "AGENCY_CHANGED_PRIMARY_COUNTRY_ASSOCIATION" + // "AGENCY_CLICKED_AFFILIATE_BUTTON_IN_MY_PROFILE_IN_PORTAL" + // "AGENCY_CLICKED_GIVE_EDIT_ACCESS_IN_MY_PROFILE_PORTAL" + // "AGENCY_CLICKED_LOG_OUT_IN_MY_PROFILE_PORTAL" + // "AGENCY_CLICKED_MY_PROFILE_LEFT_NAV_IN_PORTAL" + // "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_COMPLETE_PROFILE" + // "AGENCY_CLICKED_UNAFFILIATE_IN_MY_PROFILE_PORTAL" + // "AGENCY_FILLED_OUT_COMP_AFFILIATION_IN_MY_PROFILE_PORTAL" + // "AGENCY_SUCCESSFULLY_CONNECTED_WITH_COMPANY_IN_MY_PROFILE" + // "AGENCY_CLICKED_CREATE_MCC_IN_MY_PROFILE_PORTAL" + // "AGENCY_DIDNT_HAVE_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" + // "AGENCY_HAD_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" + // "AGENCY_ADDED_JOB_FUNCTION_IN_MY_PROFILE_PORTAL" + // "AGENCY_LOOKED_AT_JOB_FUNCTION_DROP_DOWN" + // "AGENCY_SELECTED_ACCOUNT_MANAGER_AS_JOB_FUNCTION" + // "AGENCY_SELECTED_ACCOUNT_PLANNER_AS_JOB_FUNCTION" + // "AGENCY_SELECTED_ANALYTICS_AS_JOB_FUNCTION" + // "AGENCY_SELECTED_CREATIVE_AS_JOB_FUNCTION" + // "AGENCY_SELECTED_MEDIA_BUYER_AS_JOB_FUNCTION" + // "AGENCY_SELECTED_MEDIA_PLANNER_AS_JOB_FUNCTION" + // "AGENCY_SELECTED_OTHER_AS_JOB_FUNCTION" + // "AGENCY_SELECTED_PRODUCTION_AS_JOB_FUNCTION" + // "AGENCY_SELECTED_SEO_AS_JOB_FUNCTION" + // "AGENCY_SELECTED_SALES_REP_AS_JOB_FUNCTION" + // "AGENCY_SELECTED_SEARCH_SPECIALIST_AS_JOB_FUNCTION" + // "AGENCY_ADDED_CHANNELS_IN_MY_PROFILE_PORTAL" + // "AGENCY_LOOKED_AT_ADD_CHANNEL_DROP_DOWN" + // "AGENCY_SELECTED_CROSS_CHANNEL_FROM_ADD_CHANNEL" + // "AGENCY_SELECTED_DISPLAY_FROM_ADD_CHANNEL" + // "AGENCY_SELECTED_MOBILE_FROM_ADD_CHANNEL" + // "AGENCY_SELECTED_SEARCH_FROM_ADD_CHANNEL" + // "AGENCY_SELECTED_SOCIAL_FROM_ADD_CHANNEL" + // "AGENCY_SELECTED_TOOLS_FROM_ADD_CHANNEL" + // "AGENCY_SELECTED_YOUTUBE_FROM_ADD_CHANNEL" + // "AGENCY_ADDED_INDUSTRIES_IN_MY_PROFILE_PORTAL" + // "AGENCY_CHANGED_ADD_INDUSTRIES_DROP_DOWN" + // "AGENCY_ADDED_MARKETS_IN_MY_PROFILE_PORTAL" + // "AGENCY_CHANGED_ADD_MARKETS_DROP_DOWN" + // "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_MYPROFILE" + // "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_SIGNUP" + // "AGENCY_SELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" + // "AGENCY_SELECTED_OPT_IN_BETA_TESTS_IN_MY_PROFILE_PORTAL" + // "AGENCY_SELECTED_OPT_IN_NEWS_IN_MY_PROFILE_PORTAL" + // "AGENCY_SELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" + // "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUG_IN_MY_PROFILE_PORTAL" + // "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" + // "AGENCY_SELECTED_OPT_IN_SELECT_ALL_EMAIL_NOTIFICATIONS" + // "AGENCY_SELECTED_SELECT_ALL_OPT_INS_IN_MY_PROFILE_PORTAL" + // "AGENCY_CLICKED_BACK_BUTTON_ON_CONNECT_WITH_COMPANY" + // "AGENCY_CLICKED_CONTINUE_TO_OVERVIEW_ON_CONNECT_WITH_COMPANY" + // "AGECNY_CLICKED_CREATE_MCC_CONNECT_WITH_COMPANY_NOT_FOUND" + // "AGECNY_CLICKED_GIVE_EDIT_ACCESS_CONNECT_WITH_COMPANY_NOT_FOUND" + // "AGECNY_CLICKED_LOG_OUT_CONNECT_WITH_COMPANY_NOT_FOUND" + // "AGENCY_CLICKED_SKIP_FOR_NOW_ON_CONNECT_WITH_COMPANY_PAGE" + // "AGENCY_CLOSED_CONNECTED_TO_COMPANY_X_BUTTON_WRONG_COMPANY" + // "AGENCY_COMPLETED_FIELD_CONNECT_WITH_COMPANY" + // "AGECNY_FOUND_COMPANY_TO_CONNECT_WITH" + // "AGENCY_SUCCESSFULLY_CREATED_COMPANY" + // "AGENCY_ADDED_NEW_COMPANY_LOCATION" + // "AGENCY_CLICKED_COMMUNITY_JOIN_NOW_LINK_IN_PORTAL_NOTIFICATIONS" + // "AGENCY_CLICKED_CONNECT_TO_COMPANY_LINK_IN_PORTAL_NOTIFICATIONS" + // "AGENCY_CLICKED_GET_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" + // + // "AGENCY_CLICKED_GET_VIDEO_ADS_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" + // "AGENCY_CLICKED_LINK_TO_MCC_LINK_IN_PORTAL_NOTIFICATIONS" + // "AGENCY_CLICKED_INSIGHT_CONTENT_IN_PORTAL" + // "AGENCY_CLICKED_INSIGHTS_VIEW_NOW_PITCH_DECKS_IN_PORTAL" + // "AGENCY_CLICKED_INSIGHTS_LEFT_NAV_IN_PORTAL" + // "AGENCY_CLICKED_INSIGHTS_UPLOAD_CONTENT" + // "AGENCY_CLICKED_INSIGHTS_VIEWED_DEPRECATED" + // "AGENCY_CLICKED_COMMUNITY_LEFT_NAV_IN_PORTAL" + // "AGENCY_CLICKED_JOIN_COMMUNITY_BUTTON_COMMUNITY_PORTAL" + // "AGENCY_CLICKED_CERTIFICATIONS_LEFT_NAV_IN_PORTAL" + // "AGENCY_CLICKED_CERTIFICATIONS_PRODUCT_LEFT_NAV_IN_PORTAL" + // "AGENCY_CLICKED_PARTNER_STATUS_LEFT_NAV_IN_PORTAL" + // "AGENCY_CLICKED_PARTNER_STATUS_PRODUCT_LEFT_NAV_IN_PORTAL" + // "AGENCY_CLICKED_OFFERS_LEFT_NAV_IN_PORTAL" + // "AGENCY_CLICKED_SEND_BUTTON_ON_OFFERS_PAGE" + // "AGENCY_CLICKED_EXAM_DETAILS_ON_CERT_ADWORDS_PAGE" + // "AGENCY_CLICKED_SEE_EXAMS_CERTIFICATION_MAIN_PAGE" + // "AGENCY_CLICKED_TAKE_EXAM_ON_CERT_EXAM_PAGE" + // "AGENCY_OPENED_LAST_ADMIN_DIALOG" + // "AGENCY_OPENED_DIALOG_WITH_NO_USERS" + // "AGENCY_PROMOTED_USER_TO_ADMIN" + // "AGENCY_UNAFFILIATED" + // "AGENCY_CHANGED_ROLES" + // "SMB_CLICKED_COMPANY_NAME_LINK_TO_PROFILE" + // "SMB_VIEWED_ADWORDS_CERTIFICATE" + // "SMB_CLICKED_ADWORDS_CERTIFICATE_HELP_ICON" + // "SMB_VIEWED_ANALYTICS_CERTIFICATE" + // "SMB_VIEWED_DOUBLECLICK_CERTIFICATE" + // "SMB_VIEWED_VIDEO_ADS_CERTIFICATE" + // "SMB_VIEWED_SHOPPING_CERTIFICATE" + // "SMB_CLICKED_VIDEO_ADS_CERTIFICATE_HELP_ICON" + // "CLICKED_HELP_AT_BOTTOM" + // "CLICKED_HELP_AT_TOP" + // "CLIENT_ERROR" + // "AGENCY_CLICKED_LEFT_NAV_STORIES" + // "CLICKED" + // "SMB_VIEWED_MOBILE_CERTIFICATE" + // "AGENCY_FAILED_COMPANY_VERIFICATION" + // "VISITED_LANDING" + // "VISITED_GPS" + // "VISITED_AGENCY_PORTAL" + EventAction string `json:"eventAction,omitempty"` + + // EventCategory: The category the action belongs to. + // + // Possible values: + // "EVENT_CATEGORY_UNSPECIFIED" + // "GOOGLE_PARTNER_SEARCH" + // "GOOGLE_PARTNER_SIGNUP_FLOW" + // "GOOGLE_PARTNER_PORTAL" + // "GOOGLE_PARTNER_PORTAL_MY_PROFILE" + // "GOOGLE_PARTNER_PORTAL_CERTIFICATIONS" + // "GOOGLE_PARTNER_PORTAL_COMMUNITY" + // "GOOGLE_PARTNER_PORTAL_INSIGHTS" + // "GOOGLE_PARTNER_PORTAL_CLIENTS" + // "GOOGLE_PARTNER_PUBLIC_USER_PROFILE" + // "GOOGLE_PARTNER_PANEL" + // "GOOGLE_PARTNER_PORTAL_LAST_ADMIN_DIALOG" + // "GOOGLE_PARTNER_CLIENT" + // "GOOGLE_PARTNER_PORTAL_COMPANY_PROFILE" + // "EXTERNAL_LINKS" + // "GOOGLE_PARTNER_LANDING" + EventCategory string `json:"eventCategory,omitempty"` + + // EventDatas: List of event data for the event. + EventDatas []*EventData `json:"eventDatas,omitempty"` + + // EventScope: The scope of the event. + // + // Possible values: + // "EVENT_SCOPE_UNSPECIFIED" + // "VISITOR" + // "SESSION" + // "PAGE" + EventScope string `json:"eventScope,omitempty"` + + // Lead: Advertiser lead information. + Lead *Lead `json:"lead,omitempty"` + + // RequestMetadata: Current request metadata. + RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"` + + // Url: The URL where the event occurred. + Url string `json:"url,omitempty"` +} + +type LogUserEventResponse struct { + // ResponseMetadata: Current response metadata. + ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` +} + +type Money struct { + // CurrencyCode: The 3-letter currency code defined in ISO 4217. + CurrencyCode string `json:"currencyCode,omitempty"` + + // Nanos: Number of nano (10^-9) units of the amount. The value must be + // between -999,999,999 and +999,999,999 inclusive. If `units` is + // positive, `nanos` must be positive or zero. If `units` is zero, + // `nanos` can be positive, zero, or negative. If `units` is negative, + // `nanos` must be negative or zero. For example $-1.75 is represented + // as `units`=-1 and `nanos`=-750,000,000. + Nanos int64 `json:"nanos,omitempty"` + + // Units: The whole units of the amount. For example if `currencyCode` + // is "USD", then 1 unit is one US dollar. + Units int64 `json:"units,omitempty,string"` +} + +type PublicProfile struct { + // DisplayImageUrl: The URL to the main display image of the public + // profile. + DisplayImageUrl string `json:"displayImageUrl,omitempty"` + + // DisplayName: The display name of the public profile. + DisplayName string `json:"displayName,omitempty"` + + // Id: The ID which can be used to retrieve more details about the + // public profile. + Id string `json:"id,omitempty"` + + // Url: The URL of the public profile. + Url string `json:"url,omitempty"` +} + +type Rank struct { + // Type: The type of rank. + // + // Possible values: + // "RANK_TYPE_UNSPECIFIED" + // "RT_FINAL_SCORE" + Type string `json:"type,omitempty"` + + // Value: The numerical value of the rank. + Value float64 `json:"value,omitempty"` +} + +type RecaptchaChallenge struct { + // Id: The ID of the reCaptcha challenge. + Id string `json:"id,omitempty"` + + // Response: The response to the reCaptcha challenge. + Response string `json:"response,omitempty"` +} + +type RequestMetadata struct { + // ExperimentIds: Experiment IDs the current request belongs to. + ExperimentIds []string `json:"experimentIds,omitempty"` + + // Locale: Locale to use for the current request. + Locale string `json:"locale,omitempty"` + + // PartnersSessionId: Google Partners session ID. + PartnersSessionId string `json:"partnersSessionId,omitempty"` +} + +type ResponseMetadata struct { + // DebugInfo: Debug information about this request. + DebugInfo *DebugInfo `json:"debugInfo,omitempty"` +} + +// method id "partners.clientMessages.log": + +type ClientMessagesLogCall struct { + s *Service + logmessagerequest *LogMessageRequest + opt_ map[string]interface{} +} + +// Log: Logs a generic message from the client, such as `Failed to +// render component`, `Profile page is running slow`, `More than 500 +// users have accessed this result.`, etc. +func (r *ClientMessagesService) Log(logmessagerequest *LogMessageRequest) *ClientMessagesLogCall { + c := &ClientMessagesLogCall{s: r.s, opt_: make(map[string]interface{})} + c.logmessagerequest = logmessagerequest + 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 *ClientMessagesLogCall) Fields(s ...googleapi.Field) *ClientMessagesLogCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *ClientMessagesLogCall) Do() (*LogMessageResponse, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logmessagerequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/clientMessages:log") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *LogMessageResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Logs a generic message from the client, such as `Failed to render component`, `Profile page is running slow`, `More than 500 users have accessed this result.`, etc.", + // "httpMethod": "POST", + // "id": "partners.clientMessages.log", + // "path": "v2/clientMessages:log", + // "request": { + // "$ref": "LogMessageRequest" + // }, + // "response": { + // "$ref": "LogMessageResponse" + // } + // } + +} + +// method id "partners.companies.get": + +type CompaniesGetCall struct { + s *Service + companyId string + opt_ map[string]interface{} +} + +// Get: Gets a company. +func (r *CompaniesService) Get(companyId string) *CompaniesGetCall { + c := &CompaniesGetCall{s: r.s, opt_: make(map[string]interface{})} + c.companyId = companyId + return c +} + +// Address sets the optional parameter "address": The address to use for +// sorting the company's addresses by proximity. If not given, the +// geo-located address of the request is used. Used when order_by is +// set. +func (c *CompaniesGetCall) Address(address string) *CompaniesGetCall { + c.opt_["address"] = address + return c +} + +// CurrencyCode sets the optional parameter "currencyCode": If the +// company's budget is in a different currency code than this one, then +// the converted budget is converted to this currency code. +func (c *CompaniesGetCall) CurrencyCode(currencyCode string) *CompaniesGetCall { + c.opt_["currencyCode"] = currencyCode + return c +} + +// OrderBy sets the optional parameter "orderBy": How to order addresses +// within the returned company. Currently, only `address` and `address +// desc` is supported which will sorted by closest to farthest in +// distance from given address and farthest to closest distance from +// given address respectively. +func (c *CompaniesGetCall) OrderBy(orderBy string) *CompaniesGetCall { + c.opt_["orderBy"] = orderBy + return c +} + +// RequestMetadataExperimentIds sets the optional parameter +// "requestMetadata.experimentIds": Experiment IDs the current request +// belongs to. +func (c *CompaniesGetCall) RequestMetadataExperimentIds(requestMetadataExperimentIds string) *CompaniesGetCall { + c.opt_["requestMetadata.experimentIds"] = requestMetadataExperimentIds + return c +} + +// RequestMetadataLocale sets the optional parameter +// "requestMetadata.locale": Locale to use for the current request. +func (c *CompaniesGetCall) RequestMetadataLocale(requestMetadataLocale string) *CompaniesGetCall { + c.opt_["requestMetadata.locale"] = requestMetadataLocale + return c +} + +// RequestMetadataPartnersSessionId sets the optional parameter +// "requestMetadata.partnersSessionId": Google Partners session ID. +func (c *CompaniesGetCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *CompaniesGetCall { + c.opt_["requestMetadata.partnersSessionId"] = requestMetadataPartnersSessionId + return c +} + +// View sets the optional parameter "view": The view of `Company` +// resource to be returned. This must not be `COMPANY_VIEW_UNSPECIFIED`. +// +// Possible values: +// "COMPANY_VIEW_UNSPECIFIED" +// "CV_GOOGLE_PARTNER_SEARCH" +func (c *CompaniesGetCall) View(view string) *CompaniesGetCall { + c.opt_["view"] = view + 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 *CompaniesGetCall) Fields(s ...googleapi.Field) *CompaniesGetCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *CompaniesGetCall) Do() (*GetCompanyResponse, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["address"]; ok { + params.Set("address", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["currencyCode"]; ok { + params.Set("currencyCode", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["orderBy"]; ok { + params.Set("orderBy", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["requestMetadata.experimentIds"]; ok { + params.Set("requestMetadata.experimentIds", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["requestMetadata.locale"]; ok { + params.Set("requestMetadata.locale", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["requestMetadata.partnersSessionId"]; ok { + params.Set("requestMetadata.partnersSessionId", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["view"]; ok { + params.Set("view", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/companies/{companyId}") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "companyId": c.companyId, + }) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *GetCompanyResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a company.", + // "httpMethod": "GET", + // "id": "partners.companies.get", + // "parameterOrder": [ + // "companyId" + // ], + // "parameters": { + // "address": { + // "description": "The address to use for sorting the company's addresses by proximity. If not given, the geo-located address of the request is used. Used when order_by is set.", + // "location": "query", + // "type": "string" + // }, + // "companyId": { + // "description": "The ID of the company to retrieve.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "currencyCode": { + // "description": "If the company's budget is in a different currency code than this one, then the converted budget is converted to this currency code.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "How to order addresses within the returned company. Currently, only `address` and `address desc` is supported which will sorted by closest to farthest in distance from given address and farthest to closest distance from given address respectively.", + // "location": "query", + // "type": "string" + // }, + // "requestMetadata.experimentIds": { + // "description": "Experiment IDs the current request belongs to.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "requestMetadata.locale": { + // "description": "Locale to use for the current request.", + // "location": "query", + // "type": "string" + // }, + // "requestMetadata.partnersSessionId": { + // "description": "Google Partners session ID.", + // "location": "query", + // "type": "string" + // }, + // "view": { + // "description": "The view of `Company` resource to be returned. This must not be `COMPANY_VIEW_UNSPECIFIED`.", + // "enum": [ + // "COMPANY_VIEW_UNSPECIFIED", + // "CV_GOOGLE_PARTNER_SEARCH" + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/companies/{companyId}", + // "response": { + // "$ref": "GetCompanyResponse" + // } + // } + +} + +// method id "partners.companies.list": + +type CompaniesListCall struct { + s *Service + opt_ map[string]interface{} +} + +// List: Lists companies. +func (r *CompaniesService) List() *CompaniesListCall { + c := &CompaniesListCall{s: r.s, opt_: make(map[string]interface{})} + return c +} + +// Address sets the optional parameter "address": The address to use +// when searching for companies. If not given, the geo-located address +// of the request is used. +func (c *CompaniesListCall) Address(address string) *CompaniesListCall { + c.opt_["address"] = address + return c +} + +// CompanyName sets the optional parameter "companyName": Company name +// to search for. +func (c *CompaniesListCall) CompanyName(companyName string) *CompaniesListCall { + c.opt_["companyName"] = companyName + return c +} + +// GpsMotivations sets the optional parameter "gpsMotivations": List of +// reasons for using Google Partner Search to get companies. +// +// Possible values: +// "GPS_MOTIVATION_UNSPECIFIED" +// "GPSM_HELP_WITH_ADVERTISING" +// "GPSM_HELP_WITH_WEBSITE" +// "GPSM_NO_WEBSITE" +func (c *CompaniesListCall) GpsMotivations(gpsMotivations string) *CompaniesListCall { + c.opt_["gpsMotivations"] = gpsMotivations + return c +} + +// Industries sets the optional parameter "industries": List of +// industries the company can help with. +// +// Possible values: +// "INDUSTRY_UNSPECIFIED" +// "I_AUTOMOTIVE" +// "I_BUSINESS_TO_BUSINESS" +// "I_CONSUMER_PACKAGED_GOODS" +// "I_EDUCATION" +// "I_FINANCE" +// "I_HEALTHCARE" +// "I_MEDIA_AND_ENTERTAINMENT" +// "I_RETAIL" +// "I_TECHNOLOGY" +// "I_TRAVEL" +func (c *CompaniesListCall) Industries(industries string) *CompaniesListCall { + c.opt_["industries"] = industries + return c +} + +// LanguageCodes sets the optional parameter "languageCodes": List of +// language codes that company can support. Only primary language +// subtags are accepted as defined by BCP 47 (IETF BCP 47, "Tags for +// Identifying Languages"). +func (c *CompaniesListCall) LanguageCodes(languageCodes string) *CompaniesListCall { + c.opt_["languageCodes"] = languageCodes + return c +} + +// MaxMonthlyBudgetCurrencyCode sets the optional parameter +// "maxMonthlyBudget.currencyCode": The 3-letter currency code defined +// in ISO 4217. +func (c *CompaniesListCall) MaxMonthlyBudgetCurrencyCode(maxMonthlyBudgetCurrencyCode string) *CompaniesListCall { + c.opt_["maxMonthlyBudget.currencyCode"] = maxMonthlyBudgetCurrencyCode + return c +} + +// MaxMonthlyBudgetNanos sets the optional parameter +// "maxMonthlyBudget.nanos": Number of nano (10^-9) units of the amount. +// The value must be between -999,999,999 and +999,999,999 inclusive. If +// `units` is positive, `nanos` must be positive or zero. If `units` is +// zero, `nanos` can be positive, zero, or negative. If `units` is +// negative, `nanos` must be negative or zero. For example $-1.75 is +// represented as `units`=-1 and `nanos`=-750,000,000. +func (c *CompaniesListCall) MaxMonthlyBudgetNanos(maxMonthlyBudgetNanos int64) *CompaniesListCall { + c.opt_["maxMonthlyBudget.nanos"] = maxMonthlyBudgetNanos + return c +} + +// MaxMonthlyBudgetUnits sets the optional parameter +// "maxMonthlyBudget.units": The whole units of the amount. For example +// if `currencyCode` is "USD", then 1 unit is one US dollar. +func (c *CompaniesListCall) MaxMonthlyBudgetUnits(maxMonthlyBudgetUnits int64) *CompaniesListCall { + c.opt_["maxMonthlyBudget.units"] = maxMonthlyBudgetUnits + return c +} + +// MinMonthlyBudgetCurrencyCode sets the optional parameter +// "minMonthlyBudget.currencyCode": The 3-letter currency code defined +// in ISO 4217. +func (c *CompaniesListCall) MinMonthlyBudgetCurrencyCode(minMonthlyBudgetCurrencyCode string) *CompaniesListCall { + c.opt_["minMonthlyBudget.currencyCode"] = minMonthlyBudgetCurrencyCode + return c +} + +// MinMonthlyBudgetNanos sets the optional parameter +// "minMonthlyBudget.nanos": Number of nano (10^-9) units of the amount. +// The value must be between -999,999,999 and +999,999,999 inclusive. If +// `units` is positive, `nanos` must be positive or zero. If `units` is +// zero, `nanos` can be positive, zero, or negative. If `units` is +// negative, `nanos` must be negative or zero. For example $-1.75 is +// represented as `units`=-1 and `nanos`=-750,000,000. +func (c *CompaniesListCall) MinMonthlyBudgetNanos(minMonthlyBudgetNanos int64) *CompaniesListCall { + c.opt_["minMonthlyBudget.nanos"] = minMonthlyBudgetNanos + return c +} + +// MinMonthlyBudgetUnits sets the optional parameter +// "minMonthlyBudget.units": The whole units of the amount. For example +// if `currencyCode` is "USD", then 1 unit is one US dollar. +func (c *CompaniesListCall) MinMonthlyBudgetUnits(minMonthlyBudgetUnits int64) *CompaniesListCall { + c.opt_["minMonthlyBudget.units"] = minMonthlyBudgetUnits + return c +} + +// OrderBy sets the optional parameter "orderBy": How to order addresses +// within the returned companies. Currently, only `address` and `address +// desc` is supported which will sorted by closest to farthest in +// distance from given address and farthest to closest distance from +// given address respectively. +func (c *CompaniesListCall) OrderBy(orderBy string) *CompaniesListCall { + c.opt_["orderBy"] = orderBy + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer companies than requested. If unspecified, +// server picks an appropriate default. +func (c *CompaniesListCall) PageSize(pageSize int64) *CompaniesListCall { + c.opt_["pageSize"] = pageSize + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results that the server returns. Typically, +// this is the value of `ListCompaniesResponse.next_page_token` returned +// from the previous call to +// [ListCompanies][google.partners.v2.Partner.ListCompanies]. +func (c *CompaniesListCall) PageToken(pageToken string) *CompaniesListCall { + c.opt_["pageToken"] = pageToken + return c +} + +// RequestMetadataExperimentIds sets the optional parameter +// "requestMetadata.experimentIds": Experiment IDs the current request +// belongs to. +func (c *CompaniesListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds string) *CompaniesListCall { + c.opt_["requestMetadata.experimentIds"] = requestMetadataExperimentIds + return c +} + +// RequestMetadataLocale sets the optional parameter +// "requestMetadata.locale": Locale to use for the current request. +func (c *CompaniesListCall) RequestMetadataLocale(requestMetadataLocale string) *CompaniesListCall { + c.opt_["requestMetadata.locale"] = requestMetadataLocale + return c +} + +// RequestMetadataPartnersSessionId sets the optional parameter +// "requestMetadata.partnersSessionId": Google Partners session ID. +func (c *CompaniesListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *CompaniesListCall { + c.opt_["requestMetadata.partnersSessionId"] = requestMetadataPartnersSessionId + return c +} + +// Services sets the optional parameter "services": List of services the +// company can help with. +// +// Possible values: +// "SERVICE_UNSPECIFIED" +// "S_ADVANCED_ADWORDS_SUPPORT" +// "S_ADVERTISING_ON_GOOGLE" +// "S_AN_ENHANCED_WEBSITE" +// "S_AN_ONLINE_MARKETING_PLAN" +// "S_MOBILE_AND_VIDEO_ADS" +func (c *CompaniesListCall) Services(services string) *CompaniesListCall { + c.opt_["services"] = services + return c +} + +// View sets the optional parameter "view": The view of the `Company` +// resource to be returned. This must not be `COMPANY_VIEW_UNSPECIFIED`. +// +// Possible values: +// "COMPANY_VIEW_UNSPECIFIED" +// "CV_GOOGLE_PARTNER_SEARCH" +func (c *CompaniesListCall) View(view string) *CompaniesListCall { + c.opt_["view"] = view + return c +} + +// WebsiteUrl sets the optional parameter "websiteUrl": Website URL that +// will help to find a better matched company. . +func (c *CompaniesListCall) WebsiteUrl(websiteUrl string) *CompaniesListCall { + c.opt_["websiteUrl"] = websiteUrl + 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 *CompaniesListCall) Fields(s ...googleapi.Field) *CompaniesListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *CompaniesListCall) Do() (*ListCompaniesResponse, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["address"]; ok { + params.Set("address", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["companyName"]; ok { + params.Set("companyName", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["gpsMotivations"]; ok { + params.Set("gpsMotivations", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["industries"]; ok { + params.Set("industries", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["languageCodes"]; ok { + params.Set("languageCodes", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxMonthlyBudget.currencyCode"]; ok { + params.Set("maxMonthlyBudget.currencyCode", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxMonthlyBudget.nanos"]; ok { + params.Set("maxMonthlyBudget.nanos", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["maxMonthlyBudget.units"]; ok { + params.Set("maxMonthlyBudget.units", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["minMonthlyBudget.currencyCode"]; ok { + params.Set("minMonthlyBudget.currencyCode", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["minMonthlyBudget.nanos"]; ok { + params.Set("minMonthlyBudget.nanos", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["minMonthlyBudget.units"]; ok { + params.Set("minMonthlyBudget.units", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["orderBy"]; ok { + params.Set("orderBy", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageSize"]; ok { + params.Set("pageSize", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["pageToken"]; ok { + params.Set("pageToken", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["requestMetadata.experimentIds"]; ok { + params.Set("requestMetadata.experimentIds", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["requestMetadata.locale"]; ok { + params.Set("requestMetadata.locale", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["requestMetadata.partnersSessionId"]; ok { + params.Set("requestMetadata.partnersSessionId", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["services"]; ok { + params.Set("services", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["view"]; ok { + params.Set("view", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["websiteUrl"]; ok { + params.Set("websiteUrl", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/companies") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ListCompaniesResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists companies.", + // "httpMethod": "GET", + // "id": "partners.companies.list", + // "parameters": { + // "address": { + // "description": "The address to use when searching for companies. If not given, the geo-located address of the request is used.", + // "location": "query", + // "type": "string" + // }, + // "companyName": { + // "description": "Company name to search for.", + // "location": "query", + // "type": "string" + // }, + // "gpsMotivations": { + // "description": "List of reasons for using Google Partner Search to get companies.", + // "enum": [ + // "GPS_MOTIVATION_UNSPECIFIED", + // "GPSM_HELP_WITH_ADVERTISING", + // "GPSM_HELP_WITH_WEBSITE", + // "GPSM_NO_WEBSITE" + // ], + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "industries": { + // "description": "List of industries the company can help with.", + // "enum": [ + // "INDUSTRY_UNSPECIFIED", + // "I_AUTOMOTIVE", + // "I_BUSINESS_TO_BUSINESS", + // "I_CONSUMER_PACKAGED_GOODS", + // "I_EDUCATION", + // "I_FINANCE", + // "I_HEALTHCARE", + // "I_MEDIA_AND_ENTERTAINMENT", + // "I_RETAIL", + // "I_TECHNOLOGY", + // "I_TRAVEL" + // ], + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "languageCodes": { + // "description": "List of language codes that company can support. Only primary language subtags are accepted as defined by BCP 47 (IETF BCP 47, \"Tags for Identifying Languages\").", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "maxMonthlyBudget.currencyCode": { + // "description": "The 3-letter currency code defined in ISO 4217.", + // "location": "query", + // "type": "string" + // }, + // "maxMonthlyBudget.nanos": { + // "description": "Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "maxMonthlyBudget.units": { + // "description": "The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "minMonthlyBudget.currencyCode": { + // "description": "The 3-letter currency code defined in ISO 4217.", + // "location": "query", + // "type": "string" + // }, + // "minMonthlyBudget.nanos": { + // "description": "Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "minMonthlyBudget.units": { + // "description": "The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "How to order addresses within the returned companies. Currently, only `address` and `address desc` is supported which will sorted by closest to farthest in distance from given address and farthest to closest distance from given address respectively.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Requested page size. Server may return fewer companies than requested. If unspecified, server picks an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token identifying a page of results that the server returns. Typically, this is the value of `ListCompaniesResponse.next_page_token` returned from the previous call to [ListCompanies][google.partners.v2.Partner.ListCompanies].", + // "location": "query", + // "type": "string" + // }, + // "requestMetadata.experimentIds": { + // "description": "Experiment IDs the current request belongs to.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "requestMetadata.locale": { + // "description": "Locale to use for the current request.", + // "location": "query", + // "type": "string" + // }, + // "requestMetadata.partnersSessionId": { + // "description": "Google Partners session ID.", + // "location": "query", + // "type": "string" + // }, + // "services": { + // "description": "List of services the company can help with.", + // "enum": [ + // "SERVICE_UNSPECIFIED", + // "S_ADVANCED_ADWORDS_SUPPORT", + // "S_ADVERTISING_ON_GOOGLE", + // "S_AN_ENHANCED_WEBSITE", + // "S_AN_ONLINE_MARKETING_PLAN", + // "S_MOBILE_AND_VIDEO_ADS" + // ], + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "view": { + // "description": "The view of the `Company` resource to be returned. This must not be `COMPANY_VIEW_UNSPECIFIED`.", + // "enum": [ + // "COMPANY_VIEW_UNSPECIFIED", + // "CV_GOOGLE_PARTNER_SEARCH" + // ], + // "location": "query", + // "type": "string" + // }, + // "websiteUrl": { + // "description": "Website URL that will help to find a better matched company. .", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/companies", + // "response": { + // "$ref": "ListCompaniesResponse" + // } + // } + +} + +// method id "partners.companies.leads.create": + +type CompaniesLeadsCreateCall struct { + s *Service + companyId string + createleadrequest *CreateLeadRequest + opt_ map[string]interface{} +} + +// Create: Creates an advertiser lead for the given company ID. +func (r *CompaniesLeadsService) Create(companyId string, createleadrequest *CreateLeadRequest) *CompaniesLeadsCreateCall { + c := &CompaniesLeadsCreateCall{s: r.s, opt_: make(map[string]interface{})} + c.companyId = companyId + c.createleadrequest = createleadrequest + 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 *CompaniesLeadsCreateCall) Fields(s ...googleapi.Field) *CompaniesLeadsCreateCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *CompaniesLeadsCreateCall) Do() (*CreateLeadResponse, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.createleadrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/companies/{companyId}/leads") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.Expand(req.URL, map[string]string{ + "companyId": c.companyId, + }) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *CreateLeadResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an advertiser lead for the given company ID.", + // "httpMethod": "POST", + // "id": "partners.companies.leads.create", + // "parameterOrder": [ + // "companyId" + // ], + // "parameters": { + // "companyId": { + // "description": "The ID of the company to contact.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/companies/{companyId}/leads", + // "request": { + // "$ref": "CreateLeadRequest" + // }, + // "response": { + // "$ref": "CreateLeadResponse" + // } + // } + +} + +// method id "partners.userEvents.log": + +type UserEventsLogCall struct { + s *Service + logusereventrequest *LogUserEventRequest + opt_ map[string]interface{} +} + +// Log: Logs a user event. +func (r *UserEventsService) Log(logusereventrequest *LogUserEventRequest) *UserEventsLogCall { + c := &UserEventsLogCall{s: r.s, opt_: make(map[string]interface{})} + c.logusereventrequest = logusereventrequest + 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 *UserEventsLogCall) Fields(s ...googleapi.Field) *UserEventsLogCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *UserEventsLogCall) Do() (*LogUserEventResponse, error) { + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logusereventrequest) + if err != nil { + return nil, err + } + ctype := "application/json" + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/userEvents:log") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("Content-Type", ctype) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *LogUserEventResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Logs a user event.", + // "httpMethod": "POST", + // "id": "partners.userEvents.log", + // "path": "v2/userEvents:log", + // "request": { + // "$ref": "LogUserEventRequest" + // }, + // "response": { + // "$ref": "LogUserEventResponse" + // } + // } + +} + +// method id "partners.userStates.list": + +type UserStatesListCall struct { + s *Service + opt_ map[string]interface{} +} + +// List: Lists states for current user. +func (r *UserStatesService) List() *UserStatesListCall { + c := &UserStatesListCall{s: r.s, opt_: make(map[string]interface{})} + return c +} + +// RequestMetadataExperimentIds sets the optional parameter +// "requestMetadata.experimentIds": Experiment IDs the current request +// belongs to. +func (c *UserStatesListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds string) *UserStatesListCall { + c.opt_["requestMetadata.experimentIds"] = requestMetadataExperimentIds + return c +} + +// RequestMetadataLocale sets the optional parameter +// "requestMetadata.locale": Locale to use for the current request. +func (c *UserStatesListCall) RequestMetadataLocale(requestMetadataLocale string) *UserStatesListCall { + c.opt_["requestMetadata.locale"] = requestMetadataLocale + return c +} + +// RequestMetadataPartnersSessionId sets the optional parameter +// "requestMetadata.partnersSessionId": Google Partners session ID. +func (c *UserStatesListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *UserStatesListCall { + c.opt_["requestMetadata.partnersSessionId"] = requestMetadataPartnersSessionId + 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 *UserStatesListCall) Fields(s ...googleapi.Field) *UserStatesListCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *UserStatesListCall) Do() (*ListUserStatesResponse, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + if v, ok := c.opt_["requestMetadata.experimentIds"]; ok { + params.Set("requestMetadata.experimentIds", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["requestMetadata.locale"]; ok { + params.Set("requestMetadata.locale", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["requestMetadata.partnersSessionId"]; ok { + params.Set("requestMetadata.partnersSessionId", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/userStates") + urls += "?" + params.Encode() + req, _ := http.NewRequest("GET", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *ListUserStatesResponse + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists states for current user.", + // "httpMethod": "GET", + // "id": "partners.userStates.list", + // "parameters": { + // "requestMetadata.experimentIds": { + // "description": "Experiment IDs the current request belongs to.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "requestMetadata.locale": { + // "description": "Locale to use for the current request.", + // "location": "query", + // "type": "string" + // }, + // "requestMetadata.partnersSessionId": { + // "description": "Google Partners session ID.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/userStates", + // "response": { + // "$ref": "ListUserStatesResponse" + // } + // } + +} diff --git a/prediction/v1.6/prediction-api.json b/prediction/v1.6/prediction-api.json index ff3dd8be3dd..cc35cc8a9c8 100644 --- a/prediction/v1.6/prediction-api.json +++ b/prediction/v1.6/prediction-api.json @@ -1,6 +1,6 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/XH5kx6DVwHOxcDh-sCub5wYn1Ss\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/MKubU0FmYvcCiak8-htY8xGlT7I\"", "discoveryVersion": "v1", "id": "prediction:v1.6", "name": "prediction", @@ -489,9 +489,8 @@ } }, "outputValue": { - "type": "number", - "description": "The estimated regression value (Regression models only).", - "format": "double" + "type": "string", + "description": "The estimated regression value (Regression models only)." }, "selfLink": { "type": "string", diff --git a/prediction/v1.6/prediction-gen.go b/prediction/v1.6/prediction-gen.go index 6b6212b5b5a..28455bb2e4f 100644 --- a/prediction/v1.6/prediction-gen.go +++ b/prediction/v1.6/prediction-gen.go @@ -375,7 +375,7 @@ type Output struct { OutputMulti []*OutputOutputMulti `json:"outputMulti,omitempty"` // OutputValue: The estimated regression value (Regression models only). - OutputValue float64 `json:"outputValue,omitempty"` + OutputValue string `json:"outputValue,omitempty"` // SelfLink: A URL to re-request this resource. SelfLink string `json:"selfLink,omitempty"` diff --git a/sqladmin/v1beta1/sqladmin-api.json b/sqladmin/v1beta1/sqladmin-api.json deleted file mode 100644 index 4e96962a3c9..00000000000 --- a/sqladmin/v1beta1/sqladmin-api.json +++ /dev/null @@ -1,1197 +0,0 @@ -{ - "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/_MldXAnmrF3YuGWywxzUjYf4iHg\"", - "discoveryVersion": "v1", - "id": "sqladmin:v1beta1", - "name": "sqladmin", - "canonicalName": "SQL Admin", - "version": "v1beta1", - "revision": "20150109", - "title": "Cloud SQL Administration API", - "description": "API for Cloud SQL database instance management.", - "ownerDomain": "google.com", - "ownerName": "Google", - "icons": { - "x16": "http://www.google.com/images/icons/product/search-16.gif", - "x32": "http://www.google.com/images/icons/product/search-32.gif" - }, - "documentationLink": "https://developers.google.com/cloud-sql/docs/admin-api/", - "protocol": "rest", - "baseUrl": "https://www.googleapis.com/sql/v1beta1/", - "basePath": "/sql/v1beta1/", - "rootUrl": "https://www.googleapis.com/", - "servicePath": "sql/v1beta1/", - "batchPath": "batch", - "parameters": { - "alt": { - "type": "string", - "description": "Data format for the response.", - "default": "json", - "enum": [ - "json" - ], - "enumDescriptions": [ - "Responses with Content-Type of application/json" - ], - "location": "query" - }, - "fields": { - "type": "string", - "description": "Selector specifying which fields to include in a partial response.", - "location": "query" - }, - "key": { - "type": "string", - "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", - "location": "query" - }, - "oauth_token": { - "type": "string", - "description": "OAuth 2.0 token for the current user.", - "location": "query" - }, - "prettyPrint": { - "type": "boolean", - "description": "Returns response with indentations and line breaks.", - "default": "true", - "location": "query" - }, - "quotaUser": { - "type": "string", - "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.", - "location": "query" - }, - "userIp": { - "type": "string", - "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.", - "location": "query" - } - }, - "auth": { - "oauth2": { - "scopes": { - "https://www.googleapis.com/auth/cloud-platform": { - "description": "View and manage your data across Google Cloud Platform services" - }, - "https://www.googleapis.com/auth/sqlservice.admin": { - "description": "Manage your Google SQL Service instances" - } - } - } - }, - "schemas": { - "BackupConfiguration": { - "id": "BackupConfiguration", - "type": "object", - "description": "Database instance backup configuration.", - "properties": { - "enabled": { - "type": "boolean", - "description": "Whether this configuration is enabled." - }, - "id": { - "type": "string", - "description": "Identifier for this configuration. This gets generated automatically when a backup configuration is created." - }, - "kind": { - "type": "string", - "description": "This is always sql#backupConfiguration.", - "default": "sql#backupConfiguration" - }, - "startTime": { - "type": "string", - "description": "Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM." - } - } - }, - "BackupRun": { - "id": "BackupRun", - "type": "object", - "description": "A database instance backup run resource.", - "properties": { - "backupConfiguration": { - "type": "string", - "description": "Backup Configuration identifier." - }, - "dueTime": { - "type": "string", - "description": "The due time of this run in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.", - "format": "date-time" - }, - "endTime": { - "type": "string", - "description": "The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.", - "format": "date-time" - }, - "enqueuedTime": { - "type": "string", - "description": "The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.", - "format": "date-time" - }, - "error": { - "$ref": "OperationError", - "description": "Information about why the backup operation failed. This is only present if the run has the FAILED status." - }, - "instance": { - "type": "string", - "description": "Name of the database instance." - }, - "kind": { - "type": "string", - "description": "This is always sql#backupRun.", - "default": "sql#backupRun" - }, - "startTime": { - "type": "string", - "description": "The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.", - "format": "date-time" - }, - "status": { - "type": "string", - "description": "The status of this run." - } - } - }, - "BackupRunsListResponse": { - "id": "BackupRunsListResponse", - "type": "object", - "description": "Backup run list results.", - "properties": { - "items": { - "type": "array", - "description": "A list of backup runs in reverse chronological order of the enqueued time.", - "items": { - "$ref": "BackupRun" - } - }, - "kind": { - "type": "string", - "description": "This is always sql#backupRunsList.", - "default": "sql#backupRunsList" - }, - "nextPageToken": { - "type": "string", - "description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results." - } - } - }, - "DatabaseInstance": { - "id": "DatabaseInstance", - "type": "object", - "description": "A Cloud SQL instance resource.", - "properties": { - "currentDiskSize": { - "type": "string", - "description": "The current disk usage of the instance in bytes.", - "format": "int64" - }, - "databaseVersion": { - "type": "string", - "description": "The database engine type and version, for example MYSQL_5_5 for MySQL 5.5." - }, - "etag": { - "type": "string", - "description": "Etag for this resource - a version number for the settings object in this resource. This field has no effect when passed as a request parameter. Instead, the contents of this field should be passed in an 'If-Match' http header for use in optimistic locking.", - "annotations": { - "required": [ - "sql.instances.update" - ] - } - }, - "instance": { - "type": "string", - "description": "Name of the Cloud SQL instance. This does not include the project ID.", - "annotations": { - "required": [ - "sql.instances.insert", - "sql.instances.update" - ] - } - }, - "kind": { - "type": "string", - "description": "This is always sql#instance.", - "default": "sql#instance" - }, - "maxDiskSize": { - "type": "string", - "description": "The maximum disk size of the instance in bytes.", - "format": "int64" - }, - "project": { - "type": "string", - "description": "The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.", - "annotations": { - "required": [ - "sql.instances.insert", - "sql.instances.update" - ] - } - }, - "region": { - "type": "string", - "description": "The geographical region. Can be us-central or europe-west1. Defaults to us-central. The region can not be changed after instance creation." - }, - "settings": { - "$ref": "Settings", - "description": "The user settings." - }, - "state": { - "type": "string", - "description": "The current serving state of the Cloud SQL instance. This can be one of the following.\nRUNNABLE: The instance is running, or is ready to run when accessed.\nSUSPENDED: The instance is not available, for example due to problems with billing.\nPENDING_CREATE: The instance is being created.\nMAINTENANCE: The instance is down for maintenance.\nUNKNOWN_STATE: The state of the instance is unknown." - } - } - }, - "ExportContext": { - "id": "ExportContext", - "type": "object", - "description": "Database instance export context.", - "properties": { - "database": { - "type": "array", - "description": "Databases (for example, guestbook) from which the export is made. If unspecified, all databases are exported.", - "items": { - "type": "string" - } - }, - "kind": { - "type": "string", - "description": "This is always sql#exportContext.", - "default": "sql#exportContext" - }, - "table": { - "type": "array", - "description": "Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database.", - "items": { - "type": "string" - } - }, - "uri": { - "type": "string", - "description": "The path to the file in Google Cloud Storage where the export will be stored, or where it was already stored. The URI is in the form gs://bucketName/fileName. If the file already exists, the operation fails. If the filename ends with .gz, the contents are compressed." - } - } - }, - "ImportContext": { - "id": "ImportContext", - "type": "object", - "description": "Database instance import context.", - "properties": { - "database": { - "type": "string", - "description": "The database (for example, guestbook) to which the import is made. If not set, it is assumed that the database is specified in the file to be imported." - }, - "kind": { - "type": "string", - "description": "This is always sql#importContext.", - "default": "sql#importContext" - }, - "uri": { - "type": "array", - "description": "A path to the MySQL dump file in Google Cloud Storage from which the import is made. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported.", - "items": { - "type": "string" - } - } - } - }, - "InstanceOperation": { - "id": "InstanceOperation", - "type": "object", - "description": "An Operations resource contains information about database instance operations such as create, delete, and restart. Operations resources are created in response to operations that were initiated; you never create them directly.", - "properties": { - "endTime": { - "type": "string", - "description": "The time this operation finished in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.", - "format": "date-time" - }, - "enqueuedTime": { - "type": "string", - "description": "The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.", - "format": "date-time" - }, - "error": { - "type": "array", - "description": "The error(s) encountered by this operation. Only set if the operation results in an error.", - "items": { - "$ref": "OperationError" - } - }, - "exportContext": { - "$ref": "ExportContext", - "description": "The context for export operation, if applicable." - }, - "importContext": { - "$ref": "ImportContext", - "description": "The context for import operation, if applicable." - }, - "instance": { - "type": "string", - "description": "Name of the database instance." - }, - "kind": { - "type": "string", - "description": "This is always sql#instanceOperation.", - "default": "sql#instanceOperation" - }, - "operation": { - "type": "string", - "description": "An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation." - }, - "operationType": { - "type": "string", - "description": "The type of the operation. Valid values are CREATE, DELETE, UPDATE, RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME." - }, - "startTime": { - "type": "string", - "description": "The time this operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.", - "format": "date-time" - }, - "state": { - "type": "string", - "description": "The state of an operation. Valid values are PENDING, RUNNING, DONE, UNKNOWN." - }, - "userEmailAddress": { - "type": "string", - "description": "The email address of the user who initiated this operation." - } - } - }, - "InstancesDeleteResponse": { - "id": "InstancesDeleteResponse", - "type": "object", - "description": "Database instance delete response.", - "properties": { - "kind": { - "type": "string", - "description": "This is always sql#instancesDelete.", - "default": "sql#instancesDelete" - }, - "operation": { - "type": "string", - "description": "An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation." - } - } - }, - "InstancesExportRequest": { - "id": "InstancesExportRequest", - "type": "object", - "description": "Database instance export request.", - "properties": { - "exportContext": { - "$ref": "ExportContext", - "description": "Contains details about the export operation." - } - } - }, - "InstancesExportResponse": { - "id": "InstancesExportResponse", - "type": "object", - "description": "Database instance export response.", - "properties": { - "kind": { - "type": "string", - "description": "This is always sql#instancesExport.", - "default": "sql#instancesExport" - }, - "operation": { - "type": "string", - "description": "An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation." - } - } - }, - "InstancesImportRequest": { - "id": "InstancesImportRequest", - "type": "object", - "description": "Database instance import request.", - "properties": { - "importContext": { - "$ref": "ImportContext", - "description": "Contains details about the import operation." - } - } - }, - "InstancesImportResponse": { - "id": "InstancesImportResponse", - "type": "object", - "description": "Database instance import response.", - "properties": { - "kind": { - "type": "string", - "description": "This is always sql#instancesImport.", - "default": "sql#instancesImport" - }, - "operation": { - "type": "string", - "description": "An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation." - } - } - }, - "InstancesInsertResponse": { - "id": "InstancesInsertResponse", - "type": "object", - "description": "Database instance insert response.", - "properties": { - "kind": { - "type": "string", - "description": "This is always sql#instancesInsert.", - "default": "sql#instancesInsert" - }, - "operation": { - "type": "string", - "description": "An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation." - } - } - }, - "InstancesListResponse": { - "id": "InstancesListResponse", - "type": "object", - "description": "Database instances list response.", - "properties": { - "items": { - "type": "array", - "description": "List of database instance resources.", - "items": { - "$ref": "DatabaseInstance" - } - }, - "kind": { - "type": "string", - "description": "This is always sql#instancesList.", - "default": "sql#instancesList" - }, - "nextPageToken": { - "type": "string", - "description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results." - } - } - }, - "InstancesRestartResponse": { - "id": "InstancesRestartResponse", - "type": "object", - "description": "Database instance restart response.", - "properties": { - "kind": { - "type": "string", - "description": "This is always sql#instancesRestart.", - "default": "sql#instancesRestart" - }, - "operation": { - "type": "string", - "description": "An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation." - } - } - }, - "InstancesRestoreBackupResponse": { - "id": "InstancesRestoreBackupResponse", - "type": "object", - "description": "Database instance restore backup response.", - "properties": { - "kind": { - "type": "string", - "description": "This is always sql#instancesRestoreBackup.", - "default": "sql#instancesRestoreBackup" - }, - "operation": { - "type": "string", - "description": "An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation." - } - } - }, - "InstancesUpdateResponse": { - "id": "InstancesUpdateResponse", - "type": "object", - "description": "Database instance update response.", - "properties": { - "kind": { - "type": "string", - "description": "This is always sql#instancesUpdate.", - "default": "sql#instancesUpdate" - }, - "operation": { - "type": "string", - "description": "An identifier that uniquely identifies the operation. You can use this identifier to retrieve information about the operation." - } - } - }, - "OperationError": { - "id": "OperationError", - "type": "object", - "description": "Database instance operation error.", - "properties": { - "code": { - "type": "string", - "description": "Identifies the specific error that occurred." - }, - "kind": { - "type": "string", - "description": "This is always sql#operationError.", - "default": "sql#operationError" - } - } - }, - "OperationsListResponse": { - "id": "OperationsListResponse", - "type": "object", - "description": "Database instance list operations response.", - "properties": { - "items": { - "type": "array", - "description": "List of operation resources.", - "items": { - "$ref": "InstanceOperation" - } - }, - "kind": { - "type": "string", - "description": "This is always sql#operationsList.", - "default": "sql#operationsList" - }, - "nextPageToken": { - "type": "string", - "description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results." - } - } - }, - "Settings": { - "id": "Settings", - "type": "object", - "description": "Database instance settings.", - "properties": { - "activationPolicy": { - "type": "string", - "description": "The activation policy for this instance. This specifies when the instance should be activated and is applicable only when the instance state is RUNNABLE. This can be one of the following.\nALWAYS: The instance should always be active.\nNEVER: The instance should never be activated.\nON_DEMAND: The instance is activated upon receiving requests." - }, - "authorizedGaeApplications": { - "type": "array", - "description": "The AppEngine app ids that can access this instance.", - "items": { - "type": "string" - } - }, - "backupConfiguration": { - "type": "array", - "description": "The daily backup configuration for the instance.", - "items": { - "$ref": "BackupConfiguration" - } - }, - "kind": { - "type": "string", - "description": "This is always sql#settings.", - "default": "sql#settings" - }, - "pricingPlan": { - "type": "string", - "description": "The pricing plan for this instance. This can be either PER_USE or PACKAGE." - }, - "replicationType": { - "type": "string", - "description": "The type of replication this instance uses. This can be either ASYNCHRONOUS or SYNCHRONOUS." - }, - "tier": { - "type": "string", - "description": "The tier of service for this instance, for example D1, D2. For more information, see pricing.", - "annotations": { - "required": [ - "sql.instances.insert", - "sql.instances.update" - ] - } - } - } - }, - "Tier": { - "id": "Tier", - "type": "object", - "description": "A Google Cloud SQL service tier resource.", - "properties": { - "DiskQuota": { - "type": "string", - "description": "The maximum disk size of this tier in bytes.", - "format": "int64" - }, - "RAM": { - "type": "string", - "description": "The maximum RAM usage of this tier in bytes.", - "format": "int64" - }, - "kind": { - "type": "string", - "description": "This is always sql#tier.", - "default": "sql#tier" - }, - "region": { - "type": "array", - "description": "The applicable regions for this tier. Can be us-east1 and europe-west1.", - "items": { - "type": "string" - } - }, - "tier": { - "type": "string", - "description": "An identifier for the service tier, for example D1, D2 etc. For related information, see Pricing." - } - } - }, - "TiersListResponse": { - "id": "TiersListResponse", - "type": "object", - "description": "Tiers list response.", - "properties": { - "items": { - "type": "array", - "description": "List of tiers.", - "items": { - "$ref": "Tier" - } - }, - "kind": { - "type": "string", - "description": "This is always sql#tiersList.", - "default": "sql#tiersList" - } - } - } - }, - "resources": { - "backupRuns": { - "methods": { - "get": { - "id": "sql.backupRuns.get", - "path": "projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}", - "httpMethod": "GET", - "description": "Retrieves a resource containing information about a backup run.", - "parameters": { - "backupConfiguration": { - "type": "string", - "description": "Identifier for the backup configuration. This gets generated automatically when a backup configuration is created.", - "required": true, - "location": "path" - }, - "dueTime": { - "type": "string", - "description": "The start time of the four-hour backup window. The backup can occur any time in the window. The time is in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.", - "required": true, - "location": "query" - }, - "instance": { - "type": "string", - "description": "Cloud SQL instance ID. This does not include the project ID.", - "required": true, - "location": "path" - }, - "project": { - "type": "string", - "description": "Project ID of the project that contains the instance.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instance", - "backupConfiguration", - "dueTime" - ], - "response": { - "$ref": "BackupRun" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - }, - "list": { - "id": "sql.backupRuns.list", - "path": "projects/{project}/instances/{instance}/backupRuns", - "httpMethod": "GET", - "description": "Lists all backup runs associated with a given instance and configuration in the reverse chronological order of the enqueued time.", - "parameters": { - "backupConfiguration": { - "type": "string", - "description": "Identifier for the backup configuration. This gets generated automatically when a backup configuration is created.", - "required": true, - "location": "query" - }, - "instance": { - "type": "string", - "description": "Cloud SQL instance ID. This does not include the project ID.", - "required": true, - "location": "path" - }, - "maxResults": { - "type": "integer", - "description": "Maximum number of backup runs per response.", - "format": "int32", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "A previously-returned page token representing part of the larger set of results to view.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Project ID of the project that contains the instance.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instance", - "backupConfiguration" - ], - "response": { - "$ref": "BackupRunsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - } - } - }, - "instances": { - "methods": { - "delete": { - "id": "sql.instances.delete", - "path": "projects/{project}/instances/{instance}", - "httpMethod": "DELETE", - "description": "Deletes a Cloud SQL instance.", - "parameters": { - "instance": { - "type": "string", - "description": "Cloud SQL instance ID. This does not include the project ID.", - "required": true, - "location": "path" - }, - "project": { - "type": "string", - "description": "Project ID of the project that contains the instance to be deleted.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instance" - ], - "response": { - "$ref": "InstancesDeleteResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - }, - "export": { - "id": "sql.instances.export", - "path": "projects/{project}/instances/{instance}/export", - "httpMethod": "POST", - "description": "Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a MySQL dump file.", - "parameters": { - "instance": { - "type": "string", - "description": "Cloud SQL instance ID. This does not include the project ID.", - "required": true, - "location": "path" - }, - "project": { - "type": "string", - "description": "Project ID of the project that contains the instance to be exported.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instance" - ], - "request": { - "$ref": "InstancesExportRequest" - }, - "response": { - "$ref": "InstancesExportResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "id": "sql.instances.get", - "path": "projects/{project}/instances/{instance}", - "httpMethod": "GET", - "description": "Retrieves a resource containing information about a Cloud SQL instance.", - "parameters": { - "instance": { - "type": "string", - "description": "Cloud SQL instance ID. This does not include the project ID.", - "required": true, - "location": "path" - }, - "project": { - "type": "string", - "description": "Project ID of the project that contains the instance.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instance" - ], - "response": { - "$ref": "DatabaseInstance" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - }, - "import": { - "id": "sql.instances.import", - "path": "projects/{project}/instances/{instance}/import", - "httpMethod": "POST", - "description": "Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud Storage.", - "parameters": { - "instance": { - "type": "string", - "description": "Cloud SQL instance ID. This does not include the project ID.", - "required": true, - "location": "path" - }, - "project": { - "type": "string", - "description": "Project ID of the project that contains the instance.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instance" - ], - "request": { - "$ref": "InstancesImportRequest" - }, - "response": { - "$ref": "InstancesImportResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "insert": { - "id": "sql.instances.insert", - "path": "projects/{project}/instances", - "httpMethod": "POST", - "description": "Creates a new Cloud SQL instance.", - "parameters": { - "project": { - "type": "string", - "description": "Project ID of the project to which the newly created Cloud SQL instances should belong.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "request": { - "$ref": "DatabaseInstance" - }, - "response": { - "$ref": "InstancesInsertResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - }, - "list": { - "id": "sql.instances.list", - "path": "projects/{project}/instances", - "httpMethod": "GET", - "description": "Lists instances under a given project in the alphabetical order of the instance name.", - "parameters": { - "maxResults": { - "type": "integer", - "description": "The maximum number of results to return per response.", - "format": "uint32", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "A previously-returned page token representing part of the larger set of results to view.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Project ID of the project for which to list Cloud SQL instances.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project" - ], - "response": { - "$ref": "InstancesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - }, - "patch": { - "id": "sql.instances.patch", - "path": "projects/{project}/instances/{instance}", - "httpMethod": "PATCH", - "description": "Updates settings of a Cloud SQL instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch.. This method supports patch semantics.", - "parameters": { - "instance": { - "type": "string", - "description": "Cloud SQL instance ID. This does not include the project ID.", - "required": true, - "location": "path" - }, - "project": { - "type": "string", - "description": "Project ID of the project that contains the instance.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instance" - ], - "request": { - "$ref": "DatabaseInstance" - }, - "response": { - "$ref": "InstancesUpdateResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - }, - "restart": { - "id": "sql.instances.restart", - "path": "projects/{project}/instances/{instance}/restart", - "httpMethod": "POST", - "description": "Restarts a Cloud SQL instance.", - "parameters": { - "instance": { - "type": "string", - "description": "Cloud SQL instance ID. This does not include the project ID.", - "required": true, - "location": "path" - }, - "project": { - "type": "string", - "description": "Project ID of the project that contains the instance to be restarted.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instance" - ], - "response": { - "$ref": "InstancesRestartResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - }, - "restoreBackup": { - "id": "sql.instances.restoreBackup", - "path": "projects/{project}/instances/{instance}/restoreBackup", - "httpMethod": "POST", - "description": "Restores a backup of a Cloud SQL instance.", - "parameters": { - "backupConfiguration": { - "type": "string", - "description": "The identifier of the backup configuration. This gets generated automatically when a backup configuration is created.", - "required": true, - "location": "query" - }, - "dueTime": { - "type": "string", - "description": "The start time of the four-hour backup window. The backup can occur any time in the window. The time is in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.", - "required": true, - "location": "query" - }, - "instance": { - "type": "string", - "description": "Cloud SQL instance ID. This does not include the project ID.", - "required": true, - "location": "path" - }, - "project": { - "type": "string", - "description": "Project ID of the project that contains the instance.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instance", - "backupConfiguration", - "dueTime" - ], - "response": { - "$ref": "InstancesRestoreBackupResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - }, - "update": { - "id": "sql.instances.update", - "path": "projects/{project}/instances/{instance}", - "httpMethod": "PUT", - "description": "Updates settings of a Cloud SQL instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch.", - "parameters": { - "instance": { - "type": "string", - "description": "Cloud SQL instance ID. This does not include the project ID.", - "required": true, - "location": "path" - }, - "project": { - "type": "string", - "description": "Project ID of the project that contains the instance.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instance" - ], - "etagRequired": true, - "request": { - "$ref": "DatabaseInstance" - }, - "response": { - "$ref": "InstancesUpdateResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - } - } - }, - "operations": { - "methods": { - "get": { - "id": "sql.operations.get", - "path": "projects/{project}/instances/{instance}/operations/{operation}", - "httpMethod": "GET", - "description": "Retrieves an instance operation that has been performed on an instance.", - "parameters": { - "instance": { - "type": "string", - "description": "Cloud SQL instance ID. This does not include the project ID.", - "required": true, - "location": "path" - }, - "operation": { - "type": "string", - "description": "Instance operation ID.", - "required": true, - "location": "path" - }, - "project": { - "type": "string", - "description": "Project ID of the project that contains the instance.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instance", - "operation" - ], - "response": { - "$ref": "InstanceOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - }, - "list": { - "id": "sql.operations.list", - "path": "projects/{project}/instances/{instance}/operations", - "httpMethod": "GET", - "description": "Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time.", - "parameters": { - "instance": { - "type": "string", - "description": "Cloud SQL instance ID. This does not include the project ID.", - "required": true, - "location": "path" - }, - "maxResults": { - "type": "integer", - "description": "Maximum number of operations per response.", - "format": "uint32", - "location": "query" - }, - "pageToken": { - "type": "string", - "description": "A previously-returned page token representing part of the larger set of results to view.", - "location": "query" - }, - "project": { - "type": "string", - "description": "Project ID of the project that contains the instance.", - "required": true, - "location": "path" - } - }, - "parameterOrder": [ - "project", - "instance" - ], - "response": { - "$ref": "OperationsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - } - } - }, - "tiers": { - "methods": { - "list": { - "id": "sql.tiers.list", - "path": "tiers", - "httpMethod": "GET", - "description": "Lists all available service tiers for Google Cloud SQL, for example D1, D2. For related information, see Pricing.", - "response": { - "$ref": "TiersListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sqlservice.admin" - ] - } - } - } - } -} diff --git a/sqladmin/v1beta1/sqladmin-gen.go b/sqladmin/v1beta1/sqladmin-gen.go deleted file mode 100644 index 034fe273d6e..00000000000 --- a/sqladmin/v1beta1/sqladmin-gen.go +++ /dev/null @@ -1,1973 +0,0 @@ -// Package sqladmin provides access to the Cloud SQL Administration API. -// -// See https://developers.google.com/cloud-sql/docs/admin-api/ -// -// Usage example: -// -// import "google.golang.org/api/sqladmin/v1beta1" -// ... -// sqladminService, err := sqladmin.New(oauthHttpClient) -package sqladmin - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "golang.org/x/net/context" - "google.golang.org/api/googleapi" - "io" - "net/http" - "net/url" - "strconv" - "strings" -) - -// Always reference these packages, just in case the auto-generated code -// below doesn't. -var _ = bytes.NewBuffer -var _ = strconv.Itoa -var _ = fmt.Sprintf -var _ = json.NewDecoder -var _ = io.Copy -var _ = url.Parse -var _ = googleapi.Version -var _ = errors.New -var _ = strings.Replace -var _ = context.Background - -const apiId = "sqladmin:v1beta1" -const apiName = "sqladmin" -const apiVersion = "v1beta1" -const basePath = "https://www.googleapis.com/sql/v1beta1/" - -// OAuth2 scopes used by this API. -const ( - // View and manage your data across Google Cloud Platform services - CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" - - // Manage your Google SQL Service instances - SqlserviceAdminScope = "https://www.googleapis.com/auth/sqlservice.admin" -) - -func New(client *http.Client) (*Service, error) { - if client == nil { - return nil, errors.New("client is nil") - } - s := &Service{client: client, BasePath: basePath} - s.BackupRuns = NewBackupRunsService(s) - s.Instances = NewInstancesService(s) - s.Operations = NewOperationsService(s) - s.Tiers = NewTiersService(s) - return s, nil -} - -type Service struct { - client *http.Client - BasePath string // API endpoint base URL - UserAgent string // optional additional User-Agent fragment - - BackupRuns *BackupRunsService - - Instances *InstancesService - - Operations *OperationsService - - Tiers *TiersService -} - -func (s *Service) userAgent() string { - if s.UserAgent == "" { - return googleapi.UserAgent - } - return googleapi.UserAgent + " " + s.UserAgent -} - -func NewBackupRunsService(s *Service) *BackupRunsService { - rs := &BackupRunsService{s: s} - return rs -} - -type BackupRunsService struct { - s *Service -} - -func NewInstancesService(s *Service) *InstancesService { - rs := &InstancesService{s: s} - return rs -} - -type InstancesService struct { - s *Service -} - -func NewOperationsService(s *Service) *OperationsService { - rs := &OperationsService{s: s} - return rs -} - -type OperationsService struct { - s *Service -} - -func NewTiersService(s *Service) *TiersService { - rs := &TiersService{s: s} - return rs -} - -type TiersService struct { - s *Service -} - -type BackupConfiguration struct { - // Enabled: Whether this configuration is enabled. - Enabled bool `json:"enabled,omitempty"` - - // Id: Identifier for this configuration. This gets generated - // automatically when a backup configuration is created. - Id string `json:"id,omitempty"` - - // Kind: This is always sql#backupConfiguration. - Kind string `json:"kind,omitempty"` - - // StartTime: Start time for the daily backup configuration in UTC - // timezone in the 24 hour format - HH:MM. - StartTime string `json:"startTime,omitempty"` -} - -type BackupRun struct { - // BackupConfiguration: Backup Configuration identifier. - BackupConfiguration string `json:"backupConfiguration,omitempty"` - - // DueTime: The due time of this run in UTC timezone in RFC 3339 format, - // for example 2012-11-15T16:19:00.094Z. - DueTime string `json:"dueTime,omitempty"` - - // EndTime: The time the backup operation completed in UTC timezone in - // RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - EndTime string `json:"endTime,omitempty"` - - // EnqueuedTime: The time the run was enqueued in UTC timezone in RFC - // 3339 format, for example 2012-11-15T16:19:00.094Z. - EnqueuedTime string `json:"enqueuedTime,omitempty"` - - // Error: Information about why the backup operation failed. This is - // only present if the run has the FAILED status. - Error *OperationError `json:"error,omitempty"` - - // Instance: Name of the database instance. - Instance string `json:"instance,omitempty"` - - // Kind: This is always sql#backupRun. - Kind string `json:"kind,omitempty"` - - // StartTime: The time the backup operation actually started in UTC - // timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - StartTime string `json:"startTime,omitempty"` - - // Status: The status of this run. - Status string `json:"status,omitempty"` -} - -type BackupRunsListResponse struct { - // Items: A list of backup runs in reverse chronological order of the - // enqueued time. - Items []*BackupRun `json:"items,omitempty"` - - // Kind: This is always sql#backupRunsList. - Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, used to page through large - // result sets. Provide this value in a subsequent request to return the - // next page of results. - NextPageToken string `json:"nextPageToken,omitempty"` -} - -type DatabaseInstance struct { - // CurrentDiskSize: The current disk usage of the instance in bytes. - CurrentDiskSize int64 `json:"currentDiskSize,omitempty,string"` - - // DatabaseVersion: The database engine type and version, for example - // MYSQL_5_5 for MySQL 5.5. - DatabaseVersion string `json:"databaseVersion,omitempty"` - - // Etag: Etag for this resource - a version number for the settings - // object in this resource. This field has no effect when passed as a - // request parameter. Instead, the contents of this field should be - // passed in an 'If-Match' http header for use in optimistic locking. - Etag string `json:"etag,omitempty"` - - // Instance: Name of the Cloud SQL instance. This does not include the - // project ID. - Instance string `json:"instance,omitempty"` - - // Kind: This is always sql#instance. - Kind string `json:"kind,omitempty"` - - // MaxDiskSize: The maximum disk size of the instance in bytes. - MaxDiskSize int64 `json:"maxDiskSize,omitempty,string"` - - // Project: The project ID of the project containing the Cloud SQL - // instance. The Google apps domain is prefixed if applicable. - Project string `json:"project,omitempty"` - - // Region: The geographical region. Can be us-central or europe-west1. - // Defaults to us-central. The region can not be changed after instance - // creation. - Region string `json:"region,omitempty"` - - // Settings: The user settings. - Settings *Settings `json:"settings,omitempty"` - - // State: The current serving state of the Cloud SQL instance. This can - // be one of the following. - // RUNNABLE: The instance is running, or is ready to run when - // accessed. - // SUSPENDED: The instance is not available, for example due to problems - // with billing. - // PENDING_CREATE: The instance is being created. - // MAINTENANCE: The instance is down for maintenance. - // UNKNOWN_STATE: The state of the instance is unknown. - State string `json:"state,omitempty"` -} - -type ExportContext struct { - // Database: Databases (for example, guestbook) from which the export is - // made. If unspecified, all databases are exported. - Database []string `json:"database,omitempty"` - - // Kind: This is always sql#exportContext. - Kind string `json:"kind,omitempty"` - - // Table: Tables to export, or that were exported, from the specified - // database. If you specify tables, specify one and only one database. - Table []string `json:"table,omitempty"` - - // Uri: The path to the file in Google Cloud Storage where the export - // will be stored, or where it was already stored. The URI is in the - // form gs://bucketName/fileName. If the file already exists, the - // operation fails. If the filename ends with .gz, the contents are - // compressed. - Uri string `json:"uri,omitempty"` -} - -type ImportContext struct { - // Database: The database (for example, guestbook) to which the import - // is made. If not set, it is assumed that the database is specified in - // the file to be imported. - Database string `json:"database,omitempty"` - - // Kind: This is always sql#importContext. - Kind string `json:"kind,omitempty"` - - // Uri: A path to the MySQL dump file in Google Cloud Storage from which - // the import is made. The URI is in the form gs://bucketName/fileName. - // Compressed gzip files (.gz) are also supported. - Uri []string `json:"uri,omitempty"` -} - -type InstanceOperation struct { - // EndTime: The time this operation finished in UTC timezone in RFC 3339 - // format, for example 2012-11-15T16:19:00.094Z. - EndTime string `json:"endTime,omitempty"` - - // EnqueuedTime: The time this operation was enqueued in UTC timezone in - // RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - EnqueuedTime string `json:"enqueuedTime,omitempty"` - - // Error: The error(s) encountered by this operation. Only set if the - // operation results in an error. - Error []*OperationError `json:"error,omitempty"` - - // ExportContext: The context for export operation, if applicable. - ExportContext *ExportContext `json:"exportContext,omitempty"` - - // ImportContext: The context for import operation, if applicable. - ImportContext *ImportContext `json:"importContext,omitempty"` - - // Instance: Name of the database instance. - Instance string `json:"instance,omitempty"` - - // Kind: This is always sql#instanceOperation. - Kind string `json:"kind,omitempty"` - - // Operation: An identifier that uniquely identifies the operation. You - // can use this identifier to retrieve the Operations resource that has - // information about the operation. - Operation string `json:"operation,omitempty"` - - // OperationType: The type of the operation. Valid values are CREATE, - // DELETE, UPDATE, RESTART, IMPORT, EXPORT, BACKUP_VOLUME, - // RESTORE_VOLUME. - OperationType string `json:"operationType,omitempty"` - - // StartTime: The time this operation actually started in UTC timezone - // in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - StartTime string `json:"startTime,omitempty"` - - // State: The state of an operation. Valid values are PENDING, RUNNING, - // DONE, UNKNOWN. - State string `json:"state,omitempty"` - - // UserEmailAddress: The email address of the user who initiated this - // operation. - UserEmailAddress string `json:"userEmailAddress,omitempty"` -} - -type InstancesDeleteResponse struct { - // Kind: This is always sql#instancesDelete. - Kind string `json:"kind,omitempty"` - - // Operation: An identifier that uniquely identifies the operation. You - // can use this identifier to retrieve the Operations resource that has - // information about the operation. - Operation string `json:"operation,omitempty"` -} - -type InstancesExportRequest struct { - // ExportContext: Contains details about the export operation. - ExportContext *ExportContext `json:"exportContext,omitempty"` -} - -type InstancesExportResponse struct { - // Kind: This is always sql#instancesExport. - Kind string `json:"kind,omitempty"` - - // Operation: An identifier that uniquely identifies the operation. You - // can use this identifier to retrieve the Operations resource that has - // information about the operation. - Operation string `json:"operation,omitempty"` -} - -type InstancesImportRequest struct { - // ImportContext: Contains details about the import operation. - ImportContext *ImportContext `json:"importContext,omitempty"` -} - -type InstancesImportResponse struct { - // Kind: This is always sql#instancesImport. - Kind string `json:"kind,omitempty"` - - // Operation: An identifier that uniquely identifies the operation. You - // can use this identifier to retrieve the Operations resource that has - // information about the operation. - Operation string `json:"operation,omitempty"` -} - -type InstancesInsertResponse struct { - // Kind: This is always sql#instancesInsert. - Kind string `json:"kind,omitempty"` - - // Operation: An identifier that uniquely identifies the operation. You - // can use this identifier to retrieve the Operations resource that has - // information about the operation. - Operation string `json:"operation,omitempty"` -} - -type InstancesListResponse struct { - // Items: List of database instance resources. - Items []*DatabaseInstance `json:"items,omitempty"` - - // Kind: This is always sql#instancesList. - Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, used to page through large - // result sets. Provide this value in a subsequent request to return the - // next page of results. - NextPageToken string `json:"nextPageToken,omitempty"` -} - -type InstancesRestartResponse struct { - // Kind: This is always sql#instancesRestart. - Kind string `json:"kind,omitempty"` - - // Operation: An identifier that uniquely identifies the operation. You - // can use this identifier to retrieve the Operations resource that has - // information about the operation. - Operation string `json:"operation,omitempty"` -} - -type InstancesRestoreBackupResponse struct { - // Kind: This is always sql#instancesRestoreBackup. - Kind string `json:"kind,omitempty"` - - // Operation: An identifier that uniquely identifies the operation. You - // can use this identifier to retrieve the Operations resource that has - // information about the operation. - Operation string `json:"operation,omitempty"` -} - -type InstancesUpdateResponse struct { - // Kind: This is always sql#instancesUpdate. - Kind string `json:"kind,omitempty"` - - // Operation: An identifier that uniquely identifies the operation. You - // can use this identifier to retrieve information about the operation. - Operation string `json:"operation,omitempty"` -} - -type OperationError struct { - // Code: Identifies the specific error that occurred. - Code string `json:"code,omitempty"` - - // Kind: This is always sql#operationError. - Kind string `json:"kind,omitempty"` -} - -type OperationsListResponse struct { - // Items: List of operation resources. - Items []*InstanceOperation `json:"items,omitempty"` - - // Kind: This is always sql#operationsList. - Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, used to page through large - // result sets. Provide this value in a subsequent request to return the - // next page of results. - NextPageToken string `json:"nextPageToken,omitempty"` -} - -type Settings struct { - // ActivationPolicy: The activation policy for this instance. This - // specifies when the instance should be activated and is applicable - // only when the instance state is RUNNABLE. This can be one of the - // following. - // ALWAYS: The instance should always be active. - // NEVER: The instance should never be activated. - // ON_DEMAND: The instance is activated upon receiving requests. - ActivationPolicy string `json:"activationPolicy,omitempty"` - - // AuthorizedGaeApplications: The AppEngine app ids that can access this - // instance. - AuthorizedGaeApplications []string `json:"authorizedGaeApplications,omitempty"` - - // BackupConfiguration: The daily backup configuration for the instance. - BackupConfiguration []*BackupConfiguration `json:"backupConfiguration,omitempty"` - - // Kind: This is always sql#settings. - Kind string `json:"kind,omitempty"` - - // PricingPlan: The pricing plan for this instance. This can be either - // PER_USE or PACKAGE. - PricingPlan string `json:"pricingPlan,omitempty"` - - // ReplicationType: The type of replication this instance uses. This can - // be either ASYNCHRONOUS or SYNCHRONOUS. - ReplicationType string `json:"replicationType,omitempty"` - - // Tier: The tier of service for this instance, for example D1, D2. For - // more information, see pricing. - Tier string `json:"tier,omitempty"` -} - -type Tier struct { - // DiskQuota: The maximum disk size of this tier in bytes. - DiskQuota int64 `json:"DiskQuota,omitempty,string"` - - // RAM: The maximum RAM usage of this tier in bytes. - RAM int64 `json:"RAM,omitempty,string"` - - // Kind: This is always sql#tier. - Kind string `json:"kind,omitempty"` - - // Region: The applicable regions for this tier. Can be us-east1 and - // europe-west1. - Region []string `json:"region,omitempty"` - - // Tier: An identifier for the service tier, for example D1, D2 etc. For - // related information, see Pricing. - Tier string `json:"tier,omitempty"` -} - -type TiersListResponse struct { - // Items: List of tiers. - Items []*Tier `json:"items,omitempty"` - - // Kind: This is always sql#tiersList. - Kind string `json:"kind,omitempty"` -} - -// method id "sql.backupRuns.get": - -type BackupRunsGetCall struct { - s *Service - project string - instance string - backupConfiguration string - dueTime string - opt_ map[string]interface{} -} - -// Get: Retrieves a resource containing information about a backup run. -func (r *BackupRunsService) Get(project string, instance string, backupConfiguration string, dueTime string) *BackupRunsGetCall { - c := &BackupRunsGetCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.instance = instance - c.backupConfiguration = backupConfiguration - c.dueTime = dueTime - 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 *BackupRunsGetCall) Fields(s ...googleapi.Field) *BackupRunsGetCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *BackupRunsGetCall) Do() (*BackupRun, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - params.Set("dueTime", fmt.Sprintf("%v", c.dueTime)) - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "instance": c.instance, - "backupConfiguration": c.backupConfiguration, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *BackupRun - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Retrieves a resource containing information about a backup run.", - // "httpMethod": "GET", - // "id": "sql.backupRuns.get", - // "parameterOrder": [ - // "project", - // "instance", - // "backupConfiguration", - // "dueTime" - // ], - // "parameters": { - // "backupConfiguration": { - // "description": "Identifier for the backup configuration. This gets generated automatically when a backup configuration is created.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dueTime": { - // "description": "The start time of the four-hour backup window. The backup can occur any time in the window. The time is in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}", - // "response": { - // "$ref": "BackupRun" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.backupRuns.list": - -type BackupRunsListCall struct { - s *Service - project string - instance string - backupConfiguration string - opt_ map[string]interface{} -} - -// List: Lists all backup runs associated with a given instance and -// configuration in the reverse chronological order of the enqueued -// time. -func (r *BackupRunsService) List(project string, instance string, backupConfiguration string) *BackupRunsListCall { - c := &BackupRunsListCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.instance = instance - c.backupConfiguration = backupConfiguration - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of backup runs per response. -func (c *BackupRunsListCall) MaxResults(maxResults int64) *BackupRunsListCall { - c.opt_["maxResults"] = maxResults - return c -} - -// PageToken sets the optional parameter "pageToken": A -// previously-returned page token representing part of the larger set of -// results to view. -func (c *BackupRunsListCall) PageToken(pageToken string) *BackupRunsListCall { - c.opt_["pageToken"] = pageToken - 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 *BackupRunsListCall) Fields(s ...googleapi.Field) *BackupRunsListCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *BackupRunsListCall) Do() (*BackupRunsListResponse, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - params.Set("backupConfiguration", fmt.Sprintf("%v", c.backupConfiguration)) - if v, ok := c.opt_["maxResults"]; ok { - params.Set("maxResults", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}/backupRuns") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "instance": c.instance, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *BackupRunsListResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists all backup runs associated with a given instance and configuration in the reverse chronological order of the enqueued time.", - // "httpMethod": "GET", - // "id": "sql.backupRuns.list", - // "parameterOrder": [ - // "project", - // "instance", - // "backupConfiguration" - // ], - // "parameters": { - // "backupConfiguration": { - // "description": "Identifier for the backup configuration. This gets generated automatically when a backup configuration is created.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Maximum number of backup runs per response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A previously-returned page token representing part of the larger set of results to view.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances/{instance}/backupRuns", - // "response": { - // "$ref": "BackupRunsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.delete": - -type InstancesDeleteCall struct { - s *Service - project string - instance string - opt_ map[string]interface{} -} - -// Delete: Deletes a Cloud SQL instance. -func (r *InstancesService) Delete(project string, instance string) *InstancesDeleteCall { - c := &InstancesDeleteCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.instance = instance - 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 *InstancesDeleteCall) Fields(s ...googleapi.Field) *InstancesDeleteCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *InstancesDeleteCall) Do() (*InstancesDeleteResponse, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}") - urls += "?" + params.Encode() - req, _ := http.NewRequest("DELETE", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "instance": c.instance, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *InstancesDeleteResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes a Cloud SQL instance.", - // "httpMethod": "DELETE", - // "id": "sql.instances.delete", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance to be deleted.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances/{instance}", - // "response": { - // "$ref": "InstancesDeleteResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.export": - -type InstancesExportCall struct { - s *Service - project string - instance string - instancesexportrequest *InstancesExportRequest - opt_ map[string]interface{} -} - -// Export: Exports data from a Cloud SQL instance to a Google Cloud -// Storage bucket as a MySQL dump file. -func (r *InstancesService) Export(project string, instance string, instancesexportrequest *InstancesExportRequest) *InstancesExportCall { - c := &InstancesExportCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.instance = instance - c.instancesexportrequest = instancesexportrequest - 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 *InstancesExportCall) Fields(s ...googleapi.Field) *InstancesExportCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *InstancesExportCall) Do() (*InstancesExportResponse, error) { - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesexportrequest) - if err != nil { - return nil, err - } - ctype := "application/json" - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}/export") - urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "instance": c.instance, - }) - req.Header.Set("Content-Type", ctype) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *InstancesExportResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a MySQL dump file.", - // "httpMethod": "POST", - // "id": "sql.instances.export", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance to be exported.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances/{instance}/export", - // "request": { - // "$ref": "InstancesExportRequest" - // }, - // "response": { - // "$ref": "InstancesExportResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "sql.instances.get": - -type InstancesGetCall struct { - s *Service - project string - instance string - opt_ map[string]interface{} -} - -// Get: Retrieves a resource containing information about a Cloud SQL -// instance. -func (r *InstancesService) Get(project string, instance string) *InstancesGetCall { - c := &InstancesGetCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.instance = instance - 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 *InstancesGetCall) Fields(s ...googleapi.Field) *InstancesGetCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *InstancesGetCall) Do() (*DatabaseInstance, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "instance": c.instance, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *DatabaseInstance - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Retrieves a resource containing information about a Cloud SQL instance.", - // "httpMethod": "GET", - // "id": "sql.instances.get", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances/{instance}", - // "response": { - // "$ref": "DatabaseInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.import": - -type InstancesImportCall struct { - s *Service - project string - instance string - instancesimportrequest *InstancesImportRequest - opt_ map[string]interface{} -} - -// Import: Imports data into a Cloud SQL instance from a MySQL dump file -// in Google Cloud Storage. -func (r *InstancesService) Import(project string, instance string, instancesimportrequest *InstancesImportRequest) *InstancesImportCall { - c := &InstancesImportCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.instance = instance - c.instancesimportrequest = instancesimportrequest - 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 *InstancesImportCall) Fields(s ...googleapi.Field) *InstancesImportCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *InstancesImportCall) Do() (*InstancesImportResponse, error) { - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesimportrequest) - if err != nil { - return nil, err - } - ctype := "application/json" - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}/import") - urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "instance": c.instance, - }) - req.Header.Set("Content-Type", ctype) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *InstancesImportResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud Storage.", - // "httpMethod": "POST", - // "id": "sql.instances.import", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances/{instance}/import", - // "request": { - // "$ref": "InstancesImportRequest" - // }, - // "response": { - // "$ref": "InstancesImportResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "sql.instances.insert": - -type InstancesInsertCall struct { - s *Service - project string - databaseinstance *DatabaseInstance - opt_ map[string]interface{} -} - -// Insert: Creates a new Cloud SQL instance. -func (r *InstancesService) Insert(project string, databaseinstance *DatabaseInstance) *InstancesInsertCall { - c := &InstancesInsertCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.databaseinstance = databaseinstance - 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 *InstancesInsertCall) Fields(s ...googleapi.Field) *InstancesInsertCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *InstancesInsertCall) Do() (*InstancesInsertResponse, error) { - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.databaseinstance) - if err != nil { - return nil, err - } - ctype := "application/json" - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances") - urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - }) - req.Header.Set("Content-Type", ctype) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *InstancesInsertResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Creates a new Cloud SQL instance.", - // "httpMethod": "POST", - // "id": "sql.instances.insert", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "project": { - // "description": "Project ID of the project to which the newly created Cloud SQL instances should belong.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances", - // "request": { - // "$ref": "DatabaseInstance" - // }, - // "response": { - // "$ref": "InstancesInsertResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.list": - -type InstancesListCall struct { - s *Service - project string - opt_ map[string]interface{} -} - -// List: Lists instances under a given project in the alphabetical order -// of the instance name. -func (r *InstancesService) List(project string) *InstancesListCall { - c := &InstancesListCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - return c -} - -// MaxResults sets the optional parameter "maxResults": The maximum -// number of results to return per response. -func (c *InstancesListCall) MaxResults(maxResults int64) *InstancesListCall { - c.opt_["maxResults"] = maxResults - return c -} - -// PageToken sets the optional parameter "pageToken": A -// previously-returned page token representing part of the larger set of -// results to view. -func (c *InstancesListCall) PageToken(pageToken string) *InstancesListCall { - c.opt_["pageToken"] = pageToken - 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 *InstancesListCall) Fields(s ...googleapi.Field) *InstancesListCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *InstancesListCall) Do() (*InstancesListResponse, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["maxResults"]; ok { - params.Set("maxResults", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *InstancesListResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists instances under a given project in the alphabetical order of the instance name.", - // "httpMethod": "GET", - // "id": "sql.instances.list", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "maxResults": { - // "description": "The maximum number of results to return per response.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A previously-returned page token representing part of the larger set of results to view.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project for which to list Cloud SQL instances.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances", - // "response": { - // "$ref": "InstancesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.patch": - -type InstancesPatchCall struct { - s *Service - project string - instance string - databaseinstance *DatabaseInstance - opt_ map[string]interface{} -} - -// Patch: Updates settings of a Cloud SQL instance. Caution: This is not -// a partial update, so you must include values for all the settings -// that you want to retain. For partial updates, use patch.. This method -// supports patch semantics. -func (r *InstancesService) Patch(project string, instance string, databaseinstance *DatabaseInstance) *InstancesPatchCall { - c := &InstancesPatchCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.instance = instance - c.databaseinstance = databaseinstance - 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 *InstancesPatchCall) Fields(s ...googleapi.Field) *InstancesPatchCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *InstancesPatchCall) Do() (*InstancesUpdateResponse, error) { - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.databaseinstance) - if err != nil { - return nil, err - } - ctype := "application/json" - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}") - urls += "?" + params.Encode() - req, _ := http.NewRequest("PATCH", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "instance": c.instance, - }) - req.Header.Set("Content-Type", ctype) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *InstancesUpdateResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Updates settings of a Cloud SQL instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch.. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "sql.instances.patch", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances/{instance}", - // "request": { - // "$ref": "DatabaseInstance" - // }, - // "response": { - // "$ref": "InstancesUpdateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.restart": - -type InstancesRestartCall struct { - s *Service - project string - instance string - opt_ map[string]interface{} -} - -// Restart: Restarts a Cloud SQL instance. -func (r *InstancesService) Restart(project string, instance string) *InstancesRestartCall { - c := &InstancesRestartCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.instance = instance - 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 *InstancesRestartCall) Fields(s ...googleapi.Field) *InstancesRestartCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *InstancesRestartCall) Do() (*InstancesRestartResponse, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}/restart") - urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "instance": c.instance, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *InstancesRestartResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Restarts a Cloud SQL instance.", - // "httpMethod": "POST", - // "id": "sql.instances.restart", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance to be restarted.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances/{instance}/restart", - // "response": { - // "$ref": "InstancesRestartResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.restoreBackup": - -type InstancesRestoreBackupCall struct { - s *Service - project string - instance string - backupConfigurationid string - dueTime string - opt_ map[string]interface{} -} - -// RestoreBackup: Restores a backup of a Cloud SQL instance. -func (r *InstancesService) RestoreBackup(project string, instance string, backupConfigurationid string, dueTime string) *InstancesRestoreBackupCall { - c := &InstancesRestoreBackupCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.instance = instance - c.backupConfigurationid = backupConfigurationid - c.dueTime = dueTime - 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 *InstancesRestoreBackupCall) Fields(s ...googleapi.Field) *InstancesRestoreBackupCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *InstancesRestoreBackupCall) Do() (*InstancesRestoreBackupResponse, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - params.Set("backupConfiguration", fmt.Sprintf("%v", c.backupConfigurationid)) - params.Set("dueTime", fmt.Sprintf("%v", c.dueTime)) - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}/restoreBackup") - urls += "?" + params.Encode() - req, _ := http.NewRequest("POST", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "instance": c.instance, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *InstancesRestoreBackupResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Restores a backup of a Cloud SQL instance.", - // "httpMethod": "POST", - // "id": "sql.instances.restoreBackup", - // "parameterOrder": [ - // "project", - // "instance", - // "backupConfiguration", - // "dueTime" - // ], - // "parameters": { - // "backupConfiguration": { - // "description": "The identifier of the backup configuration. This gets generated automatically when a backup configuration is created.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "dueTime": { - // "description": "The start time of the four-hour backup window. The backup can occur any time in the window. The time is in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances/{instance}/restoreBackup", - // "response": { - // "$ref": "InstancesRestoreBackupResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.update": - -type InstancesUpdateCall struct { - s *Service - project string - instance string - databaseinstance *DatabaseInstance - opt_ map[string]interface{} -} - -// Update: Updates settings of a Cloud SQL instance. Caution: This is -// not a partial update, so you must include values for all the settings -// that you want to retain. For partial updates, use patch. -func (r *InstancesService) Update(project string, instance string, databaseinstance *DatabaseInstance) *InstancesUpdateCall { - c := &InstancesUpdateCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.instance = instance - c.databaseinstance = databaseinstance - 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 *InstancesUpdateCall) Fields(s ...googleapi.Field) *InstancesUpdateCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *InstancesUpdateCall) Do() (*InstancesUpdateResponse, error) { - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.databaseinstance) - if err != nil { - return nil, err - } - ctype := "application/json" - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}") - urls += "?" + params.Encode() - req, _ := http.NewRequest("PUT", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "instance": c.instance, - }) - req.Header.Set("Content-Type", ctype) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *InstancesUpdateResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Updates settings of a Cloud SQL instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch.", - // "etagRequired": true, - // "httpMethod": "PUT", - // "id": "sql.instances.update", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances/{instance}", - // "request": { - // "$ref": "DatabaseInstance" - // }, - // "response": { - // "$ref": "InstancesUpdateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.operations.get": - -type OperationsGetCall struct { - s *Service - project string - instance string - operation string - opt_ map[string]interface{} -} - -// Get: Retrieves an instance operation that has been performed on an -// instance. -func (r *OperationsService) Get(project string, instance string, operation string) *OperationsGetCall { - c := &OperationsGetCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.instance = instance - c.operation = operation - 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 *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *OperationsGetCall) Do() (*InstanceOperation, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}/operations/{operation}") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "instance": c.instance, - "operation": c.operation, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *InstanceOperation - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Retrieves an instance operation that has been performed on an instance.", - // "httpMethod": "GET", - // "id": "sql.operations.get", - // "parameterOrder": [ - // "project", - // "instance", - // "operation" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "operation": { - // "description": "Instance operation ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances/{instance}/operations/{operation}", - // "response": { - // "$ref": "InstanceOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.operations.list": - -type OperationsListCall struct { - s *Service - project string - instance string - opt_ map[string]interface{} -} - -// List: Lists all instance operations that have been performed on the -// given Cloud SQL instance in the reverse chronological order of the -// start time. -func (r *OperationsService) List(project string, instance string) *OperationsListCall { - c := &OperationsListCall{s: r.s, opt_: make(map[string]interface{})} - c.project = project - c.instance = instance - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of operations per response. -func (c *OperationsListCall) MaxResults(maxResults int64) *OperationsListCall { - c.opt_["maxResults"] = maxResults - return c -} - -// PageToken sets the optional parameter "pageToken": A -// previously-returned page token representing part of the larger set of -// results to view. -func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { - c.opt_["pageToken"] = pageToken - 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 *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *OperationsListCall) Do() (*OperationsListResponse, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["maxResults"]; ok { - params.Set("maxResults", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["pageToken"]; ok { - params.Set("pageToken", fmt.Sprintf("%v", v)) - } - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}/operations") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "instance": c.instance, - }) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *OperationsListResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time.", - // "httpMethod": "GET", - // "id": "sql.operations.list", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Maximum number of operations per response.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A previously-returned page token representing part of the larger set of results to view.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/instances/{instance}/operations", - // "response": { - // "$ref": "OperationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.tiers.list": - -type TiersListCall struct { - s *Service - opt_ map[string]interface{} -} - -// List: Lists all available service tiers for Google Cloud SQL, for -// example D1, D2. For related information, see Pricing. -func (r *TiersService) List() *TiersListCall { - c := &TiersListCall{s: r.s, opt_: make(map[string]interface{})} - 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 *TiersListCall) Fields(s ...googleapi.Field) *TiersListCall { - c.opt_["fields"] = googleapi.CombineFields(s) - return c -} - -func (c *TiersListCall) Do() (*TiersListResponse, error) { - var body io.Reader = nil - params := make(url.Values) - params.Set("alt", "json") - if v, ok := c.opt_["fields"]; ok { - params.Set("fields", fmt.Sprintf("%v", v)) - } - urls := googleapi.ResolveRelative(c.s.BasePath, "tiers") - urls += "?" + params.Encode() - req, _ := http.NewRequest("GET", urls, body) - googleapi.SetOpaque(req.URL) - req.Header.Set("User-Agent", c.s.userAgent()) - res, err := c.s.client.Do(req) - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - var ret *TiersListResponse - if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists all available service tiers for Google Cloud SQL, for example D1, D2. For related information, see Pricing.", - // "httpMethod": "GET", - // "id": "sql.tiers.list", - // "path": "tiers", - // "response": { - // "$ref": "TiersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index 4a1cf52f8b2..86ef6eb6ebe 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -1,11 +1,11 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/lTxRjj5-AURGfd9glUYk42wgbOA\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/ALzt_o9hBNBIakQJmeXCNhSU8II\"", "discoveryVersion": "v1", "id": "storage:v1", "name": "storage", "version": "v1", - "revision": "20150326", + "revision": "20150630", "title": "Cloud Storage API", "description": "Lets you store and retrieve potentially-large, immutable data objects.", "ownerDomain": "google.com", @@ -569,13 +569,14 @@ "description": "Content-Type of the object data.", "annotations": { "required": [ + "storage.objects.insert", "storage.objects.update" ] } }, "crc32c": { "type": "string", - "description": "CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order." + "description": "CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see Hashes and ETags: Best Practices." }, "etag": { "type": "string", @@ -597,7 +598,7 @@ }, "md5Hash": { "type": "string", - "description": "MD5 hash of the data; encoded using base64." + "description": "MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Hashes and ETags: Best Practices." }, "mediaLink": { "type": "string", diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index f5827531008..2eef2b67298 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -493,7 +493,9 @@ type Object struct { ContentType string `json:"contentType,omitempty"` // Crc32c: CRC32c checksum, as described in RFC 4960, Appendix B; - // encoded using base64 in big-endian byte order. + // encoded using base64 in big-endian byte order. For more information + // about using the CRC32c checksum, see Hashes and ETags: Best + // Practices. Crc32c string `json:"crc32c,omitempty"` // Etag: HTTP 1.1 Entity tag for the object. @@ -510,7 +512,9 @@ type Object struct { // storage#object. Kind string `json:"kind,omitempty"` - // Md5Hash: MD5 hash of the data; encoded using base64. + // Md5Hash: MD5 hash of the data; encoded using base64. For more + // information about using the MD5 hash, see Hashes and ETags: Best + // Practices. Md5Hash string `json:"md5Hash,omitempty"` // MediaLink: Media download link. diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index 778f2504662..062202a50f7 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -1,12 +1,12 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/Ru_OFZL_9JBTrnQ2wlhRmAO3y_k\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/dDzLANLY4y_3rdEpUNli-dPof40\"", "discoveryVersion": "v1", "id": "youtube:v3", "name": "youtube", "canonicalName": "YouTube", "version": "v3", - "revision": "20150529", + "revision": "20150706", "title": "YouTube Data API", "description": "Programmatic access to YouTube features.", "ownerDomain": "google.com", @@ -2503,6 +2503,9 @@ "type": "string", "description": "Rating system for Indonesia - Lembaga Sensor Film", "enum": [ + "lsf13", + "lsf17", + "lsf21", "lsfA", "lsfBo", "lsfD", @@ -2516,6 +2519,9 @@ "", "", "", + "", + "", + "", "" ] }, @@ -4000,25 +4006,25 @@ "type": "string", "description": "The kind of error happening.", "enum": [ - "audioBitrate", "audioBitrateHigh", "audioBitrateLow", + "audioBitrateMismatch", "audioCodec", "audioCodecMismatch", "audioSampleRate", "audioSampleRateMismatch", "audioStereoMismatch", - "audioTooManyChannel", + "audioTooManyChannels", "badContainer", "bitrateHigh", "bitrateLow", - "framerateHigh", + "frameRateHigh", "framerateMismatch", "gopMismatch", "gopSizeLong", "gopSizeOver", "gopSizeShort", - "interlaceVideo", + "interlacedVideo", "multipleAudioStreams", "multipleVideoStreams", "noAudioStream", @@ -4098,7 +4104,7 @@ "$ref": "LiveStreamConfigurationIssue" } }, - "lastUpdateTimeS": { + "lastUpdateTimeSeconds": { "type": "string", "description": "The last time this status was updated (in seconds)", "format": "uint64" @@ -7628,6 +7634,52 @@ "https://www.googleapis.com/auth/youtube.force-ssl" ] }, + "bind_direct": { + "id": "youtube.liveBroadcasts.bind_direct", + "path": "liveBroadcasts/bind/direct", + "httpMethod": "POST", + "description": "Binds a YouTube broadcast to a stream or removes an existing binding between a broadcast and a stream. A broadcast can only be bound to one video stream, though a video stream may be bound to more than one broadcast.", + "parameters": { + "id": { + "type": "string", + "description": "The id parameter specifies the unique ID of the broadcast that is being bound to a video stream.", + "required": true, + "location": "query" + }, + "onBehalfOfContentOwner": { + "type": "string", + "description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.", + "location": "query" + }, + "onBehalfOfContentOwnerChannel": { + "type": "string", + "description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.", + "location": "query" + }, + "part": { + "type": "string", + "description": "The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.", + "required": true, + "location": "query" + }, + "streamId": { + "type": "string", + "description": "The streamId parameter specifies the unique ID of the video stream that is being bound to a broadcast. If this parameter is omitted, the API will remove any existing binding between the broadcast and a video stream.", + "location": "query" + } + }, + "parameterOrder": [ + "id", + "part" + ], + "response": { + "$ref": "LiveBroadcast" + }, + "scopes": [ + "https://www.googleapis.com/auth/youtube", + "https://www.googleapis.com/auth/youtube.force-ssl" + ] + }, "control": { "id": "youtube.liveBroadcasts.control", "path": "liveBroadcasts/control", diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index b660e56800a..50015927748 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -1892,6 +1892,9 @@ type ContentRating struct { // LsfRating: Rating system for Indonesia - Lembaga Sensor Film // // Possible values: + // "lsf13" + // "lsf17" + // "lsf21" // "lsfA" // "lsfBo" // "lsfD" @@ -2890,25 +2893,25 @@ type LiveStreamConfigurationIssue struct { // Type: The kind of error happening. // // Possible values: - // "audioBitrate" // "audioBitrateHigh" // "audioBitrateLow" + // "audioBitrateMismatch" // "audioCodec" // "audioCodecMismatch" // "audioSampleRate" // "audioSampleRateMismatch" // "audioStereoMismatch" - // "audioTooManyChannel" + // "audioTooManyChannels" // "badContainer" // "bitrateHigh" // "bitrateLow" - // "framerateHigh" + // "frameRateHigh" // "framerateMismatch" // "gopMismatch" // "gopSizeLong" // "gopSizeOver" // "gopSizeShort" - // "interlaceVideo" + // "interlacedVideo" // "multipleAudioStreams" // "multipleVideoStreams" // "noAudioStream" @@ -2953,8 +2956,9 @@ type LiveStreamHealthStatus struct { // ConfigurationIssues: The configurations issues on this stream ConfigurationIssues []*LiveStreamConfigurationIssue `json:"configurationIssues,omitempty"` - // LastUpdateTimeS: The last time this status was updated (in seconds) - LastUpdateTimeS uint64 `json:"lastUpdateTimeS,omitempty,string"` + // LastUpdateTimeSeconds: The last time this status was updated (in + // seconds) + LastUpdateTimeSeconds uint64 `json:"lastUpdateTimeSeconds,omitempty,string"` // Status: The status code of this stream // @@ -8587,6 +8591,172 @@ func (c *LiveBroadcastsBindCall) Do() (*LiveBroadcast, error) { } +// method id "youtube.liveBroadcasts.bind_direct": + +type LiveBroadcastsBindDirectCall struct { + s *Service + id string + part string + opt_ map[string]interface{} +} + +// BindDirect: Binds a YouTube broadcast to a stream or removes an +// existing binding between a broadcast and a stream. A broadcast can +// only be bound to one video stream, though a video stream may be bound +// to more than one broadcast. +func (r *LiveBroadcastsService) BindDirect(id string, part string) *LiveBroadcastsBindDirectCall { + c := &LiveBroadcastsBindDirectCall{s: r.s, opt_: make(map[string]interface{})} + c.id = id + c.part = part + return c +} + +// OnBehalfOfContentOwner sets the optional parameter +// "onBehalfOfContentOwner": Note: This parameter is intended +// exclusively for YouTube content partners. +// +// The onBehalfOfContentOwner parameter indicates that the request's +// authorization credentials identify a YouTube CMS user who is acting +// on behalf of the content owner specified in the parameter value. This +// parameter is intended for YouTube content partners that own and +// manage many different YouTube channels. It allows content owners to +// authenticate once and get access to all their video and channel data, +// without having to provide authentication credentials for each +// individual channel. The CMS account that the user authenticates with +// must be linked to the specified YouTube content owner. +func (c *LiveBroadcastsBindDirectCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *LiveBroadcastsBindDirectCall { + c.opt_["onBehalfOfContentOwner"] = onBehalfOfContentOwner + return c +} + +// OnBehalfOfContentOwnerChannel sets the optional parameter +// "onBehalfOfContentOwnerChannel": This parameter can only be used in a +// properly authorized request. Note: This parameter is intended +// exclusively for YouTube content partners. +// +// The onBehalfOfContentOwnerChannel parameter specifies the YouTube +// channel ID of the channel to which a video is being added. This +// parameter is required when a request specifies a value for the +// onBehalfOfContentOwner parameter, and it can only be used in +// conjunction with that parameter. In addition, the request must be +// authorized using a CMS account that is linked to the content owner +// that the onBehalfOfContentOwner parameter specifies. Finally, the +// channel that the onBehalfOfContentOwnerChannel parameter value +// specifies must be linked to the content owner that the +// onBehalfOfContentOwner parameter specifies. +// +// This parameter is intended for YouTube content partners that own and +// manage many different YouTube channels. It allows content owners to +// authenticate once and perform actions on behalf of the channel +// specified in the parameter value, without having to provide +// authentication credentials for each separate channel. +func (c *LiveBroadcastsBindDirectCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *LiveBroadcastsBindDirectCall { + c.opt_["onBehalfOfContentOwnerChannel"] = onBehalfOfContentOwnerChannel + return c +} + +// StreamId sets the optional parameter "streamId": The streamId +// parameter specifies the unique ID of the video stream that is being +// bound to a broadcast. If this parameter is omitted, the API will +// remove any existing binding between the broadcast and a video stream. +func (c *LiveBroadcastsBindDirectCall) StreamId(streamId string) *LiveBroadcastsBindDirectCall { + c.opt_["streamId"] = streamId + 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 *LiveBroadcastsBindDirectCall) Fields(s ...googleapi.Field) *LiveBroadcastsBindDirectCall { + c.opt_["fields"] = googleapi.CombineFields(s) + return c +} + +func (c *LiveBroadcastsBindDirectCall) Do() (*LiveBroadcast, error) { + var body io.Reader = nil + params := make(url.Values) + params.Set("alt", "json") + params.Set("id", fmt.Sprintf("%v", c.id)) + params.Set("part", fmt.Sprintf("%v", c.part)) + if v, ok := c.opt_["onBehalfOfContentOwner"]; ok { + params.Set("onBehalfOfContentOwner", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["onBehalfOfContentOwnerChannel"]; ok { + params.Set("onBehalfOfContentOwnerChannel", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["streamId"]; ok { + params.Set("streamId", fmt.Sprintf("%v", v)) + } + if v, ok := c.opt_["fields"]; ok { + params.Set("fields", fmt.Sprintf("%v", v)) + } + urls := googleapi.ResolveRelative(c.s.BasePath, "liveBroadcasts/bind/direct") + urls += "?" + params.Encode() + req, _ := http.NewRequest("POST", urls, body) + googleapi.SetOpaque(req.URL) + req.Header.Set("User-Agent", c.s.userAgent()) + res, err := c.s.client.Do(req) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + var ret *LiveBroadcast + if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Binds a YouTube broadcast to a stream or removes an existing binding between a broadcast and a stream. A broadcast can only be bound to one video stream, though a video stream may be bound to more than one broadcast.", + // "httpMethod": "POST", + // "id": "youtube.liveBroadcasts.bind_direct", + // "parameterOrder": [ + // "id", + // "part" + // ], + // "parameters": { + // "id": { + // "description": "The id parameter specifies the unique ID of the broadcast that is being bound to a video stream.", + // "location": "query", + // "required": true, + // "type": "string" + // }, + // "onBehalfOfContentOwner": { + // "description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.", + // "location": "query", + // "type": "string" + // }, + // "onBehalfOfContentOwnerChannel": { + // "description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.", + // "location": "query", + // "type": "string" + // }, + // "part": { + // "description": "The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.", + // "location": "query", + // "required": true, + // "type": "string" + // }, + // "streamId": { + // "description": "The streamId parameter specifies the unique ID of the video stream that is being bound to a broadcast. If this parameter is omitted, the API will remove any existing binding between the broadcast and a video stream.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "liveBroadcasts/bind/direct", + // "response": { + // "$ref": "LiveBroadcast" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/youtube", + // "https://www.googleapis.com/auth/youtube.force-ssl" + // ] + // } + +} + // method id "youtube.liveBroadcasts.control": type LiveBroadcastsControlCall struct { diff --git a/youtubeanalytics/v1/youtubeanalytics-api.json b/youtubeanalytics/v1/youtubeanalytics-api.json index 5913f52b1e3..0f25e62c572 100644 --- a/youtubeanalytics/v1/youtubeanalytics-api.json +++ b/youtubeanalytics/v1/youtubeanalytics-api.json @@ -1,6 +1,6 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/lfXuvexGjLWvv2bGYOX_MVmrKM4\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/C3vQT4j_3dhMyf8QNzNOBvuZRuQ\"", "discoveryVersion": "v1", "id": "youtubeAnalytics:v1", "name": "youtubeAnalytics", @@ -82,7 +82,7 @@ "description": "View and manage your assets and associated content on YouTube" }, "https://www.googleapis.com/auth/yt-analytics-monetary.readonly": { - "description": "View YouTube Analytics monetary reports for your YouTube content" + "description": "View monetary and non-monetary YouTube Analytics reports for your YouTube content" }, "https://www.googleapis.com/auth/yt-analytics.readonly": { "description": "View YouTube Analytics reports for your YouTube content" diff --git a/youtubeanalytics/v1/youtubeanalytics-gen.go b/youtubeanalytics/v1/youtubeanalytics-gen.go index dd36988ac52..eb39a3ef5a3 100644 --- a/youtubeanalytics/v1/youtubeanalytics-gen.go +++ b/youtubeanalytics/v1/youtubeanalytics-gen.go @@ -52,7 +52,8 @@ const ( // View and manage your assets and associated content on YouTube YoutubepartnerScope = "https://www.googleapis.com/auth/youtubepartner" - // View YouTube Analytics monetary reports for your YouTube content + // View monetary and non-monetary YouTube Analytics reports for your + // YouTube content YtAnalyticsMonetaryReadonlyScope = "https://www.googleapis.com/auth/yt-analytics-monetary.readonly" // View YouTube Analytics reports for your YouTube content diff --git a/youtubeanalytics/v1beta1/youtubeanalytics-api.json b/youtubeanalytics/v1beta1/youtubeanalytics-api.json index e79008b7f81..66c3c031c8d 100644 --- a/youtubeanalytics/v1beta1/youtubeanalytics-api.json +++ b/youtubeanalytics/v1beta1/youtubeanalytics-api.json @@ -1,6 +1,6 @@ { "kind": "discovery#restDescription", - "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/ID2nf7n7eRyIPf4mFz5QF1inEVE\"", + "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/wzHkxHWEX9PcW7ZnULAilfkQsbM\"", "discoveryVersion": "v1", "id": "youtubeAnalytics:v1beta1", "name": "youtubeAnalytics", @@ -85,7 +85,7 @@ "description": "View and manage your assets and associated content on YouTube" }, "https://www.googleapis.com/auth/yt-analytics-monetary.readonly": { - "description": "View YouTube Analytics monetary reports for your YouTube content" + "description": "View monetary and non-monetary YouTube Analytics reports for your YouTube content" }, "https://www.googleapis.com/auth/yt-analytics.readonly": { "description": "View YouTube Analytics reports for your YouTube content" diff --git a/youtubeanalytics/v1beta1/youtubeanalytics-gen.go b/youtubeanalytics/v1beta1/youtubeanalytics-gen.go index 7b730224dde..92d2a7d87dc 100644 --- a/youtubeanalytics/v1beta1/youtubeanalytics-gen.go +++ b/youtubeanalytics/v1beta1/youtubeanalytics-gen.go @@ -52,7 +52,8 @@ const ( // View and manage your assets and associated content on YouTube YoutubepartnerScope = "https://www.googleapis.com/auth/youtubepartner" - // View YouTube Analytics monetary reports for your YouTube content + // View monetary and non-monetary YouTube Analytics reports for your + // YouTube content YtAnalyticsMonetaryReadonlyScope = "https://www.googleapis.com/auth/yt-analytics-monetary.readonly" // View YouTube Analytics reports for your YouTube content