| OLD | NEW |
| 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 swarmbucket provides access to the Buildbucket-Swarming integration. | 5 // Package swarmbucket provides access to the Buildbucket-Swarming integration. |
| 6 // | 6 // |
| 7 // Usage example: | 7 // Usage example: |
| 8 // | 8 // |
| 9 // import "github.com/luci/luci-go/common/api/buildbucket/swarmbucket/v1" | 9 // import "github.com/luci/luci-go/common/api/buildbucket/swarmbucket/v1" |
| 10 // ... | 10 // ... |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 func (s *ApiPubSubCallbackMessage) MarshalJSON() ([]byte, error) { | 101 func (s *ApiPubSubCallbackMessage) MarshalJSON() ([]byte, error) { |
| 102 type noMethod ApiPubSubCallbackMessage | 102 type noMethod ApiPubSubCallbackMessage |
| 103 raw := noMethod(*s) | 103 raw := noMethod(*s) |
| 104 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) | 104 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| 105 } | 105 } |
| 106 | 106 |
| 107 type ApiPutRequestMessage struct { | 107 type ApiPutRequestMessage struct { |
| 108 Bucket string `json:"bucket,omitempty"` | 108 Bucket string `json:"bucket,omitempty"` |
| 109 | 109 |
| 110 // Possible values: |
| 111 // "AUTO" |
| 112 // "CANARY" |
| 113 // "PROD" |
| 114 CanaryPreference string `json:"canary_preference,omitempty"` |
| 115 |
| 110 ClientOperationId string `json:"client_operation_id,omitempty"` | 116 ClientOperationId string `json:"client_operation_id,omitempty"` |
| 111 | 117 |
| 112 LeaseExpirationTs int64 `json:"lease_expiration_ts,omitempty,string"` | 118 LeaseExpirationTs int64 `json:"lease_expiration_ts,omitempty,string"` |
| 113 | 119 |
| 114 ParametersJson string `json:"parameters_json,omitempty"` | 120 ParametersJson string `json:"parameters_json,omitempty"` |
| 115 | 121 |
| 116 PubsubCallback *ApiPubSubCallbackMessage `json:"pubsub_callback,omitempt
y"` | 122 PubsubCallback *ApiPubSubCallbackMessage `json:"pubsub_callback,omitempt
y"` |
| 117 | 123 |
| 118 Tags []string `json:"tags,omitempty"` | 124 Tags []string `json:"tags,omitempty"` |
| 119 | 125 |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 // }, | 531 // }, |
| 526 // "response": { | 532 // "response": { |
| 527 // "$ref": "SwarmingSwarmbucketApiGetTaskDefinitionResponseMessage" | 533 // "$ref": "SwarmingSwarmbucketApiGetTaskDefinitionResponseMessage" |
| 528 // }, | 534 // }, |
| 529 // "scopes": [ | 535 // "scopes": [ |
| 530 // "https://www.googleapis.com/auth/userinfo.email" | 536 // "https://www.googleapis.com/auth/userinfo.email" |
| 531 // ] | 537 // ] |
| 532 // } | 538 // } |
| 533 | 539 |
| 534 } | 540 } |
| OLD | NEW |