您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

1265 行
42 KiB

  1. // Copyright 2019 Google LLC.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Code generated file. DO NOT EDIT.
  5. // Package siteverification provides access to the Google Site Verification API.
  6. //
  7. // For product documentation, see: https://developers.google.com/site-verification/
  8. //
  9. // Creating a client
  10. //
  11. // Usage example:
  12. //
  13. // import "google.golang.org/api/siteverification/v1"
  14. // ...
  15. // ctx := context.Background()
  16. // siteverificationService, err := siteverification.NewService(ctx)
  17. //
  18. // In this example, Google Application Default Credentials are used for authentication.
  19. //
  20. // For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
  21. //
  22. // Other authentication options
  23. //
  24. // By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:
  25. //
  26. // siteverificationService, err := siteverification.NewService(ctx, option.WithScopes(siteverification.SiteverificationVerifyOnlyScope))
  27. //
  28. // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
  29. //
  30. // siteverificationService, err := siteverification.NewService(ctx, option.WithAPIKey("AIza..."))
  31. //
  32. // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
  33. //
  34. // config := &oauth2.Config{...}
  35. // // ...
  36. // token, err := config.Exchange(ctx, ...)
  37. // siteverificationService, err := siteverification.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
  38. //
  39. // See https://godoc.org/google.golang.org/api/option/ for details on options.
  40. package siteverification // import "google.golang.org/api/siteverification/v1"
  41. import (
  42. "bytes"
  43. "context"
  44. "encoding/json"
  45. "errors"
  46. "fmt"
  47. "io"
  48. "net/http"
  49. "net/url"
  50. "strconv"
  51. "strings"
  52. gensupport "google.golang.org/api/gensupport"
  53. googleapi "google.golang.org/api/googleapi"
  54. option "google.golang.org/api/option"
  55. htransport "google.golang.org/api/transport/http"
  56. )
  57. // Always reference these packages, just in case the auto-generated code
  58. // below doesn't.
  59. var _ = bytes.NewBuffer
  60. var _ = strconv.Itoa
  61. var _ = fmt.Sprintf
  62. var _ = json.NewDecoder
  63. var _ = io.Copy
  64. var _ = url.Parse
  65. var _ = gensupport.MarshalJSON
  66. var _ = googleapi.Version
  67. var _ = errors.New
  68. var _ = strings.Replace
  69. var _ = context.Canceled
  70. const apiId = "siteVerification:v1"
  71. const apiName = "siteVerification"
  72. const apiVersion = "v1"
  73. const basePath = "https://www.googleapis.com/siteVerification/v1/"
  74. // OAuth2 scopes used by this API.
  75. const (
  76. // Manage the list of sites and domains you control
  77. SiteverificationScope = "https://www.googleapis.com/auth/siteverification"
  78. // Manage your new site verifications with Google
  79. SiteverificationVerifyOnlyScope = "https://www.googleapis.com/auth/siteverification.verify_only"
  80. )
  81. // NewService creates a new Service.
  82. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
  83. scopesOption := option.WithScopes(
  84. "https://www.googleapis.com/auth/siteverification",
  85. "https://www.googleapis.com/auth/siteverification.verify_only",
  86. )
  87. // NOTE: prepend, so we don't override user-specified scopes.
  88. opts = append([]option.ClientOption{scopesOption}, opts...)
  89. client, endpoint, err := htransport.NewClient(ctx, opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. s, err := New(client)
  94. if err != nil {
  95. return nil, err
  96. }
  97. if endpoint != "" {
  98. s.BasePath = endpoint
  99. }
  100. return s, nil
  101. }
  102. // New creates a new Service. It uses the provided http.Client for requests.
  103. //
  104. // Deprecated: please use NewService instead.
  105. // To provide a custom HTTP client, use option.WithHTTPClient.
  106. // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
  107. func New(client *http.Client) (*Service, error) {
  108. if client == nil {
  109. return nil, errors.New("client is nil")
  110. }
  111. s := &Service{client: client, BasePath: basePath}
  112. s.WebResource = NewWebResourceService(s)
  113. return s, nil
  114. }
  115. type Service struct {
  116. client *http.Client
  117. BasePath string // API endpoint base URL
  118. UserAgent string // optional additional User-Agent fragment
  119. WebResource *WebResourceService
  120. }
  121. func (s *Service) userAgent() string {
  122. if s.UserAgent == "" {
  123. return googleapi.UserAgent
  124. }
  125. return googleapi.UserAgent + " " + s.UserAgent
  126. }
  127. func NewWebResourceService(s *Service) *WebResourceService {
  128. rs := &WebResourceService{s: s}
  129. return rs
  130. }
  131. type WebResourceService struct {
  132. s *Service
  133. }
  134. type SiteVerificationWebResourceGettokenRequest struct {
  135. // Site: The site for which a verification token will be generated.
  136. Site *SiteVerificationWebResourceGettokenRequestSite `json:"site,omitempty"`
  137. // VerificationMethod: The verification method that will be used to
  138. // verify this site. For sites, 'FILE' or 'META' methods may be used.
  139. // For domains, only 'DNS' may be used.
  140. VerificationMethod string `json:"verificationMethod,omitempty"`
  141. // ForceSendFields is a list of field names (e.g. "Site") to
  142. // unconditionally include in API requests. By default, fields with
  143. // empty values are omitted from API requests. However, any non-pointer,
  144. // non-interface field appearing in ForceSendFields will be sent to the
  145. // server regardless of whether the field is empty or not. This may be
  146. // used to include empty fields in Patch requests.
  147. ForceSendFields []string `json:"-"`
  148. // NullFields is a list of field names (e.g. "Site") to include in API
  149. // requests with the JSON null value. By default, fields with empty
  150. // values are omitted from API requests. However, any field with an
  151. // empty value appearing in NullFields will be sent to the server as
  152. // null. It is an error if a field in this list has a non-empty value.
  153. // This may be used to include null fields in Patch requests.
  154. NullFields []string `json:"-"`
  155. }
  156. func (s *SiteVerificationWebResourceGettokenRequest) MarshalJSON() ([]byte, error) {
  157. type NoMethod SiteVerificationWebResourceGettokenRequest
  158. raw := NoMethod(*s)
  159. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  160. }
  161. // SiteVerificationWebResourceGettokenRequestSite: The site for which a
  162. // verification token will be generated.
  163. type SiteVerificationWebResourceGettokenRequestSite struct {
  164. // Identifier: The site identifier. If the type is set to SITE, the
  165. // identifier is a URL. If the type is set to INET_DOMAIN, the site
  166. // identifier is a domain name.
  167. Identifier string `json:"identifier,omitempty"`
  168. // Type: The type of resource to be verified. Can be SITE or INET_DOMAIN
  169. // (domain name).
  170. Type string `json:"type,omitempty"`
  171. // ForceSendFields is a list of field names (e.g. "Identifier") to
  172. // unconditionally include in API requests. By default, fields with
  173. // empty values are omitted from API requests. However, any non-pointer,
  174. // non-interface field appearing in ForceSendFields will be sent to the
  175. // server regardless of whether the field is empty or not. This may be
  176. // used to include empty fields in Patch requests.
  177. ForceSendFields []string `json:"-"`
  178. // NullFields is a list of field names (e.g. "Identifier") to include in
  179. // API requests with the JSON null value. By default, fields with empty
  180. // values are omitted from API requests. However, any field with an
  181. // empty value appearing in NullFields will be sent to the server as
  182. // null. It is an error if a field in this list has a non-empty value.
  183. // This may be used to include null fields in Patch requests.
  184. NullFields []string `json:"-"`
  185. }
  186. func (s *SiteVerificationWebResourceGettokenRequestSite) MarshalJSON() ([]byte, error) {
  187. type NoMethod SiteVerificationWebResourceGettokenRequestSite
  188. raw := NoMethod(*s)
  189. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  190. }
  191. type SiteVerificationWebResourceGettokenResponse struct {
  192. // Method: The verification method to use in conjunction with this
  193. // token. For FILE, the token should be placed in the top-level
  194. // directory of the site, stored inside a file of the same name. For
  195. // META, the token should be placed in the HEAD tag of the default page
  196. // that is loaded for the site. For DNS, the token should be placed in a
  197. // TXT record of the domain.
  198. Method string `json:"method,omitempty"`
  199. // Token: The verification token. The token must be placed appropriately
  200. // in order for verification to succeed.
  201. Token string `json:"token,omitempty"`
  202. // ServerResponse contains the HTTP response code and headers from the
  203. // server.
  204. googleapi.ServerResponse `json:"-"`
  205. // ForceSendFields is a list of field names (e.g. "Method") to
  206. // unconditionally include in API requests. By default, fields with
  207. // empty values are omitted from API requests. However, any non-pointer,
  208. // non-interface field appearing in ForceSendFields will be sent to the
  209. // server regardless of whether the field is empty or not. This may be
  210. // used to include empty fields in Patch requests.
  211. ForceSendFields []string `json:"-"`
  212. // NullFields is a list of field names (e.g. "Method") to include in API
  213. // requests with the JSON null value. By default, fields with empty
  214. // values are omitted from API requests. However, any field with an
  215. // empty value appearing in NullFields will be sent to the server as
  216. // null. It is an error if a field in this list has a non-empty value.
  217. // This may be used to include null fields in Patch requests.
  218. NullFields []string `json:"-"`
  219. }
  220. func (s *SiteVerificationWebResourceGettokenResponse) MarshalJSON() ([]byte, error) {
  221. type NoMethod SiteVerificationWebResourceGettokenResponse
  222. raw := NoMethod(*s)
  223. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  224. }
  225. type SiteVerificationWebResourceListResponse struct {
  226. // Items: The list of sites that are owned by the authenticated user.
  227. Items []*SiteVerificationWebResourceResource `json:"items,omitempty"`
  228. // ServerResponse contains the HTTP response code and headers from the
  229. // server.
  230. googleapi.ServerResponse `json:"-"`
  231. // ForceSendFields is a list of field names (e.g. "Items") to
  232. // unconditionally include in API requests. By default, fields with
  233. // empty values are omitted from API requests. However, any non-pointer,
  234. // non-interface field appearing in ForceSendFields will be sent to the
  235. // server regardless of whether the field is empty or not. This may be
  236. // used to include empty fields in Patch requests.
  237. ForceSendFields []string `json:"-"`
  238. // NullFields is a list of field names (e.g. "Items") to include in API
  239. // requests with the JSON null value. By default, fields with empty
  240. // values are omitted from API requests. However, any field with an
  241. // empty value appearing in NullFields will be sent to the server as
  242. // null. It is an error if a field in this list has a non-empty value.
  243. // This may be used to include null fields in Patch requests.
  244. NullFields []string `json:"-"`
  245. }
  246. func (s *SiteVerificationWebResourceListResponse) MarshalJSON() ([]byte, error) {
  247. type NoMethod SiteVerificationWebResourceListResponse
  248. raw := NoMethod(*s)
  249. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  250. }
  251. type SiteVerificationWebResourceResource struct {
  252. // Id: The string used to identify this site. This value should be used
  253. // in the "id" portion of the REST URL for the Get, Update, and Delete
  254. // operations.
  255. Id string `json:"id,omitempty"`
  256. // Owners: The email addresses of all verified owners.
  257. Owners []string `json:"owners,omitempty"`
  258. // Site: The address and type of a site that is verified or will be
  259. // verified.
  260. Site *SiteVerificationWebResourceResourceSite `json:"site,omitempty"`
  261. // ServerResponse contains the HTTP response code and headers from the
  262. // server.
  263. googleapi.ServerResponse `json:"-"`
  264. // ForceSendFields is a list of field names (e.g. "Id") to
  265. // unconditionally include in API requests. By default, fields with
  266. // empty values are omitted from API requests. However, any non-pointer,
  267. // non-interface field appearing in ForceSendFields will be sent to the
  268. // server regardless of whether the field is empty or not. This may be
  269. // used to include empty fields in Patch requests.
  270. ForceSendFields []string `json:"-"`
  271. // NullFields is a list of field names (e.g. "Id") to include in API
  272. // requests with the JSON null value. By default, fields with empty
  273. // values are omitted from API requests. However, any field with an
  274. // empty value appearing in NullFields will be sent to the server as
  275. // null. It is an error if a field in this list has a non-empty value.
  276. // This may be used to include null fields in Patch requests.
  277. NullFields []string `json:"-"`
  278. }
  279. func (s *SiteVerificationWebResourceResource) MarshalJSON() ([]byte, error) {
  280. type NoMethod SiteVerificationWebResourceResource
  281. raw := NoMethod(*s)
  282. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  283. }
  284. // SiteVerificationWebResourceResourceSite: The address and type of a
  285. // site that is verified or will be verified.
  286. type SiteVerificationWebResourceResourceSite struct {
  287. // Identifier: The site identifier. If the type is set to SITE, the
  288. // identifier is a URL. If the type is set to INET_DOMAIN, the site
  289. // identifier is a domain name.
  290. Identifier string `json:"identifier,omitempty"`
  291. // Type: The site type. Can be SITE or INET_DOMAIN (domain name).
  292. Type string `json:"type,omitempty"`
  293. // ForceSendFields is a list of field names (e.g. "Identifier") to
  294. // unconditionally include in API requests. By default, fields with
  295. // empty values are omitted from API requests. However, any non-pointer,
  296. // non-interface field appearing in ForceSendFields will be sent to the
  297. // server regardless of whether the field is empty or not. This may be
  298. // used to include empty fields in Patch requests.
  299. ForceSendFields []string `json:"-"`
  300. // NullFields is a list of field names (e.g. "Identifier") to include in
  301. // API requests with the JSON null value. By default, fields with empty
  302. // values are omitted from API requests. However, any field with an
  303. // empty value appearing in NullFields will be sent to the server as
  304. // null. It is an error if a field in this list has a non-empty value.
  305. // This may be used to include null fields in Patch requests.
  306. NullFields []string `json:"-"`
  307. }
  308. func (s *SiteVerificationWebResourceResourceSite) MarshalJSON() ([]byte, error) {
  309. type NoMethod SiteVerificationWebResourceResourceSite
  310. raw := NoMethod(*s)
  311. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  312. }
  313. // method id "siteVerification.webResource.delete":
  314. type WebResourceDeleteCall struct {
  315. s *Service
  316. id string
  317. urlParams_ gensupport.URLParams
  318. ctx_ context.Context
  319. header_ http.Header
  320. }
  321. // Delete: Relinquish ownership of a website or domain.
  322. func (r *WebResourceService) Delete(id string) *WebResourceDeleteCall {
  323. c := &WebResourceDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  324. c.id = id
  325. return c
  326. }
  327. // Fields allows partial responses to be retrieved. See
  328. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  329. // for more information.
  330. func (c *WebResourceDeleteCall) Fields(s ...googleapi.Field) *WebResourceDeleteCall {
  331. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  332. return c
  333. }
  334. // Context sets the context to be used in this call's Do method. Any
  335. // pending HTTP request will be aborted if the provided context is
  336. // canceled.
  337. func (c *WebResourceDeleteCall) Context(ctx context.Context) *WebResourceDeleteCall {
  338. c.ctx_ = ctx
  339. return c
  340. }
  341. // Header returns an http.Header that can be modified by the caller to
  342. // add HTTP headers to the request.
  343. func (c *WebResourceDeleteCall) Header() http.Header {
  344. if c.header_ == nil {
  345. c.header_ = make(http.Header)
  346. }
  347. return c.header_
  348. }
  349. func (c *WebResourceDeleteCall) doRequest(alt string) (*http.Response, error) {
  350. reqHeaders := make(http.Header)
  351. for k, v := range c.header_ {
  352. reqHeaders[k] = v
  353. }
  354. reqHeaders.Set("User-Agent", c.s.userAgent())
  355. var body io.Reader = nil
  356. c.urlParams_.Set("alt", alt)
  357. c.urlParams_.Set("prettyPrint", "false")
  358. urls := googleapi.ResolveRelative(c.s.BasePath, "webResource/{id}")
  359. urls += "?" + c.urlParams_.Encode()
  360. req, err := http.NewRequest("DELETE", urls, body)
  361. if err != nil {
  362. return nil, err
  363. }
  364. req.Header = reqHeaders
  365. googleapi.Expand(req.URL, map[string]string{
  366. "id": c.id,
  367. })
  368. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  369. }
  370. // Do executes the "siteVerification.webResource.delete" call.
  371. func (c *WebResourceDeleteCall) Do(opts ...googleapi.CallOption) error {
  372. gensupport.SetOptions(c.urlParams_, opts...)
  373. res, err := c.doRequest("json")
  374. if err != nil {
  375. return err
  376. }
  377. defer googleapi.CloseBody(res)
  378. if err := googleapi.CheckResponse(res); err != nil {
  379. return err
  380. }
  381. return nil
  382. // {
  383. // "description": "Relinquish ownership of a website or domain.",
  384. // "httpMethod": "DELETE",
  385. // "id": "siteVerification.webResource.delete",
  386. // "parameterOrder": [
  387. // "id"
  388. // ],
  389. // "parameters": {
  390. // "id": {
  391. // "description": "The id of a verified site or domain.",
  392. // "location": "path",
  393. // "required": true,
  394. // "type": "string"
  395. // }
  396. // },
  397. // "path": "webResource/{id}",
  398. // "scopes": [
  399. // "https://www.googleapis.com/auth/siteverification"
  400. // ]
  401. // }
  402. }
  403. // method id "siteVerification.webResource.get":
  404. type WebResourceGetCall struct {
  405. s *Service
  406. id string
  407. urlParams_ gensupport.URLParams
  408. ifNoneMatch_ string
  409. ctx_ context.Context
  410. header_ http.Header
  411. }
  412. // Get: Get the most current data for a website or domain.
  413. func (r *WebResourceService) Get(id string) *WebResourceGetCall {
  414. c := &WebResourceGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  415. c.id = id
  416. return c
  417. }
  418. // Fields allows partial responses to be retrieved. See
  419. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  420. // for more information.
  421. func (c *WebResourceGetCall) Fields(s ...googleapi.Field) *WebResourceGetCall {
  422. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  423. return c
  424. }
  425. // IfNoneMatch sets the optional parameter which makes the operation
  426. // fail if the object's ETag matches the given value. This is useful for
  427. // getting updates only after the object has changed since the last
  428. // request. Use googleapi.IsNotModified to check whether the response
  429. // error from Do is the result of In-None-Match.
  430. func (c *WebResourceGetCall) IfNoneMatch(entityTag string) *WebResourceGetCall {
  431. c.ifNoneMatch_ = entityTag
  432. return c
  433. }
  434. // Context sets the context to be used in this call's Do method. Any
  435. // pending HTTP request will be aborted if the provided context is
  436. // canceled.
  437. func (c *WebResourceGetCall) Context(ctx context.Context) *WebResourceGetCall {
  438. c.ctx_ = ctx
  439. return c
  440. }
  441. // Header returns an http.Header that can be modified by the caller to
  442. // add HTTP headers to the request.
  443. func (c *WebResourceGetCall) Header() http.Header {
  444. if c.header_ == nil {
  445. c.header_ = make(http.Header)
  446. }
  447. return c.header_
  448. }
  449. func (c *WebResourceGetCall) doRequest(alt string) (*http.Response, error) {
  450. reqHeaders := make(http.Header)
  451. for k, v := range c.header_ {
  452. reqHeaders[k] = v
  453. }
  454. reqHeaders.Set("User-Agent", c.s.userAgent())
  455. if c.ifNoneMatch_ != "" {
  456. reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  457. }
  458. var body io.Reader = nil
  459. c.urlParams_.Set("alt", alt)
  460. c.urlParams_.Set("prettyPrint", "false")
  461. urls := googleapi.ResolveRelative(c.s.BasePath, "webResource/{id}")
  462. urls += "?" + c.urlParams_.Encode()
  463. req, err := http.NewRequest("GET", urls, body)
  464. if err != nil {
  465. return nil, err
  466. }
  467. req.Header = reqHeaders
  468. googleapi.Expand(req.URL, map[string]string{
  469. "id": c.id,
  470. })
  471. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  472. }
  473. // Do executes the "siteVerification.webResource.get" call.
  474. // Exactly one of *SiteVerificationWebResourceResource or error will be
  475. // non-nil. Any non-2xx status code is an error. Response headers are in
  476. // either *SiteVerificationWebResourceResource.ServerResponse.Header or
  477. // (if a response was returned at all) in
  478. // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  479. // whether the returned error was because http.StatusNotModified was
  480. // returned.
  481. func (c *WebResourceGetCall) Do(opts ...googleapi.CallOption) (*SiteVerificationWebResourceResource, error) {
  482. gensupport.SetOptions(c.urlParams_, opts...)
  483. res, err := c.doRequest("json")
  484. if res != nil && res.StatusCode == http.StatusNotModified {
  485. if res.Body != nil {
  486. res.Body.Close()
  487. }
  488. return nil, &googleapi.Error{
  489. Code: res.StatusCode,
  490. Header: res.Header,
  491. }
  492. }
  493. if err != nil {
  494. return nil, err
  495. }
  496. defer googleapi.CloseBody(res)
  497. if err := googleapi.CheckResponse(res); err != nil {
  498. return nil, err
  499. }
  500. ret := &SiteVerificationWebResourceResource{
  501. ServerResponse: googleapi.ServerResponse{
  502. Header: res.Header,
  503. HTTPStatusCode: res.StatusCode,
  504. },
  505. }
  506. target := &ret
  507. if err := gensupport.DecodeResponse(target, res); err != nil {
  508. return nil, err
  509. }
  510. return ret, nil
  511. // {
  512. // "description": "Get the most current data for a website or domain.",
  513. // "httpMethod": "GET",
  514. // "id": "siteVerification.webResource.get",
  515. // "parameterOrder": [
  516. // "id"
  517. // ],
  518. // "parameters": {
  519. // "id": {
  520. // "description": "The id of a verified site or domain.",
  521. // "location": "path",
  522. // "required": true,
  523. // "type": "string"
  524. // }
  525. // },
  526. // "path": "webResource/{id}",
  527. // "response": {
  528. // "$ref": "SiteVerificationWebResourceResource"
  529. // },
  530. // "scopes": [
  531. // "https://www.googleapis.com/auth/siteverification"
  532. // ]
  533. // }
  534. }
  535. // method id "siteVerification.webResource.getToken":
  536. type WebResourceGetTokenCall struct {
  537. s *Service
  538. siteverificationwebresourcegettokenrequest *SiteVerificationWebResourceGettokenRequest
  539. urlParams_ gensupport.URLParams
  540. ctx_ context.Context
  541. header_ http.Header
  542. }
  543. // GetToken: Get a verification token for placing on a website or
  544. // domain.
  545. func (r *WebResourceService) GetToken(siteverificationwebresourcegettokenrequest *SiteVerificationWebResourceGettokenRequest) *WebResourceGetTokenCall {
  546. c := &WebResourceGetTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  547. c.siteverificationwebresourcegettokenrequest = siteverificationwebresourcegettokenrequest
  548. return c
  549. }
  550. // Fields allows partial responses to be retrieved. See
  551. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  552. // for more information.
  553. func (c *WebResourceGetTokenCall) Fields(s ...googleapi.Field) *WebResourceGetTokenCall {
  554. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  555. return c
  556. }
  557. // Context sets the context to be used in this call's Do method. Any
  558. // pending HTTP request will be aborted if the provided context is
  559. // canceled.
  560. func (c *WebResourceGetTokenCall) Context(ctx context.Context) *WebResourceGetTokenCall {
  561. c.ctx_ = ctx
  562. return c
  563. }
  564. // Header returns an http.Header that can be modified by the caller to
  565. // add HTTP headers to the request.
  566. func (c *WebResourceGetTokenCall) Header() http.Header {
  567. if c.header_ == nil {
  568. c.header_ = make(http.Header)
  569. }
  570. return c.header_
  571. }
  572. func (c *WebResourceGetTokenCall) doRequest(alt string) (*http.Response, error) {
  573. reqHeaders := make(http.Header)
  574. for k, v := range c.header_ {
  575. reqHeaders[k] = v
  576. }
  577. reqHeaders.Set("User-Agent", c.s.userAgent())
  578. var body io.Reader = nil
  579. body, err := googleapi.WithoutDataWrapper.JSONReader(c.siteverificationwebresourcegettokenrequest)
  580. if err != nil {
  581. return nil, err
  582. }
  583. reqHeaders.Set("Content-Type", "application/json")
  584. c.urlParams_.Set("alt", alt)
  585. c.urlParams_.Set("prettyPrint", "false")
  586. urls := googleapi.ResolveRelative(c.s.BasePath, "token")
  587. urls += "?" + c.urlParams_.Encode()
  588. req, err := http.NewRequest("POST", urls, body)
  589. if err != nil {
  590. return nil, err
  591. }
  592. req.Header = reqHeaders
  593. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  594. }
  595. // Do executes the "siteVerification.webResource.getToken" call.
  596. // Exactly one of *SiteVerificationWebResourceGettokenResponse or error
  597. // will be non-nil. Any non-2xx status code is an error. Response
  598. // headers are in either
  599. // *SiteVerificationWebResourceGettokenResponse.ServerResponse.Header or
  600. // (if a response was returned at all) in
  601. // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  602. // whether the returned error was because http.StatusNotModified was
  603. // returned.
  604. func (c *WebResourceGetTokenCall) Do(opts ...googleapi.CallOption) (*SiteVerificationWebResourceGettokenResponse, error) {
  605. gensupport.SetOptions(c.urlParams_, opts...)
  606. res, err := c.doRequest("json")
  607. if res != nil && res.StatusCode == http.StatusNotModified {
  608. if res.Body != nil {
  609. res.Body.Close()
  610. }
  611. return nil, &googleapi.Error{
  612. Code: res.StatusCode,
  613. Header: res.Header,
  614. }
  615. }
  616. if err != nil {
  617. return nil, err
  618. }
  619. defer googleapi.CloseBody(res)
  620. if err := googleapi.CheckResponse(res); err != nil {
  621. return nil, err
  622. }
  623. ret := &SiteVerificationWebResourceGettokenResponse{
  624. ServerResponse: googleapi.ServerResponse{
  625. Header: res.Header,
  626. HTTPStatusCode: res.StatusCode,
  627. },
  628. }
  629. target := &ret
  630. if err := gensupport.DecodeResponse(target, res); err != nil {
  631. return nil, err
  632. }
  633. return ret, nil
  634. // {
  635. // "description": "Get a verification token for placing on a website or domain.",
  636. // "httpMethod": "POST",
  637. // "id": "siteVerification.webResource.getToken",
  638. // "path": "token",
  639. // "request": {
  640. // "$ref": "SiteVerificationWebResourceGettokenRequest"
  641. // },
  642. // "response": {
  643. // "$ref": "SiteVerificationWebResourceGettokenResponse"
  644. // },
  645. // "scopes": [
  646. // "https://www.googleapis.com/auth/siteverification",
  647. // "https://www.googleapis.com/auth/siteverification.verify_only"
  648. // ]
  649. // }
  650. }
  651. // method id "siteVerification.webResource.insert":
  652. type WebResourceInsertCall struct {
  653. s *Service
  654. siteverificationwebresourceresource *SiteVerificationWebResourceResource
  655. urlParams_ gensupport.URLParams
  656. ctx_ context.Context
  657. header_ http.Header
  658. }
  659. // Insert: Attempt verification of a website or domain.
  660. func (r *WebResourceService) Insert(verificationMethod string, siteverificationwebresourceresource *SiteVerificationWebResourceResource) *WebResourceInsertCall {
  661. c := &WebResourceInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  662. c.urlParams_.Set("verificationMethod", verificationMethod)
  663. c.siteverificationwebresourceresource = siteverificationwebresourceresource
  664. return c
  665. }
  666. // Fields allows partial responses to be retrieved. See
  667. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  668. // for more information.
  669. func (c *WebResourceInsertCall) Fields(s ...googleapi.Field) *WebResourceInsertCall {
  670. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  671. return c
  672. }
  673. // Context sets the context to be used in this call's Do method. Any
  674. // pending HTTP request will be aborted if the provided context is
  675. // canceled.
  676. func (c *WebResourceInsertCall) Context(ctx context.Context) *WebResourceInsertCall {
  677. c.ctx_ = ctx
  678. return c
  679. }
  680. // Header returns an http.Header that can be modified by the caller to
  681. // add HTTP headers to the request.
  682. func (c *WebResourceInsertCall) Header() http.Header {
  683. if c.header_ == nil {
  684. c.header_ = make(http.Header)
  685. }
  686. return c.header_
  687. }
  688. func (c *WebResourceInsertCall) doRequest(alt string) (*http.Response, error) {
  689. reqHeaders := make(http.Header)
  690. for k, v := range c.header_ {
  691. reqHeaders[k] = v
  692. }
  693. reqHeaders.Set("User-Agent", c.s.userAgent())
  694. var body io.Reader = nil
  695. body, err := googleapi.WithoutDataWrapper.JSONReader(c.siteverificationwebresourceresource)
  696. if err != nil {
  697. return nil, err
  698. }
  699. reqHeaders.Set("Content-Type", "application/json")
  700. c.urlParams_.Set("alt", alt)
  701. c.urlParams_.Set("prettyPrint", "false")
  702. urls := googleapi.ResolveRelative(c.s.BasePath, "webResource")
  703. urls += "?" + c.urlParams_.Encode()
  704. req, err := http.NewRequest("POST", urls, body)
  705. if err != nil {
  706. return nil, err
  707. }
  708. req.Header = reqHeaders
  709. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  710. }
  711. // Do executes the "siteVerification.webResource.insert" call.
  712. // Exactly one of *SiteVerificationWebResourceResource or error will be
  713. // non-nil. Any non-2xx status code is an error. Response headers are in
  714. // either *SiteVerificationWebResourceResource.ServerResponse.Header or
  715. // (if a response was returned at all) in
  716. // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  717. // whether the returned error was because http.StatusNotModified was
  718. // returned.
  719. func (c *WebResourceInsertCall) Do(opts ...googleapi.CallOption) (*SiteVerificationWebResourceResource, error) {
  720. gensupport.SetOptions(c.urlParams_, opts...)
  721. res, err := c.doRequest("json")
  722. if res != nil && res.StatusCode == http.StatusNotModified {
  723. if res.Body != nil {
  724. res.Body.Close()
  725. }
  726. return nil, &googleapi.Error{
  727. Code: res.StatusCode,
  728. Header: res.Header,
  729. }
  730. }
  731. if err != nil {
  732. return nil, err
  733. }
  734. defer googleapi.CloseBody(res)
  735. if err := googleapi.CheckResponse(res); err != nil {
  736. return nil, err
  737. }
  738. ret := &SiteVerificationWebResourceResource{
  739. ServerResponse: googleapi.ServerResponse{
  740. Header: res.Header,
  741. HTTPStatusCode: res.StatusCode,
  742. },
  743. }
  744. target := &ret
  745. if err := gensupport.DecodeResponse(target, res); err != nil {
  746. return nil, err
  747. }
  748. return ret, nil
  749. // {
  750. // "description": "Attempt verification of a website or domain.",
  751. // "httpMethod": "POST",
  752. // "id": "siteVerification.webResource.insert",
  753. // "parameterOrder": [
  754. // "verificationMethod"
  755. // ],
  756. // "parameters": {
  757. // "verificationMethod": {
  758. // "description": "The method to use for verifying a site or domain.",
  759. // "location": "query",
  760. // "required": true,
  761. // "type": "string"
  762. // }
  763. // },
  764. // "path": "webResource",
  765. // "request": {
  766. // "$ref": "SiteVerificationWebResourceResource"
  767. // },
  768. // "response": {
  769. // "$ref": "SiteVerificationWebResourceResource"
  770. // },
  771. // "scopes": [
  772. // "https://www.googleapis.com/auth/siteverification",
  773. // "https://www.googleapis.com/auth/siteverification.verify_only"
  774. // ]
  775. // }
  776. }
  777. // method id "siteVerification.webResource.list":
  778. type WebResourceListCall struct {
  779. s *Service
  780. urlParams_ gensupport.URLParams
  781. ifNoneMatch_ string
  782. ctx_ context.Context
  783. header_ http.Header
  784. }
  785. // List: Get the list of your verified websites and domains.
  786. func (r *WebResourceService) List() *WebResourceListCall {
  787. c := &WebResourceListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  788. return c
  789. }
  790. // Fields allows partial responses to be retrieved. See
  791. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  792. // for more information.
  793. func (c *WebResourceListCall) Fields(s ...googleapi.Field) *WebResourceListCall {
  794. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  795. return c
  796. }
  797. // IfNoneMatch sets the optional parameter which makes the operation
  798. // fail if the object's ETag matches the given value. This is useful for
  799. // getting updates only after the object has changed since the last
  800. // request. Use googleapi.IsNotModified to check whether the response
  801. // error from Do is the result of In-None-Match.
  802. func (c *WebResourceListCall) IfNoneMatch(entityTag string) *WebResourceListCall {
  803. c.ifNoneMatch_ = entityTag
  804. return c
  805. }
  806. // Context sets the context to be used in this call's Do method. Any
  807. // pending HTTP request will be aborted if the provided context is
  808. // canceled.
  809. func (c *WebResourceListCall) Context(ctx context.Context) *WebResourceListCall {
  810. c.ctx_ = ctx
  811. return c
  812. }
  813. // Header returns an http.Header that can be modified by the caller to
  814. // add HTTP headers to the request.
  815. func (c *WebResourceListCall) Header() http.Header {
  816. if c.header_ == nil {
  817. c.header_ = make(http.Header)
  818. }
  819. return c.header_
  820. }
  821. func (c *WebResourceListCall) doRequest(alt string) (*http.Response, error) {
  822. reqHeaders := make(http.Header)
  823. for k, v := range c.header_ {
  824. reqHeaders[k] = v
  825. }
  826. reqHeaders.Set("User-Agent", c.s.userAgent())
  827. if c.ifNoneMatch_ != "" {
  828. reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  829. }
  830. var body io.Reader = nil
  831. c.urlParams_.Set("alt", alt)
  832. c.urlParams_.Set("prettyPrint", "false")
  833. urls := googleapi.ResolveRelative(c.s.BasePath, "webResource")
  834. urls += "?" + c.urlParams_.Encode()
  835. req, err := http.NewRequest("GET", urls, body)
  836. if err != nil {
  837. return nil, err
  838. }
  839. req.Header = reqHeaders
  840. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  841. }
  842. // Do executes the "siteVerification.webResource.list" call.
  843. // Exactly one of *SiteVerificationWebResourceListResponse or error will
  844. // be non-nil. Any non-2xx status code is an error. Response headers are
  845. // in either
  846. // *SiteVerificationWebResourceListResponse.ServerResponse.Header or (if
  847. // a response was returned at all) in error.(*googleapi.Error).Header.
  848. // Use googleapi.IsNotModified to check whether the returned error was
  849. // because http.StatusNotModified was returned.
  850. func (c *WebResourceListCall) Do(opts ...googleapi.CallOption) (*SiteVerificationWebResourceListResponse, error) {
  851. gensupport.SetOptions(c.urlParams_, opts...)
  852. res, err := c.doRequest("json")
  853. if res != nil && res.StatusCode == http.StatusNotModified {
  854. if res.Body != nil {
  855. res.Body.Close()
  856. }
  857. return nil, &googleapi.Error{
  858. Code: res.StatusCode,
  859. Header: res.Header,
  860. }
  861. }
  862. if err != nil {
  863. return nil, err
  864. }
  865. defer googleapi.CloseBody(res)
  866. if err := googleapi.CheckResponse(res); err != nil {
  867. return nil, err
  868. }
  869. ret := &SiteVerificationWebResourceListResponse{
  870. ServerResponse: googleapi.ServerResponse{
  871. Header: res.Header,
  872. HTTPStatusCode: res.StatusCode,
  873. },
  874. }
  875. target := &ret
  876. if err := gensupport.DecodeResponse(target, res); err != nil {
  877. return nil, err
  878. }
  879. return ret, nil
  880. // {
  881. // "description": "Get the list of your verified websites and domains.",
  882. // "httpMethod": "GET",
  883. // "id": "siteVerification.webResource.list",
  884. // "path": "webResource",
  885. // "response": {
  886. // "$ref": "SiteVerificationWebResourceListResponse"
  887. // },
  888. // "scopes": [
  889. // "https://www.googleapis.com/auth/siteverification"
  890. // ]
  891. // }
  892. }
  893. // method id "siteVerification.webResource.patch":
  894. type WebResourcePatchCall struct {
  895. s *Service
  896. id string
  897. siteverificationwebresourceresource *SiteVerificationWebResourceResource
  898. urlParams_ gensupport.URLParams
  899. ctx_ context.Context
  900. header_ http.Header
  901. }
  902. // Patch: Modify the list of owners for your website or domain. This
  903. // method supports patch semantics.
  904. func (r *WebResourceService) Patch(id string, siteverificationwebresourceresource *SiteVerificationWebResourceResource) *WebResourcePatchCall {
  905. c := &WebResourcePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  906. c.id = id
  907. c.siteverificationwebresourceresource = siteverificationwebresourceresource
  908. return c
  909. }
  910. // Fields allows partial responses to be retrieved. See
  911. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  912. // for more information.
  913. func (c *WebResourcePatchCall) Fields(s ...googleapi.Field) *WebResourcePatchCall {
  914. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  915. return c
  916. }
  917. // Context sets the context to be used in this call's Do method. Any
  918. // pending HTTP request will be aborted if the provided context is
  919. // canceled.
  920. func (c *WebResourcePatchCall) Context(ctx context.Context) *WebResourcePatchCall {
  921. c.ctx_ = ctx
  922. return c
  923. }
  924. // Header returns an http.Header that can be modified by the caller to
  925. // add HTTP headers to the request.
  926. func (c *WebResourcePatchCall) Header() http.Header {
  927. if c.header_ == nil {
  928. c.header_ = make(http.Header)
  929. }
  930. return c.header_
  931. }
  932. func (c *WebResourcePatchCall) doRequest(alt string) (*http.Response, error) {
  933. reqHeaders := make(http.Header)
  934. for k, v := range c.header_ {
  935. reqHeaders[k] = v
  936. }
  937. reqHeaders.Set("User-Agent", c.s.userAgent())
  938. var body io.Reader = nil
  939. body, err := googleapi.WithoutDataWrapper.JSONReader(c.siteverificationwebresourceresource)
  940. if err != nil {
  941. return nil, err
  942. }
  943. reqHeaders.Set("Content-Type", "application/json")
  944. c.urlParams_.Set("alt", alt)
  945. c.urlParams_.Set("prettyPrint", "false")
  946. urls := googleapi.ResolveRelative(c.s.BasePath, "webResource/{id}")
  947. urls += "?" + c.urlParams_.Encode()
  948. req, err := http.NewRequest("PATCH", urls, body)
  949. if err != nil {
  950. return nil, err
  951. }
  952. req.Header = reqHeaders
  953. googleapi.Expand(req.URL, map[string]string{
  954. "id": c.id,
  955. })
  956. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  957. }
  958. // Do executes the "siteVerification.webResource.patch" call.
  959. // Exactly one of *SiteVerificationWebResourceResource or error will be
  960. // non-nil. Any non-2xx status code is an error. Response headers are in
  961. // either *SiteVerificationWebResourceResource.ServerResponse.Header or
  962. // (if a response was returned at all) in
  963. // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  964. // whether the returned error was because http.StatusNotModified was
  965. // returned.
  966. func (c *WebResourcePatchCall) Do(opts ...googleapi.CallOption) (*SiteVerificationWebResourceResource, error) {
  967. gensupport.SetOptions(c.urlParams_, opts...)
  968. res, err := c.doRequest("json")
  969. if res != nil && res.StatusCode == http.StatusNotModified {
  970. if res.Body != nil {
  971. res.Body.Close()
  972. }
  973. return nil, &googleapi.Error{
  974. Code: res.StatusCode,
  975. Header: res.Header,
  976. }
  977. }
  978. if err != nil {
  979. return nil, err
  980. }
  981. defer googleapi.CloseBody(res)
  982. if err := googleapi.CheckResponse(res); err != nil {
  983. return nil, err
  984. }
  985. ret := &SiteVerificationWebResourceResource{
  986. ServerResponse: googleapi.ServerResponse{
  987. Header: res.Header,
  988. HTTPStatusCode: res.StatusCode,
  989. },
  990. }
  991. target := &ret
  992. if err := gensupport.DecodeResponse(target, res); err != nil {
  993. return nil, err
  994. }
  995. return ret, nil
  996. // {
  997. // "description": "Modify the list of owners for your website or domain. This method supports patch semantics.",
  998. // "httpMethod": "PATCH",
  999. // "id": "siteVerification.webResource.patch",
  1000. // "parameterOrder": [
  1001. // "id"
  1002. // ],
  1003. // "parameters": {
  1004. // "id": {
  1005. // "description": "The id of a verified site or domain.",
  1006. // "location": "path",
  1007. // "required": true,
  1008. // "type": "string"
  1009. // }
  1010. // },
  1011. // "path": "webResource/{id}",
  1012. // "request": {
  1013. // "$ref": "SiteVerificationWebResourceResource"
  1014. // },
  1015. // "response": {
  1016. // "$ref": "SiteVerificationWebResourceResource"
  1017. // },
  1018. // "scopes": [
  1019. // "https://www.googleapis.com/auth/siteverification"
  1020. // ]
  1021. // }
  1022. }
  1023. // method id "siteVerification.webResource.update":
  1024. type WebResourceUpdateCall struct {
  1025. s *Service
  1026. id string
  1027. siteverificationwebresourceresource *SiteVerificationWebResourceResource
  1028. urlParams_ gensupport.URLParams
  1029. ctx_ context.Context
  1030. header_ http.Header
  1031. }
  1032. // Update: Modify the list of owners for your website or domain.
  1033. func (r *WebResourceService) Update(id string, siteverificationwebresourceresource *SiteVerificationWebResourceResource) *WebResourceUpdateCall {
  1034. c := &WebResourceUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1035. c.id = id
  1036. c.siteverificationwebresourceresource = siteverificationwebresourceresource
  1037. return c
  1038. }
  1039. // Fields allows partial responses to be retrieved. See
  1040. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  1041. // for more information.
  1042. func (c *WebResourceUpdateCall) Fields(s ...googleapi.Field) *WebResourceUpdateCall {
  1043. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1044. return c
  1045. }
  1046. // Context sets the context to be used in this call's Do method. Any
  1047. // pending HTTP request will be aborted if the provided context is
  1048. // canceled.
  1049. func (c *WebResourceUpdateCall) Context(ctx context.Context) *WebResourceUpdateCall {
  1050. c.ctx_ = ctx
  1051. return c
  1052. }
  1053. // Header returns an http.Header that can be modified by the caller to
  1054. // add HTTP headers to the request.
  1055. func (c *WebResourceUpdateCall) Header() http.Header {
  1056. if c.header_ == nil {
  1057. c.header_ = make(http.Header)
  1058. }
  1059. return c.header_
  1060. }
  1061. func (c *WebResourceUpdateCall) doRequest(alt string) (*http.Response, error) {
  1062. reqHeaders := make(http.Header)
  1063. for k, v := range c.header_ {
  1064. reqHeaders[k] = v
  1065. }
  1066. reqHeaders.Set("User-Agent", c.s.userAgent())
  1067. var body io.Reader = nil
  1068. body, err := googleapi.WithoutDataWrapper.JSONReader(c.siteverificationwebresourceresource)
  1069. if err != nil {
  1070. return nil, err
  1071. }
  1072. reqHeaders.Set("Content-Type", "application/json")
  1073. c.urlParams_.Set("alt", alt)
  1074. c.urlParams_.Set("prettyPrint", "false")
  1075. urls := googleapi.ResolveRelative(c.s.BasePath, "webResource/{id}")
  1076. urls += "?" + c.urlParams_.Encode()
  1077. req, err := http.NewRequest("PUT", urls, body)
  1078. if err != nil {
  1079. return nil, err
  1080. }
  1081. req.Header = reqHeaders
  1082. googleapi.Expand(req.URL, map[string]string{
  1083. "id": c.id,
  1084. })
  1085. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1086. }
  1087. // Do executes the "siteVerification.webResource.update" call.
  1088. // Exactly one of *SiteVerificationWebResourceResource or error will be
  1089. // non-nil. Any non-2xx status code is an error. Response headers are in
  1090. // either *SiteVerificationWebResourceResource.ServerResponse.Header or
  1091. // (if a response was returned at all) in
  1092. // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  1093. // whether the returned error was because http.StatusNotModified was
  1094. // returned.
  1095. func (c *WebResourceUpdateCall) Do(opts ...googleapi.CallOption) (*SiteVerificationWebResourceResource, error) {
  1096. gensupport.SetOptions(c.urlParams_, opts...)
  1097. res, err := c.doRequest("json")
  1098. if res != nil && res.StatusCode == http.StatusNotModified {
  1099. if res.Body != nil {
  1100. res.Body.Close()
  1101. }
  1102. return nil, &googleapi.Error{
  1103. Code: res.StatusCode,
  1104. Header: res.Header,
  1105. }
  1106. }
  1107. if err != nil {
  1108. return nil, err
  1109. }
  1110. defer googleapi.CloseBody(res)
  1111. if err := googleapi.CheckResponse(res); err != nil {
  1112. return nil, err
  1113. }
  1114. ret := &SiteVerificationWebResourceResource{
  1115. ServerResponse: googleapi.ServerResponse{
  1116. Header: res.Header,
  1117. HTTPStatusCode: res.StatusCode,
  1118. },
  1119. }
  1120. target := &ret
  1121. if err := gensupport.DecodeResponse(target, res); err != nil {
  1122. return nil, err
  1123. }
  1124. return ret, nil
  1125. // {
  1126. // "description": "Modify the list of owners for your website or domain.",
  1127. // "httpMethod": "PUT",
  1128. // "id": "siteVerification.webResource.update",
  1129. // "parameterOrder": [
  1130. // "id"
  1131. // ],
  1132. // "parameters": {
  1133. // "id": {
  1134. // "description": "The id of a verified site or domain.",
  1135. // "location": "path",
  1136. // "required": true,
  1137. // "type": "string"
  1138. // }
  1139. // },
  1140. // "path": "webResource/{id}",
  1141. // "request": {
  1142. // "$ref": "SiteVerificationWebResourceResource"
  1143. // },
  1144. // "response": {
  1145. // "$ref": "SiteVerificationWebResourceResource"
  1146. // },
  1147. // "scopes": [
  1148. // "https://www.googleapis.com/auth/siteverification"
  1149. // ]
  1150. // }
  1151. }