Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: common/api/swarming/swarming/v1/swarming-gen.go

Issue 2837723002: [common/api] regenerate endpoints clients. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « common/api/swarming/swarming/v1/swarming-api.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The LUCI Authors. All rights reserved. 1 // Copyright 2017 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 // Package swarming provides access to the . 5 // Package swarming provides access to the .
6 // 6 //
7 // Usage example: 7 // Usage example:
8 // 8 //
9 // import "github.com/luci/luci-go/common/api/swarming/swarming/v1" 9 // import "github.com/luci/luci-go/common/api/swarming/swarming/v1"
10 // ... 10 // ...
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 FirstSeenTs string `json:"first_seen_ts,omitempty"` 262 FirstSeenTs string `json:"first_seen_ts,omitempty"`
263 263
264 IsDead bool `json:"is_dead,omitempty"` 264 IsDead bool `json:"is_dead,omitempty"`
265 265
266 LastSeenTs string `json:"last_seen_ts,omitempty"` 266 LastSeenTs string `json:"last_seen_ts,omitempty"`
267 267
268 LeaseExpirationTs string `json:"lease_expiration_ts,omitempty"` 268 LeaseExpirationTs string `json:"lease_expiration_ts,omitempty"`
269 269
270 LeaseId string `json:"lease_id,omitempty"` 270 LeaseId string `json:"lease_id,omitempty"`
271 271
272 MachineType string `json:"machine_type,omitempty"`
273
272 Quarantined bool `json:"quarantined,omitempty"` 274 Quarantined bool `json:"quarantined,omitempty"`
273 275
274 State string `json:"state,omitempty"` 276 State string `json:"state,omitempty"`
275 277
276 TaskId string `json:"task_id,omitempty"` 278 TaskId string `json:"task_id,omitempty"`
277 279
278 TaskName string `json:"task_name,omitempty"` 280 TaskName string `json:"task_name,omitempty"`
279 281
280 Version string `json:"version,omitempty"` 282 Version string `json:"version,omitempty"`
281 283
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 func (s *SwarmingRpcsDeletedResponse) MarshalJSON() ([]byte, error) { 701 func (s *SwarmingRpcsDeletedResponse) MarshalJSON() ([]byte, error) {
700 type noMethod SwarmingRpcsDeletedResponse 702 type noMethod SwarmingRpcsDeletedResponse
701 raw := noMethod(*s) 703 raw := noMethod(*s)
702 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 704 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
703 } 705 }
704 706
705 // SwarmingRpcsFileContent: Content of a file. 707 // SwarmingRpcsFileContent: Content of a file.
706 type SwarmingRpcsFileContent struct { 708 type SwarmingRpcsFileContent struct {
707 Content string `json:"content,omitempty"` 709 Content string `json:"content,omitempty"`
708 710
709 » Version int64 `json:"version,omitempty,string"` 711 » Version string `json:"version,omitempty"`
710 712
711 When string `json:"when,omitempty"` 713 When string `json:"when,omitempty"`
712 714
713 Who string `json:"who,omitempty"` 715 Who string `json:"who,omitempty"`
714 716
715 // ServerResponse contains the HTTP response code and headers from the 717 // ServerResponse contains the HTTP response code and headers from the
716 // server. 718 // server.
717 googleapi.ServerResponse `json:"-"` 719 googleapi.ServerResponse `json:"-"`
718 720
719 // ForceSendFields is a list of field names (e.g. "Content") to 721 // ForceSendFields is a list of field names (e.g. "Content") to
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 Name string `json:"name,omitempty"` 1344 Name string `json:"name,omitempty"`
1343 1345
1344 // OutputsRef: Defines a data tree reference, normally a reference to a 1346 // OutputsRef: Defines a data tree reference, normally a reference to a
1345 // .isolated file. 1347 // .isolated file.
1346 OutputsRef *SwarmingRpcsFilesRef `json:"outputs_ref,omitempty"` 1348 OutputsRef *SwarmingRpcsFilesRef `json:"outputs_ref,omitempty"`
1347 1349
1348 PerformanceStats *SwarmingRpcsPerformanceStats `json:"performance_stats, omitempty"` 1350 PerformanceStats *SwarmingRpcsPerformanceStats `json:"performance_stats, omitempty"`
1349 1351
1350 PropertiesHash string `json:"properties_hash,omitempty"` 1352 PropertiesHash string `json:"properties_hash,omitempty"`
1351 1353
1354 RunId string `json:"run_id,omitempty"`
1355
1352 ServerVersions []string `json:"server_versions,omitempty"` 1356 ServerVersions []string `json:"server_versions,omitempty"`
1353 1357
1354 StartedTs string `json:"started_ts,omitempty"` 1358 StartedTs string `json:"started_ts,omitempty"`
1355 1359
1356 // Possible values: 1360 // Possible values:
1357 // "BOT_DIED" 1361 // "BOT_DIED"
1358 // "CANCELED" 1362 // "CANCELED"
1359 // "COMPLETED" 1363 // "COMPLETED"
1360 // "EXPIRED" 1364 // "EXPIRED"
1361 // "PENDING" 1365 // "PENDING"
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
2294 // 2298 //
2295 // Possible values: 2299 // Possible values:
2296 // "FALSE" 2300 // "FALSE"
2297 // "NONE" (default) 2301 // "NONE" (default)
2298 // "TRUE" 2302 // "TRUE"
2299 func (c *BotsCountCall) IsDead(isDead string) *BotsCountCall { 2303 func (c *BotsCountCall) IsDead(isDead string) *BotsCountCall {
2300 c.urlParams_.Set("is_dead", isDead) 2304 c.urlParams_.Set("is_dead", isDead)
2301 return c 2305 return c
2302 } 2306 }
2303 2307
2308 // IsMp sets the optional parameter "is_mp":
2309 //
2310 // Possible values:
2311 // "FALSE"
2312 // "NONE" (default)
2313 // "TRUE"
2314 func (c *BotsCountCall) IsMp(isMp string) *BotsCountCall {
2315 c.urlParams_.Set("is_mp", isMp)
2316 return c
2317 }
2318
2304 // Limit sets the optional parameter "limit": 2319 // Limit sets the optional parameter "limit":
2305 func (c *BotsCountCall) Limit(limit int64) *BotsCountCall { 2320 func (c *BotsCountCall) Limit(limit int64) *BotsCountCall {
2306 c.urlParams_.Set("limit", fmt.Sprint(limit)) 2321 c.urlParams_.Set("limit", fmt.Sprint(limit))
2307 return c 2322 return c
2308 } 2323 }
2309 2324
2310 // Quarantined sets the optional parameter "quarantined": 2325 // Quarantined sets the optional parameter "quarantined":
2311 // 2326 //
2312 // Possible values: 2327 // Possible values:
2313 // "FALSE" 2328 // "FALSE"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2445 // "TRUE" 2460 // "TRUE"
2446 // ], 2461 // ],
2447 // "enumDescriptions": [ 2462 // "enumDescriptions": [
2448 // "", 2463 // "",
2449 // "", 2464 // "",
2450 // "" 2465 // ""
2451 // ], 2466 // ],
2452 // "location": "query", 2467 // "location": "query",
2453 // "type": "string" 2468 // "type": "string"
2454 // }, 2469 // },
2470 // "is_mp": {
2471 // "default": "NONE",
2472 // "enum": [
2473 // "FALSE",
2474 // "NONE",
2475 // "TRUE"
2476 // ],
2477 // "enumDescriptions": [
2478 // "",
2479 // "",
2480 // ""
2481 // ],
2482 // "location": "query",
2483 // "type": "string"
2484 // },
2455 // "limit": { 2485 // "limit": {
2456 // "default": "200", 2486 // "default": "200",
2457 // "format": "int64", 2487 // "format": "int64",
2458 // "location": "query", 2488 // "location": "query",
2459 // "type": "string" 2489 // "type": "string"
2460 // }, 2490 // },
2461 // "quarantined": { 2491 // "quarantined": {
2462 // "default": "NONE", 2492 // "default": "NONE",
2463 // "enum": [ 2493 // "enum": [
2464 // "FALSE", 2494 // "FALSE",
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
2650 // 2680 //
2651 // Possible values: 2681 // Possible values:
2652 // "FALSE" 2682 // "FALSE"
2653 // "NONE" (default) 2683 // "NONE" (default)
2654 // "TRUE" 2684 // "TRUE"
2655 func (c *BotsListCall) IsDead(isDead string) *BotsListCall { 2685 func (c *BotsListCall) IsDead(isDead string) *BotsListCall {
2656 c.urlParams_.Set("is_dead", isDead) 2686 c.urlParams_.Set("is_dead", isDead)
2657 return c 2687 return c
2658 } 2688 }
2659 2689
2690 // IsMp sets the optional parameter "is_mp":
2691 //
2692 // Possible values:
2693 // "FALSE"
2694 // "NONE" (default)
2695 // "TRUE"
2696 func (c *BotsListCall) IsMp(isMp string) *BotsListCall {
2697 c.urlParams_.Set("is_mp", isMp)
2698 return c
2699 }
2700
2660 // Limit sets the optional parameter "limit": 2701 // Limit sets the optional parameter "limit":
2661 func (c *BotsListCall) Limit(limit int64) *BotsListCall { 2702 func (c *BotsListCall) Limit(limit int64) *BotsListCall {
2662 c.urlParams_.Set("limit", fmt.Sprint(limit)) 2703 c.urlParams_.Set("limit", fmt.Sprint(limit))
2663 return c 2704 return c
2664 } 2705 }
2665 2706
2666 // Quarantined sets the optional parameter "quarantined": 2707 // Quarantined sets the optional parameter "quarantined":
2667 // 2708 //
2668 // Possible values: 2709 // Possible values:
2669 // "FALSE" 2710 // "FALSE"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2801 // "TRUE" 2842 // "TRUE"
2802 // ], 2843 // ],
2803 // "enumDescriptions": [ 2844 // "enumDescriptions": [
2804 // "", 2845 // "",
2805 // "", 2846 // "",
2806 // "" 2847 // ""
2807 // ], 2848 // ],
2808 // "location": "query", 2849 // "location": "query",
2809 // "type": "string" 2850 // "type": "string"
2810 // }, 2851 // },
2852 // "is_mp": {
2853 // "default": "NONE",
2854 // "enum": [
2855 // "FALSE",
2856 // "NONE",
2857 // "TRUE"
2858 // ],
2859 // "enumDescriptions": [
2860 // "",
2861 // "",
2862 // ""
2863 // ],
2864 // "location": "query",
2865 // "type": "string"
2866 // },
2811 // "limit": { 2867 // "limit": {
2812 // "default": "200", 2868 // "default": "200",
2813 // "format": "int64", 2869 // "format": "int64",
2814 // "location": "query", 2870 // "location": "query",
2815 // "type": "string" 2871 // "type": "string"
2816 // }, 2872 // },
2817 // "quarantined": { 2873 // "quarantined": {
2818 // "default": "NONE", 2874 // "default": "NONE",
2819 // "enum": [ 2875 // "enum": [
2820 // "FALSE", 2876 // "FALSE",
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
2966 3022
2967 type ServerGetBootstrapCall struct { 3023 type ServerGetBootstrapCall struct {
2968 s *Service 3024 s *Service
2969 urlParams_ gensupport.URLParams 3025 urlParams_ gensupport.URLParams
2970 ifNoneMatch_ string 3026 ifNoneMatch_ string
2971 ctx_ context.Context 3027 ctx_ context.Context
2972 header_ http.Header 3028 header_ http.Header
2973 } 3029 }
2974 3030
2975 // GetBootstrap: Retrieves the current or a previous version of 3031 // GetBootstrap: Retrieves the current or a previous version of
2976 // bootstrap.py. 3032 // bootstrap.py. When the file is sourced via luci-config, the version
3033 // parameter is ignored. Eventually the support for 'version' will be
3034 // removed completely.
2977 func (r *ServerService) GetBootstrap() *ServerGetBootstrapCall { 3035 func (r *ServerService) GetBootstrap() *ServerGetBootstrapCall {
2978 c := &ServerGetBootstrapCall{s: r.s, urlParams_: make(gensupport.URLPara ms)} 3036 c := &ServerGetBootstrapCall{s: r.s, urlParams_: make(gensupport.URLPara ms)}
2979 return c 3037 return c
2980 } 3038 }
2981 3039
2982 // Version sets the optional parameter "version": 3040 // Version sets the optional parameter "version":
2983 func (c *ServerGetBootstrapCall) Version(version int64) *ServerGetBootstrapCall { 3041 func (c *ServerGetBootstrapCall) Version(version int64) *ServerGetBootstrapCall {
2984 c.urlParams_.Set("version", fmt.Sprint(version)) 3042 c.urlParams_.Set("version", fmt.Sprint(version))
2985 return c 3043 return c
2986 } 3044 }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
3069 Header: res.Header, 3127 Header: res.Header,
3070 HTTPStatusCode: res.StatusCode, 3128 HTTPStatusCode: res.StatusCode,
3071 }, 3129 },
3072 } 3130 }
3073 target := &ret 3131 target := &ret
3074 if err := json.NewDecoder(res.Body).Decode(target); err != nil { 3132 if err := json.NewDecoder(res.Body).Decode(target); err != nil {
3075 return nil, err 3133 return nil, err
3076 } 3134 }
3077 return ret, nil 3135 return ret, nil
3078 // { 3136 // {
3079 » // "description": "Retrieves the current or a previous version of boot strap.py.", 3137 » // "description": "Retrieves the current or a previous version of boot strap.py. When the file is sourced via luci-config, the version parameter is ign ored. Eventually the support for 'version' will be removed completely.",
3080 // "httpMethod": "GET", 3138 // "httpMethod": "GET",
3081 // "id": "swarming.server.get_bootstrap", 3139 // "id": "swarming.server.get_bootstrap",
3082 // "parameters": { 3140 // "parameters": {
3083 // "version": { 3141 // "version": {
3084 // "format": "int64", 3142 // "format": "int64",
3085 // "location": "query", 3143 // "location": "query",
3086 // "type": "string" 3144 // "type": "string"
3087 // } 3145 // }
3088 // }, 3146 // },
3089 // "path": "server/get_bootstrap", 3147 // "path": "server/get_bootstrap",
(...skipping 11 matching lines...) Expand all
3101 3159
3102 type ServerGetBotConfigCall struct { 3160 type ServerGetBotConfigCall struct {
3103 s *Service 3161 s *Service
3104 urlParams_ gensupport.URLParams 3162 urlParams_ gensupport.URLParams
3105 ifNoneMatch_ string 3163 ifNoneMatch_ string
3106 ctx_ context.Context 3164 ctx_ context.Context
3107 header_ http.Header 3165 header_ http.Header
3108 } 3166 }
3109 3167
3110 // GetBotConfig: Retrieves the current or a previous version of 3168 // GetBotConfig: Retrieves the current or a previous version of
3111 // bot_config.py. 3169 // bot_config.py. When the file is sourced via luci-config, the version
3170 // parameter is ignored. Eventually the support for 'version' will be
3171 // removed completely.
3112 func (r *ServerService) GetBotConfig() *ServerGetBotConfigCall { 3172 func (r *ServerService) GetBotConfig() *ServerGetBotConfigCall {
3113 c := &ServerGetBotConfigCall{s: r.s, urlParams_: make(gensupport.URLPara ms)} 3173 c := &ServerGetBotConfigCall{s: r.s, urlParams_: make(gensupport.URLPara ms)}
3114 return c 3174 return c
3115 } 3175 }
3116 3176
3117 // Version sets the optional parameter "version": 3177 // Version sets the optional parameter "version":
3118 func (c *ServerGetBotConfigCall) Version(version int64) *ServerGetBotConfigCall { 3178 func (c *ServerGetBotConfigCall) Version(version int64) *ServerGetBotConfigCall {
3119 c.urlParams_.Set("version", fmt.Sprint(version)) 3179 c.urlParams_.Set("version", fmt.Sprint(version))
3120 return c 3180 return c
3121 } 3181 }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
3204 Header: res.Header, 3264 Header: res.Header,
3205 HTTPStatusCode: res.StatusCode, 3265 HTTPStatusCode: res.StatusCode,
3206 }, 3266 },
3207 } 3267 }
3208 target := &ret 3268 target := &ret
3209 if err := json.NewDecoder(res.Body).Decode(target); err != nil { 3269 if err := json.NewDecoder(res.Body).Decode(target); err != nil {
3210 return nil, err 3270 return nil, err
3211 } 3271 }
3212 return ret, nil 3272 return ret, nil
3213 // { 3273 // {
3214 » // "description": "Retrieves the current or a previous version of bot_ config.py.", 3274 » // "description": "Retrieves the current or a previous version of bot_ config.py. When the file is sourced via luci-config, the version parameter is ig nored. Eventually the support for 'version' will be removed completely.",
3215 // "httpMethod": "GET", 3275 // "httpMethod": "GET",
3216 // "id": "swarming.server.get_bot_config", 3276 // "id": "swarming.server.get_bot_config",
3217 // "parameters": { 3277 // "parameters": {
3218 // "version": { 3278 // "version": {
3219 // "format": "int64", 3279 // "format": "int64",
3220 // "location": "query", 3280 // "location": "query",
3221 // "type": "string" 3281 // "type": "string"
3222 // } 3282 // }
3223 // }, 3283 // },
3224 // "path": "server/get_bot_config", 3284 // "path": "server/get_bot_config",
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
3356 // method id "swarming.server.put_bootstrap": 3416 // method id "swarming.server.put_bootstrap":
3357 3417
3358 type ServerPutBootstrapCall struct { 3418 type ServerPutBootstrapCall struct {
3359 s *Service 3419 s *Service
3360 swarmingrpcsfilecontentrequest *SwarmingRpcsFileContentRequest 3420 swarmingrpcsfilecontentrequest *SwarmingRpcsFileContentRequest
3361 urlParams_ gensupport.URLParams 3421 urlParams_ gensupport.URLParams
3362 ctx_ context.Context 3422 ctx_ context.Context
3363 header_ http.Header 3423 header_ http.Header
3364 } 3424 }
3365 3425
3366 // PutBootstrap: Stores a new version of bootstrap.py. 3426 // PutBootstrap: Stores a new version of bootstrap.py. Warning: if a
3427 // file exists in luci-config, the file stored by this function is
3428 // ignored. Uploads are not blocked in case the file is later deleted
3429 // from luci-config.
3367 func (r *ServerService) PutBootstrap(swarmingrpcsfilecontentrequest *SwarmingRpc sFileContentRequest) *ServerPutBootstrapCall { 3430 func (r *ServerService) PutBootstrap(swarmingrpcsfilecontentrequest *SwarmingRpc sFileContentRequest) *ServerPutBootstrapCall {
3368 c := &ServerPutBootstrapCall{s: r.s, urlParams_: make(gensupport.URLPara ms)} 3431 c := &ServerPutBootstrapCall{s: r.s, urlParams_: make(gensupport.URLPara ms)}
3369 c.swarmingrpcsfilecontentrequest = swarmingrpcsfilecontentrequest 3432 c.swarmingrpcsfilecontentrequest = swarmingrpcsfilecontentrequest
3370 return c 3433 return c
3371 } 3434 }
3372 3435
3373 // Fields allows partial responses to be retrieved. See 3436 // Fields allows partial responses to be retrieved. See
3374 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse 3437 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
3375 // for more information. 3438 // for more information.
3376 func (c *ServerPutBootstrapCall) Fields(s ...googleapi.Field) *ServerPutBootstra pCall { 3439 func (c *ServerPutBootstrapCall) Fields(s ...googleapi.Field) *ServerPutBootstra pCall {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
3446 Header: res.Header, 3509 Header: res.Header,
3447 HTTPStatusCode: res.StatusCode, 3510 HTTPStatusCode: res.StatusCode,
3448 }, 3511 },
3449 } 3512 }
3450 target := &ret 3513 target := &ret
3451 if err := json.NewDecoder(res.Body).Decode(target); err != nil { 3514 if err := json.NewDecoder(res.Body).Decode(target); err != nil {
3452 return nil, err 3515 return nil, err
3453 } 3516 }
3454 return ret, nil 3517 return ret, nil
3455 // { 3518 // {
3456 » // "description": "Stores a new version of bootstrap.py.", 3519 » // "description": "Stores a new version of bootstrap.py. Warning: if a file exists in luci-config, the file stored by this function is ignored. Upload s are not blocked in case the file is later deleted from luci-config.",
3457 // "httpMethod": "POST", 3520 // "httpMethod": "POST",
3458 // "id": "swarming.server.put_bootstrap", 3521 // "id": "swarming.server.put_bootstrap",
3459 // "path": "server/put_bootstrap", 3522 // "path": "server/put_bootstrap",
3460 // "request": { 3523 // "request": {
3461 // "$ref": "SwarmingRpcsFileContentRequest", 3524 // "$ref": "SwarmingRpcsFileContentRequest",
3462 // "parameterName": "resource" 3525 // "parameterName": "resource"
3463 // }, 3526 // },
3464 // "response": { 3527 // "response": {
3465 // "$ref": "SwarmingRpcsFileContent" 3528 // "$ref": "SwarmingRpcsFileContent"
3466 // }, 3529 // },
3467 // "scopes": [ 3530 // "scopes": [
3468 // "https://www.googleapis.com/auth/userinfo.email" 3531 // "https://www.googleapis.com/auth/userinfo.email"
3469 // ] 3532 // ]
3470 // } 3533 // }
3471 3534
3472 } 3535 }
3473 3536
3474 // method id "swarming.server.put_bot_config": 3537 // method id "swarming.server.put_bot_config":
3475 3538
3476 type ServerPutBotConfigCall struct { 3539 type ServerPutBotConfigCall struct {
3477 s *Service 3540 s *Service
3478 swarmingrpcsfilecontentrequest *SwarmingRpcsFileContentRequest 3541 swarmingrpcsfilecontentrequest *SwarmingRpcsFileContentRequest
3479 urlParams_ gensupport.URLParams 3542 urlParams_ gensupport.URLParams
3480 ctx_ context.Context 3543 ctx_ context.Context
3481 header_ http.Header 3544 header_ http.Header
3482 } 3545 }
3483 3546
3484 // PutBotConfig: Stores a new version of bot_config.py. 3547 // PutBotConfig: Stores a new version of bot_config.py. Warning: if a
3548 // file exists in luci-config, the file stored by this function is
3549 // ignored. Uploads are not blocked in case the file is later deleted
3550 // from luci-config.
3485 func (r *ServerService) PutBotConfig(swarmingrpcsfilecontentrequest *SwarmingRpc sFileContentRequest) *ServerPutBotConfigCall { 3551 func (r *ServerService) PutBotConfig(swarmingrpcsfilecontentrequest *SwarmingRpc sFileContentRequest) *ServerPutBotConfigCall {
3486 c := &ServerPutBotConfigCall{s: r.s, urlParams_: make(gensupport.URLPara ms)} 3552 c := &ServerPutBotConfigCall{s: r.s, urlParams_: make(gensupport.URLPara ms)}
3487 c.swarmingrpcsfilecontentrequest = swarmingrpcsfilecontentrequest 3553 c.swarmingrpcsfilecontentrequest = swarmingrpcsfilecontentrequest
3488 return c 3554 return c
3489 } 3555 }
3490 3556
3491 // Fields allows partial responses to be retrieved. See 3557 // Fields allows partial responses to be retrieved. See
3492 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse 3558 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
3493 // for more information. 3559 // for more information.
3494 func (c *ServerPutBotConfigCall) Fields(s ...googleapi.Field) *ServerPutBotConfi gCall { 3560 func (c *ServerPutBotConfigCall) Fields(s ...googleapi.Field) *ServerPutBotConfi gCall {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
3564 Header: res.Header, 3630 Header: res.Header,
3565 HTTPStatusCode: res.StatusCode, 3631 HTTPStatusCode: res.StatusCode,
3566 }, 3632 },
3567 } 3633 }
3568 target := &ret 3634 target := &ret
3569 if err := json.NewDecoder(res.Body).Decode(target); err != nil { 3635 if err := json.NewDecoder(res.Body).Decode(target); err != nil {
3570 return nil, err 3636 return nil, err
3571 } 3637 }
3572 return ret, nil 3638 return ret, nil
3573 // { 3639 // {
3574 » // "description": "Stores a new version of bot_config.py.", 3640 » // "description": "Stores a new version of bot_config.py. Warning: if a file exists in luci-config, the file stored by this function is ignored. Uploa ds are not blocked in case the file is later deleted from luci-config.",
3575 // "httpMethod": "POST", 3641 // "httpMethod": "POST",
3576 // "id": "swarming.server.put_bot_config", 3642 // "id": "swarming.server.put_bot_config",
3577 // "path": "server/put_bot_config", 3643 // "path": "server/put_bot_config",
3578 // "request": { 3644 // "request": {
3579 // "$ref": "SwarmingRpcsFileContentRequest", 3645 // "$ref": "SwarmingRpcsFileContentRequest",
3580 // "parameterName": "resource" 3646 // "parameterName": "resource"
3581 // }, 3647 // },
3582 // "response": { 3648 // "response": {
3583 // "$ref": "SwarmingRpcsFileContent" 3649 // "$ref": "SwarmingRpcsFileContent"
3584 // }, 3650 // },
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after
5348 // "path": "tasks/tags", 5414 // "path": "tasks/tags",
5349 // "response": { 5415 // "response": {
5350 // "$ref": "SwarmingRpcsTasksTags" 5416 // "$ref": "SwarmingRpcsTasksTags"
5351 // }, 5417 // },
5352 // "scopes": [ 5418 // "scopes": [
5353 // "https://www.googleapis.com/auth/userinfo.email" 5419 // "https://www.googleapis.com/auth/userinfo.email"
5354 // ] 5420 // ]
5355 // } 5421 // }
5356 5422
5357 } 5423 }
OLDNEW
« no previous file with comments | « common/api/swarming/swarming/v1/swarming-api.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698