google-cloud-tasks 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/lib/google/cloud/tasks.rb +2 -2
  4. data/lib/google/cloud/tasks/v2.rb +2 -2
  5. data/lib/google/cloud/tasks/v2/cloud_tasks_client.rb +15 -45
  6. data/lib/google/cloud/tasks/v2/cloudtasks_pb.rb +2 -1
  7. data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/cloudtasks.rb +15 -45
  8. data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/queue.rb +2 -3
  9. data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/target.rb +16 -10
  10. data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/task.rb +1 -3
  11. data/lib/google/cloud/tasks/v2/doc/google/iam/v1/policy.rb +2 -2
  12. data/lib/google/cloud/tasks/v2/queue_pb.rb +1 -1
  13. data/lib/google/cloud/tasks/v2/task_pb.rb +1 -1
  14. data/lib/google/cloud/tasks/v2beta2.rb +2 -2
  15. data/lib/google/cloud/tasks/v2beta2/cloud_tasks_client.rb +211 -267
  16. data/lib/google/cloud/tasks/v2beta2/cloudtasks_pb.rb +3 -1
  17. data/lib/google/cloud/tasks/v2beta2/cloudtasks_services_pb.rb +58 -69
  18. data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/cloudtasks.rb +188 -250
  19. data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/queue.rb +57 -81
  20. data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/target.rb +86 -89
  21. data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb +25 -42
  22. data/lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/policy.rb +2 -2
  23. data/lib/google/cloud/tasks/v2beta2/queue_pb.rb +2 -1
  24. data/lib/google/cloud/tasks/v2beta2/target_pb.rb +0 -1
  25. data/lib/google/cloud/tasks/v2beta2/task_pb.rb +2 -1
  26. data/lib/google/cloud/tasks/v2beta3.rb +2 -2
  27. data/lib/google/cloud/tasks/v2beta3/cloud_tasks_client.rb +15 -45
  28. data/lib/google/cloud/tasks/v2beta3/cloudtasks_pb.rb +2 -1
  29. data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/cloudtasks.rb +15 -45
  30. data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/target.rb +5 -5
  31. data/lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/policy.rb +2 -2
  32. data/lib/google/cloud/tasks/v2beta3/queue_pb.rb +1 -1
  33. data/lib/google/cloud/tasks/v2beta3/task_pb.rb +1 -1
  34. data/lib/google/cloud/tasks/version.rb +1 -1
  35. metadata +3 -3
@@ -20,8 +20,7 @@ module Google
20
20
  # A unit of scheduled work.
21
21
  # @!attribute [rw] name
22
22
  # @return [String]
23
- # Optionally caller-specified in
24
- # {Google::Cloud::Tasks::V2beta2::CloudTasks::CreateTask CreateTask}.
23
+ # Optionally caller-specified in {Google::Cloud::Tasks::V2beta2::CloudTasks::CreateTask CreateTask}.
25
24
  #
26
25
  # The task name.
27
26
  #
@@ -45,21 +44,16 @@ module Google
45
44
  # @return [Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest]
46
45
  # App Engine HTTP request that is sent to the task's target. Can
47
46
  # be set only if
48
- # {Google::Cloud::Tasks::V2beta2::Queue#app_engine_http_target app_engine_http_target}
49
- # is set on the queue.
47
+ # {Google::Cloud::Tasks::V2beta2::Queue#app_engine_http_target app_engine_http_target} is set
48
+ # on the queue.
50
49
  #
51
- # An App Engine task is a task that has
52
- # {Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest AppEngineHttpRequest}
53
- # set.
50
+ # An App Engine task is a task that has {Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest AppEngineHttpRequest} set.
54
51
  # @!attribute [rw] pull_message
55
52
  # @return [Google::Cloud::Tasks::V2beta2::PullMessage]
56
- # {Google::Cloud::Tasks::V2beta2::CloudTasks::LeaseTasks LeaseTasks} to process
57
- # the task. Can be set only if
58
- # {Google::Cloud::Tasks::V2beta2::Queue#pull_target pull_target} is set on the
59
- # queue.
53
+ # {Google::Cloud::Tasks::V2beta2::CloudTasks::LeaseTasks LeaseTasks} to process the task. Can be
54
+ # set only if {Google::Cloud::Tasks::V2beta2::Queue#pull_target pull_target} is set on the queue.
60
55
  #
61
- # A pull task is a task that has
62
- # {Google::Cloud::Tasks::V2beta2::PullMessage PullMessage} set.
56
+ # A pull task is a task that has {Google::Cloud::Tasks::V2beta2::PullMessage PullMessage} set.
63
57
  # @!attribute [rw] schedule_time
64
58
  # @return [Google::Protobuf::Timestamp]
65
59
  # The time when the task is scheduled to be attempted.
@@ -69,8 +63,7 @@ module Google
69
63
  # For pull queues, this is the time when the task is available to
70
64
  # be leased; if a task is currently leased, this is the time when
71
65
  # the current lease expires, that is, the time that the task was
72
- # leased plus the
73
- # {Google::Cloud::Tasks::V2beta2::LeaseTasksRequest#lease_duration lease_duration}.
66
+ # leased plus the {Google::Cloud::Tasks::V2beta2::LeaseTasksRequest#lease_duration lease_duration}.
74
67
  #
75
68
  # `schedule_time` will be truncated to the nearest microsecond.
76
69
  # @!attribute [rw] create_time
@@ -83,11 +76,10 @@ module Google
83
76
  # Output only. The task status.
84
77
  # @!attribute [rw] view
85
78
  # @return [Google::Cloud::Tasks::V2beta2::Task::View]
86
- # Output only. The view specifies which subset of the
87
- # {Google::Cloud::Tasks::V2beta2::Task Task} has been returned.
79
+ # Output only. The view specifies which subset of the {Google::Cloud::Tasks::V2beta2::Task Task} has
80
+ # been returned.
88
81
  class Task
89
- # The view specifies a subset of {Google::Cloud::Tasks::V2beta2::Task Task}
90
- # data.
82
+ # The view specifies a subset of {Google::Cloud::Tasks::V2beta2::Task Task} data.
91
83
  #
92
84
  # When a task is returned in a response, not all
93
85
  # information is retrieved by default because some data, such as
@@ -102,21 +94,18 @@ module Google
102
94
  # sensitive data.
103
95
  #
104
96
  # This view does not include the
105
- # ([payload in
106
- # AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest]
107
- # and [payload in
108
- # PullMessage][google.cloud.tasks.v2beta2.PullMessage.payload]). These
109
- # payloads are desirable to return only when needed, because they can be
110
- # large and because of the sensitivity of the data that you choose to store
111
- # in it.
97
+ # ({Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest payload in AppEngineHttpRequest} and
98
+ # {Google::Cloud::Tasks::V2beta2::PullMessage#payload payload in PullMessage}). These payloads are
99
+ # desirable to return only when needed, because they can be large
100
+ # and because of the sensitivity of the data that you choose to
101
+ # store in it.
112
102
  BASIC = 1
113
103
 
114
104
  # All information is returned.
115
105
  #
116
- # Authorization for {Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL}
117
- # requires `cloudtasks.tasks.fullView` [Google
118
- # IAM](https://cloud.google.com/iam/) permission on the
119
- # {Google::Cloud::Tasks::V2beta2::Queue Queue} resource.
106
+ # Authorization for {Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL} requires
107
+ # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
108
+ # permission on the {Google::Cloud::Tasks::V2beta2::Queue Queue} resource.
120
109
  FULL = 2
121
110
  end
122
111
  end
@@ -126,32 +115,26 @@ module Google
126
115
  # @return [Integer]
127
116
  # Output only. The number of attempts dispatched.
128
117
  #
129
- # This count includes tasks which have been dispatched but haven't
118
+ # This count includes attempts which have been dispatched but haven't
130
119
  # received a response.
131
120
  # @!attribute [rw] attempt_response_count
132
121
  # @return [Integer]
133
122
  # Output only. The number of attempts which have received a response.
134
123
  #
135
- # This field is not calculated for [pull
136
- # tasks][google.cloud.tasks.v2beta2.PullMessage].
124
+ # This field is not calculated for {Google::Cloud::Tasks::V2beta2::PullMessage pull tasks}.
137
125
  # @!attribute [rw] first_attempt_status
138
126
  # @return [Google::Cloud::Tasks::V2beta2::AttemptStatus]
139
127
  # Output only. The status of the task's first attempt.
140
128
  #
141
- # Only
142
- # {Google::Cloud::Tasks::V2beta2::AttemptStatus#dispatch_time dispatch_time}
143
- # will be set. The other
144
- # {Google::Cloud::Tasks::V2beta2::AttemptStatus AttemptStatus} information is
145
- # not retained by Cloud Tasks.
129
+ # Only {Google::Cloud::Tasks::V2beta2::AttemptStatus#dispatch_time dispatch_time} will be set.
130
+ # The other {Google::Cloud::Tasks::V2beta2::AttemptStatus AttemptStatus} information is not retained by Cloud Tasks.
146
131
  #
147
- # This field is not calculated for [pull
148
- # tasks][google.cloud.tasks.v2beta2.PullMessage].
132
+ # This field is not calculated for {Google::Cloud::Tasks::V2beta2::PullMessage pull tasks}.
149
133
  # @!attribute [rw] last_attempt_status
150
134
  # @return [Google::Cloud::Tasks::V2beta2::AttemptStatus]
151
135
  # Output only. The status of the task's last attempt.
152
136
  #
153
- # This field is not calculated for [pull
154
- # tasks][google.cloud.tasks.v2beta2.PullMessage].
137
+ # This field is not calculated for {Google::Cloud::Tasks::V2beta2::PullMessage pull tasks}.
155
138
  class TaskStatus; end
156
139
 
157
140
  # The status of a task attempt.
@@ -79,7 +79,7 @@ module Google
79
79
  # ensure that their change will be applied to the same version of the policy.
80
80
  #
81
81
  # If no `etag` is provided in the call to `setIamPolicy`, then the existing
82
- # policy is overwritten blindly.
82
+ # policy is overwritten.
83
83
  class Policy; end
84
84
 
85
85
  # Associates `members` with a `role`.
@@ -99,7 +99,7 @@ module Google
99
99
  # who is authenticated with a Google account or a service account.
100
100
  #
101
101
  # * `user:{emailid}`: An email address that represents a specific Google
102
- # account. For example, `alice@gmail.com` .
102
+ # account. For example, `alice@example.com` .
103
103
  #
104
104
  #
105
105
  # * `serviceAccount:{emailid}`: An email address that represents a service
@@ -4,10 +4,11 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
- require 'google/api/annotations_pb'
7
+ require 'google/api/resource_pb'
8
8
  require 'google/cloud/tasks/v2beta2/target_pb'
9
9
  require 'google/protobuf/duration_pb'
10
10
  require 'google/protobuf/timestamp_pb'
11
+ require 'google/api/annotations_pb'
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_message "google.cloud.tasks.v2beta2.Queue" do
13
14
  optional :name, :string, 1
@@ -5,7 +5,6 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
- require 'google/protobuf/duration_pb'
9
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
9
  add_message "google.cloud.tasks.v2beta2.PullTarget" do
11
10
  end
@@ -4,10 +4,11 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
- require 'google/api/annotations_pb'
7
+ require 'google/api/resource_pb'
8
8
  require 'google/cloud/tasks/v2beta2/target_pb'
9
9
  require 'google/protobuf/timestamp_pb'
10
10
  require 'google/rpc/status_pb'
11
+ require 'google/api/annotations_pb'
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_message "google.cloud.tasks.v2beta2.Task" do
13
14
  optional :name, :string, 1
@@ -35,7 +35,7 @@ module Google
35
35
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
36
36
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
37
37
  # 3. [Enable the Cloud Tasks API.](https://console.cloud.google.com/apis/library/tasks.googleapis.com)
38
- # 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
38
+ # 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-tasks/latest/file.AUTHENTICATION.html)
39
39
  #
40
40
  # ### Installation
41
41
  # ```
@@ -54,7 +54,7 @@ module Google
54
54
  #
55
55
  # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
56
56
  # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
57
- # or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
57
+ # or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
58
58
  # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
59
59
  # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
60
60
  #
@@ -391,9 +391,7 @@ module Google
391
391
  # Queues are returned in lexicographical order.
392
392
  #
393
393
  # @param parent [String]
394
- # Required.
395
- #
396
- # The location name.
394
+ # Required. The location name.
397
395
  # For example: `projects/PROJECT_ID/locations/LOCATION_ID`
398
396
  # @param filter [String]
399
397
  # `filter` can be used to specify a subset of queues. Any {Google::Cloud::Tasks::V2beta3::Queue Queue}
@@ -462,9 +460,7 @@ module Google
462
460
  # Gets a queue.
463
461
  #
464
462
  # @param name [String]
465
- # Required.
466
- #
467
- # The resource name of the queue. For example:
463
+ # Required. The resource name of the queue. For example:
468
464
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
469
465
  # @param options [Google::Gax::CallOptions]
470
466
  # Overrides the default settings for this call, e.g, timeout,
@@ -506,18 +502,14 @@ module Google
506
502
  # this method.
507
503
  #
508
504
  # @param parent [String]
509
- # Required.
510
- #
511
- # The location name in which the queue will be created.
505
+ # Required. The location name in which the queue will be created.
512
506
  # For example: `projects/PROJECT_ID/locations/LOCATION_ID`
513
507
  #
514
508
  # The list of allowed locations can be obtained by calling Cloud
515
509
  # Tasks' implementation of
516
510
  # {Google::Cloud::Location::Locations::ListLocations ListLocations}.
517
511
  # @param queue [Google::Cloud::Tasks::V2beta3::Queue | Hash]
518
- # Required.
519
- #
520
- # The queue to create.
512
+ # Required. The queue to create.
521
513
  #
522
514
  # {Google::Cloud::Tasks::V2beta3::Queue#name Queue's name} cannot be the same as an existing queue.
523
515
  # A hash of the same form as `Google::Cloud::Tasks::V2beta3::Queue`
@@ -570,9 +562,7 @@ module Google
570
562
  # this method.
571
563
  #
572
564
  # @param queue [Google::Cloud::Tasks::V2beta3::Queue | Hash]
573
- # Required.
574
- #
575
- # The queue to create or update.
565
+ # Required. The queue to create or update.
576
566
  #
577
567
  # The queue's {Google::Cloud::Tasks::V2beta3::Queue#name name} must be specified.
578
568
  #
@@ -632,9 +622,7 @@ module Google
632
622
  # this method.
633
623
  #
634
624
  # @param name [String]
635
- # Required.
636
- #
637
- # The queue name. For example:
625
+ # Required. The queue name. For example:
638
626
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
639
627
  # @param options [Google::Gax::CallOptions]
640
628
  # Overrides the default settings for this call, e.g, timeout,
@@ -670,9 +658,7 @@ module Google
670
658
  # might be dispatched before the purge takes effect. A purge is irreversible.
671
659
  #
672
660
  # @param name [String]
673
- # Required.
674
- #
675
- # The queue name. For example:
661
+ # Required. The queue name. For example:
676
662
  # `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
677
663
  # @param options [Google::Gax::CallOptions]
678
664
  # Overrides the default settings for this call, e.g, timeout,
@@ -709,9 +695,7 @@ module Google
709
695
  # {Google::Cloud::Tasks::V2beta3::Queue#state state} is {Google::Cloud::Tasks::V2beta3::Queue::State::PAUSED PAUSED}.
710
696
  #
711
697
  # @param name [String]
712
- # Required.
713
- #
714
- # The queue name. For example:
698
+ # Required. The queue name. For example:
715
699
  # `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
716
700
  # @param options [Google::Gax::CallOptions]
717
701
  # Overrides the default settings for this call, e.g, timeout,
@@ -754,9 +738,7 @@ module Google
754
738
  # Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
755
739
  #
756
740
  # @param name [String]
757
- # Required.
758
- #
759
- # The queue name. For example:
741
+ # Required. The queue name. For example:
760
742
  # `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
761
743
  # @param options [Google::Gax::CallOptions]
762
744
  # Overrides the default settings for this call, e.g, timeout,
@@ -941,9 +923,7 @@ module Google
941
923
  # time.
942
924
  #
943
925
  # @param parent [String]
944
- # Required.
945
- #
946
- # The queue name. For example:
926
+ # Required. The queue name. For example:
947
927
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
948
928
  # @param response_view [Google::Cloud::Tasks::V2beta3::Task::View]
949
929
  # The response_view specifies which subset of the {Google::Cloud::Tasks::V2beta3::Task Task} will be
@@ -1013,9 +993,7 @@ module Google
1013
993
  # Gets a task.
1014
994
  #
1015
995
  # @param name [String]
1016
- # Required.
1017
- #
1018
- # The task name. For example:
996
+ # Required. The task name. For example:
1019
997
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
1020
998
  # @param response_view [Google::Cloud::Tasks::V2beta3::Task::View]
1021
999
  # The response_view specifies which subset of the {Google::Cloud::Tasks::V2beta3::Task Task} will be
@@ -1065,16 +1043,12 @@ module Google
1065
1043
  # * The maximum task size is 100KB.
1066
1044
  #
1067
1045
  # @param parent [String]
1068
- # Required.
1069
- #
1070
- # The queue name. For example:
1046
+ # Required. The queue name. For example:
1071
1047
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
1072
1048
  #
1073
1049
  # The queue must already exist.
1074
1050
  # @param task [Google::Cloud::Tasks::V2beta3::Task | Hash]
1075
- # Required.
1076
- #
1077
- # The task to add.
1051
+ # Required. The task to add.
1078
1052
  #
1079
1053
  # Task names have the following format:
1080
1054
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
@@ -1162,9 +1136,7 @@ module Google
1162
1136
  # failed.
1163
1137
  #
1164
1138
  # @param name [String]
1165
- # Required.
1166
- #
1167
- # The task name. For example:
1139
+ # Required. The task name. For example:
1168
1140
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
1169
1141
  # @param options [Google::Gax::CallOptions]
1170
1142
  # Overrides the default settings for this call, e.g, timeout,
@@ -1218,9 +1190,7 @@ module Google
1218
1190
  # task that has already succeeded or permanently failed.
1219
1191
  #
1220
1192
  # @param name [String]
1221
- # Required.
1222
- #
1223
- # The task name. For example:
1193
+ # Required. The task name. For example:
1224
1194
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
1225
1195
  # @param response_view [Google::Cloud::Tasks::V2beta3::Task::View]
1226
1196
  # The response_view specifies which subset of the {Google::Cloud::Tasks::V2beta3::Task Task} will be
@@ -5,6 +5,8 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
8
10
  require 'google/api/resource_pb'
9
11
  require 'google/cloud/tasks/v2beta3/queue_pb'
10
12
  require 'google/cloud/tasks/v2beta3/task_pb'
@@ -12,7 +14,6 @@ require 'google/iam/v1/iam_policy_pb'
12
14
  require 'google/iam/v1/policy_pb'
13
15
  require 'google/protobuf/empty_pb'
14
16
  require 'google/protobuf/field_mask_pb'
15
- require 'google/rpc/code_pb'
16
17
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
18
  add_message "google.cloud.tasks.v2beta3.ListQueuesRequest" do
18
19
  optional :parent, :string, 1
@@ -20,9 +20,7 @@ module Google
20
20
  # Request message for {Google::Cloud::Tasks::V2beta3::CloudTasks::ListQueues ListQueues}.
21
21
  # @!attribute [rw] parent
22
22
  # @return [String]
23
- # Required.
24
- #
25
- # The location name.
23
+ # Required. The location name.
26
24
  # For example: `projects/PROJECT_ID/locations/LOCATION_ID`
27
25
  # @!attribute [rw] filter
28
26
  # @return [String]
@@ -78,18 +76,14 @@ module Google
78
76
  # Request message for {Google::Cloud::Tasks::V2beta3::CloudTasks::GetQueue GetQueue}.
79
77
  # @!attribute [rw] name
80
78
  # @return [String]
81
- # Required.
82
- #
83
- # The resource name of the queue. For example:
79
+ # Required. The resource name of the queue. For example:
84
80
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
85
81
  class GetQueueRequest; end
86
82
 
87
83
  # Request message for {Google::Cloud::Tasks::V2beta3::CloudTasks::CreateQueue CreateQueue}.
88
84
  # @!attribute [rw] parent
89
85
  # @return [String]
90
- # Required.
91
- #
92
- # The location name in which the queue will be created.
86
+ # Required. The location name in which the queue will be created.
93
87
  # For example: `projects/PROJECT_ID/locations/LOCATION_ID`
94
88
  #
95
89
  # The list of allowed locations can be obtained by calling Cloud
@@ -97,9 +91,7 @@ module Google
97
91
  # {Google::Cloud::Location::Locations::ListLocations ListLocations}.
98
92
  # @!attribute [rw] queue
99
93
  # @return [Google::Cloud::Tasks::V2beta3::Queue]
100
- # Required.
101
- #
102
- # The queue to create.
94
+ # Required. The queue to create.
103
95
  #
104
96
  # {Google::Cloud::Tasks::V2beta3::Queue#name Queue's name} cannot be the same as an existing queue.
105
97
  class CreateQueueRequest; end
@@ -107,9 +99,7 @@ module Google
107
99
  # Request message for {Google::Cloud::Tasks::V2beta3::CloudTasks::UpdateQueue UpdateQueue}.
108
100
  # @!attribute [rw] queue
109
101
  # @return [Google::Cloud::Tasks::V2beta3::Queue]
110
- # Required.
111
- #
112
- # The queue to create or update.
102
+ # Required. The queue to create or update.
113
103
  #
114
104
  # The queue's {Google::Cloud::Tasks::V2beta3::Queue#name name} must be specified.
115
105
  #
@@ -126,45 +116,35 @@ module Google
126
116
  # Request message for {Google::Cloud::Tasks::V2beta3::CloudTasks::DeleteQueue DeleteQueue}.
127
117
  # @!attribute [rw] name
128
118
  # @return [String]
129
- # Required.
130
- #
131
- # The queue name. For example:
119
+ # Required. The queue name. For example:
132
120
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
133
121
  class DeleteQueueRequest; end
134
122
 
135
123
  # Request message for {Google::Cloud::Tasks::V2beta3::CloudTasks::PurgeQueue PurgeQueue}.
136
124
  # @!attribute [rw] name
137
125
  # @return [String]
138
- # Required.
139
- #
140
- # The queue name. For example:
126
+ # Required. The queue name. For example:
141
127
  # `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
142
128
  class PurgeQueueRequest; end
143
129
 
144
130
  # Request message for {Google::Cloud::Tasks::V2beta3::CloudTasks::PauseQueue PauseQueue}.
145
131
  # @!attribute [rw] name
146
132
  # @return [String]
147
- # Required.
148
- #
149
- # The queue name. For example:
133
+ # Required. The queue name. For example:
150
134
  # `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
151
135
  class PauseQueueRequest; end
152
136
 
153
137
  # Request message for {Google::Cloud::Tasks::V2beta3::CloudTasks::ResumeQueue ResumeQueue}.
154
138
  # @!attribute [rw] name
155
139
  # @return [String]
156
- # Required.
157
- #
158
- # The queue name. For example:
140
+ # Required. The queue name. For example:
159
141
  # `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
160
142
  class ResumeQueueRequest; end
161
143
 
162
144
  # Request message for listing tasks using {Google::Cloud::Tasks::V2beta3::CloudTasks::ListTasks ListTasks}.
163
145
  # @!attribute [rw] parent
164
146
  # @return [String]
165
- # Required.
166
- #
167
- # The queue name. For example:
147
+ # Required. The queue name. For example:
168
148
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
169
149
  # @!attribute [rw] response_view
170
150
  # @return [Google::Cloud::Tasks::V2beta3::Task::View]
@@ -221,9 +201,7 @@ module Google
221
201
  # Request message for getting a task using {Google::Cloud::Tasks::V2beta3::CloudTasks::GetTask GetTask}.
222
202
  # @!attribute [rw] name
223
203
  # @return [String]
224
- # Required.
225
- #
226
- # The task name. For example:
204
+ # Required. The task name. For example:
227
205
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
228
206
  # @!attribute [rw] response_view
229
207
  # @return [Google::Cloud::Tasks::V2beta3::Task::View]
@@ -244,17 +222,13 @@ module Google
244
222
  # Request message for {Google::Cloud::Tasks::V2beta3::CloudTasks::CreateTask CreateTask}.
245
223
  # @!attribute [rw] parent
246
224
  # @return [String]
247
- # Required.
248
- #
249
- # The queue name. For example:
225
+ # Required. The queue name. For example:
250
226
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
251
227
  #
252
228
  # The queue must already exist.
253
229
  # @!attribute [rw] task
254
230
  # @return [Google::Cloud::Tasks::V2beta3::Task]
255
- # Required.
256
- #
257
- # The task to add.
231
+ # Required. The task to add.
258
232
  #
259
233
  # Task names have the following format:
260
234
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
@@ -307,9 +281,7 @@ module Google
307
281
  # {Google::Cloud::Tasks::V2beta3::CloudTasks::DeleteTask DeleteTask}.
308
282
  # @!attribute [rw] name
309
283
  # @return [String]
310
- # Required.
311
- #
312
- # The task name. For example:
284
+ # Required. The task name. For example:
313
285
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
314
286
  class DeleteTaskRequest; end
315
287
 
@@ -317,9 +289,7 @@ module Google
317
289
  # {Google::Cloud::Tasks::V2beta3::CloudTasks::RunTask RunTask}.
318
290
  # @!attribute [rw] name
319
291
  # @return [String]
320
- # Required.
321
- #
322
- # The task name. For example:
292
+ # Required. The task name. For example:
323
293
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
324
294
  # @!attribute [rw] response_view
325
295
  # @return [Google::Cloud::Tasks::V2beta3::Task::View]