vendor: update all dependencies
* Update all dependencies * Remove all `[[constraint]]` from Gopkg.toml * Add in the minimum number of `[[override]]` to build * Remove go get of github.com/inconshreveable/mousetrap as it is vendored * Update docs with new policy on constraints
This commit is contained in:
+8
-8
@@ -120,7 +120,7 @@
|
||||
"locations": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Get information about a location.",
|
||||
"description": "Gets information about a location.",
|
||||
"flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}",
|
||||
"httpMethod": "GET",
|
||||
"id": "cloudtasks.projects.locations.get",
|
||||
@@ -766,7 +766,7 @@
|
||||
]
|
||||
},
|
||||
"run": {
|
||||
"description": "Forces a task to run now.\n\nThis command is meant to be used for manual debugging. For\nexample, RunTask can be used to retry a failed\ntask after a fix has been made or to manually force a task to be\ndispatched now.\n\nWhen this method is called, Cloud Tasks will dispatch the task to its\ntarget, even if the queue is PAUSED.\n\nThe dispatched task is returned. That is, the task that is returned\ncontains the status after the task is dispatched but\nbefore the task is received by its target.\n\nIf Cloud Tasks receives a successful response from the task's\nhandler, then the task will be deleted; otherwise the task's\nschedule_time will be reset to the time that\nRunTask was called plus the retry delay specified\nin the queue and task's RetryConfig.\n\nRunTask returns\nNOT_FOUND when it is called on a\ntask that has already succeeded or permanently\nfailed. FAILED_PRECONDITION\nis returned when RunTask is called on task\nthat is dispatched or already running.\n\nRunTask cannot be called on\npull tasks.",
|
||||
"description": "Forces a task to run now.\n\nWhen this method is called, Cloud Tasks will dispatch the task, even if\nthe task is already running, the queue has reached its RateLimits or\nis PAUSED.\n\nThis command is meant to be used for manual debugging. For\nexample, RunTask can be used to retry a failed\ntask after a fix has been made or to manually force a task to be\ndispatched now.\n\nThe dispatched task is returned. That is, the task that is returned\ncontains the status after the task is dispatched but\nbefore the task is received by its target.\n\nIf Cloud Tasks receives a successful response from the task's\ntarget, then the task will be deleted; otherwise the task's\nschedule_time will be reset to the time that\nRunTask was called plus the retry delay specified\nin the queue's RetryConfig.\n\nRunTask returns\nNOT_FOUND when it is called on a\ntask that has already succeeded or permanently failed.\n\nRunTask cannot be called on a\npull task.",
|
||||
"flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks/{tasksId}:run",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudtasks.projects.locations.queues.tasks.run",
|
||||
@@ -802,7 +802,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180302",
|
||||
"revision": "20180503",
|
||||
"rootUrl": "https://cloudtasks.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcknowledgeTaskRequest": {
|
||||
@@ -929,7 +929,7 @@
|
||||
"id": "Binding",
|
||||
"properties": {
|
||||
"members": {
|
||||
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
|
||||
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -1010,7 +1010,7 @@
|
||||
"id": "LeaseTasksRequest",
|
||||
"properties": {
|
||||
"filter": {
|
||||
"description": "`filter` can be used to specify a subset of tasks to lease.\n\nWhen `filter` is set to `tag=\u003cmy-tag\u003e` then the\nresponse will contain only tasks whose\ntag is equal to `\u003cmy-tag\u003e`. `\u003cmy-tag\u003e` must be\nless than 500 characters.\n\nWhen `filter` is set to `tag_function=oldest_tag()`, only tasks which have\nthe same tag as the task with the oldest schedule_time will be returned.\n\nGrammar Syntax:\n\n* `filter = \"tag=\" tag | \"tag_function=\" function`\n\n* `tag = string`\n\n* `function = \"oldest_tag()\"`\n\nThe `oldest_tag()` function returns tasks which have the same tag as the\noldest task (ordered by schedule time).\n\nSDK compatibility: Although the SDK allows tags to be either\nstring or\n[bytes](/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),\nonly UTF-8 encoded tags can be used in Cloud Tasks. Tag which\naren't UTF-8 encoded can't be used in the\nfilter and the task's\ntag will be displayed as empty in Cloud Tasks.",
|
||||
"description": "`filter` can be used to specify a subset of tasks to lease.\n\nWhen `filter` is set to `tag=\u003cmy-tag\u003e` then the\nresponse will contain only tasks whose\ntag is equal to `\u003cmy-tag\u003e`. `\u003cmy-tag\u003e` must be\nless than 500 characters.\n\nWhen `filter` is set to `tag_function=oldest_tag()`, only tasks which have\nthe same tag as the task with the oldest\nschedule_time will be returned.\n\nGrammar Syntax:\n\n* `filter = \"tag=\" tag | \"tag_function=\" function`\n\n* `tag = string`\n\n* `function = \"oldest_tag()\"`\n\nThe `oldest_tag()` function returns tasks which have the same tag as the\noldest task (ordered by schedule time).\n\nSDK compatibility: Although the SDK allows tags to be either\nstring or\n[bytes](/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),\nonly UTF-8 encoded tags can be used in Cloud Tasks. Tag which\naren't UTF-8 encoded can't be used in the\nfilter and the task's\ntag will be displayed as empty in Cloud Tasks.",
|
||||
"type": "string"
|
||||
},
|
||||
"leaseDuration": {
|
||||
@@ -1149,7 +1149,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"Policy": {
|
||||
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\",\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
|
||||
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**JSON Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\n**YAML Example**\n\n bindings:\n - members:\n - user:mike@example.com\n - group:admins@example.com\n - domain:google.com\n - serviceAccount:my-other-app@appspot.gserviceaccount.com\n role: roles/owner\n - members:\n - user:sean@example.com\n role: roles/viewer\n\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
|
||||
"id": "Policy",
|
||||
"properties": {
|
||||
"bindings": {
|
||||
@@ -1249,7 +1249,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"RateLimits": {
|
||||
"description": "Rate limits.\n\nThis message determines the maximum rate that tasks can be dispatched by a\nqueue, regardless of whether the dispatch is a first task attempt or a retry.",
|
||||
"description": "Rate limits.\n\nThis message determines the maximum rate that tasks can be dispatched by a\nqueue, regardless of whether the dispatch is a first task attempt or a retry.\n\nNote: The debugging command, RunTask, will run a task\neven if the queue has reached its RateLimits.",
|
||||
"id": "RateLimits",
|
||||
"properties": {
|
||||
"maxBurstSize": {
|
||||
@@ -1258,7 +1258,7 @@
|
||||
"type": "integer"
|
||||
},
|
||||
"maxConcurrentTasks": {
|
||||
"description": "The maximum number of concurrent tasks that Cloud Tasks allows\nto be dispatched for this queue. After this threshold has been\nreached, Cloud Tasks stops dispatching tasks until the number of\nconcurrent requests decreases.\n\nIf unspecified when the queue is created, Cloud Tasks will pick the\ndefault.\n\n\nThe maximum allowed value is 5,000. -1 indicates no limit.\n\nThis field is output only for\n[pull queues](google.cloud.tasks.v2beta2.PullTarget).\n\n\nThis field has the same meaning as\n[max_concurrent_requests in queue.yaml/xml](/appengine/docs/standard/python/config/queueref#max_concurrent_requests).",
|
||||
"description": "The maximum number of concurrent tasks that Cloud Tasks allows\nto be dispatched for this queue. After this threshold has been\nreached, Cloud Tasks stops dispatching tasks until the number of\nconcurrent requests decreases.\n\nIf unspecified when the queue is created, Cloud Tasks will pick the\ndefault.\n\n\nThe maximum allowed value is 5,000.\n\nThis field is output only for\n[pull queues](google.cloud.tasks.v2beta2.PullTarget) and always -1, which\nindicates no limit. No other queue types can have `max_concurrent_tasks`\nset to -1.\n\n\nThis field has the same meaning as\n[max_concurrent_requests in queue.yaml/xml](/appengine/docs/standard/python/config/queueref#max_concurrent_requests).",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
|
||||
+44
-25
@@ -630,7 +630,7 @@ type Binding struct {
|
||||
//
|
||||
// * `user:{emailid}`: An email address that represents a specific
|
||||
// Google
|
||||
// account. For example, `alice@gmail.com` or `joe@example.com`.
|
||||
// account. For example, `alice@gmail.com` .
|
||||
//
|
||||
//
|
||||
// * `serviceAccount:{emailid}`: An email address that represents a
|
||||
@@ -896,8 +896,8 @@ type LeaseTasksRequest struct {
|
||||
//
|
||||
// When `filter` is set to `tag_function=oldest_tag()`, only tasks which
|
||||
// have
|
||||
// the same tag as the task with the oldest schedule_time will be
|
||||
// returned.
|
||||
// the same tag as the task with the oldest
|
||||
// schedule_time will be returned.
|
||||
//
|
||||
// Grammar Syntax:
|
||||
//
|
||||
@@ -1216,7 +1216,7 @@ type PauseQueueRequest struct {
|
||||
// specify access control policies for Cloud Platform resources.
|
||||
//
|
||||
//
|
||||
// A `Policy` consists of a list of `bindings`. A `Binding` binds a list
|
||||
// A `Policy` consists of a list of `bindings`. A `binding` binds a list
|
||||
// of
|
||||
// `members` to a `role`, where the members can be user accounts, Google
|
||||
// groups,
|
||||
@@ -1224,7 +1224,7 @@ type PauseQueueRequest struct {
|
||||
// permissions
|
||||
// defined by IAM.
|
||||
//
|
||||
// **Example**
|
||||
// **JSON Example**
|
||||
//
|
||||
// {
|
||||
// "bindings": [
|
||||
@@ -1235,7 +1235,7 @@ type PauseQueueRequest struct {
|
||||
// "group:admins@example.com",
|
||||
// "domain:google.com",
|
||||
//
|
||||
// "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
||||
// "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
@@ -1245,6 +1245,20 @@ type PauseQueueRequest struct {
|
||||
// ]
|
||||
// }
|
||||
//
|
||||
// **YAML Example**
|
||||
//
|
||||
// bindings:
|
||||
// - members:
|
||||
// - user:mike@example.com
|
||||
// - group:admins@example.com
|
||||
// - domain:google.com
|
||||
// - serviceAccount:my-other-app@appspot.gserviceaccount.com
|
||||
// role: roles/owner
|
||||
// - members:
|
||||
// - user:sean@example.com
|
||||
// role: roles/viewer
|
||||
//
|
||||
//
|
||||
// For a description of IAM and its features, see the
|
||||
// [IAM developer's guide](https://cloud.google.com/iam/docs).
|
||||
type Policy struct {
|
||||
@@ -1540,6 +1554,9 @@ func (s *Queue) MarshalJSON() ([]byte, error) {
|
||||
// by a
|
||||
// queue, regardless of whether the dispatch is a first task attempt or
|
||||
// a retry.
|
||||
//
|
||||
// Note: The debugging command, RunTask, will run a task
|
||||
// even if the queue has reached its RateLimits.
|
||||
type RateLimits struct {
|
||||
// MaxBurstSize: Output only. The max burst size.
|
||||
//
|
||||
@@ -1598,10 +1615,14 @@ type RateLimits struct {
|
||||
// default.
|
||||
//
|
||||
//
|
||||
// The maximum allowed value is 5,000. -1 indicates no limit.
|
||||
// The maximum allowed value is 5,000.
|
||||
//
|
||||
// This field is output only for
|
||||
// [pull queues](google.cloud.tasks.v2beta2.PullTarget).
|
||||
// [pull queues](google.cloud.tasks.v2beta2.PullTarget) and always -1,
|
||||
// which
|
||||
// indicates no limit. No other queue types can have
|
||||
// `max_concurrent_tasks`
|
||||
// set to -1.
|
||||
//
|
||||
//
|
||||
// This field has the same meaning as
|
||||
@@ -2381,7 +2402,7 @@ type ProjectsLocationsGetCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Get information about a location.
|
||||
// Get: Gets information about a location.
|
||||
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
|
||||
c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
@@ -2482,7 +2503,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Get information about a location.",
|
||||
// "description": "Gets information about a location.",
|
||||
// "flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "cloudtasks.projects.locations.get",
|
||||
@@ -5721,38 +5742,36 @@ type ProjectsLocationsQueuesTasksRunCall struct {
|
||||
|
||||
// Run: Forces a task to run now.
|
||||
//
|
||||
// When this method is called, Cloud Tasks will dispatch the task, even
|
||||
// if
|
||||
// the task is already running, the queue has reached its RateLimits
|
||||
// or
|
||||
// is PAUSED.
|
||||
//
|
||||
// This command is meant to be used for manual debugging. For
|
||||
// example, RunTask can be used to retry a failed
|
||||
// task after a fix has been made or to manually force a task to
|
||||
// be
|
||||
// dispatched now.
|
||||
//
|
||||
// When this method is called, Cloud Tasks will dispatch the task to
|
||||
// its
|
||||
// target, even if the queue is PAUSED.
|
||||
//
|
||||
// The dispatched task is returned. That is, the task that is
|
||||
// returned
|
||||
// contains the status after the task is dispatched but
|
||||
// before the task is received by its target.
|
||||
//
|
||||
// If Cloud Tasks receives a successful response from the
|
||||
// task's
|
||||
// handler, then the task will be deleted; otherwise the
|
||||
// If Cloud Tasks receives a successful response from the task's
|
||||
// target, then the task will be deleted; otherwise the
|
||||
// task's
|
||||
// schedule_time will be reset to the time that
|
||||
// RunTask was called plus the retry delay specified
|
||||
// in the queue and task's RetryConfig.
|
||||
// in the queue's RetryConfig.
|
||||
//
|
||||
// RunTask returns
|
||||
// NOT_FOUND when it is called on a
|
||||
// task that has already succeeded or permanently
|
||||
// failed. FAILED_PRECONDITION
|
||||
// is returned when RunTask is called on task
|
||||
// that is dispatched or already running.
|
||||
// task that has already succeeded or permanently failed.
|
||||
//
|
||||
// RunTask cannot be called on
|
||||
// pull tasks.
|
||||
// RunTask cannot be called on a
|
||||
// pull task.
|
||||
func (r *ProjectsLocationsQueuesTasksService) Run(name string, runtaskrequest *RunTaskRequest) *ProjectsLocationsQueuesTasksRunCall {
|
||||
c := &ProjectsLocationsQueuesTasksRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
@@ -5846,7 +5865,7 @@ func (c *ProjectsLocationsQueuesTasksRunCall) Do(opts ...googleapi.CallOption) (
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Forces a task to run now.\n\nThis command is meant to be used for manual debugging. For\nexample, RunTask can be used to retry a failed\ntask after a fix has been made or to manually force a task to be\ndispatched now.\n\nWhen this method is called, Cloud Tasks will dispatch the task to its\ntarget, even if the queue is PAUSED.\n\nThe dispatched task is returned. That is, the task that is returned\ncontains the status after the task is dispatched but\nbefore the task is received by its target.\n\nIf Cloud Tasks receives a successful response from the task's\nhandler, then the task will be deleted; otherwise the task's\nschedule_time will be reset to the time that\nRunTask was called plus the retry delay specified\nin the queue and task's RetryConfig.\n\nRunTask returns\nNOT_FOUND when it is called on a\ntask that has already succeeded or permanently\nfailed. FAILED_PRECONDITION\nis returned when RunTask is called on task\nthat is dispatched or already running.\n\nRunTask cannot be called on\npull tasks.",
|
||||
// "description": "Forces a task to run now.\n\nWhen this method is called, Cloud Tasks will dispatch the task, even if\nthe task is already running, the queue has reached its RateLimits or\nis PAUSED.\n\nThis command is meant to be used for manual debugging. For\nexample, RunTask can be used to retry a failed\ntask after a fix has been made or to manually force a task to be\ndispatched now.\n\nThe dispatched task is returned. That is, the task that is returned\ncontains the status after the task is dispatched but\nbefore the task is received by its target.\n\nIf Cloud Tasks receives a successful response from the task's\ntarget, then the task will be deleted; otherwise the task's\nschedule_time will be reset to the time that\nRunTask was called plus the retry delay specified\nin the queue's RetryConfig.\n\nRunTask returns\nNOT_FOUND when it is called on a\ntask that has already succeeded or permanently failed.\n\nRunTask cannot be called on a\npull task.",
|
||||
// "flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks/{tasksId}:run",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudtasks.projects.locations.queues.tasks.run",
|
||||
|
||||
Reference in New Issue
Block a user