google-api-client 0.39.4 → 0.39.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +65 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
  5. data/generated/google/apis/apigee_v1.rb +1 -1
  6. data/generated/google/apis/apigee_v1/classes.rb +7 -0
  7. data/generated/google/apis/apigee_v1/representations.rb +1 -0
  8. data/generated/google/apis/apigee_v1/service.rb +9 -1
  9. data/generated/google/apis/artifactregistry_v1beta1.rb +38 -0
  10. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +1010 -0
  11. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +380 -0
  12. data/generated/google/apis/artifactregistry_v1beta1/service.rb +957 -0
  13. data/generated/google/apis/bigquery_v2.rb +1 -1
  14. data/generated/google/apis/bigquery_v2/classes.rb +12 -1
  15. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  16. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  17. data/generated/google/apis/bigqueryreservation_v1/service.rb +8 -8
  18. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  19. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +18 -14
  20. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +93 -68
  21. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  22. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +21 -0
  23. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +6 -0
  24. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  25. data/generated/google/apis/binaryauthorization_v1/classes.rb +4 -1
  26. data/generated/google/apis/calendar_v3.rb +1 -1
  27. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  28. data/generated/google/apis/cloudasset_v1.rb +1 -1
  29. data/generated/google/apis/cloudasset_v1/classes.rb +371 -27
  30. data/generated/google/apis/cloudasset_v1/representations.rb +97 -0
  31. data/generated/google/apis/cloudasset_v1/service.rb +186 -8
  32. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  33. data/generated/google/apis/cloudasset_v1beta1/classes.rb +23 -10
  34. data/generated/google/apis/cloudasset_v1beta1/service.rb +12 -3
  35. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  36. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +42 -10
  37. data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +2 -0
  38. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +1 -0
  41. data/generated/google/apis/cloudbuild_v1/service.rb +121 -0
  42. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +142 -0
  44. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +60 -0
  45. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +121 -0
  46. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  47. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +142 -0
  48. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +60 -0
  49. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +121 -0
  50. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  51. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +6 -0
  52. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
  53. data/generated/google/apis/container_v1beta1.rb +1 -1
  54. data/generated/google/apis/container_v1beta1/classes.rb +35 -0
  55. data/generated/google/apis/container_v1beta1/representations.rb +17 -0
  56. data/generated/google/apis/content_v2_1.rb +1 -1
  57. data/generated/google/apis/content_v2_1/classes.rb +6 -0
  58. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  59. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  60. data/generated/google/apis/dataproc_v1beta2/classes.rb +26 -12
  61. data/generated/google/apis/dataproc_v1beta2/service.rb +35 -21
  62. data/generated/google/apis/datastore_v1.rb +1 -1
  63. data/generated/google/apis/datastore_v1/classes.rb +1 -1
  64. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  65. data/generated/google/apis/datastore_v1beta3/classes.rb +1 -1
  66. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  67. data/generated/google/apis/deploymentmanager_alpha/classes.rb +362 -176
  68. data/generated/google/apis/deploymentmanager_alpha/representations.rb +22 -4
  69. data/generated/google/apis/deploymentmanager_alpha/service.rb +198 -311
  70. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  71. data/generated/google/apis/deploymentmanager_v2/classes.rb +295 -146
  72. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -1
  73. data/generated/google/apis/deploymentmanager_v2/service.rb +101 -99
  74. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  75. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +350 -170
  76. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +18 -1
  77. data/generated/google/apis/deploymentmanager_v2beta/service.rb +154 -152
  78. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  79. data/generated/google/apis/dfareporting_v3_3/classes.rb +2 -2
  80. data/generated/google/apis/dfareporting_v3_3/service.rb +2 -2
  81. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  82. data/generated/google/apis/dfareporting_v3_4/classes.rb +2 -2
  83. data/generated/google/apis/dfareporting_v3_4/service.rb +2 -2
  84. data/generated/google/apis/dialogflow_v2.rb +1 -1
  85. data/generated/google/apis/dialogflow_v2/classes.rb +3 -0
  86. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  87. data/generated/google/apis/dialogflow_v2beta1/classes.rb +3 -0
  88. data/generated/google/apis/dialogflow_v2beta1/service.rb +2 -2
  89. data/generated/google/apis/dialogflow_v3alpha1.rb +38 -0
  90. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +5022 -0
  91. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +2057 -0
  92. data/generated/google/apis/dialogflow_v3alpha1/service.rb +296 -0
  93. data/generated/google/apis/displayvideo_v1.rb +1 -1
  94. data/generated/google/apis/displayvideo_v1/service.rb +7 -2
  95. data/generated/google/apis/dlp_v2.rb +1 -1
  96. data/generated/google/apis/dlp_v2/classes.rb +9 -21
  97. data/generated/google/apis/dlp_v2/service.rb +79 -142
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v1/classes.rb +160 -261
  100. data/generated/google/apis/dns_v1/representations.rb +17 -0
  101. data/generated/google/apis/dns_v1/service.rb +21 -141
  102. data/generated/google/apis/dns_v1beta2.rb +1 -1
  103. data/generated/google/apis/dns_v1beta2/classes.rb +189 -273
  104. data/generated/google/apis/dns_v1beta2/representations.rb +32 -0
  105. data/generated/google/apis/dns_v1beta2/service.rb +21 -141
  106. data/generated/google/apis/dns_v2beta1.rb +1 -1
  107. data/generated/google/apis/dns_v2beta1/classes.rb +160 -261
  108. data/generated/google/apis/dns_v2beta1/representations.rb +17 -0
  109. data/generated/google/apis/dns_v2beta1/service.rb +21 -141
  110. data/generated/google/apis/file_v1.rb +1 -1
  111. data/generated/google/apis/file_v1/classes.rb +31 -0
  112. data/generated/google/apis/file_v1/representations.rb +15 -0
  113. data/generated/google/apis/file_v1beta1.rb +1 -1
  114. data/generated/google/apis/file_v1beta1/classes.rb +31 -0
  115. data/generated/google/apis/file_v1beta1/representations.rb +15 -0
  116. data/generated/google/apis/{pagespeedonline_v1.rb → firebaseml_v1.rb} +11 -9
  117. data/generated/google/apis/firebaseml_v1/classes.rb +213 -0
  118. data/generated/google/apis/firebaseml_v1/representations.rb +112 -0
  119. data/generated/google/apis/firebaseml_v1/service.rb +181 -0
  120. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  121. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -1
  122. data/generated/google/apis/games_management_v1management.rb +1 -1
  123. data/generated/google/apis/games_management_v1management/service.rb +1 -1
  124. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  125. data/generated/google/apis/iamcredentials_v1/classes.rb +26 -2
  126. data/generated/google/apis/networkmanagement_v1.rb +35 -0
  127. data/generated/google/apis/networkmanagement_v1/classes.rb +1868 -0
  128. data/generated/google/apis/networkmanagement_v1/representations.rb +661 -0
  129. data/generated/google/apis/networkmanagement_v1/service.rb +667 -0
  130. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  131. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  132. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  133. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  134. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  135. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  136. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  137. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  138. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  139. data/generated/google/apis/securitycenter_v1.rb +1 -1
  140. data/generated/google/apis/securitycenter_v1/classes.rb +27 -12
  141. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  142. data/generated/google/apis/securitycenter_v1beta1/classes.rb +27 -12
  143. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  144. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +27 -12
  145. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  146. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -31
  147. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -1
  148. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  149. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +0 -31
  150. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -1
  151. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  152. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -31
  153. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  154. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  155. data/generated/google/apis/servicenetworking_v1/classes.rb +379 -31
  156. data/generated/google/apis/servicenetworking_v1/representations.rb +209 -1
  157. data/generated/google/apis/servicenetworking_v1/service.rb +187 -0
  158. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  159. data/generated/google/apis/servicenetworking_v1beta/classes.rb +188 -31
  160. data/generated/google/apis/servicenetworking_v1beta/representations.rb +130 -1
  161. data/generated/google/apis/serviceusage_v1.rb +1 -1
  162. data/generated/google/apis/serviceusage_v1/classes.rb +0 -31
  163. data/generated/google/apis/serviceusage_v1/representations.rb +0 -1
  164. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  165. data/generated/google/apis/serviceusage_v1beta1/classes.rb +0 -31
  166. data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -1
  167. data/generated/google/apis/tasks_v1.rb +3 -3
  168. data/generated/google/apis/tasks_v1/classes.rb +26 -25
  169. data/generated/google/apis/tasks_v1/representations.rb +4 -8
  170. data/generated/google/apis/tasks_v1/service.rb +79 -128
  171. data/generated/google/apis/translate_v3.rb +1 -1
  172. data/generated/google/apis/verifiedaccess_v1.rb +3 -3
  173. data/generated/google/apis/verifiedaccess_v1/service.rb +2 -2
  174. data/generated/google/apis/websecurityscanner_v1.rb +2 -2
  175. data/generated/google/apis/websecurityscanner_v1/classes.rb +7 -5
  176. data/generated/google/apis/websecurityscanner_v1/service.rb +1 -1
  177. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  178. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +5 -4
  179. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  180. data/generated/google/apis/websecurityscanner_v1beta.rb +2 -2
  181. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +9 -7
  182. data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
  183. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  184. data/generated/google/apis/youtube_v3.rb +5 -5
  185. data/generated/google/apis/youtube_v3/classes.rb +1260 -1244
  186. data/generated/google/apis/youtube_v3/representations.rb +64 -192
  187. data/generated/google/apis/youtube_v3/service.rb +1833 -2125
  188. data/lib/google/apis/version.rb +1 -1
  189. metadata +19 -7
  190. data/generated/google/apis/pagespeedonline_v1/classes.rb +0 -542
  191. data/generated/google/apis/pagespeedonline_v1/representations.rb +0 -258
  192. data/generated/google/apis/pagespeedonline_v1/service.rb +0 -116
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-usage/
28
28
  module ServiceusageV1
29
29
  VERSION = 'V1'
30
- REVISION = '20200506'
30
+ REVISION = '20200516'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -441,36 +441,6 @@ module Google
441
441
  # @return [String]
442
442
  attr_accessor :protocol
443
443
 
444
- # Unimplemented. Do not use.
445
- # The new name the selected proto elements should be renamed to.
446
- # The package, the service and the method can all be renamed.
447
- # The backend server should implement the renamed proto. However, clients
448
- # should call the original method, and ESF routes the traffic to the renamed
449
- # method.
450
- # HTTP clients should call the URL mapped to the original method.
451
- # gRPC and Stubby clients should call the original method with package name.
452
- # For legacy reasons, ESF allows Stubby clients to call with the
453
- # short name (without the package name). However, for API Versioning(or
454
- # multiple methods mapped to the same short name), all Stubby clients must
455
- # call the method's full name with the package name, otherwise the first one
456
- # (selector) wins.
457
- # If this `rename_to` is specified with a trailing `*`, the `selector` must
458
- # be specified with a trailing `*` as well. The all element short names
459
- # matched by the `*` in the selector will be kept in the `rename_to`.
460
- # For example,
461
- # rename_rules:
462
- # - selector: |-
463
- # google.example.library.v1.*
464
- # rename_to: google.example.library.*
465
- # The selector matches `google.example.library.v1.Library.CreateShelf` and
466
- # `google.example.library.v1.Library.CreateBook`, they will be renamed to
467
- # `google.example.library.Library.CreateShelf` and
468
- # `google.example.library.Library.CreateBook`. It essentially renames the
469
- # proto package name section of the matched proto service and methods.
470
- # Corresponds to the JSON property `renameTo`
471
- # @return [String]
472
- attr_accessor :rename_to
473
-
474
444
  # Selects the methods to which this rule applies.
475
445
  # Refer to selector for syntax details.
476
446
  # Corresponds to the JSON property `selector`
@@ -491,7 +461,6 @@ module Google
491
461
  @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
492
462
  @path_translation = args[:path_translation] if args.key?(:path_translation)
493
463
  @protocol = args[:protocol] if args.key?(:protocol)
494
- @rename_to = args[:rename_to] if args.key?(:rename_to)
495
464
  @selector = args[:selector] if args.key?(:selector)
496
465
  end
497
466
  end
@@ -569,7 +569,6 @@ module Google
569
569
  property :operation_deadline, as: 'operationDeadline'
570
570
  property :path_translation, as: 'pathTranslation'
571
571
  property :protocol, as: 'protocol'
572
- property :rename_to, as: 'renameTo'
573
572
  property :selector, as: 'selector'
574
573
  end
575
574
  end
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-usage/
28
28
  module ServiceusageV1beta1
29
29
  VERSION = 'V1beta1'
30
- REVISION = '20200506'
30
+ REVISION = '20200516'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -441,36 +441,6 @@ module Google
441
441
  # @return [String]
442
442
  attr_accessor :protocol
443
443
 
444
- # Unimplemented. Do not use.
445
- # The new name the selected proto elements should be renamed to.
446
- # The package, the service and the method can all be renamed.
447
- # The backend server should implement the renamed proto. However, clients
448
- # should call the original method, and ESF routes the traffic to the renamed
449
- # method.
450
- # HTTP clients should call the URL mapped to the original method.
451
- # gRPC and Stubby clients should call the original method with package name.
452
- # For legacy reasons, ESF allows Stubby clients to call with the
453
- # short name (without the package name). However, for API Versioning(or
454
- # multiple methods mapped to the same short name), all Stubby clients must
455
- # call the method's full name with the package name, otherwise the first one
456
- # (selector) wins.
457
- # If this `rename_to` is specified with a trailing `*`, the `selector` must
458
- # be specified with a trailing `*` as well. The all element short names
459
- # matched by the `*` in the selector will be kept in the `rename_to`.
460
- # For example,
461
- # rename_rules:
462
- # - selector: |-
463
- # google.example.library.v1.*
464
- # rename_to: google.example.library.*
465
- # The selector matches `google.example.library.v1.Library.CreateShelf` and
466
- # `google.example.library.v1.Library.CreateBook`, they will be renamed to
467
- # `google.example.library.Library.CreateShelf` and
468
- # `google.example.library.Library.CreateBook`. It essentially renames the
469
- # proto package name section of the matched proto service and methods.
470
- # Corresponds to the JSON property `renameTo`
471
- # @return [String]
472
- attr_accessor :rename_to
473
-
474
444
  # Selects the methods to which this rule applies.
475
445
  # Refer to selector for syntax details.
476
446
  # Corresponds to the JSON property `selector`
@@ -491,7 +461,6 @@ module Google
491
461
  @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
492
462
  @path_translation = args[:path_translation] if args.key?(:path_translation)
493
463
  @protocol = args[:protocol] if args.key?(:protocol)
494
- @rename_to = args[:rename_to] if args.key?(:rename_to)
495
464
  @selector = args[:selector] if args.key?(:selector)
496
465
  end
497
466
  end
@@ -605,7 +605,6 @@ module Google
605
605
  property :operation_deadline, as: 'operationDeadline'
606
606
  property :path_translation, as: 'pathTranslation'
607
607
  property :protocol, as: 'protocol'
608
- property :rename_to, as: 'renameTo'
609
608
  property :selector, as: 'selector'
610
609
  end
611
610
  end
@@ -20,12 +20,12 @@ module Google
20
20
  module Apis
21
21
  # Tasks API
22
22
  #
23
- # Manages your tasks and task lists.
23
+ # The Google Tasks API lets you manage your tasks and task lists.
24
24
  #
25
- # @see https://developers.google.com/google-apps/tasks/firstapp
25
+ # @see
26
26
  module TasksV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200129'
28
+ REVISION = '20200516'
29
29
 
30
30
  # Create, edit, organize, and delete all your tasks
31
31
  AUTH_TASKS = 'https://www.googleapis.com/auth/tasks'
@@ -26,24 +26,24 @@ module Google
26
26
  class Task
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # Completion date of the task (as a RFC 3339 timestamp). This field is omitted
30
- # if the task has not been completed.
29
+ # Completion date of the task (as a RFC 3339 timestamp). This field is
30
+ # omitted if the task has not been completed.
31
31
  # Corresponds to the JSON property `completed`
32
- # @return [DateTime]
32
+ # @return [String]
33
33
  attr_accessor :completed
34
34
 
35
- # Flag indicating whether the task has been deleted. The default if False.
35
+ # Flag indicating whether the task has been deleted. The default is False.
36
36
  # Corresponds to the JSON property `deleted`
37
37
  # @return [Boolean]
38
38
  attr_accessor :deleted
39
39
  alias_method :deleted?, :deleted
40
40
 
41
41
  # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
42
- # records date information; the time portion of the timestamp is discarded when
43
- # setting the due date. It isn't possible to read or write the time that a task
44
- # is due via the API.
42
+ # records date information; the time portion of the timestamp is discarded
43
+ # when setting the due date. It isn't possible to read or write the time that
44
+ # a task is due via the API.
45
45
  # Corresponds to the JSON property `due`
46
- # @return [DateTime]
46
+ # @return [String]
47
47
  attr_accessor :due
48
48
 
49
49
  # ETag of the resource.
@@ -51,9 +51,9 @@ module Google
51
51
  # @return [String]
52
52
  attr_accessor :etag
53
53
 
54
- # Flag indicating whether the task is hidden. This is the case if the task had
55
- # been marked completed when the task list was last cleared. The default is
56
- # False. This field is read-only.
54
+ # Flag indicating whether the task is hidden. This is the case if the task
55
+ # had been marked completed when the task list was last cleared. The default
56
+ # is False. This field is read-only.
57
57
  # Corresponds to the JSON property `hidden`
58
58
  # @return [Boolean]
59
59
  attr_accessor :hidden
@@ -79,19 +79,19 @@ module Google
79
79
  # @return [String]
80
80
  attr_accessor :notes
81
81
 
82
- # Parent task identifier. This field is omitted if it is a top-level task. This
83
- # field is read-only. Use the "move" method to move the task under a different
84
- # parent or to the top level.
82
+ # Parent task identifier. This field is omitted if it is a top-level task.
83
+ # This field is read-only. Use the "move" method to move the task under a
84
+ # different parent or to the top level.
85
85
  # Corresponds to the JSON property `parent`
86
86
  # @return [String]
87
87
  attr_accessor :parent
88
88
 
89
- # String indicating the position of the task among its sibling tasks under the
90
- # same parent task or at the top level. If this string is greater than another
91
- # task's corresponding position string according to lexicographical ordering,
92
- # the task is positioned after the other task under the same parent task (or at
93
- # the top level). This field is read-only. Use the "move" method to move the
94
- # task to another position.
89
+ # String indicating the position of the task among its sibling tasks under
90
+ # the same parent task or at the top level. If this string is greater than
91
+ # another task's corresponding position string according to lexicographical
92
+ # ordering, the task is positioned after the other task under the same parent
93
+ # task (or at the top level). This field is read-only. Use the "move" method
94
+ # to move the task to another position.
95
95
  # Corresponds to the JSON property `position`
96
96
  # @return [String]
97
97
  attr_accessor :position
@@ -113,7 +113,7 @@ module Google
113
113
 
114
114
  # Last modification time of the task (as a RFC 3339 timestamp).
115
115
  # Corresponds to the JSON property `updated`
116
- # @return [DateTime]
116
+ # @return [String]
117
117
  attr_accessor :updated
118
118
 
119
119
  def initialize(**args)
@@ -143,7 +143,8 @@ module Google
143
143
  class Link
144
144
  include Google::Apis::Core::Hashable
145
145
 
146
- # The description. In HTML speak: Everything between <a> and </a>.
146
+ # The description. In HTML speak: Everything between &lt;a&gt; and
147
+ # &lt;/a&gt;.
147
148
  # Corresponds to the JSON property `description`
148
149
  # @return [String]
149
150
  attr_accessor :description
@@ -190,8 +191,8 @@ module Google
190
191
  # @return [String]
191
192
  attr_accessor :kind
192
193
 
193
- # URL pointing to this task list. Used to retrieve, update, or delete this task
194
- # list.
194
+ # URL pointing to this task list. Used to retrieve, update, or delete this
195
+ # task list.
195
196
  # Corresponds to the JSON property `selfLink`
196
197
  # @return [String]
197
198
  attr_accessor :self_link
@@ -203,7 +204,7 @@ module Google
203
204
 
204
205
  # Last modification time of the task list (as a RFC 3339 timestamp).
205
206
  # Corresponds to the JSON property `updated`
206
- # @return [DateTime]
207
+ # @return [String]
207
208
  attr_accessor :updated
208
209
 
209
210
  def initialize(**args)
@@ -55,11 +55,9 @@ module Google
55
55
  class Task
56
56
  # @private
57
57
  class Representation < Google::Apis::Core::JsonRepresentation
58
- property :completed, as: 'completed', type: DateTime
59
-
58
+ property :completed, as: 'completed'
60
59
  property :deleted, as: 'deleted'
61
- property :due, as: 'due', type: DateTime
62
-
60
+ property :due, as: 'due'
63
61
  property :etag, as: 'etag'
64
62
  property :hidden, as: 'hidden'
65
63
  property :id, as: 'id'
@@ -72,8 +70,7 @@ module Google
72
70
  property :self_link, as: 'selfLink'
73
71
  property :status, as: 'status'
74
72
  property :title, as: 'title'
75
- property :updated, as: 'updated', type: DateTime
76
-
73
+ property :updated, as: 'updated'
77
74
  end
78
75
 
79
76
  class Link
@@ -94,8 +91,7 @@ module Google
94
91
  property :kind, as: 'kind'
95
92
  property :self_link, as: 'selfLink'
96
93
  property :title, as: 'title'
97
- property :updated, as: 'updated', type: DateTime
98
-
94
+ property :updated, as: 'updated'
99
95
  end
100
96
  end
101
97
 
@@ -22,7 +22,7 @@ module Google
22
22
  module TasksV1
23
23
  # Tasks API
24
24
  #
25
- # Manages your tasks and task lists.
25
+ # The Google Tasks API lets you manage your tasks and task lists.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/tasks_v1'
@@ -30,7 +30,7 @@ module Google
30
30
  # Tasks = Google::Apis::TasksV1 # Alias the module
31
31
  # service = Tasks::TasksService.new
32
32
  #
33
- # @see https://developers.google.com/google-apps/tasks/firstapp
33
+ # @see
34
34
  class TasksService < Google::Apis::Core::BaseService
35
35
  # @return [String]
36
36
  # API key. Your API key identifies your project and provides you with API access,
@@ -38,16 +38,12 @@ module Google
38
38
  attr_accessor :key
39
39
 
40
40
  # @return [String]
41
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
43
  attr_accessor :quota_user
44
44
 
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
45
  def initialize
50
- super('https://www.googleapis.com/', 'tasks/v1/')
46
+ super('https://www.googleapis.com/', '')
51
47
  @batch_path = 'batch/tasks/v1'
52
48
  end
53
49
 
@@ -57,10 +53,8 @@ module Google
57
53
  # @param [String] fields
58
54
  # Selector specifying which fields to include in a partial response.
59
55
  # @param [String] quota_user
60
- # An opaque string that represents a user for quota purposes. Must not exceed 40
61
- # characters.
62
- # @param [String] user_ip
63
- # Deprecated. Please use quotaUser instead.
56
+ # Available to use for quota purposes for server-side applications. Can be any
57
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
58
  # @param [Google::Apis::RequestOptions] options
65
59
  # Request-specific options
66
60
  #
@@ -73,12 +67,11 @@ module Google
73
67
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
68
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
69
  # @raise [Google::Apis::AuthorizationError] Authorization is required
76
- def delete_tasklist(tasklist, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
77
- command = make_simple_command(:delete, 'users/@me/lists/{tasklist}', options)
70
+ def delete_tasklist(tasklist, fields: nil, quota_user: nil, options: nil, &block)
71
+ command = make_simple_command(:delete, 'tasks/v1/users/@me/lists/{tasklist}', options)
78
72
  command.params['tasklist'] = tasklist unless tasklist.nil?
79
73
  command.query['fields'] = fields unless fields.nil?
80
74
  command.query['quotaUser'] = quota_user unless quota_user.nil?
81
- command.query['userIp'] = user_ip unless user_ip.nil?
82
75
  execute_or_queue_command(command, &block)
83
76
  end
84
77
 
@@ -88,10 +81,8 @@ module Google
88
81
  # @param [String] fields
89
82
  # Selector specifying which fields to include in a partial response.
90
83
  # @param [String] quota_user
91
- # An opaque string that represents a user for quota purposes. Must not exceed 40
92
- # characters.
93
- # @param [String] user_ip
94
- # Deprecated. Please use quotaUser instead.
84
+ # Available to use for quota purposes for server-side applications. Can be any
85
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
86
  # @param [Google::Apis::RequestOptions] options
96
87
  # Request-specific options
97
88
  #
@@ -104,28 +95,23 @@ module Google
104
95
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
96
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
97
  # @raise [Google::Apis::AuthorizationError] Authorization is required
107
- def get_tasklist(tasklist, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
108
- command = make_simple_command(:get, 'users/@me/lists/{tasklist}', options)
98
+ def get_tasklist(tasklist, fields: nil, quota_user: nil, options: nil, &block)
99
+ command = make_simple_command(:get, 'tasks/v1/users/@me/lists/{tasklist}', options)
109
100
  command.response_representation = Google::Apis::TasksV1::TaskList::Representation
110
101
  command.response_class = Google::Apis::TasksV1::TaskList
111
102
  command.params['tasklist'] = tasklist unless tasklist.nil?
112
103
  command.query['fields'] = fields unless fields.nil?
113
104
  command.query['quotaUser'] = quota_user unless quota_user.nil?
114
- command.query['userIp'] = user_ip unless user_ip.nil?
115
105
  execute_or_queue_command(command, &block)
116
106
  end
117
107
 
118
108
  # Creates a new task list and adds it to the authenticated user's task lists.
119
- # Fails with HTTP code 403 or 429 after reaching the storage limit of 2,000
120
- # lists.
121
109
  # @param [Google::Apis::TasksV1::TaskList] task_list_object
122
110
  # @param [String] fields
123
111
  # Selector specifying which fields to include in a partial response.
124
112
  # @param [String] quota_user
125
- # An opaque string that represents a user for quota purposes. Must not exceed 40
126
- # characters.
127
- # @param [String] user_ip
128
- # Deprecated. Please use quotaUser instead.
113
+ # Available to use for quota purposes for server-side applications. Can be any
114
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
129
115
  # @param [Google::Apis::RequestOptions] options
130
116
  # Request-specific options
131
117
  #
@@ -138,31 +124,28 @@ module Google
138
124
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
139
125
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
140
126
  # @raise [Google::Apis::AuthorizationError] Authorization is required
141
- def insert_tasklist(task_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
142
- command = make_simple_command(:post, 'users/@me/lists', options)
127
+ def insert_tasklist(task_list_object = nil, fields: nil, quota_user: nil, options: nil, &block)
128
+ command = make_simple_command(:post, 'tasks/v1/users/@me/lists', options)
143
129
  command.request_representation = Google::Apis::TasksV1::TaskList::Representation
144
130
  command.request_object = task_list_object
145
131
  command.response_representation = Google::Apis::TasksV1::TaskList::Representation
146
132
  command.response_class = Google::Apis::TasksV1::TaskList
147
133
  command.query['fields'] = fields unless fields.nil?
148
134
  command.query['quotaUser'] = quota_user unless quota_user.nil?
149
- command.query['userIp'] = user_ip unless user_ip.nil?
150
135
  execute_or_queue_command(command, &block)
151
136
  end
152
137
 
153
138
  # Returns all the authenticated user's task lists.
154
139
  # @param [Fixnum] max_results
155
- # Maximum number of task lists returned on one page. Optional. The default is 20
156
- # (max allowed: 100).
140
+ # Maximum number of task lists returned on one page. Optional. The default is
141
+ # 20 (max allowed: 100).
157
142
  # @param [String] page_token
158
143
  # Token specifying the result page to return. Optional.
159
144
  # @param [String] fields
160
145
  # Selector specifying which fields to include in a partial response.
161
146
  # @param [String] quota_user
162
- # An opaque string that represents a user for quota purposes. Must not exceed 40
163
- # characters.
164
- # @param [String] user_ip
165
- # Deprecated. Please use quotaUser instead.
147
+ # Available to use for quota purposes for server-side applications. Can be any
148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
166
149
  # @param [Google::Apis::RequestOptions] options
167
150
  # Request-specific options
168
151
  #
@@ -175,15 +158,14 @@ module Google
175
158
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
176
159
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
177
160
  # @raise [Google::Apis::AuthorizationError] Authorization is required
178
- def list_tasklists(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
179
- command = make_simple_command(:get, 'users/@me/lists', options)
161
+ def list_tasklists(max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
162
+ command = make_simple_command(:get, 'tasks/v1/users/@me/lists', options)
180
163
  command.response_representation = Google::Apis::TasksV1::TaskLists::Representation
181
164
  command.response_class = Google::Apis::TasksV1::TaskLists
182
165
  command.query['maxResults'] = max_results unless max_results.nil?
183
166
  command.query['pageToken'] = page_token unless page_token.nil?
184
167
  command.query['fields'] = fields unless fields.nil?
185
168
  command.query['quotaUser'] = quota_user unless quota_user.nil?
186
- command.query['userIp'] = user_ip unless user_ip.nil?
187
169
  execute_or_queue_command(command, &block)
188
170
  end
189
171
 
@@ -195,10 +177,8 @@ module Google
195
177
  # @param [String] fields
196
178
  # Selector specifying which fields to include in a partial response.
197
179
  # @param [String] quota_user
198
- # An opaque string that represents a user for quota purposes. Must not exceed 40
199
- # characters.
200
- # @param [String] user_ip
201
- # Deprecated. Please use quotaUser instead.
180
+ # Available to use for quota purposes for server-side applications. Can be any
181
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
202
182
  # @param [Google::Apis::RequestOptions] options
203
183
  # Request-specific options
204
184
  #
@@ -211,8 +191,8 @@ module Google
211
191
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
212
192
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
213
193
  # @raise [Google::Apis::AuthorizationError] Authorization is required
214
- def patch_tasklist(tasklist, task_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
215
- command = make_simple_command(:patch, 'users/@me/lists/{tasklist}', options)
194
+ def patch_tasklist(tasklist, task_list_object = nil, fields: nil, quota_user: nil, options: nil, &block)
195
+ command = make_simple_command(:patch, 'tasks/v1/users/@me/lists/{tasklist}', options)
216
196
  command.request_representation = Google::Apis::TasksV1::TaskList::Representation
217
197
  command.request_object = task_list_object
218
198
  command.response_representation = Google::Apis::TasksV1::TaskList::Representation
@@ -220,7 +200,6 @@ module Google
220
200
  command.params['tasklist'] = tasklist unless tasklist.nil?
221
201
  command.query['fields'] = fields unless fields.nil?
222
202
  command.query['quotaUser'] = quota_user unless quota_user.nil?
223
- command.query['userIp'] = user_ip unless user_ip.nil?
224
203
  execute_or_queue_command(command, &block)
225
204
  end
226
205
 
@@ -231,10 +210,8 @@ module Google
231
210
  # @param [String] fields
232
211
  # Selector specifying which fields to include in a partial response.
233
212
  # @param [String] quota_user
234
- # An opaque string that represents a user for quota purposes. Must not exceed 40
235
- # characters.
236
- # @param [String] user_ip
237
- # Deprecated. Please use quotaUser instead.
213
+ # Available to use for quota purposes for server-side applications. Can be any
214
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
238
215
  # @param [Google::Apis::RequestOptions] options
239
216
  # Request-specific options
240
217
  #
@@ -247,8 +224,8 @@ module Google
247
224
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
248
225
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
249
226
  # @raise [Google::Apis::AuthorizationError] Authorization is required
250
- def update_tasklist(tasklist, task_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
251
- command = make_simple_command(:put, 'users/@me/lists/{tasklist}', options)
227
+ def update_tasklist(tasklist, task_list_object = nil, fields: nil, quota_user: nil, options: nil, &block)
228
+ command = make_simple_command(:put, 'tasks/v1/users/@me/lists/{tasklist}', options)
252
229
  command.request_representation = Google::Apis::TasksV1::TaskList::Representation
253
230
  command.request_object = task_list_object
254
231
  command.response_representation = Google::Apis::TasksV1::TaskList::Representation
@@ -256,7 +233,6 @@ module Google
256
233
  command.params['tasklist'] = tasklist unless tasklist.nil?
257
234
  command.query['fields'] = fields unless fields.nil?
258
235
  command.query['quotaUser'] = quota_user unless quota_user.nil?
259
- command.query['userIp'] = user_ip unless user_ip.nil?
260
236
  execute_or_queue_command(command, &block)
261
237
  end
262
238
 
@@ -268,10 +244,8 @@ module Google
268
244
  # @param [String] fields
269
245
  # Selector specifying which fields to include in a partial response.
270
246
  # @param [String] quota_user
271
- # An opaque string that represents a user for quota purposes. Must not exceed 40
272
- # characters.
273
- # @param [String] user_ip
274
- # Deprecated. Please use quotaUser instead.
247
+ # Available to use for quota purposes for server-side applications. Can be any
248
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
275
249
  # @param [Google::Apis::RequestOptions] options
276
250
  # Request-specific options
277
251
  #
@@ -284,12 +258,11 @@ module Google
284
258
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
285
259
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
286
260
  # @raise [Google::Apis::AuthorizationError] Authorization is required
287
- def clear_task(tasklist, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
288
- command = make_simple_command(:post, 'lists/{tasklist}/clear', options)
261
+ def clear_task(tasklist, fields: nil, quota_user: nil, options: nil, &block)
262
+ command = make_simple_command(:post, 'tasks/v1/lists/{tasklist}/clear', options)
289
263
  command.params['tasklist'] = tasklist unless tasklist.nil?
290
264
  command.query['fields'] = fields unless fields.nil?
291
265
  command.query['quotaUser'] = quota_user unless quota_user.nil?
292
- command.query['userIp'] = user_ip unless user_ip.nil?
293
266
  execute_or_queue_command(command, &block)
294
267
  end
295
268
 
@@ -301,10 +274,8 @@ module Google
301
274
  # @param [String] fields
302
275
  # Selector specifying which fields to include in a partial response.
303
276
  # @param [String] quota_user
304
- # An opaque string that represents a user for quota purposes. Must not exceed 40
305
- # characters.
306
- # @param [String] user_ip
307
- # Deprecated. Please use quotaUser instead.
277
+ # Available to use for quota purposes for server-side applications. Can be any
278
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
308
279
  # @param [Google::Apis::RequestOptions] options
309
280
  # Request-specific options
310
281
  #
@@ -317,13 +288,12 @@ module Google
317
288
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
318
289
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
319
290
  # @raise [Google::Apis::AuthorizationError] Authorization is required
320
- def delete_task(tasklist, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
321
- command = make_simple_command(:delete, 'lists/{tasklist}/tasks/{task}', options)
291
+ def delete_task(tasklist, task, fields: nil, quota_user: nil, options: nil, &block)
292
+ command = make_simple_command(:delete, 'tasks/v1/lists/{tasklist}/tasks/{task}', options)
322
293
  command.params['tasklist'] = tasklist unless tasklist.nil?
323
294
  command.params['task'] = task unless task.nil?
324
295
  command.query['fields'] = fields unless fields.nil?
325
296
  command.query['quotaUser'] = quota_user unless quota_user.nil?
326
- command.query['userIp'] = user_ip unless user_ip.nil?
327
297
  execute_or_queue_command(command, &block)
328
298
  end
329
299
 
@@ -335,10 +305,8 @@ module Google
335
305
  # @param [String] fields
336
306
  # Selector specifying which fields to include in a partial response.
337
307
  # @param [String] quota_user
338
- # An opaque string that represents a user for quota purposes. Must not exceed 40
339
- # characters.
340
- # @param [String] user_ip
341
- # Deprecated. Please use quotaUser instead.
308
+ # Available to use for quota purposes for server-side applications. Can be any
309
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
342
310
  # @param [Google::Apis::RequestOptions] options
343
311
  # Request-specific options
344
312
  #
@@ -351,20 +319,18 @@ module Google
351
319
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
352
320
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
353
321
  # @raise [Google::Apis::AuthorizationError] Authorization is required
354
- def get_task(tasklist, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
355
- command = make_simple_command(:get, 'lists/{tasklist}/tasks/{task}', options)
322
+ def get_task(tasklist, task, fields: nil, quota_user: nil, options: nil, &block)
323
+ command = make_simple_command(:get, 'tasks/v1/lists/{tasklist}/tasks/{task}', options)
356
324
  command.response_representation = Google::Apis::TasksV1::Task::Representation
357
325
  command.response_class = Google::Apis::TasksV1::Task
358
326
  command.params['tasklist'] = tasklist unless tasklist.nil?
359
327
  command.params['task'] = task unless task.nil?
360
328
  command.query['fields'] = fields unless fields.nil?
361
329
  command.query['quotaUser'] = quota_user unless quota_user.nil?
362
- command.query['userIp'] = user_ip unless user_ip.nil?
363
330
  execute_or_queue_command(command, &block)
364
331
  end
365
332
 
366
- # Creates a new task on the specified task list. Fails with HTTP code 403 or 429
367
- # after reaching the storage limit of 100,000 tasks per account.
333
+ # Creates a new task on the specified task list.
368
334
  # @param [String] tasklist
369
335
  # Task list identifier.
370
336
  # @param [Google::Apis::TasksV1::Task] task_object
@@ -372,15 +338,13 @@ module Google
372
338
  # Parent task identifier. If the task is created at the top level, this
373
339
  # parameter is omitted. Optional.
374
340
  # @param [String] previous
375
- # Previous sibling task identifier. If the task is created at the first position
376
- # among its siblings, this parameter is omitted. Optional.
341
+ # Previous sibling task identifier. If the task is created at the first
342
+ # position among its siblings, this parameter is omitted. Optional.
377
343
  # @param [String] fields
378
344
  # Selector specifying which fields to include in a partial response.
379
345
  # @param [String] quota_user
380
- # An opaque string that represents a user for quota purposes. Must not exceed 40
381
- # characters.
382
- # @param [String] user_ip
383
- # Deprecated. Please use quotaUser instead.
346
+ # Available to use for quota purposes for server-side applications. Can be any
347
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
384
348
  # @param [Google::Apis::RequestOptions] options
385
349
  # Request-specific options
386
350
  #
@@ -393,8 +357,8 @@ module Google
393
357
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
394
358
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
395
359
  # @raise [Google::Apis::AuthorizationError] Authorization is required
396
- def insert_task(tasklist, task_object = nil, parent: nil, previous: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
397
- command = make_simple_command(:post, 'lists/{tasklist}/tasks', options)
360
+ def insert_task(tasklist, task_object = nil, parent: nil, previous: nil, fields: nil, quota_user: nil, options: nil, &block)
361
+ command = make_simple_command(:post, 'tasks/v1/lists/{tasklist}/tasks', options)
398
362
  command.request_representation = Google::Apis::TasksV1::Task::Representation
399
363
  command.request_object = task_object
400
364
  command.response_representation = Google::Apis::TasksV1::Task::Representation
@@ -404,7 +368,6 @@ module Google
404
368
  command.query['previous'] = previous unless previous.nil?
405
369
  command.query['fields'] = fields unless fields.nil?
406
370
  command.query['quotaUser'] = quota_user unless quota_user.nil?
407
- command.query['userIp'] = user_ip unless user_ip.nil?
408
371
  execute_or_queue_command(command, &block)
409
372
  end
410
373
 
@@ -412,11 +375,11 @@ module Google
412
375
  # @param [String] tasklist
413
376
  # Task list identifier.
414
377
  # @param [String] completed_max
415
- # Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter
416
- # by. Optional. The default is not to filter by completion date.
378
+ # Upper bound for a task's completion date (as a RFC 3339 timestamp) to
379
+ # filter by. Optional. The default is not to filter by completion date.
417
380
  # @param [String] completed_min
418
- # Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter
419
- # by. Optional. The default is not to filter by completion date.
381
+ # Lower bound for a task's completion date (as a RFC 3339 timestamp) to
382
+ # filter by. Optional. The default is not to filter by completion date.
420
383
  # @param [String] due_max
421
384
  # Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by.
422
385
  # Optional. The default is not to filter by due date.
@@ -424,29 +387,28 @@ module Google
424
387
  # Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by.
425
388
  # Optional. The default is not to filter by due date.
426
389
  # @param [Fixnum] max_results
427
- # Maximum number of task lists returned on one page. Optional. The default is 20
428
- # (max allowed: 100).
390
+ # Maximum number of task lists returned on one page. Optional. The default is
391
+ # 20 (max allowed: 100).
429
392
  # @param [String] page_token
430
393
  # Token specifying the result page to return. Optional.
431
394
  # @param [Boolean] show_completed
432
- # Flag indicating whether completed tasks are returned in the result. Optional.
433
- # The default is True.
395
+ # Flag indicating whether completed tasks are returned in the result.
396
+ # Optional. The default is True.
434
397
  # @param [Boolean] show_deleted
435
398
  # Flag indicating whether deleted tasks are returned in the result. Optional.
436
399
  # The default is False.
437
400
  # @param [Boolean] show_hidden
438
- # Flag indicating whether hidden tasks are returned in the result. Optional. The
439
- # default is False.
401
+ # Flag indicating whether hidden tasks are returned in the result. Optional.
402
+ # The default is False.
440
403
  # @param [String] updated_min
441
- # Lower bound for a task's last modification time (as a RFC 3339 timestamp) to
442
- # filter by. Optional. The default is not to filter by last modification time.
404
+ # Lower bound for a task's last modification time (as a RFC 3339 timestamp)
405
+ # to filter by. Optional. The default is not to filter by last modification
406
+ # time.
443
407
  # @param [String] fields
444
408
  # Selector specifying which fields to include in a partial response.
445
409
  # @param [String] quota_user
446
- # An opaque string that represents a user for quota purposes. Must not exceed 40
447
- # characters.
448
- # @param [String] user_ip
449
- # Deprecated. Please use quotaUser instead.
410
+ # Available to use for quota purposes for server-side applications. Can be any
411
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
450
412
  # @param [Google::Apis::RequestOptions] options
451
413
  # Request-specific options
452
414
  #
@@ -459,8 +421,8 @@ module Google
459
421
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
460
422
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
461
423
  # @raise [Google::Apis::AuthorizationError] Authorization is required
462
- def list_tasks(tasklist, completed_max: nil, completed_min: nil, due_max: nil, due_min: nil, max_results: nil, page_token: nil, show_completed: nil, show_deleted: nil, show_hidden: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
463
- command = make_simple_command(:get, 'lists/{tasklist}/tasks', options)
424
+ def list_tasks(tasklist, completed_max: nil, completed_min: nil, due_max: nil, due_min: nil, max_results: nil, page_token: nil, show_completed: nil, show_deleted: nil, show_hidden: nil, updated_min: nil, fields: nil, quota_user: nil, options: nil, &block)
425
+ command = make_simple_command(:get, 'tasks/v1/lists/{tasklist}/tasks', options)
464
426
  command.response_representation = Google::Apis::TasksV1::Tasks::Representation
465
427
  command.response_class = Google::Apis::TasksV1::Tasks
466
428
  command.params['tasklist'] = tasklist unless tasklist.nil?
@@ -476,7 +438,6 @@ module Google
476
438
  command.query['updatedMin'] = updated_min unless updated_min.nil?
477
439
  command.query['fields'] = fields unless fields.nil?
478
440
  command.query['quotaUser'] = quota_user unless quota_user.nil?
479
- command.query['userIp'] = user_ip unless user_ip.nil?
480
441
  execute_or_queue_command(command, &block)
481
442
  end
482
443
 
@@ -496,10 +457,8 @@ module Google
496
457
  # @param [String] fields
497
458
  # Selector specifying which fields to include in a partial response.
498
459
  # @param [String] quota_user
499
- # An opaque string that represents a user for quota purposes. Must not exceed 40
500
- # characters.
501
- # @param [String] user_ip
502
- # Deprecated. Please use quotaUser instead.
460
+ # Available to use for quota purposes for server-side applications. Can be any
461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
503
462
  # @param [Google::Apis::RequestOptions] options
504
463
  # Request-specific options
505
464
  #
@@ -512,8 +471,8 @@ module Google
512
471
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
513
472
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
514
473
  # @raise [Google::Apis::AuthorizationError] Authorization is required
515
- def move_task(tasklist, task, parent: nil, previous: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
516
- command = make_simple_command(:post, 'lists/{tasklist}/tasks/{task}/move', options)
474
+ def move_task(tasklist, task, parent: nil, previous: nil, fields: nil, quota_user: nil, options: nil, &block)
475
+ command = make_simple_command(:post, 'tasks/v1/lists/{tasklist}/tasks/{task}/move', options)
517
476
  command.response_representation = Google::Apis::TasksV1::Task::Representation
518
477
  command.response_class = Google::Apis::TasksV1::Task
519
478
  command.params['tasklist'] = tasklist unless tasklist.nil?
@@ -522,7 +481,6 @@ module Google
522
481
  command.query['previous'] = previous unless previous.nil?
523
482
  command.query['fields'] = fields unless fields.nil?
524
483
  command.query['quotaUser'] = quota_user unless quota_user.nil?
525
- command.query['userIp'] = user_ip unless user_ip.nil?
526
484
  execute_or_queue_command(command, &block)
527
485
  end
528
486
 
@@ -535,10 +493,8 @@ module Google
535
493
  # @param [String] fields
536
494
  # Selector specifying which fields to include in a partial response.
537
495
  # @param [String] quota_user
538
- # An opaque string that represents a user for quota purposes. Must not exceed 40
539
- # characters.
540
- # @param [String] user_ip
541
- # Deprecated. Please use quotaUser instead.
496
+ # Available to use for quota purposes for server-side applications. Can be any
497
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
542
498
  # @param [Google::Apis::RequestOptions] options
543
499
  # Request-specific options
544
500
  #
@@ -551,8 +507,8 @@ module Google
551
507
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
552
508
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
553
509
  # @raise [Google::Apis::AuthorizationError] Authorization is required
554
- def patch_task(tasklist, task, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
555
- command = make_simple_command(:patch, 'lists/{tasklist}/tasks/{task}', options)
510
+ def patch_task(tasklist, task, task_object = nil, fields: nil, quota_user: nil, options: nil, &block)
511
+ command = make_simple_command(:patch, 'tasks/v1/lists/{tasklist}/tasks/{task}', options)
556
512
  command.request_representation = Google::Apis::TasksV1::Task::Representation
557
513
  command.request_object = task_object
558
514
  command.response_representation = Google::Apis::TasksV1::Task::Representation
@@ -561,7 +517,6 @@ module Google
561
517
  command.params['task'] = task unless task.nil?
562
518
  command.query['fields'] = fields unless fields.nil?
563
519
  command.query['quotaUser'] = quota_user unless quota_user.nil?
564
- command.query['userIp'] = user_ip unless user_ip.nil?
565
520
  execute_or_queue_command(command, &block)
566
521
  end
567
522
 
@@ -574,10 +529,8 @@ module Google
574
529
  # @param [String] fields
575
530
  # Selector specifying which fields to include in a partial response.
576
531
  # @param [String] quota_user
577
- # An opaque string that represents a user for quota purposes. Must not exceed 40
578
- # characters.
579
- # @param [String] user_ip
580
- # Deprecated. Please use quotaUser instead.
532
+ # Available to use for quota purposes for server-side applications. Can be any
533
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
581
534
  # @param [Google::Apis::RequestOptions] options
582
535
  # Request-specific options
583
536
  #
@@ -590,8 +543,8 @@ module Google
590
543
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
591
544
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
592
545
  # @raise [Google::Apis::AuthorizationError] Authorization is required
593
- def update_task(tasklist, task, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
594
- command = make_simple_command(:put, 'lists/{tasklist}/tasks/{task}', options)
546
+ def update_task(tasklist, task, task_object = nil, fields: nil, quota_user: nil, options: nil, &block)
547
+ command = make_simple_command(:put, 'tasks/v1/lists/{tasklist}/tasks/{task}', options)
595
548
  command.request_representation = Google::Apis::TasksV1::Task::Representation
596
549
  command.request_object = task_object
597
550
  command.response_representation = Google::Apis::TasksV1::Task::Representation
@@ -600,7 +553,6 @@ module Google
600
553
  command.params['task'] = task unless task.nil?
601
554
  command.query['fields'] = fields unless fields.nil?
602
555
  command.query['quotaUser'] = quota_user unless quota_user.nil?
603
- command.query['userIp'] = user_ip unless user_ip.nil?
604
556
  execute_or_queue_command(command, &block)
605
557
  end
606
558
 
@@ -609,7 +561,6 @@ module Google
609
561
  def apply_command_defaults(command)
610
562
  command.query['key'] = key unless key.nil?
611
563
  command.query['quotaUser'] = quota_user unless quota_user.nil?
612
- command.query['userIp'] = user_ip unless user_ip.nil?
613
564
  end
614
565
  end
615
566
  end