google-api-client 0.23.0 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +114 -0
  3. data/CODE_OF_CONDUCT.md +43 -0
  4. data/MIGRATING.md +1 -5
  5. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/service.rb +3 -3
  10. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  11. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  12. data/generated/google/apis/androidmanagement_v1/classes.rb +7 -3
  13. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  14. data/generated/google/apis/androidpublisher_v2/classes.rb +9 -0
  15. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  16. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  17. data/generated/google/apis/androidpublisher_v3/classes.rb +9 -0
  18. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  19. data/generated/google/apis/appengine_v1.rb +1 -1
  20. data/generated/google/apis/appengine_v1/classes.rb +34 -1
  21. data/generated/google/apis/appengine_v1/representations.rb +16 -0
  22. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  23. data/generated/google/apis/appengine_v1beta.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta/classes.rb +67 -3
  25. data/generated/google/apis/appengine_v1beta/representations.rb +32 -0
  26. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  27. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  28. data/generated/google/apis/appsmarket_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -4
  31. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  32. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -6
  33. data/generated/google/apis/chat_v1.rb +2 -2
  34. data/generated/google/apis/chat_v1/classes.rb +76 -0
  35. data/generated/google/apis/chat_v1/representations.rb +25 -0
  36. data/generated/google/apis/chat_v1/service.rb +1 -1
  37. data/generated/google/apis/classroom_v1.rb +1 -1
  38. data/generated/google/apis/classroom_v1/classes.rb +1 -1
  39. data/generated/google/apis/classroom_v1/service.rb +12 -12
  40. data/generated/google/apis/cloudbuild_v1.rb +2 -2
  41. data/generated/google/apis/cloudbuild_v1/classes.rb +21 -33
  42. data/generated/google/apis/cloudbuild_v1/service.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  44. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +31 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +3 -0
  47. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  48. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +31 -0
  49. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +3 -0
  50. data/generated/google/apis/cloudiot_v1.rb +1 -1
  51. data/generated/google/apis/cloudiot_v1/service.rb +0 -331
  52. data/generated/google/apis/cloudkms_v1.rb +1 -1
  53. data/generated/google/apis/cloudkms_v1/classes.rb +0 -1
  54. data/generated/google/apis/cloudkms_v1/service.rb +1 -1
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +66 -22
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +40 -0
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  61. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -3
  62. data/generated/google/apis/cloudresourcemanager_v2/service.rb +38 -6
  63. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  64. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +9 -5
  65. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +51 -19
  66. data/generated/google/apis/cloudshell_v1.rb +1 -1
  67. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  68. data/generated/google/apis/cloudtasks_v2beta2.rb +2 -3
  69. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +9 -12
  70. data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -11
  71. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  72. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  73. data/generated/google/apis/composer_v1beta1.rb +1 -1
  74. data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
  75. data/generated/google/apis/compute_alpha.rb +1 -1
  76. data/generated/google/apis/compute_alpha/classes.rb +49 -18
  77. data/generated/google/apis/compute_alpha/representations.rb +6 -1
  78. data/generated/google/apis/compute_beta.rb +1 -1
  79. data/generated/google/apis/compute_beta/classes.rb +1114 -103
  80. data/generated/google/apis/compute_beta/representations.rb +431 -0
  81. data/generated/google/apis/compute_beta/service.rb +605 -0
  82. data/generated/google/apis/compute_v1.rb +1 -1
  83. data/generated/google/apis/compute_v1/classes.rb +95 -1
  84. data/generated/google/apis/compute_v1/representations.rb +33 -0
  85. data/generated/google/apis/container_v1.rb +1 -1
  86. data/generated/google/apis/container_v1/classes.rb +1 -1
  87. data/generated/google/apis/container_v1/service.rb +1 -1
  88. data/generated/google/apis/container_v1beta1.rb +1 -1
  89. data/generated/google/apis/container_v1beta1/classes.rb +348 -2
  90. data/generated/google/apis/container_v1beta1/representations.rb +121 -0
  91. data/generated/google/apis/container_v1beta1/service.rb +114 -2
  92. data/generated/google/apis/content_v2.rb +1 -1
  93. data/generated/google/apis/content_v2/classes.rb +147 -0
  94. data/generated/google/apis/content_v2/representations.rb +65 -0
  95. data/generated/google/apis/content_v2/service.rb +81 -1
  96. data/generated/google/apis/content_v2sandbox.rb +1 -1
  97. data/generated/google/apis/content_v2sandbox/classes.rb +7 -0
  98. data/generated/google/apis/content_v2sandbox/representations.rb +1 -0
  99. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  100. data/generated/google/apis/dataflow_v1b3/classes.rb +262 -0
  101. data/generated/google/apis/dataflow_v1b3/representations.rb +130 -0
  102. data/generated/google/apis/dataproc_v1.rb +1 -1
  103. data/generated/google/apis/dataproc_v1/classes.rb +164 -1
  104. data/generated/google/apis/dataproc_v1/representations.rb +70 -0
  105. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  106. data/generated/google/apis/dataproc_v1beta2/classes.rb +28 -2
  107. data/generated/google/apis/dataproc_v1beta2/representations.rb +15 -0
  108. data/generated/google/apis/datastore_v1.rb +1 -1
  109. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  110. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  111. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  112. data/generated/google/apis/deploymentmanager_alpha/service.rb +1 -1
  113. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  114. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1 -1
  115. data/generated/google/apis/dialogflow_v2.rb +1 -1
  116. data/generated/google/apis/dialogflow_v2/classes.rb +40 -21
  117. data/generated/google/apis/dialogflow_v2/representations.rb +2 -0
  118. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  119. data/generated/google/apis/dialogflow_v2beta1/classes.rb +43 -28
  120. data/generated/google/apis/dialogflow_v2beta1/representations.rb +2 -0
  121. data/generated/google/apis/dialogflow_v2beta1/service.rb +74 -110
  122. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  123. data/generated/google/apis/dlp_v2.rb +1 -1
  124. data/generated/google/apis/dlp_v2/classes.rb +70 -26
  125. data/generated/google/apis/dlp_v2/representations.rb +3 -0
  126. data/generated/google/apis/dlp_v2/service.rb +78 -17
  127. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  128. data/generated/google/apis/firebaserules_v1.rb +1 -1
  129. data/generated/google/apis/firebaserules_v1/classes.rb +33 -0
  130. data/generated/google/apis/firebaserules_v1/representations.rb +17 -0
  131. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  132. data/generated/google/apis/firestore_v1beta1/classes.rb +137 -125
  133. data/generated/google/apis/firestore_v1beta1/representations.rb +39 -35
  134. data/generated/google/apis/firestore_v1beta1/service.rb +16 -16
  135. data/generated/google/apis/genomics_v1.rb +1 -1
  136. data/generated/google/apis/genomics_v1/classes.rb +0 -1
  137. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  138. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  139. data/generated/google/apis/genomics_v2alpha1/classes.rb +17 -3
  140. data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
  141. data/generated/google/apis/iam_v1.rb +1 -1
  142. data/generated/google/apis/{sqladmin_v1beta3.rb → iamcredentials_v1.rb} +9 -13
  143. data/generated/google/apis/iamcredentials_v1/classes.rb +272 -0
  144. data/generated/google/apis/iamcredentials_v1/representations.rb +139 -0
  145. data/generated/google/apis/iamcredentials_v1/service.rb +207 -0
  146. data/generated/google/apis/indexing_v3.rb +32 -0
  147. data/generated/google/apis/indexing_v3/classes.rb +115 -0
  148. data/generated/google/apis/indexing_v3/representations.rb +72 -0
  149. data/generated/google/apis/indexing_v3/service.rb +122 -0
  150. data/generated/google/apis/jobs_v2.rb +1 -1
  151. data/generated/google/apis/jobs_v2/classes.rb +73 -72
  152. data/generated/google/apis/jobs_v2/representations.rb +0 -1
  153. data/generated/google/apis/jobs_v2/service.rb +8 -7
  154. data/generated/google/apis/language_v1.rb +1 -1
  155. data/generated/google/apis/language_v1beta1.rb +1 -1
  156. data/generated/google/apis/language_v1beta2.rb +1 -1
  157. data/generated/google/apis/logging_v2.rb +1 -1
  158. data/generated/google/apis/logging_v2/classes.rb +42 -0
  159. data/generated/google/apis/logging_v2/representations.rb +17 -0
  160. data/generated/google/apis/logging_v2beta1.rb +1 -1
  161. data/generated/google/apis/logging_v2beta1/classes.rb +42 -0
  162. data/generated/google/apis/logging_v2beta1/representations.rb +17 -0
  163. data/generated/google/apis/manufacturers_v1.rb +1 -1
  164. data/generated/google/apis/ml_v1.rb +1 -1
  165. data/generated/google/apis/ml_v1/classes.rb +17 -0
  166. data/generated/google/apis/ml_v1/representations.rb +1 -0
  167. data/generated/google/apis/ml_v1/service.rb +4 -2
  168. data/generated/google/apis/monitoring_v3.rb +1 -1
  169. data/generated/google/apis/monitoring_v3/classes.rb +91 -7
  170. data/generated/google/apis/monitoring_v3/representations.rb +17 -0
  171. data/generated/google/apis/oslogin_v1.rb +1 -1
  172. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  173. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  174. data/generated/google/apis/pagespeedonline_v4.rb +1 -1
  175. data/generated/google/apis/partners_v2.rb +1 -1
  176. data/generated/google/apis/people_v1.rb +1 -1
  177. data/generated/google/apis/poly_v1.rb +1 -1
  178. data/generated/google/apis/poly_v1/classes.rb +12 -2
  179. data/generated/google/apis/poly_v1/representations.rb +1 -0
  180. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1.rb +1 -1
  182. data/generated/google/apis/pubsub_v1/classes.rb +57 -4
  183. data/generated/google/apis/pubsub_v1/representations.rb +19 -0
  184. data/generated/google/apis/pubsub_v1/service.rb +40 -2
  185. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  186. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  187. data/generated/google/apis/redis_v1beta1.rb +1 -1
  188. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  189. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  190. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  191. data/generated/google/apis/script_v1.rb +4 -1
  192. data/generated/google/apis/searchconsole_v1.rb +1 -1
  193. data/generated/google/apis/servicebroker_v1.rb +1 -1
  194. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  195. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  196. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -4
  197. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +42 -0
  198. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +17 -0
  199. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  200. data/generated/google/apis/servicecontrol_v1/classes.rb +284 -0
  201. data/generated/google/apis/servicecontrol_v1/representations.rb +78 -0
  202. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  203. data/generated/google/apis/servicemanagement_v1/classes.rb +42 -0
  204. data/generated/google/apis/servicemanagement_v1/representations.rb +17 -0
  205. data/generated/google/apis/{replicapool_v1beta2.rb → serviceusage_v1.rb} +13 -15
  206. data/generated/google/apis/serviceusage_v1/classes.rb +4020 -0
  207. data/generated/google/apis/serviceusage_v1/representations.rb +1239 -0
  208. data/generated/google/apis/serviceusage_v1/service.rb +423 -0
  209. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  210. data/generated/google/apis/serviceusage_v1beta1/classes.rb +102 -1
  211. data/generated/google/apis/serviceusage_v1beta1/representations.rb +55 -0
  212. data/generated/google/apis/serviceuser_v1.rb +1 -1
  213. data/generated/google/apis/serviceuser_v1/classes.rb +42 -0
  214. data/generated/google/apis/serviceuser_v1/representations.rb +17 -0
  215. data/generated/google/apis/serviceuser_v1/service.rb +2 -2
  216. data/generated/google/apis/sheets_v4.rb +1 -1
  217. data/generated/google/apis/slides_v1.rb +1 -1
  218. data/generated/google/apis/slides_v1/classes.rb +9 -3
  219. data/generated/google/apis/spanner_v1.rb +1 -1
  220. data/generated/google/apis/speech_v1.rb +2 -2
  221. data/generated/google/apis/speech_v1/service.rb +1 -1
  222. data/generated/google/apis/speech_v1beta1.rb +2 -2
  223. data/generated/google/apis/speech_v1beta1/service.rb +1 -1
  224. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  225. data/generated/google/apis/testing_v1.rb +1 -1
  226. data/generated/google/apis/testing_v1/classes.rb +1 -1
  227. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  228. data/generated/google/apis/texttospeech_v1beta1/classes.rb +8 -0
  229. data/generated/google/apis/texttospeech_v1beta1/representations.rb +1 -0
  230. data/generated/google/apis/videointelligence_v1.rb +1 -1
  231. data/generated/google/apis/videointelligence_v1/classes.rb +28 -28
  232. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  233. data/generated/google/apis/videointelligence_v1beta2/classes.rb +28 -28
  234. data/generated/google/apis/vision_v1.rb +1 -1
  235. data/generated/google/apis/vision_v1/classes.rb +4 -2
  236. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  237. data/generated/google/apis/vision_v1p1beta1/classes.rb +6 -3
  238. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  239. data/generated/google/apis/vision_v1p2beta1/classes.rb +4 -2
  240. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  241. data/generated/google/apis/youtube_analytics_v2.rb +1 -1
  242. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  243. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  244. data/lib/google/apis/version.rb +1 -1
  245. metadata +15 -10
  246. data/generated/google/apis/replicapool_v1beta2/classes.rb +0 -633
  247. data/generated/google/apis/replicapool_v1beta2/representations.rb +0 -264
  248. data/generated/google/apis/replicapool_v1beta2/service.rb +0 -583
  249. data/generated/google/apis/sqladmin_v1beta3/classes.rb +0 -1632
  250. data/generated/google/apis/sqladmin_v1beta3/representations.rb +0 -733
  251. data/generated/google/apis/sqladmin_v1beta3/service.rb +0 -995
@@ -22,7 +22,7 @@ module Google
22
22
  module ChatV1
23
23
  # Hangouts Chat API
24
24
  #
25
- # Enables bots to fetch information and perform actions in the new Hangouts Chat.
25
+ # Enables bots to fetch information and perform actions in Hangouts Chat.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/chat_v1'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/classroom/
26
26
  module ClassroomV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180421'
28
+ REVISION = '20180602'
29
29
 
30
30
  # View and manage announcements in Google Classroom
31
31
  AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
@@ -1624,7 +1624,7 @@ module Google
1624
1624
  end
1625
1625
 
1626
1626
  # An instruction to Classroom to send notifications from the `feed` to the
1627
- # provided `destination`.
1627
+ # provided destination.
1628
1628
  class Registration
1629
1629
  include Google::Apis::Core::Hashable
1630
1630
 
@@ -2052,31 +2052,31 @@ module Google
2052
2052
  end
2053
2053
 
2054
2054
  # Creates a `Registration`, causing Classroom to start sending notifications
2055
- # from the provided `feed` to the provided `destination`.
2055
+ # from the provided `feed` to the destination provided in `cloudPubSubTopic`.
2056
2056
  # Returns the created `Registration`. Currently, this will be the same as
2057
2057
  # the argument, but with server-assigned fields such as `expiry_time` and
2058
2058
  # `id` filled in.
2059
2059
  # Note that any value specified for the `expiry_time` or `id` fields will be
2060
2060
  # ignored.
2061
- # While Classroom may validate the `destination` and return errors on a best
2062
- # effort basis, it is the caller's responsibility to ensure that it exists
2063
- # and that Classroom has permission to publish to it.
2061
+ # While Classroom may validate the `cloudPubSubTopic` and return errors on a
2062
+ # best effort basis, it is the caller's responsibility to ensure that it
2063
+ # exists and that Classroom has permission to publish to it.
2064
2064
  # This method may return the following error codes:
2065
2065
  # * `PERMISSION_DENIED` if:
2066
2066
  # * the authenticated user does not have permission to receive
2067
2067
  # notifications from the requested field; or
2068
- # * the credential provided does not include the appropriate scope for the
2069
- # requested feed.
2068
+ # * the credential provided does not include the appropriate scope for
2069
+ # the requested feed.
2070
2070
  # * another access error is encountered.
2071
2071
  # * `INVALID_ARGUMENT` if:
2072
- # * no `destination` is specified, or the specified `destination` is not
2073
- # valid; or
2072
+ # * no `cloudPubsubTopic` is specified, or the specified
2073
+ # `cloudPubsubTopic` is not valid; or
2074
2074
  # * no `feed` is specified, or the specified `feed` is not valid.
2075
2075
  # * `NOT_FOUND` if:
2076
- # * the specified `feed` cannot be located, or the requesting user does not
2077
- # have permission to determine whether or not it exists; or
2078
- # * the specified `destination` cannot be located, or Classroom has not
2079
- # been granted permission to publish to it.
2076
+ # * the specified `feed` cannot be located, or the requesting user does
2077
+ # not have permission to determine whether or not it exists; or
2078
+ # * the specified `cloudPubsubTopic` cannot be located, or Classroom has
2079
+ # not been granted permission to publish to it.
2080
2080
  # @param [Google::Apis::ClassroomV1::Registration] registration_object
2081
2081
  # @param [String] fields
2082
2082
  # Selector specifying which fields to include in a partial response.
@@ -18,14 +18,14 @@ require 'google/apis/cloudbuild_v1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Cloud Container Builder API
21
+ # Cloud Container Builder
22
22
  #
23
23
  # Builds container images in the cloud.
24
24
  #
25
25
  # @see https://cloud.google.com/container-builder/docs/
26
26
  module CloudbuildV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180406'
28
+ REVISION = '20180621'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -142,29 +142,25 @@ module Google
142
142
  # @return [Google::Apis::CloudbuildV1::Artifacts]
143
143
  attr_accessor :artifacts
144
144
 
145
- # The ID of the `BuildTrigger` that triggered this build, if it was
146
- # triggered automatically.
147
- # @OutputOnly
145
+ # Output only. The ID of the `BuildTrigger` that triggered this build, if it
146
+ # was triggered automatically.
148
147
  # Corresponds to the JSON property `buildTriggerId`
149
148
  # @return [String]
150
149
  attr_accessor :build_trigger_id
151
150
 
152
- # Time at which the request to create the build was received.
153
- # @OutputOnly
151
+ # Output only. Time at which the request to create the build was received.
154
152
  # Corresponds to the JSON property `createTime`
155
153
  # @return [String]
156
154
  attr_accessor :create_time
157
155
 
158
- # Time at which execution of the build was finished.
156
+ # Output only. Time at which execution of the build was finished.
159
157
  # The difference between finish_time and start_time is the duration of the
160
158
  # build's execution.
161
- # @OutputOnly
162
159
  # Corresponds to the JSON property `finishTime`
163
160
  # @return [String]
164
161
  attr_accessor :finish_time
165
162
 
166
- # Unique identifier of the build.
167
- # @OutputOnly
163
+ # Output only. Unique identifier of the build.
168
164
  # Corresponds to the JSON property `id`
169
165
  # @return [String]
170
166
  attr_accessor :id
@@ -180,8 +176,7 @@ module Google
180
176
  # @return [Array<String>]
181
177
  attr_accessor :images
182
178
 
183
- # URL to logs for this build in Google Cloud Console.
184
- # @OutputOnly
179
+ # Output only. URL to logs for this build in Google Cloud Console.
185
180
  # Corresponds to the JSON property `logUrl`
186
181
  # @return [String]
187
182
  attr_accessor :log_url
@@ -200,8 +195,7 @@ module Google
200
195
  # @return [Google::Apis::CloudbuildV1::BuildOptions]
201
196
  attr_accessor :options
202
197
 
203
- # ID of the project.
204
- # @OutputOnly.
198
+ # Output only. ID of the project.
205
199
  # Corresponds to the JSON property `projectId`
206
200
  # @return [String]
207
201
  attr_accessor :project_id
@@ -227,20 +221,17 @@ module Google
227
221
  # @return [Google::Apis::CloudbuildV1::SourceProvenance]
228
222
  attr_accessor :source_provenance
229
223
 
230
- # Time at which execution of the build was started.
231
- # @OutputOnly
224
+ # Output only. Time at which execution of the build was started.
232
225
  # Corresponds to the JSON property `startTime`
233
226
  # @return [String]
234
227
  attr_accessor :start_time
235
228
 
236
- # Status of the build.
237
- # @OutputOnly
229
+ # Output only. Status of the build.
238
230
  # Corresponds to the JSON property `status`
239
231
  # @return [String]
240
232
  attr_accessor :status
241
233
 
242
- # Customer-readable message about the current status.
243
- # @OutputOnly
234
+ # Output only. Customer-readable message about the current status.
244
235
  # Corresponds to the JSON property `statusDetail`
245
236
  # @return [String]
246
237
  attr_accessor :status_detail
@@ -268,13 +259,13 @@ module Google
268
259
  # @return [String]
269
260
  attr_accessor :timeout
270
261
 
271
- # Stores timing information for phases of the build. Valid keys are:
262
+ # Output only. Stores timing information for phases of the build. Valid keys
263
+ # are:
272
264
  # * BUILD: time to execute all build steps
273
265
  # * PUSH: time to push all specified images.
274
266
  # * FETCHSOURCE: time to fetch source.
275
267
  # If the build does not specify source or images,
276
268
  # these keys will not be included.
277
- # @OutputOnly
278
269
  # Corresponds to the JSON property `timing`
279
270
  # @return [Hash<String,Google::Apis::CloudbuildV1::TimeSpan>]
280
271
  attr_accessor :timing
@@ -468,10 +459,9 @@ module Google
468
459
  # @return [Array<String>]
469
460
  attr_accessor :secret_env
470
461
 
471
- # Status of the build step. At this time, build step status is only updated
472
- # on build completion; step status is not updated in real-time as the build
473
- # progresses.
474
- # @OutputOnly
462
+ # Output only. Status of the build step. At this time, build step status is
463
+ # only updated on build completion; step status is not updated in real-time
464
+ # as the build progresses.
475
465
  # Corresponds to the JSON property `status`
476
466
  # @return [String]
477
467
  attr_accessor :status
@@ -551,8 +541,7 @@ module Google
551
541
  # @return [Google::Apis::CloudbuildV1::Build]
552
542
  attr_accessor :build
553
543
 
554
- # Time when the trigger was created.
555
- # @OutputOnly
544
+ # Output only. Time when the trigger was created.
556
545
  # Corresponds to the JSON property `createTime`
557
546
  # @return [String]
558
547
  attr_accessor :create_time
@@ -574,8 +563,7 @@ module Google
574
563
  # @return [String]
575
564
  attr_accessor :filename
576
565
 
577
- # Unique identifier of the trigger.
578
- # @OutputOnly
566
+ # Output only. Unique identifier of the trigger.
579
567
  # Corresponds to the JSON property `id`
580
568
  # @return [String]
581
569
  attr_accessor :id
@@ -1060,14 +1048,14 @@ module Google
1060
1048
  class SourceProvenance
1061
1049
  include Google::Apis::Core::Hashable
1062
1050
 
1063
- # Hash(es) of the build source, which can be used to verify that the original
1064
- # source integrity was maintained in the build. Note that `FileHashes` will
1065
- # only be populated if `BuildOptions` has requested a `SourceProvenanceHash`.
1051
+ # Output only. Hash(es) of the build source, which can be used to verify that
1052
+ # the originalsource integrity was maintained in the build. Note that
1053
+ # `FileHashes` willonly be populated if `BuildOptions` has requested a
1054
+ # `SourceProvenanceHash`.
1066
1055
  # The keys to this map are file paths used as build source and the values
1067
1056
  # contain the hash values for those files.
1068
1057
  # If the build source came in a single package such as a gzipped tarfile
1069
1058
  # (`.tar.gz`), the `FileHash` will be for the single path to that file.
1070
- # @OutputOnly
1071
1059
  # Corresponds to the JSON property `fileHashes`
1072
1060
  # @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
1073
1061
  attr_accessor :file_hashes
@@ -20,7 +20,7 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module CloudbuildV1
23
- # Cloud Container Builder API
23
+ # Cloud Container Builder
24
24
  #
25
25
  # Builds container images in the cloud.
26
26
  #
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/debugger
27
27
  module ClouddebuggerV2
28
28
  VERSION = 'V2'
29
- REVISION = '20180516'
29
+ REVISION = '20180604'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/functions
26
26
  module CloudfunctionsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180420'
28
+ REVISION = '20180702'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -100,6 +100,12 @@ module Google
100
100
  # @return [String]
101
101
  attr_accessor :entry_point
102
102
 
103
+ # **Beta Feature**
104
+ # Environment variables that shall be available during function execution.
105
+ # Corresponds to the JSON property `environmentVariables`
106
+ # @return [Hash<String,String>]
107
+ attr_accessor :environment_variables
108
+
103
109
  # Describes EventTrigger, used to request events be sent from another
104
110
  # service.
105
111
  # Corresponds to the JSON property `eventTrigger`
@@ -116,12 +122,34 @@ module Google
116
122
  # @return [Hash<String,String>]
117
123
  attr_accessor :labels
118
124
 
125
+ # The limit on the maximum number of function instances that may coexist at a
126
+ # given time. This feature is currently in alpha, available only for
127
+ # whitelisted users.
128
+ # Corresponds to the JSON property `maxInstances`
129
+ # @return [Fixnum]
130
+ attr_accessor :max_instances
131
+
119
132
  # A user-defined name of the function. Function names must be unique
120
133
  # globally and match pattern `projects/*/locations/*/functions/*`
121
134
  # Corresponds to the JSON property `name`
122
135
  # @return [String]
123
136
  attr_accessor :name
124
137
 
138
+ # The VPC Network that this cloud function can connect to. It can be
139
+ # either the fully-qualified URI, or the short name of the network resource.
140
+ # If the short network name is used, the network must belong to the same
141
+ # project. Otherwise, it must belong to a project within the same
142
+ # organization. The format of this field is either
143
+ # `projects/`project`/global/networks/`network`` or ``network``, where
144
+ # `project` is a project id where the network is defined, and `network` is
145
+ # the short name of the network.
146
+ # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
147
+ # more information on connecting Cloud projects.
148
+ # This feature is currently in alpha, available only for whitelisted users.
149
+ # Corresponds to the JSON property `network`
150
+ # @return [String]
151
+ attr_accessor :network
152
+
125
153
  # The runtime in which the function is going to run. If empty, defaults to
126
154
  # Node.js 6.
127
155
  # Corresponds to the JSON property `runtime`
@@ -184,10 +212,13 @@ module Google
184
212
  @available_memory_mb = args[:available_memory_mb] if args.key?(:available_memory_mb)
185
213
  @description = args[:description] if args.key?(:description)
186
214
  @entry_point = args[:entry_point] if args.key?(:entry_point)
215
+ @environment_variables = args[:environment_variables] if args.key?(:environment_variables)
187
216
  @event_trigger = args[:event_trigger] if args.key?(:event_trigger)
188
217
  @https_trigger = args[:https_trigger] if args.key?(:https_trigger)
189
218
  @labels = args[:labels] if args.key?(:labels)
219
+ @max_instances = args[:max_instances] if args.key?(:max_instances)
190
220
  @name = args[:name] if args.key?(:name)
221
+ @network = args[:network] if args.key?(:network)
191
222
  @runtime = args[:runtime] if args.key?(:runtime)
192
223
  @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
193
224
  @source_archive_url = args[:source_archive_url] if args.key?(:source_archive_url)
@@ -164,12 +164,15 @@ module Google
164
164
  property :available_memory_mb, as: 'availableMemoryMb'
165
165
  property :description, as: 'description'
166
166
  property :entry_point, as: 'entryPoint'
167
+ hash :environment_variables, as: 'environmentVariables'
167
168
  property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV1::EventTrigger, decorator: Google::Apis::CloudfunctionsV1::EventTrigger::Representation
168
169
 
169
170
  property :https_trigger, as: 'httpsTrigger', class: Google::Apis::CloudfunctionsV1::HttpsTrigger, decorator: Google::Apis::CloudfunctionsV1::HttpsTrigger::Representation
170
171
 
171
172
  hash :labels, as: 'labels'
173
+ property :max_instances, as: 'maxInstances'
172
174
  property :name, as: 'name'
175
+ property :network, as: 'network'
173
176
  property :runtime, as: 'runtime'
174
177
  property :service_account_email, as: 'serviceAccountEmail'
175
178
  property :source_archive_url, as: 'sourceArchiveUrl'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/functions
26
26
  module CloudfunctionsV1beta2
27
27
  VERSION = 'V1beta2'
28
- REVISION = '20180420'
28
+ REVISION = '20180622'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -95,6 +95,12 @@ module Google
95
95
  # @return [String]
96
96
  attr_accessor :entry_point
97
97
 
98
+ # **Beta Feature**
99
+ # Environment variables that shall be available during function execution.
100
+ # Corresponds to the JSON property `environmentVariables`
101
+ # @return [Hash<String,String>]
102
+ attr_accessor :environment_variables
103
+
98
104
  # Describes EventTrigger, used to request events be sent from another
99
105
  # service.
100
106
  # Corresponds to the JSON property `eventTrigger`
@@ -118,12 +124,34 @@ module Google
118
124
  # @return [String]
119
125
  attr_accessor :latest_operation
120
126
 
127
+ # The limit on the maximum number of function instances that may coexist at a
128
+ # given time. This feature is currently in alpha, available only for
129
+ # whitelisted users.
130
+ # Corresponds to the JSON property `maxInstances`
131
+ # @return [Fixnum]
132
+ attr_accessor :max_instances
133
+
121
134
  # A user-defined name of the function. Function names must be unique
122
135
  # globally and match pattern `projects/*/locations/*/functions/*`
123
136
  # Corresponds to the JSON property `name`
124
137
  # @return [String]
125
138
  attr_accessor :name
126
139
 
140
+ # The Google Compute Engine network that this function can connect to.
141
+ # Either the fully-qualified URI of the network resource, or
142
+ # the short name of the network must be specified. If the network belongs to
143
+ # another project, the URI of the resource must be specified
144
+ # e.g.,
145
+ # `https://www.googleapis.com/compute/v1/projects/`project`/global/networks/`
146
+ # network``
147
+ # or `my-network`.
148
+ # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
149
+ # more information on connecting Cloud projects.
150
+ # This feature is currently in alpha, available only for whitelisted users.
151
+ # Corresponds to the JSON property `network`
152
+ # @return [String]
153
+ attr_accessor :network
154
+
127
155
  # The runtime in which the function is going to run. If empty, defaults to
128
156
  # Node.js 6.
129
157
  # Corresponds to the JSON property `runtime`
@@ -201,11 +229,14 @@ module Google
201
229
  def update!(**args)
202
230
  @available_memory_mb = args[:available_memory_mb] if args.key?(:available_memory_mb)
203
231
  @entry_point = args[:entry_point] if args.key?(:entry_point)
232
+ @environment_variables = args[:environment_variables] if args.key?(:environment_variables)
204
233
  @event_trigger = args[:event_trigger] if args.key?(:event_trigger)
205
234
  @https_trigger = args[:https_trigger] if args.key?(:https_trigger)
206
235
  @labels = args[:labels] if args.key?(:labels)
207
236
  @latest_operation = args[:latest_operation] if args.key?(:latest_operation)
237
+ @max_instances = args[:max_instances] if args.key?(:max_instances)
208
238
  @name = args[:name] if args.key?(:name)
239
+ @network = args[:network] if args.key?(:network)
209
240
  @runtime = args[:runtime] if args.key?(:runtime)
210
241
  @service_account = args[:service_account] if args.key?(:service_account)
211
242
  @source_archive_url = args[:source_archive_url] if args.key?(:source_archive_url)
@@ -163,13 +163,16 @@ module Google
163
163
  class Representation < Google::Apis::Core::JsonRepresentation
164
164
  property :available_memory_mb, as: 'availableMemoryMb'
165
165
  property :entry_point, as: 'entryPoint'
166
+ hash :environment_variables, as: 'environmentVariables'
166
167
  property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV1beta2::EventTrigger, decorator: Google::Apis::CloudfunctionsV1beta2::EventTrigger::Representation
167
168
 
168
169
  property :https_trigger, as: 'httpsTrigger', class: Google::Apis::CloudfunctionsV1beta2::HttpsTrigger, decorator: Google::Apis::CloudfunctionsV1beta2::HttpsTrigger::Representation
169
170
 
170
171
  hash :labels, as: 'labels'
171
172
  property :latest_operation, as: 'latestOperation'
173
+ property :max_instances, as: 'maxInstances'
172
174
  property :name, as: 'name'
175
+ property :network, as: 'network'
173
176
  property :runtime, as: 'runtime'
174
177
  property :service_account, as: 'serviceAccount'
175
178
  property :source_archive_url, as: 'sourceArchiveUrl'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/iot
27
27
  module CloudiotV1
28
28
  VERSION = 'V1'
29
- REVISION = '20180516'
29
+ REVISION = '20180606'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -648,337 +648,6 @@ module Google
648
648
  command.query['quotaUser'] = quota_user unless quota_user.nil?
649
649
  execute_or_queue_command(command, &block)
650
650
  end
651
-
652
- # Gets the access control policy for a resource.
653
- # Returns an empty policy if the resource exists and does not have a policy
654
- # set.
655
- # @param [String] resource
656
- # REQUIRED: The resource for which the policy is being requested.
657
- # See the operation documentation for the appropriate value for this field.
658
- # @param [Google::Apis::CloudiotV1::GetIamPolicyRequest] get_iam_policy_request_object
659
- # @param [String] fields
660
- # Selector specifying which fields to include in a partial response.
661
- # @param [String] quota_user
662
- # Available to use for quota purposes for server-side applications. Can be any
663
- # arbitrary string assigned to a user, but should not exceed 40 characters.
664
- # @param [Google::Apis::RequestOptions] options
665
- # Request-specific options
666
- #
667
- # @yield [result, err] Result & error if block supplied
668
- # @yieldparam result [Google::Apis::CloudiotV1::Policy] parsed result object
669
- # @yieldparam err [StandardError] error object if request failed
670
- #
671
- # @return [Google::Apis::CloudiotV1::Policy]
672
- #
673
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
674
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
675
- # @raise [Google::Apis::AuthorizationError] Authorization is required
676
- def get_group_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
677
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
678
- command.request_representation = Google::Apis::CloudiotV1::GetIamPolicyRequest::Representation
679
- command.request_object = get_iam_policy_request_object
680
- command.response_representation = Google::Apis::CloudiotV1::Policy::Representation
681
- command.response_class = Google::Apis::CloudiotV1::Policy
682
- command.params['resource'] = resource unless resource.nil?
683
- command.query['fields'] = fields unless fields.nil?
684
- command.query['quotaUser'] = quota_user unless quota_user.nil?
685
- execute_or_queue_command(command, &block)
686
- end
687
-
688
- # Sets the access control policy on the specified resource. Replaces any
689
- # existing policy.
690
- # @param [String] resource
691
- # REQUIRED: The resource for which the policy is being specified.
692
- # See the operation documentation for the appropriate value for this field.
693
- # @param [Google::Apis::CloudiotV1::SetIamPolicyRequest] set_iam_policy_request_object
694
- # @param [String] fields
695
- # Selector specifying which fields to include in a partial response.
696
- # @param [String] quota_user
697
- # Available to use for quota purposes for server-side applications. Can be any
698
- # arbitrary string assigned to a user, but should not exceed 40 characters.
699
- # @param [Google::Apis::RequestOptions] options
700
- # Request-specific options
701
- #
702
- # @yield [result, err] Result & error if block supplied
703
- # @yieldparam result [Google::Apis::CloudiotV1::Policy] parsed result object
704
- # @yieldparam err [StandardError] error object if request failed
705
- #
706
- # @return [Google::Apis::CloudiotV1::Policy]
707
- #
708
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
709
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
710
- # @raise [Google::Apis::AuthorizationError] Authorization is required
711
- def set_group_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
712
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
713
- command.request_representation = Google::Apis::CloudiotV1::SetIamPolicyRequest::Representation
714
- command.request_object = set_iam_policy_request_object
715
- command.response_representation = Google::Apis::CloudiotV1::Policy::Representation
716
- command.response_class = Google::Apis::CloudiotV1::Policy
717
- command.params['resource'] = resource unless resource.nil?
718
- command.query['fields'] = fields unless fields.nil?
719
- command.query['quotaUser'] = quota_user unless quota_user.nil?
720
- execute_or_queue_command(command, &block)
721
- end
722
-
723
- # Returns permissions that a caller has on the specified resource.
724
- # If the resource does not exist, this will return an empty set of
725
- # permissions, not a NOT_FOUND error.
726
- # @param [String] resource
727
- # REQUIRED: The resource for which the policy detail is being requested.
728
- # See the operation documentation for the appropriate value for this field.
729
- # @param [Google::Apis::CloudiotV1::TestIamPermissionsRequest] test_iam_permissions_request_object
730
- # @param [String] fields
731
- # Selector specifying which fields to include in a partial response.
732
- # @param [String] quota_user
733
- # Available to use for quota purposes for server-side applications. Can be any
734
- # arbitrary string assigned to a user, but should not exceed 40 characters.
735
- # @param [Google::Apis::RequestOptions] options
736
- # Request-specific options
737
- #
738
- # @yield [result, err] Result & error if block supplied
739
- # @yieldparam result [Google::Apis::CloudiotV1::TestIamPermissionsResponse] parsed result object
740
- # @yieldparam err [StandardError] error object if request failed
741
- #
742
- # @return [Google::Apis::CloudiotV1::TestIamPermissionsResponse]
743
- #
744
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
745
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
746
- # @raise [Google::Apis::AuthorizationError] Authorization is required
747
- def test_group_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
748
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
749
- command.request_representation = Google::Apis::CloudiotV1::TestIamPermissionsRequest::Representation
750
- command.request_object = test_iam_permissions_request_object
751
- command.response_representation = Google::Apis::CloudiotV1::TestIamPermissionsResponse::Representation
752
- command.response_class = Google::Apis::CloudiotV1::TestIamPermissionsResponse
753
- command.params['resource'] = resource unless resource.nil?
754
- command.query['fields'] = fields unless fields.nil?
755
- command.query['quotaUser'] = quota_user unless quota_user.nil?
756
- execute_or_queue_command(command, &block)
757
- end
758
-
759
- # Deletes a device.
760
- # @param [String] name
761
- # The name of the device. For example,
762
- # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
763
- # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
764
- # @param [String] fields
765
- # Selector specifying which fields to include in a partial response.
766
- # @param [String] quota_user
767
- # Available to use for quota purposes for server-side applications. Can be any
768
- # arbitrary string assigned to a user, but should not exceed 40 characters.
769
- # @param [Google::Apis::RequestOptions] options
770
- # Request-specific options
771
- #
772
- # @yield [result, err] Result & error if block supplied
773
- # @yieldparam result [Google::Apis::CloudiotV1::Empty] parsed result object
774
- # @yieldparam err [StandardError] error object if request failed
775
- #
776
- # @return [Google::Apis::CloudiotV1::Empty]
777
- #
778
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
779
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
780
- # @raise [Google::Apis::AuthorizationError] Authorization is required
781
- def delete_project_location_registry_group_device(name, fields: nil, quota_user: nil, options: nil, &block)
782
- command = make_simple_command(:delete, 'v1/{+name}', options)
783
- command.response_representation = Google::Apis::CloudiotV1::Empty::Representation
784
- command.response_class = Google::Apis::CloudiotV1::Empty
785
- command.params['name'] = name unless name.nil?
786
- command.query['fields'] = fields unless fields.nil?
787
- command.query['quotaUser'] = quota_user unless quota_user.nil?
788
- execute_or_queue_command(command, &block)
789
- end
790
-
791
- # Gets details about a device.
792
- # @param [String] name
793
- # The name of the device. For example,
794
- # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
795
- # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
796
- # @param [String] field_mask
797
- # The fields of the `Device` resource to be returned in the response. If the
798
- # field mask is unset or empty, all fields are returned.
799
- # @param [String] fields
800
- # Selector specifying which fields to include in a partial response.
801
- # @param [String] quota_user
802
- # Available to use for quota purposes for server-side applications. Can be any
803
- # arbitrary string assigned to a user, but should not exceed 40 characters.
804
- # @param [Google::Apis::RequestOptions] options
805
- # Request-specific options
806
- #
807
- # @yield [result, err] Result & error if block supplied
808
- # @yieldparam result [Google::Apis::CloudiotV1::Device] parsed result object
809
- # @yieldparam err [StandardError] error object if request failed
810
- #
811
- # @return [Google::Apis::CloudiotV1::Device]
812
- #
813
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
814
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
815
- # @raise [Google::Apis::AuthorizationError] Authorization is required
816
- def get_project_location_registry_group_device(name, field_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
817
- command = make_simple_command(:get, 'v1/{+name}', options)
818
- command.response_representation = Google::Apis::CloudiotV1::Device::Representation
819
- command.response_class = Google::Apis::CloudiotV1::Device
820
- command.params['name'] = name unless name.nil?
821
- command.query['fieldMask'] = field_mask unless field_mask.nil?
822
- command.query['fields'] = fields unless fields.nil?
823
- command.query['quotaUser'] = quota_user unless quota_user.nil?
824
- execute_or_queue_command(command, &block)
825
- end
826
-
827
- # Modifies the configuration for the device, which is eventually sent from
828
- # the Cloud IoT Core servers. Returns the modified configuration version and
829
- # its metadata.
830
- # @param [String] name
831
- # The name of the device. For example,
832
- # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
833
- # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
834
- # @param [Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest] modify_cloud_to_device_config_request_object
835
- # @param [String] fields
836
- # Selector specifying which fields to include in a partial response.
837
- # @param [String] quota_user
838
- # Available to use for quota purposes for server-side applications. Can be any
839
- # arbitrary string assigned to a user, but should not exceed 40 characters.
840
- # @param [Google::Apis::RequestOptions] options
841
- # Request-specific options
842
- #
843
- # @yield [result, err] Result & error if block supplied
844
- # @yieldparam result [Google::Apis::CloudiotV1::DeviceConfig] parsed result object
845
- # @yieldparam err [StandardError] error object if request failed
846
- #
847
- # @return [Google::Apis::CloudiotV1::DeviceConfig]
848
- #
849
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
850
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
851
- # @raise [Google::Apis::AuthorizationError] Authorization is required
852
- def modify_project_location_registry_group_device_cloud_to_device_config(name, modify_cloud_to_device_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
853
- command = make_simple_command(:post, 'v1/{+name}:modifyCloudToDeviceConfig', options)
854
- command.request_representation = Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest::Representation
855
- command.request_object = modify_cloud_to_device_config_request_object
856
- command.response_representation = Google::Apis::CloudiotV1::DeviceConfig::Representation
857
- command.response_class = Google::Apis::CloudiotV1::DeviceConfig
858
- command.params['name'] = name unless name.nil?
859
- command.query['fields'] = fields unless fields.nil?
860
- command.query['quotaUser'] = quota_user unless quota_user.nil?
861
- execute_or_queue_command(command, &block)
862
- end
863
-
864
- # Updates a device.
865
- # @param [String] name
866
- # The resource path name. For example,
867
- # `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
868
- # `projects/p1/locations/us-central1/registries/registry0/devices/`num_id``.
869
- # When `name` is populated as a response from the service, it always ends
870
- # in the device numeric ID.
871
- # @param [Google::Apis::CloudiotV1::Device] device_object
872
- # @param [String] update_mask
873
- # Only updates the `device` fields indicated by this mask.
874
- # The field mask must not be empty, and it must not contain fields that
875
- # are immutable or only set by the server.
876
- # Mutable top-level fields: `credentials`, `blocked`, and `metadata`
877
- # @param [String] fields
878
- # Selector specifying which fields to include in a partial response.
879
- # @param [String] quota_user
880
- # Available to use for quota purposes for server-side applications. Can be any
881
- # arbitrary string assigned to a user, but should not exceed 40 characters.
882
- # @param [Google::Apis::RequestOptions] options
883
- # Request-specific options
884
- #
885
- # @yield [result, err] Result & error if block supplied
886
- # @yieldparam result [Google::Apis::CloudiotV1::Device] parsed result object
887
- # @yieldparam err [StandardError] error object if request failed
888
- #
889
- # @return [Google::Apis::CloudiotV1::Device]
890
- #
891
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
892
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
893
- # @raise [Google::Apis::AuthorizationError] Authorization is required
894
- def patch_project_location_registry_group_device(name, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
895
- command = make_simple_command(:patch, 'v1/{+name}', options)
896
- command.request_representation = Google::Apis::CloudiotV1::Device::Representation
897
- command.request_object = device_object
898
- command.response_representation = Google::Apis::CloudiotV1::Device::Representation
899
- command.response_class = Google::Apis::CloudiotV1::Device
900
- command.params['name'] = name unless name.nil?
901
- command.query['updateMask'] = update_mask unless update_mask.nil?
902
- command.query['fields'] = fields unless fields.nil?
903
- command.query['quotaUser'] = quota_user unless quota_user.nil?
904
- execute_or_queue_command(command, &block)
905
- end
906
-
907
- # Lists the last few versions of the device configuration in descending
908
- # order (i.e.: newest first).
909
- # @param [String] name
910
- # The name of the device. For example,
911
- # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
912
- # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
913
- # @param [Fixnum] num_versions
914
- # The number of versions to list. Versions are listed in decreasing order of
915
- # the version number. The maximum number of versions retained is 10. If this
916
- # value is zero, it will return all the versions available.
917
- # @param [String] fields
918
- # Selector specifying which fields to include in a partial response.
919
- # @param [String] quota_user
920
- # Available to use for quota purposes for server-side applications. Can be any
921
- # arbitrary string assigned to a user, but should not exceed 40 characters.
922
- # @param [Google::Apis::RequestOptions] options
923
- # Request-specific options
924
- #
925
- # @yield [result, err] Result & error if block supplied
926
- # @yieldparam result [Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse] parsed result object
927
- # @yieldparam err [StandardError] error object if request failed
928
- #
929
- # @return [Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse]
930
- #
931
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
932
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
933
- # @raise [Google::Apis::AuthorizationError] Authorization is required
934
- def list_project_location_registry_group_device_config_versions(name, num_versions: nil, fields: nil, quota_user: nil, options: nil, &block)
935
- command = make_simple_command(:get, 'v1/{+name}/configVersions', options)
936
- command.response_representation = Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse::Representation
937
- command.response_class = Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse
938
- command.params['name'] = name unless name.nil?
939
- command.query['numVersions'] = num_versions unless num_versions.nil?
940
- command.query['fields'] = fields unless fields.nil?
941
- command.query['quotaUser'] = quota_user unless quota_user.nil?
942
- execute_or_queue_command(command, &block)
943
- end
944
-
945
- # Lists the last few versions of the device state in descending order (i.e.:
946
- # newest first).
947
- # @param [String] name
948
- # The name of the device. For example,
949
- # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
950
- # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
951
- # @param [Fixnum] num_states
952
- # The number of states to list. States are listed in descending order of
953
- # update time. The maximum number of states retained is 10. If this
954
- # value is zero, it will return all the states available.
955
- # @param [String] fields
956
- # Selector specifying which fields to include in a partial response.
957
- # @param [String] quota_user
958
- # Available to use for quota purposes for server-side applications. Can be any
959
- # arbitrary string assigned to a user, but should not exceed 40 characters.
960
- # @param [Google::Apis::RequestOptions] options
961
- # Request-specific options
962
- #
963
- # @yield [result, err] Result & error if block supplied
964
- # @yieldparam result [Google::Apis::CloudiotV1::ListDeviceStatesResponse] parsed result object
965
- # @yieldparam err [StandardError] error object if request failed
966
- #
967
- # @return [Google::Apis::CloudiotV1::ListDeviceStatesResponse]
968
- #
969
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
970
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
971
- # @raise [Google::Apis::AuthorizationError] Authorization is required
972
- def list_project_location_registry_group_device_states(name, num_states: nil, fields: nil, quota_user: nil, options: nil, &block)
973
- command = make_simple_command(:get, 'v1/{+name}/states', options)
974
- command.response_representation = Google::Apis::CloudiotV1::ListDeviceStatesResponse::Representation
975
- command.response_class = Google::Apis::CloudiotV1::ListDeviceStatesResponse
976
- command.params['name'] = name unless name.nil?
977
- command.query['numStates'] = num_states unless num_states.nil?
978
- command.query['fields'] = fields unless fields.nil?
979
- command.query['quotaUser'] = quota_user unless quota_user.nil?
980
- execute_or_queue_command(command, &block)
981
- end
982
651
 
983
652
  protected
984
653