// Do executes the "speech.operations.cancel" call. // Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation.", // "flatPath": "v1beta1/operations/{operationsId}:cancel", // "httpMethod": "POST", // "id": "speech.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", // "pattern": "^[^/]*$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/operations/{+name}:cancel", // "request": { // "$ref": "CancelOperationRequest" // }, // "response": { // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" // ] // } }
// Do executes the "servicecontrol.services.report" call. // Exactly one of *ReportResponse or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *ReportResponse.ServerResponse.Header or (if a response was returned // at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. func (c *ServicesReportCall) Do(opts ...googleapi.CallOption) (*ReportResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &ReportResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Reports operations to Google Service Control. It should be called\nafter the operation is completed.\n\nIf feasible, the client should aggregate reporting data for up to 5s to\nreduce API traffic. Limiting aggregation to 5s is to reduce data loss\nduring client crashes. Clients should carefully choose the aggregation\nwindow to avoid data loss risk more than 0.01% for business and\ncompliance reasons.\n\nThis method requires the `servicemanagement.services.report` permission\non the specified service. For more information, see\n[Google Cloud IAM](https://cloud.google.com/iam).", // "flatPath": "v1/services/{serviceName}:report", // "httpMethod": "POST", // "id": "servicecontrol.services.report", // "parameterOrder": [ // "serviceName" // ], // "parameters": { // "serviceName": { // "description": "The service name as specified in its service configuration. For example,\n`\"pubsub.googleapis.com\"`.\n\nSee google.api.Service for the definition of a service name.", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "v1/services/{serviceName}:report", // "request": { // "$ref": "ReportRequest" // }, // "response": { // "$ref": "ReportResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/servicecontrol" // ] // } }
// Do executes the "siteVerification.webResource.delete" call. func (c *WebResourceDeleteCall) Do(opts ...googleapi.CallOption) error { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if err != nil { return err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return err } return nil // { // "description": "Relinquish ownership of a website or domain.", // "httpMethod": "DELETE", // "id": "siteVerification.webResource.delete", // "parameterOrder": [ // "id" // ], // "parameters": { // "id": { // "description": "The id of a verified site or domain.", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "webResource/{id}", // "scopes": [ // "https://www.googleapis.com/auth/siteverification" // ] // } }
// Do executes the "fleet.Unit.Delete" call. func (c *UnitsDeleteCall) Do(opts ...googleapi.CallOption) error { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if err != nil { return err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return err } return nil // { // "description": "Delete the referenced Unit object.", // "httpMethod": "DELETE", // "id": "fleet.Unit.Delete", // "parameterOrder": [ // "unitName" // ], // "parameters": { // "unitName": { // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "units/{unitName}" // } }
// Do executes the "fleet.Unit.Set" call. func (c *UnitsSetCall) Do(opts ...googleapi.CallOption) error { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if err != nil { return err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return err } return nil // { // "description": "Create or update a Unit.", // "httpMethod": "PUT", // "id": "fleet.Unit.Set", // "parameterOrder": [ // "unitName" // ], // "parameters": { // "unitName": { // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "units/{unitName}", // "request": { // "$ref": "Unit" // } // } }
// Do executes the "youtubereporting.jobs.get" call. // Exactly one of *Job or error will be non-nil. Any non-2xx status code // is an error. Response headers are in either // *Job.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. func (c *JobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Job{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { // "description": "Gets a job.", // "httpMethod": "GET", // "id": "youtubereporting.jobs.get", // "parameterOrder": [ // "jobId" // ], // "parameters": { // "jobId": { // "description": "The ID of the job to retrieve.", // "location": "path", // "required": true, // "type": "string" // }, // "onBehalfOfContentOwner": { // "description": "The content owner's external ID on which behalf the user is acting on. If not set, the user is acting for himself (his own channel).", // "location": "query", // "type": "string" // } // }, // "path": "v1/jobs/{jobId}", // "response": { // "$ref": "Job" // }, // "scopes": [ // "https://www.googleapis.com/auth/yt-analytics-monetary.readonly", // "https://www.googleapis.com/auth/yt-analytics.readonly" // ] // } }
// Do executes the "oauth2.getCertForOpenIdConnect" call. func (c *GetCertForOpenIdConnectCall) Do(opts ...googleapi.CallOption) (map[string]string, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } var ret map[string]string if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { // "httpMethod": "GET", // "id": "oauth2.getCertForOpenIdConnect", // "path": "oauth2/v1/certs", // "response": { // "$ref": "X509" // } // } }
// Do executes the "cloudbilling.projects.updateBillingInfo" call. // Exactly one of *ProjectBillingInfo or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *ProjectBillingInfo.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. func (c *ProjectsUpdateBillingInfoCall) Do(opts ...googleapi.CallOption) (*ProjectBillingInfo, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &ProjectBillingInfo{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Sets or updates the billing account associated with a project. You specify\nthe new billing account by setting the `billing_account_name` in the\n`ProjectBillingInfo` resource to the resource name of a billing account.\nAssociating a project with an open billing account enables billing on the\nproject and allows charges for resource usage. If the project already had a\nbilling account, this method changes the billing account used for resource\nusage charges.\n\n*Note:* Incurred charges that have not yet been reported in the transaction\nhistory of the Google Cloud Console may be billed to the new billing\naccount, even if the charge occurred before the new billing account was\nassigned to the project.\n\nThe current authenticated user must have ownership privileges for both the\n[project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo\n) and the [billing\naccount](https://support.google.com/cloud/answer/4430947).\n\nYou can disable billing on the project by setting the\n`billing_account_name` field to empty. This action disassociates the\ncurrent billing account from the project. Any billable activity of your\nin-use services will stop, and your application could stop functioning as\nexpected. Any unbilled charges to date will be billed to the previously\nassociated account. The current authenticated user must be either an owner\nof the project or an owner of the billing account for the project.\n\nNote that associating a project with a *closed* billing account will have\nmuch the same effect as disabling billing on the project: any paid\nresources used by the project will be shut down. Thus, unless you wish to\ndisable billing, you should always call this method with the name of an\n*open* billing account.", // "flatPath": "v1/projects/{projectsId}/billingInfo", // "httpMethod": "PUT", // "id": "cloudbilling.projects.updateBillingInfo", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { // "description": "The resource name of the project associated with the billing information\nthat you want to update. For example, `projects/tokyo-rain-123`.", // "location": "path", // "pattern": "^projects/[^/]*$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}/billingInfo", // "request": { // "$ref": "ProjectBillingInfo" // }, // "response": { // "$ref": "ProjectBillingInfo" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" // ] // } }
// Do executes the "prediction.trainedmodels.delete" call. func (c *TrainedmodelsDeleteCall) Do(opts ...googleapi.CallOption) error { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if err != nil { return err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return err } return nil // { // "description": "Delete a trained model.", // "httpMethod": "DELETE", // "id": "prediction.trainedmodels.delete", // "parameterOrder": [ // "id" // ], // "parameters": { // "id": { // "description": "The unique name for the predictive model.", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "trainedmodels/{id}", // "scopes": [ // "https://www.googleapis.com/auth/prediction" // ] // } }
// Do executes the "servicecontrol.services.check" call. // Exactly one of *CheckResponse or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *CheckResponse.ServerResponse.Header or (if a response was returned // at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. func (c *ServicesCheckCall) Do(opts ...googleapi.CallOption) (*CheckResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &CheckResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Checks an operation with Google Service Control to decide whether\nthe given operation should proceed. It should be called before the\noperation is executed.\n\nIf feasible, the client should cache the check results and reuse them for\nup to 60s. In case of server errors, the client may rely on the cached\nresults for longer time.\n\nThis method requires the `servicemanagement.services.check` permission\non the specified service. For more information, see\n[Google Cloud IAM](https://cloud.google.com/iam).", // "flatPath": "v1/services/{serviceName}:check", // "httpMethod": "POST", // "id": "servicecontrol.services.check", // "parameterOrder": [ // "serviceName" // ], // "parameters": { // "serviceName": { // "description": "The service name as specified in its service configuration. For example,\n`\"pubsub.googleapis.com\"`.\n\nSee google.api.Service for the definition of a service name.", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "v1/services/{serviceName}:check", // "request": { // "$ref": "CheckRequest" // }, // "response": { // "$ref": "CheckResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/servicecontrol" // ] // } }
// Do executes the "admin.channels.stop" call. func (c *ChannelsStopCall) Do(opts ...googleapi.CallOption) error { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if err != nil { return err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return err } return nil // { // "description": "Stop watching resources through this channel", // "httpMethod": "POST", // "id": "admin.channels.stop", // "path": "/admin/reports_v1/channels/stop", // "request": { // "$ref": "Channel", // "parameterName": "resource" // }, // "scopes": [ // "https://www.googleapis.com/auth/admin.reports.audit.readonly" // ] // } }
// Do executes the "prediction.training.delete" call. func (c *TrainingDeleteCall) Do(opts ...googleapi.CallOption) error { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if err != nil { return err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return err } return nil // { // "description": "Delete a trained model", // "httpMethod": "DELETE", // "id": "prediction.training.delete", // "parameterOrder": [ // "data" // ], // "parameters": { // "data": { // "description": "mybucket/mydata resource in Google Storage", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "training/{data}", // "scopes": [ // "https://www.googleapis.com/auth/prediction" // ] // } }
// Do executes the "siteVerification.webResource.insert" call. // Exactly one of *SiteVerificationWebResourceResource or error will be // non-nil. Any non-2xx status code is an error. Response headers are in // either *SiteVerificationWebResourceResource.ServerResponse.Header or // (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. func (c *WebResourceInsertCall) Do(opts ...googleapi.CallOption) (*SiteVerificationWebResourceResource, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &SiteVerificationWebResourceResource{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Attempt verification of a website or domain.", // "httpMethod": "POST", // "id": "siteVerification.webResource.insert", // "parameterOrder": [ // "verificationMethod" // ], // "parameters": { // "verificationMethod": { // "description": "The method to use for verifying a site or domain.", // "location": "query", // "required": true, // "type": "string" // } // }, // "path": "webResource", // "request": { // "$ref": "SiteVerificationWebResourceResource" // }, // "response": { // "$ref": "SiteVerificationWebResourceResource" // }, // "scopes": [ // "https://www.googleapis.com/auth/siteverification", // "https://www.googleapis.com/auth/siteverification.verify_only" // ] // } }
// Do executes the "cloudbilling.billingAccounts.list" call. // Exactly one of *ListBillingAccountsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *ListBillingAccountsResponse.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. func (c *BillingAccountsListCall) Do(opts ...googleapi.CallOption) (*ListBillingAccountsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &ListBillingAccountsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Lists the billing accounts that the current authenticated user\n[owns](https://support.google.com/cloud/answer/4430947).", // "flatPath": "v1/billingAccounts", // "httpMethod": "GET", // "id": "cloudbilling.billingAccounts.list", // "parameterOrder": [], // "parameters": { // "pageSize": { // "description": "Requested page size. The maximum page size is 100; this is also the\ndefault.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { // "description": "A token identifying a page of results to return. This should be a\n`next_page_token` value returned from a previous `ListBillingAccounts`\ncall. If unspecified, the first page of results is returned.", // "location": "query", // "type": "string" // } // }, // "path": "v1/billingAccounts", // "response": { // "$ref": "ListBillingAccountsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" // ] // } }
// Do executes the "discovery.apis.getRest" call. // Exactly one of *RestDescription or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *RestDescription.ServerResponse.Header or (if a response was returned // at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. func (c *ApisGetRestCall) Do(opts ...googleapi.CallOption) (*RestDescription, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &RestDescription{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Retrieve the description of a particular version of an api.", // "httpMethod": "GET", // "id": "discovery.apis.getRest", // "parameterOrder": [ // "api", // "version" // ], // "parameters": { // "api": { // "description": "The name of the API.", // "location": "path", // "required": true, // "type": "string" // }, // "version": { // "description": "The version of the API.", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "apis/{api}/{version}/rest", // "response": { // "$ref": "RestDescription" // } // } }
// Do executes the "cloudbuild.projects.builds.create" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. func (c *ProjectsBuildsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Starts a build with the specified configuration.\n\nThe long-running Operation returned by this method will include the ID of\nthe build, which can be passed to GetBuild to determine its status (e.g.,\nsuccess or failure).", // "flatPath": "v1/projects/{projectId}/builds", // "httpMethod": "POST", // "id": "cloudbuild.projects.builds.create", // "parameterOrder": [ // "projectId" // ], // "parameters": { // "projectId": { // "description": "ID of the project.", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "v1/projects/{projectId}/builds", // "request": { // "$ref": "Build" // }, // "response": { // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" // ] // } }
// Do executes the "genomics.operations.cancel" call. // Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } 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 or 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": "v1alpha2/{+name}:cancel", // "request": { // "$ref": "CancelOperationRequest" // }, // "response": { // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/genomics" // ] // } }
// Do executes the "adexchangebuyer.accounts.update" call. // Exactly one of *Account or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Account.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Account{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Updates an existing account.", // "httpMethod": "PUT", // "id": "adexchangebuyer.accounts.update", // "parameterOrder": [ // "id" // ], // "parameters": { // "id": { // "description": "The account id", // "format": "int32", // "location": "path", // "required": true, // "type": "integer" // } // }, // "path": "accounts/{id}", // "request": { // "$ref": "Account" // }, // "response": { // "$ref": "Account" // }, // "scopes": [ // "https://www.googleapis.com/auth/adexchange.buyer" // ] // } }
// Do executes the "cloudtrace.projects.patchTraces" call. // Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. func (c *ProjectsPatchTracesCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.", // "httpMethod": "PATCH", // "id": "cloudtrace.projects.patchTraces", // "parameterOrder": [ // "projectId" // ], // "parameters": { // "projectId": { // "description": "ID of the Cloud project where the trace data is stored.", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "v1/projects/{projectId}/traces", // "request": { // "$ref": "Traces" // }, // "response": { // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/trace.append" // ] // } }
// Do executes the "dataproc.media.download" call. // Exactly one of *Media or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Media.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*Media, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Media{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } if err := json.NewDecoder(res.Body).Decode(&ret); err != nil { return nil, err } return ret, nil // { // "description": "Method for media download. Download is supported on the URI `/v1/media/{+name}?alt=media`.", // "httpMethod": "GET", // "id": "dataproc.media.download", // "parameterOrder": [ // "resourceName" // ], // "parameters": { // "resourceName": { // "description": "Name of the media that is being downloaded. See [][ByteStream.ReadRequest.resource_name].", // "location": "path", // "pattern": "^.*$", // "required": true, // "type": "string" // } // }, // "path": "v1/media/{+resourceName}", // "response": { // "$ref": "Media" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/logging.admin", // "https://www.googleapis.com/auth/logging.read", // "https://www.googleapis.com/auth/logging.write" // ], // "supportsMediaDownload": true // } }
// Do executes the "siteVerification.webResource.patch" call. // Exactly one of *SiteVerificationWebResourceResource or error will be // non-nil. Any non-2xx status code is an error. Response headers are in // either *SiteVerificationWebResourceResource.ServerResponse.Header or // (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. func (c *WebResourcePatchCall) Do(opts ...googleapi.CallOption) (*SiteVerificationWebResourceResource, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &SiteVerificationWebResourceResource{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Modify the list of owners for your website or domain. This method supports patch semantics.", // "httpMethod": "PATCH", // "id": "siteVerification.webResource.patch", // "parameterOrder": [ // "id" // ], // "parameters": { // "id": { // "description": "The id of a verified site or domain.", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "webResource/{id}", // "request": { // "$ref": "SiteVerificationWebResourceResource" // }, // "response": { // "$ref": "SiteVerificationWebResourceResource" // }, // "scopes": [ // "https://www.googleapis.com/auth/siteverification" // ] // } }
// Do executes the "groupsSettings.groups.update" call. // Exactly one of *Groups or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Groups.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. func (c *GroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Groups, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Groups{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Updates an existing resource.", // "httpMethod": "PUT", // "id": "groupsSettings.groups.update", // "parameterOrder": [ // "groupUniqueId" // ], // "parameters": { // "groupUniqueId": { // "description": "The resource ID", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "{groupUniqueId}", // "request": { // "$ref": "Groups" // }, // "response": { // "$ref": "Groups" // }, // "scopes": [ // "https://www.googleapis.com/auth/apps.groups.settings" // ] // } }
// Do executes the "appstate.states.get" call. // Exactly one of *GetResponse or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *GetResponse.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. func (c *StatesGetCall) Do(opts ...googleapi.CallOption) (*GetResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &GetResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Retrieves the data corresponding to the passed key. If the key does not exist on the server, an HTTP 404 will be returned.", // "httpMethod": "GET", // "id": "appstate.states.get", // "parameterOrder": [ // "stateKey" // ], // "parameters": { // "stateKey": { // "description": "The key for the data to be retrieved.", // "format": "int32", // "location": "path", // "maximum": "3", // "minimum": "0", // "required": true, // "type": "integer" // } // }, // "path": "states/{stateKey}", // "response": { // "$ref": "GetResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/appstate" // ] // } }
// Do executes the "prediction.hostedmodels.predict" call. // Exactly one of *Output or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Output.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. func (c *HostedmodelsPredictCall) Do(opts ...googleapi.CallOption) (*Output, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Output{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Submit input and request an output against a hosted model", // "httpMethod": "POST", // "id": "prediction.hostedmodels.predict", // "parameterOrder": [ // "hostedModelName" // ], // "parameters": { // "hostedModelName": { // "description": "The name of a hosted model", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "hostedmodels/{hostedModelName}/predict", // "request": { // "$ref": "Input" // }, // "response": { // "$ref": "Output" // }, // "scopes": [ // "https://www.googleapis.com/auth/prediction" // ] // } }
// Do executes the "prediction.training.update" call. // Exactly one of *Training or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Training.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. func (c *TrainingUpdateCall) Do(opts ...googleapi.CallOption) (*Training, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Training{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Add new data to a trained model", // "httpMethod": "PUT", // "id": "prediction.training.update", // "parameterOrder": [ // "data" // ], // "parameters": { // "data": { // "description": "mybucket/mydata resource in Google Storage", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "training/{data}", // "request": { // "$ref": "Update" // }, // "response": { // "$ref": "Training" // }, // "scopes": [ // "https://www.googleapis.com/auth/prediction" // ] // } }
// Do executes the "runtimeconfig.operations.delete" call. // Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Deletes a long-running operation. This method indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.", // "flatPath": "v1/operations/{operationsId}", // "httpMethod": "DELETE", // "id": "runtimeconfig.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/cloudruntimeconfig" // ] // } }
// Do executes the "datatransfer.applications.get" call. // Exactly one of *Application or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Application.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. func (c *ApplicationsGetCall) Do(opts ...googleapi.CallOption) (*Application, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Application{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Retrieves information about an application for the given application ID.", // "httpMethod": "GET", // "id": "datatransfer.applications.get", // "parameterOrder": [ // "applicationId" // ], // "parameters": { // "applicationId": { // "description": "ID of the application resource to be retrieved.", // "format": "int64", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "applications/{applicationId}", // "response": { // "$ref": "Application" // }, // "scopes": [ // "https://www.googleapis.com/auth/admin.datatransfer", // "https://www.googleapis.com/auth/admin.datatransfer.readonly" // ] // } }
// Do executes the "speech.operations.get" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", // "flatPath": "v1beta1/operations/{operationsId}", // "httpMethod": "GET", // "id": "speech.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { // "description": "The name of the operation resource.", // "location": "path", // "pattern": "^[^/]*$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/operations/{+name}", // "response": { // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" // ] // } }
// Do executes the "prediction.training.insert" call. // Exactly one of *Training or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Training.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. func (c *TrainingInsertCall) Do(opts ...googleapi.CallOption) (*Training, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Training{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Begin training your model", // "httpMethod": "POST", // "id": "prediction.training.insert", // "parameters": { // "data": { // "description": "mybucket/mydata resource in Google Storage", // "location": "query", // "type": "string" // } // }, // "path": "training", // "request": { // "$ref": "Training" // }, // "response": { // "$ref": "Training" // }, // "scopes": [ // "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/prediction" // ] // } }
// Do executes the "cloudbilling.projects.getBillingInfo" call. // Exactly one of *ProjectBillingInfo or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *ProjectBillingInfo.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. func (c *ProjectsGetBillingInfoCall) Do(opts ...googleapi.CallOption) (*ProjectBillingInfo, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &ProjectBillingInfo{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Gets the billing information for a project. The current authenticated user\nmust have [permission to view the\nproject](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo\n).", // "flatPath": "v1/projects/{projectsId}/billingInfo", // "httpMethod": "GET", // "id": "cloudbilling.projects.getBillingInfo", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { // "description": "The resource name of the project for which billing information is\nretrieved. For example, `projects/tokyo-rain-123`.", // "location": "path", // "pattern": "^projects/[^/]*$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}/billingInfo", // "response": { // "$ref": "ProjectBillingInfo" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" // ] // } }