google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -49,14 +49,39 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
- # Lists service operations that match the specified filter in the request.
52
+ # Gets the latest state of a long-running operation. Clients can use this
53
+ # method to poll the operation result at intervals as recommended by the API
54
+ # service.
53
55
  # @param [String] name
54
- # Not used.
55
- # @param [String] page_token
56
- # The standard list page token.
57
- # @param [Fixnum] page_size
58
- # The maximum number of operations to return. If unspecified, defaults to
59
- # 50. The maximum value is 100.
56
+ # The name of the operation resource.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::ServicemanagementV1::Operation]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
75
+ command = make_simple_command(:get, 'v1/{+name}', options)
76
+ command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
77
+ command.response_class = Google::Apis::ServicemanagementV1::Operation
78
+ command.params['name'] = name unless name.nil?
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
84
+ # Lists service operations that match the specified filter in the request.
60
85
  # @param [String] filter
61
86
  # A string for filtering Operations.
62
87
  # The following filter fields are supported:
@@ -75,11 +100,18 @@ module Google
75
100
  # * `serviceName=`some-service`.googleapis.com AND status=done`
76
101
  # * `serviceName=`some-service`.googleapis.com AND (status=done OR startTime>="
77
102
  # 2017-02-01")`
78
- # @param [String] fields
79
- # Selector specifying which fields to include in a partial response.
103
+ # @param [String] page_token
104
+ # The standard list page token.
105
+ # @param [String] name
106
+ # Not used.
107
+ # @param [Fixnum] page_size
108
+ # The maximum number of operations to return. If unspecified, defaults to
109
+ # 50. The maximum value is 100.
80
110
  # @param [String] quota_user
81
111
  # Available to use for quota purposes for server-side applications. Can be any
82
112
  # arbitrary string assigned to a user, but should not exceed 40 characters.
113
+ # @param [String] fields
114
+ # Selector specifying which fields to include in a partial response.
83
115
  # @param [Google::Apis::RequestOptions] options
84
116
  # Request-specific options
85
117
  #
@@ -92,29 +124,68 @@ module Google
92
124
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
93
125
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
94
126
  # @raise [Google::Apis::AuthorizationError] Authorization is required
95
- def list_operations(name: nil, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
127
+ def list_operations(filter: nil, page_token: nil, name: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
96
128
  command = make_simple_command(:get, 'v1/operations', options)
97
129
  command.response_representation = Google::Apis::ServicemanagementV1::ListOperationsResponse::Representation
98
130
  command.response_class = Google::Apis::ServicemanagementV1::ListOperationsResponse
99
- command.query['name'] = name unless name.nil?
131
+ command.query['filter'] = filter unless filter.nil?
100
132
  command.query['pageToken'] = page_token unless page_token.nil?
133
+ command.query['name'] = name unless name.nil?
101
134
  command.query['pageSize'] = page_size unless page_size.nil?
102
- command.query['filter'] = filter unless filter.nil?
103
- command.query['fields'] = fields unless fields.nil?
104
135
  command.query['quotaUser'] = quota_user unless quota_user.nil?
136
+ command.query['fields'] = fields unless fields.nil?
105
137
  execute_or_queue_command(command, &block)
106
138
  end
107
139
 
108
- # Gets the latest state of a long-running operation. Clients can use this
109
- # method to poll the operation result at intervals as recommended by the API
110
- # service.
111
- # @param [String] name
112
- # The name of the operation resource.
140
+ # Gets the access control policy for a resource.
141
+ # Returns an empty policy if the resource exists and does not have a policy
142
+ # set.
143
+ # @param [String] resource
144
+ # REQUIRED: The resource for which the policy is being requested.
145
+ # See the operation documentation for the appropriate value for this field.
146
+ # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
147
+ # @param [String] quota_user
148
+ # Available to use for quota purposes for server-side applications. Can be any
149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
113
150
  # @param [String] fields
114
151
  # Selector specifying which fields to include in a partial response.
152
+ # @param [Google::Apis::RequestOptions] options
153
+ # Request-specific options
154
+ #
155
+ # @yield [result, err] Result & error if block supplied
156
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
157
+ # @yieldparam err [StandardError] error object if request failed
158
+ #
159
+ # @return [Google::Apis::ServicemanagementV1::Policy]
160
+ #
161
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
162
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
163
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
164
+ def get_service_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
165
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
166
+ command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
167
+ command.request_object = get_iam_policy_request_object
168
+ command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
169
+ command.response_class = Google::Apis::ServicemanagementV1::Policy
170
+ command.params['resource'] = resource unless resource.nil?
171
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
172
+ command.query['fields'] = fields unless fields.nil?
173
+ execute_or_queue_command(command, &block)
174
+ end
175
+
176
+ # Revives a previously deleted managed service. The method restores the
177
+ # service using the configuration at the time the service was deleted.
178
+ # The target service must exist and must have been deleted within the
179
+ # last 30 days.
180
+ # Operation<response: UndeleteServiceResponse>
181
+ # @param [String] service_name
182
+ # The name of the service. See the [overview](/service-management/overview)
183
+ # for naming requirements. For example: `example.googleapis.com`.
115
184
  # @param [String] quota_user
116
185
  # Available to use for quota purposes for server-side applications. Can be any
117
186
  # arbitrary string assigned to a user, but should not exceed 40 characters.
187
+ # @param [String] fields
188
+ # Selector specifying which fields to include in a partial response.
118
189
  # @param [Google::Apis::RequestOptions] options
119
190
  # Request-specific options
120
191
  #
@@ -127,13 +198,13 @@ module Google
127
198
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
128
199
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
129
200
  # @raise [Google::Apis::AuthorizationError] Authorization is required
130
- def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
131
- command = make_simple_command(:get, 'v1/{+name}', options)
201
+ def undelete_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
202
+ command = make_simple_command(:post, 'v1/services/{serviceName}:undelete', options)
132
203
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
133
204
  command.response_class = Google::Apis::ServicemanagementV1::Operation
134
- command.params['name'] = name unless name.nil?
135
- command.query['fields'] = fields unless fields.nil?
205
+ command.params['serviceName'] = service_name unless service_name.nil?
136
206
  command.query['quotaUser'] = quota_user unless quota_user.nil?
207
+ command.query['fields'] = fields unless fields.nil?
137
208
  execute_or_queue_command(command, &block)
138
209
  end
139
210
 
@@ -144,6 +215,10 @@ module Google
144
215
  # **BETA:** If the caller specifies the `consumer_id`, it returns only the
145
216
  # services enabled on the consumer. The `consumer_id` must have the format
146
217
  # of "project:`PROJECT-ID`".
218
+ # @param [Fixnum] page_size
219
+ # Requested size of the next page of data.
220
+ # @param [String] producer_project_id
221
+ # Include services produced by the specified project.
147
222
  # @param [String] consumer_id
148
223
  # Include services consumed by the specified consumer.
149
224
  # The Google Service Management implementation accepts the following
@@ -152,15 +227,11 @@ module Google
152
227
  # @param [String] page_token
153
228
  # Token identifying which result to start with; returned by a previous list
154
229
  # call.
155
- # @param [Fixnum] page_size
156
- # Requested size of the next page of data.
157
- # @param [String] producer_project_id
158
- # Include services produced by the specified project.
159
- # @param [String] fields
160
- # Selector specifying which fields to include in a partial response.
161
230
  # @param [String] quota_user
162
231
  # Available to use for quota purposes for server-side applications. Can be any
163
232
  # arbitrary string assigned to a user, but should not exceed 40 characters.
233
+ # @param [String] fields
234
+ # Selector specifying which fields to include in a partial response.
164
235
  # @param [Google::Apis::RequestOptions] options
165
236
  # Request-specific options
166
237
  #
@@ -173,16 +244,16 @@ module Google
173
244
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
174
245
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
175
246
  # @raise [Google::Apis::AuthorizationError] Authorization is required
176
- def list_services(consumer_id: nil, page_token: nil, page_size: nil, producer_project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
247
+ def list_services(page_size: nil, producer_project_id: nil, consumer_id: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
177
248
  command = make_simple_command(:get, 'v1/services', options)
178
249
  command.response_representation = Google::Apis::ServicemanagementV1::ListServicesResponse::Representation
179
250
  command.response_class = Google::Apis::ServicemanagementV1::ListServicesResponse
180
- command.query['consumerId'] = consumer_id unless consumer_id.nil?
181
- command.query['pageToken'] = page_token unless page_token.nil?
182
251
  command.query['pageSize'] = page_size unless page_size.nil?
183
252
  command.query['producerProjectId'] = producer_project_id unless producer_project_id.nil?
184
- command.query['fields'] = fields unless fields.nil?
253
+ command.query['consumerId'] = consumer_id unless consumer_id.nil?
254
+ command.query['pageToken'] = page_token unless page_token.nil?
185
255
  command.query['quotaUser'] = quota_user unless quota_user.nil?
256
+ command.query['fields'] = fields unless fields.nil?
186
257
  execute_or_queue_command(command, &block)
187
258
  end
188
259
 
@@ -190,11 +261,11 @@ module Google
190
261
  # Please note one producer project can own no more than 20 services.
191
262
  # Operation<response: ManagedService>
192
263
  # @param [Google::Apis::ServicemanagementV1::ManagedService] managed_service_object
193
- # @param [String] fields
194
- # Selector specifying which fields to include in a partial response.
195
264
  # @param [String] quota_user
196
265
  # Available to use for quota purposes for server-side applications. Can be any
197
266
  # arbitrary string assigned to a user, but should not exceed 40 characters.
267
+ # @param [String] fields
268
+ # Selector specifying which fields to include in a partial response.
198
269
  # @param [Google::Apis::RequestOptions] options
199
270
  # Request-specific options
200
271
  #
@@ -207,14 +278,14 @@ module Google
207
278
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
208
279
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
209
280
  # @raise [Google::Apis::AuthorizationError] Authorization is required
210
- def create_service(managed_service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
281
+ def create_service(managed_service_object = nil, quota_user: nil, fields: nil, options: nil, &block)
211
282
  command = make_simple_command(:post, 'v1/services', options)
212
283
  command.request_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation
213
284
  command.request_object = managed_service_object
214
285
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
215
286
  command.response_class = Google::Apis::ServicemanagementV1::Operation
216
- command.query['fields'] = fields unless fields.nil?
217
287
  command.query['quotaUser'] = quota_user unless quota_user.nil?
288
+ command.query['fields'] = fields unless fields.nil?
218
289
  execute_or_queue_command(command, &block)
219
290
  end
220
291
 
@@ -229,11 +300,11 @@ module Google
229
300
  # will compare GenerateConfigReportRequest.new_value with the last pushed
230
301
  # service configuration.
231
302
  # @param [Google::Apis::ServicemanagementV1::GenerateConfigReportRequest] generate_config_report_request_object
232
- # @param [String] fields
233
- # Selector specifying which fields to include in a partial response.
234
303
  # @param [String] quota_user
235
304
  # Available to use for quota purposes for server-side applications. Can be any
236
305
  # arbitrary string assigned to a user, but should not exceed 40 characters.
306
+ # @param [String] fields
307
+ # Selector specifying which fields to include in a partial response.
237
308
  # @param [Google::Apis::RequestOptions] options
238
309
  # Request-specific options
239
310
  #
@@ -246,14 +317,14 @@ module Google
246
317
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
247
318
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
248
319
  # @raise [Google::Apis::AuthorizationError] Authorization is required
249
- def generate_service_config_report(generate_config_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
320
+ def generate_service_config_report(generate_config_report_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
250
321
  command = make_simple_command(:post, 'v1/services:generateConfigReport', options)
251
322
  command.request_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportRequest::Representation
252
323
  command.request_object = generate_config_report_request_object
253
324
  command.response_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse::Representation
254
325
  command.response_class = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse
255
- command.query['fields'] = fields unless fields.nil?
256
326
  command.query['quotaUser'] = quota_user unless quota_user.nil?
327
+ command.query['fields'] = fields unless fields.nil?
257
328
  execute_or_queue_command(command, &block)
258
329
  end
259
330
 
@@ -262,11 +333,11 @@ module Google
262
333
  # @param [String] service_name
263
334
  # The name of the service. See the `ServiceManager` overview for naming
264
335
  # requirements. For example: `example.googleapis.com`.
265
- # @param [String] fields
266
- # Selector specifying which fields to include in a partial response.
267
336
  # @param [String] quota_user
268
337
  # Available to use for quota purposes for server-side applications. Can be any
269
338
  # arbitrary string assigned to a user, but should not exceed 40 characters.
339
+ # @param [String] fields
340
+ # Selector specifying which fields to include in a partial response.
270
341
  # @param [Google::Apis::RequestOptions] options
271
342
  # Request-specific options
272
343
  #
@@ -279,13 +350,13 @@ module Google
279
350
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280
351
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
352
  # @raise [Google::Apis::AuthorizationError] Authorization is required
282
- def get_service(service_name, fields: nil, quota_user: nil, options: nil, &block)
353
+ def get_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
283
354
  command = make_simple_command(:get, 'v1/services/{serviceName}', options)
284
355
  command.response_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation
285
356
  command.response_class = Google::Apis::ServicemanagementV1::ManagedService
286
357
  command.params['serviceName'] = service_name unless service_name.nil?
287
- command.query['fields'] = fields unless fields.nil?
288
358
  command.query['quotaUser'] = quota_user unless quota_user.nil?
359
+ command.query['fields'] = fields unless fields.nil?
289
360
  execute_or_queue_command(command, &block)
290
361
  end
291
362
 
@@ -299,11 +370,11 @@ module Google
299
370
  # REQUIRED: The resource for which the policy detail is being requested.
300
371
  # See the operation documentation for the appropriate value for this field.
301
372
  # @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
302
- # @param [String] fields
303
- # Selector specifying which fields to include in a partial response.
304
373
  # @param [String] quota_user
305
374
  # Available to use for quota purposes for server-side applications. Can be any
306
375
  # arbitrary string assigned to a user, but should not exceed 40 characters.
376
+ # @param [String] fields
377
+ # Selector specifying which fields to include in a partial response.
307
378
  # @param [Google::Apis::RequestOptions] options
308
379
  # Request-specific options
309
380
  #
@@ -316,15 +387,15 @@ module Google
316
387
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
317
388
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
318
389
  # @raise [Google::Apis::AuthorizationError] Authorization is required
319
- def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
390
+ def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
320
391
  command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
321
392
  command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
322
393
  command.request_object = test_iam_permissions_request_object
323
394
  command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
324
395
  command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
325
396
  command.params['resource'] = resource unless resource.nil?
326
- command.query['fields'] = fields unless fields.nil?
327
397
  command.query['quotaUser'] = quota_user unless quota_user.nil?
398
+ command.query['fields'] = fields unless fields.nil?
328
399
  execute_or_queue_command(command, &block)
329
400
  end
330
401
 
@@ -337,11 +408,11 @@ module Google
337
408
  # @param [String] view
338
409
  # Specifies which parts of the Service Config should be returned in the
339
410
  # response.
340
- # @param [String] fields
341
- # Selector specifying which fields to include in a partial response.
342
411
  # @param [String] quota_user
343
412
  # Available to use for quota purposes for server-side applications. Can be any
344
413
  # arbitrary string assigned to a user, but should not exceed 40 characters.
414
+ # @param [String] fields
415
+ # Selector specifying which fields to include in a partial response.
345
416
  # @param [Google::Apis::RequestOptions] options
346
417
  # Request-specific options
347
418
  #
@@ -354,32 +425,31 @@ module Google
354
425
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
355
426
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
356
427
  # @raise [Google::Apis::AuthorizationError] Authorization is required
357
- def get_service_configuration(service_name, config_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
428
+ def get_service_configuration(service_name, config_id: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
358
429
  command = make_simple_command(:get, 'v1/services/{serviceName}/config', options)
359
430
  command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
360
431
  command.response_class = Google::Apis::ServicemanagementV1::Service
361
432
  command.params['serviceName'] = service_name unless service_name.nil?
362
433
  command.query['configId'] = config_id unless config_id.nil?
363
434
  command.query['view'] = view unless view.nil?
364
- command.query['fields'] = fields unless fields.nil?
365
435
  command.query['quotaUser'] = quota_user unless quota_user.nil?
436
+ command.query['fields'] = fields unless fields.nil?
366
437
  execute_or_queue_command(command, &block)
367
438
  end
368
439
 
369
- # Enables a service for a project, so it can be used
370
- # for the project. See
371
- # [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
372
- # more information.
373
- # Operation<response: EnableServiceResponse>
440
+ # Deletes a managed service. This method will change the service to the
441
+ # `Soft-Delete` state for 30 days. Within this period, service producers may
442
+ # call UndeleteService to restore the service.
443
+ # After 30 days, the service will be permanently deleted.
444
+ # Operation<response: google.protobuf.Empty>
374
445
  # @param [String] service_name
375
- # Name of the service to enable. Specifying an unknown service name will
376
- # cause the request to fail.
377
- # @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
378
- # @param [String] fields
379
- # Selector specifying which fields to include in a partial response.
446
+ # The name of the service. See the [overview](/service-management/overview)
447
+ # for naming requirements. For example: `example.googleapis.com`.
380
448
  # @param [String] quota_user
381
449
  # Available to use for quota purposes for server-side applications. Can be any
382
450
  # arbitrary string assigned to a user, but should not exceed 40 characters.
451
+ # @param [String] fields
452
+ # Selector specifying which fields to include in a partial response.
383
453
  # @param [Google::Apis::RequestOptions] options
384
454
  # Request-specific options
385
455
  #
@@ -392,31 +462,30 @@ module Google
392
462
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
393
463
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
394
464
  # @raise [Google::Apis::AuthorizationError] Authorization is required
395
- def enable_service(service_name, enable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
396
- command = make_simple_command(:post, 'v1/services/{serviceName}:enable', options)
397
- command.request_representation = Google::Apis::ServicemanagementV1::EnableServiceRequest::Representation
398
- command.request_object = enable_service_request_object
465
+ def delete_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
466
+ command = make_simple_command(:delete, 'v1/services/{serviceName}', options)
399
467
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
400
468
  command.response_class = Google::Apis::ServicemanagementV1::Operation
401
469
  command.params['serviceName'] = service_name unless service_name.nil?
402
- command.query['fields'] = fields unless fields.nil?
403
470
  command.query['quotaUser'] = quota_user unless quota_user.nil?
471
+ command.query['fields'] = fields unless fields.nil?
404
472
  execute_or_queue_command(command, &block)
405
473
  end
406
474
 
407
- # Deletes a managed service. This method will change the service to the
408
- # `Soft-Delete` state for 30 days. Within this period, service producers may
409
- # call UndeleteService to restore the service.
410
- # After 30 days, the service will be permanently deleted.
411
- # Operation<response: google.protobuf.Empty>
475
+ # Enables a service for a project, so it can be used
476
+ # for the project. See
477
+ # [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
478
+ # more information.
479
+ # Operation<response: EnableServiceResponse>
412
480
  # @param [String] service_name
413
- # The name of the service. See the [overview](/service-management/overview)
414
- # for naming requirements. For example: `example.googleapis.com`.
415
- # @param [String] fields
416
- # Selector specifying which fields to include in a partial response.
481
+ # Name of the service to enable. Specifying an unknown service name will
482
+ # cause the request to fail.
483
+ # @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
417
484
  # @param [String] quota_user
418
485
  # Available to use for quota purposes for server-side applications. Can be any
419
486
  # arbitrary string assigned to a user, but should not exceed 40 characters.
487
+ # @param [String] fields
488
+ # Selector specifying which fields to include in a partial response.
420
489
  # @param [Google::Apis::RequestOptions] options
421
490
  # Request-specific options
422
491
  #
@@ -429,13 +498,15 @@ module Google
429
498
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
430
499
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
431
500
  # @raise [Google::Apis::AuthorizationError] Authorization is required
432
- def delete_service(service_name, fields: nil, quota_user: nil, options: nil, &block)
433
- command = make_simple_command(:delete, 'v1/services/{serviceName}', options)
501
+ def enable_service(service_name, enable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
502
+ command = make_simple_command(:post, 'v1/services/{serviceName}:enable', options)
503
+ command.request_representation = Google::Apis::ServicemanagementV1::EnableServiceRequest::Representation
504
+ command.request_object = enable_service_request_object
434
505
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
435
506
  command.response_class = Google::Apis::ServicemanagementV1::Operation
436
507
  command.params['serviceName'] = service_name unless service_name.nil?
437
- command.query['fields'] = fields unless fields.nil?
438
508
  command.query['quotaUser'] = quota_user unless quota_user.nil?
509
+ command.query['fields'] = fields unless fields.nil?
439
510
  execute_or_queue_command(command, &block)
440
511
  end
441
512
 
@@ -445,11 +516,11 @@ module Google
445
516
  # REQUIRED: The resource for which the policy is being specified.
446
517
  # See the operation documentation for the appropriate value for this field.
447
518
  # @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
448
- # @param [String] fields
449
- # Selector specifying which fields to include in a partial response.
450
519
  # @param [String] quota_user
451
520
  # Available to use for quota purposes for server-side applications. Can be any
452
521
  # arbitrary string assigned to a user, but should not exceed 40 characters.
522
+ # @param [String] fields
523
+ # Selector specifying which fields to include in a partial response.
453
524
  # @param [Google::Apis::RequestOptions] options
454
525
  # Request-specific options
455
526
  #
@@ -462,15 +533,15 @@ module Google
462
533
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
463
534
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
464
535
  # @raise [Google::Apis::AuthorizationError] Authorization is required
465
- def set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
536
+ def set_service_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
466
537
  command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
467
538
  command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation
468
539
  command.request_object = set_iam_policy_request_object
469
540
  command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
470
541
  command.response_class = Google::Apis::ServicemanagementV1::Policy
471
542
  command.params['resource'] = resource unless resource.nil?
472
- command.query['fields'] = fields unless fields.nil?
473
543
  command.query['quotaUser'] = quota_user unless quota_user.nil?
544
+ command.query['fields'] = fields unless fields.nil?
474
545
  execute_or_queue_command(command, &block)
475
546
  end
476
547
 
@@ -482,11 +553,11 @@ module Google
482
553
  # Name of the service to disable. Specifying an unknown service name
483
554
  # will cause the request to fail.
484
555
  # @param [Google::Apis::ServicemanagementV1::DisableServiceRequest] disable_service_request_object
485
- # @param [String] fields
486
- # Selector specifying which fields to include in a partial response.
487
556
  # @param [String] quota_user
488
557
  # Available to use for quota purposes for server-side applications. Can be any
489
558
  # arbitrary string assigned to a user, but should not exceed 40 characters.
559
+ # @param [String] fields
560
+ # Selector specifying which fields to include in a partial response.
490
561
  # @param [Google::Apis::RequestOptions] options
491
562
  # Request-specific options
492
563
  #
@@ -499,86 +570,54 @@ module Google
499
570
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
500
571
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
501
572
  # @raise [Google::Apis::AuthorizationError] Authorization is required
502
- def disable_service(service_name, disable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
573
+ def disable_service(service_name, disable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
503
574
  command = make_simple_command(:post, 'v1/services/{serviceName}:disable', options)
504
575
  command.request_representation = Google::Apis::ServicemanagementV1::DisableServiceRequest::Representation
505
576
  command.request_object = disable_service_request_object
506
577
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
507
578
  command.response_class = Google::Apis::ServicemanagementV1::Operation
508
579
  command.params['serviceName'] = service_name unless service_name.nil?
509
- command.query['fields'] = fields unless fields.nil?
510
580
  command.query['quotaUser'] = quota_user unless quota_user.nil?
581
+ command.query['fields'] = fields unless fields.nil?
511
582
  execute_or_queue_command(command, &block)
512
583
  end
513
584
 
514
- # Gets the access control policy for a resource.
515
- # Returns an empty policy if the resource exists and does not have a policy
516
- # set.
585
+ # Returns permissions that a caller has on the specified resource.
586
+ # If the resource does not exist, this will return an empty set of
587
+ # permissions, not a NOT_FOUND error.
588
+ # Note: This operation is designed to be used for building permission-aware
589
+ # UIs and command-line tools, not for authorization checking. This operation
590
+ # may "fail open" without warning.
517
591
  # @param [String] resource
518
- # REQUIRED: The resource for which the policy is being requested.
592
+ # REQUIRED: The resource for which the policy detail is being requested.
519
593
  # See the operation documentation for the appropriate value for this field.
520
- # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
521
- # @param [String] fields
522
- # Selector specifying which fields to include in a partial response.
594
+ # @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
523
595
  # @param [String] quota_user
524
596
  # Available to use for quota purposes for server-side applications. Can be any
525
597
  # arbitrary string assigned to a user, but should not exceed 40 characters.
526
- # @param [Google::Apis::RequestOptions] options
527
- # Request-specific options
528
- #
529
- # @yield [result, err] Result & error if block supplied
530
- # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
531
- # @yieldparam err [StandardError] error object if request failed
532
- #
533
- # @return [Google::Apis::ServicemanagementV1::Policy]
534
- #
535
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
536
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
537
- # @raise [Google::Apis::AuthorizationError] Authorization is required
538
- def get_service_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
539
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
540
- command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
541
- command.request_object = get_iam_policy_request_object
542
- command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
543
- command.response_class = Google::Apis::ServicemanagementV1::Policy
544
- command.params['resource'] = resource unless resource.nil?
545
- command.query['fields'] = fields unless fields.nil?
546
- command.query['quotaUser'] = quota_user unless quota_user.nil?
547
- execute_or_queue_command(command, &block)
548
- end
549
-
550
- # Revives a previously deleted managed service. The method restores the
551
- # service using the configuration at the time the service was deleted.
552
- # The target service must exist and must have been deleted within the
553
- # last 30 days.
554
- # Operation<response: UndeleteServiceResponse>
555
- # @param [String] service_name
556
- # The name of the service. See the [overview](/service-management/overview)
557
- # for naming requirements. For example: `example.googleapis.com`.
558
598
  # @param [String] fields
559
599
  # Selector specifying which fields to include in a partial response.
560
- # @param [String] quota_user
561
- # Available to use for quota purposes for server-side applications. Can be any
562
- # arbitrary string assigned to a user, but should not exceed 40 characters.
563
600
  # @param [Google::Apis::RequestOptions] options
564
601
  # Request-specific options
565
602
  #
566
603
  # @yield [result, err] Result & error if block supplied
567
- # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
604
+ # @yieldparam result [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse] parsed result object
568
605
  # @yieldparam err [StandardError] error object if request failed
569
606
  #
570
- # @return [Google::Apis::ServicemanagementV1::Operation]
607
+ # @return [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse]
571
608
  #
572
609
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
573
610
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
574
611
  # @raise [Google::Apis::AuthorizationError] Authorization is required
575
- def undelete_service(service_name, fields: nil, quota_user: nil, options: nil, &block)
576
- command = make_simple_command(:post, 'v1/services/{serviceName}:undelete', options)
577
- command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
578
- command.response_class = Google::Apis::ServicemanagementV1::Operation
579
- command.params['serviceName'] = service_name unless service_name.nil?
580
- command.query['fields'] = fields unless fields.nil?
612
+ def test_consumer_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
613
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
614
+ command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
615
+ command.request_object = test_iam_permissions_request_object
616
+ command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
617
+ command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
618
+ command.params['resource'] = resource unless resource.nil?
581
619
  command.query['quotaUser'] = quota_user unless quota_user.nil?
620
+ command.query['fields'] = fields unless fields.nil?
582
621
  execute_or_queue_command(command, &block)
583
622
  end
584
623
 
@@ -589,11 +628,11 @@ module Google
589
628
  # REQUIRED: The resource for which the policy is being requested.
590
629
  # See the operation documentation for the appropriate value for this field.
591
630
  # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
592
- # @param [String] fields
593
- # Selector specifying which fields to include in a partial response.
594
631
  # @param [String] quota_user
595
632
  # Available to use for quota purposes for server-side applications. Can be any
596
633
  # arbitrary string assigned to a user, but should not exceed 40 characters.
634
+ # @param [String] fields
635
+ # Selector specifying which fields to include in a partial response.
597
636
  # @param [Google::Apis::RequestOptions] options
598
637
  # Request-specific options
599
638
  #
@@ -606,15 +645,15 @@ module Google
606
645
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
607
646
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
608
647
  # @raise [Google::Apis::AuthorizationError] Authorization is required
609
- def get_consumer_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
648
+ def get_consumer_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
610
649
  command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
611
650
  command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
612
651
  command.request_object = get_iam_policy_request_object
613
652
  command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
614
653
  command.response_class = Google::Apis::ServicemanagementV1::Policy
615
654
  command.params['resource'] = resource unless resource.nil?
616
- command.query['fields'] = fields unless fields.nil?
617
655
  command.query['quotaUser'] = quota_user unless quota_user.nil?
656
+ command.query['fields'] = fields unless fields.nil?
618
657
  execute_or_queue_command(command, &block)
619
658
  end
620
659
 
@@ -624,11 +663,11 @@ module Google
624
663
  # REQUIRED: The resource for which the policy is being specified.
625
664
  # See the operation documentation for the appropriate value for this field.
626
665
  # @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
627
- # @param [String] fields
628
- # Selector specifying which fields to include in a partial response.
629
666
  # @param [String] quota_user
630
667
  # Available to use for quota purposes for server-side applications. Can be any
631
668
  # arbitrary string assigned to a user, but should not exceed 40 characters.
669
+ # @param [String] fields
670
+ # Selector specifying which fields to include in a partial response.
632
671
  # @param [Google::Apis::RequestOptions] options
633
672
  # Request-specific options
634
673
  #
@@ -641,54 +680,49 @@ module Google
641
680
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
642
681
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
643
682
  # @raise [Google::Apis::AuthorizationError] Authorization is required
644
- def set_consumer_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
683
+ def set_consumer_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
645
684
  command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
646
685
  command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation
647
686
  command.request_object = set_iam_policy_request_object
648
687
  command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
649
688
  command.response_class = Google::Apis::ServicemanagementV1::Policy
650
689
  command.params['resource'] = resource unless resource.nil?
651
- command.query['fields'] = fields unless fields.nil?
652
690
  command.query['quotaUser'] = quota_user unless quota_user.nil?
691
+ command.query['fields'] = fields unless fields.nil?
653
692
  execute_or_queue_command(command, &block)
654
693
  end
655
694
 
656
- # Returns permissions that a caller has on the specified resource.
657
- # If the resource does not exist, this will return an empty set of
658
- # permissions, not a NOT_FOUND error.
659
- # Note: This operation is designed to be used for building permission-aware
660
- # UIs and command-line tools, not for authorization checking. This operation
661
- # may "fail open" without warning.
662
- # @param [String] resource
663
- # REQUIRED: The resource for which the policy detail is being requested.
664
- # See the operation documentation for the appropriate value for this field.
665
- # @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
666
- # @param [String] fields
667
- # Selector specifying which fields to include in a partial response.
695
+ # Gets a service configuration rollout.
696
+ # @param [String] service_name
697
+ # The name of the service. See the [overview](/service-management/overview)
698
+ # for naming requirements. For example: `example.googleapis.com`.
699
+ # @param [String] rollout_id
700
+ # The id of the rollout resource.
668
701
  # @param [String] quota_user
669
702
  # Available to use for quota purposes for server-side applications. Can be any
670
703
  # arbitrary string assigned to a user, but should not exceed 40 characters.
704
+ # @param [String] fields
705
+ # Selector specifying which fields to include in a partial response.
671
706
  # @param [Google::Apis::RequestOptions] options
672
707
  # Request-specific options
673
708
  #
674
709
  # @yield [result, err] Result & error if block supplied
675
- # @yieldparam result [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse] parsed result object
710
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Rollout] parsed result object
676
711
  # @yieldparam err [StandardError] error object if request failed
677
712
  #
678
- # @return [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse]
713
+ # @return [Google::Apis::ServicemanagementV1::Rollout]
679
714
  #
680
715
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
716
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
717
  # @raise [Google::Apis::AuthorizationError] Authorization is required
683
- def test_consumer_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
684
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
685
- command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
686
- command.request_object = test_iam_permissions_request_object
687
- command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
688
- command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
689
- command.params['resource'] = resource unless resource.nil?
690
- command.query['fields'] = fields unless fields.nil?
718
+ def get_service_rollout(service_name, rollout_id, quota_user: nil, fields: nil, options: nil, &block)
719
+ command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts/{rolloutId}', options)
720
+ command.response_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
721
+ command.response_class = Google::Apis::ServicemanagementV1::Rollout
722
+ command.params['serviceName'] = service_name unless service_name.nil?
723
+ command.params['rolloutId'] = rollout_id unless rollout_id.nil?
691
724
  command.query['quotaUser'] = quota_user unless quota_user.nil?
725
+ command.query['fields'] = fields unless fields.nil?
692
726
  execute_or_queue_command(command, &block)
693
727
  end
694
728
 
@@ -697,8 +731,6 @@ module Google
697
731
  # @param [String] service_name
698
732
  # The name of the service. See the [overview](/service-management/overview)
699
733
  # for naming requirements. For example: `example.googleapis.com`.
700
- # @param [Fixnum] page_size
701
- # The max number of items to include in the response list.
702
734
  # @param [String] filter
703
735
  # Use `filter` to return subset of rollouts.
704
736
  # The following filters are supported:
@@ -710,11 +742,13 @@ module Google
710
742
  # or 'FAILED', use filter='status=CANCELLED OR status=FAILED'
711
743
  # @param [String] page_token
712
744
  # The token of the page to retrieve.
713
- # @param [String] fields
714
- # Selector specifying which fields to include in a partial response.
745
+ # @param [Fixnum] page_size
746
+ # The max number of items to include in the response list.
715
747
  # @param [String] quota_user
716
748
  # Available to use for quota purposes for server-side applications. Can be any
717
749
  # arbitrary string assigned to a user, but should not exceed 40 characters.
750
+ # @param [String] fields
751
+ # Selector specifying which fields to include in a partial response.
718
752
  # @param [Google::Apis::RequestOptions] options
719
753
  # Request-specific options
720
754
  #
@@ -727,50 +761,16 @@ module Google
727
761
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
728
762
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
729
763
  # @raise [Google::Apis::AuthorizationError] Authorization is required
730
- def list_service_rollouts(service_name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
764
+ def list_service_rollouts(service_name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
731
765
  command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts', options)
732
766
  command.response_representation = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse::Representation
733
767
  command.response_class = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse
734
768
  command.params['serviceName'] = service_name unless service_name.nil?
735
- command.query['pageSize'] = page_size unless page_size.nil?
736
769
  command.query['filter'] = filter unless filter.nil?
737
770
  command.query['pageToken'] = page_token unless page_token.nil?
738
- command.query['fields'] = fields unless fields.nil?
771
+ command.query['pageSize'] = page_size unless page_size.nil?
739
772
  command.query['quotaUser'] = quota_user unless quota_user.nil?
740
- execute_or_queue_command(command, &block)
741
- end
742
-
743
- # Gets a service configuration rollout.
744
- # @param [String] service_name
745
- # The name of the service. See the [overview](/service-management/overview)
746
- # for naming requirements. For example: `example.googleapis.com`.
747
- # @param [String] rollout_id
748
- # The id of the rollout resource.
749
- # @param [String] fields
750
- # Selector specifying which fields to include in a partial response.
751
- # @param [String] quota_user
752
- # Available to use for quota purposes for server-side applications. Can be any
753
- # arbitrary string assigned to a user, but should not exceed 40 characters.
754
- # @param [Google::Apis::RequestOptions] options
755
- # Request-specific options
756
- #
757
- # @yield [result, err] Result & error if block supplied
758
- # @yieldparam result [Google::Apis::ServicemanagementV1::Rollout] parsed result object
759
- # @yieldparam err [StandardError] error object if request failed
760
- #
761
- # @return [Google::Apis::ServicemanagementV1::Rollout]
762
- #
763
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
764
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
765
- # @raise [Google::Apis::AuthorizationError] Authorization is required
766
- def get_service_rollout(service_name, rollout_id, fields: nil, quota_user: nil, options: nil, &block)
767
- command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts/{rolloutId}', options)
768
- command.response_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
769
- command.response_class = Google::Apis::ServicemanagementV1::Rollout
770
- command.params['serviceName'] = service_name unless service_name.nil?
771
- command.params['rolloutId'] = rollout_id unless rollout_id.nil?
772
773
  command.query['fields'] = fields unless fields.nil?
773
- command.query['quotaUser'] = quota_user unless quota_user.nil?
774
774
  execute_or_queue_command(command, &block)
775
775
  end
776
776
 
@@ -786,11 +786,11 @@ module Google
786
786
  # The name of the service. See the [overview](/service-management/overview)
787
787
  # for naming requirements. For example: `example.googleapis.com`.
788
788
  # @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object
789
- # @param [String] fields
790
- # Selector specifying which fields to include in a partial response.
791
789
  # @param [String] quota_user
792
790
  # Available to use for quota purposes for server-side applications. Can be any
793
791
  # arbitrary string assigned to a user, but should not exceed 40 characters.
792
+ # @param [String] fields
793
+ # Selector specifying which fields to include in a partial response.
794
794
  # @param [Google::Apis::RequestOptions] options
795
795
  # Request-specific options
796
796
  #
@@ -803,91 +803,91 @@ module Google
803
803
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
804
804
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
805
805
  # @raise [Google::Apis::AuthorizationError] Authorization is required
806
- def create_service_rollout(service_name, rollout_object = nil, fields: nil, quota_user: nil, options: nil, &block)
806
+ def create_service_rollout(service_name, rollout_object = nil, quota_user: nil, fields: nil, options: nil, &block)
807
807
  command = make_simple_command(:post, 'v1/services/{serviceName}/rollouts', options)
808
808
  command.request_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
809
809
  command.request_object = rollout_object
810
810
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
811
811
  command.response_class = Google::Apis::ServicemanagementV1::Operation
812
812
  command.params['serviceName'] = service_name unless service_name.nil?
813
- command.query['fields'] = fields unless fields.nil?
814
813
  command.query['quotaUser'] = quota_user unless quota_user.nil?
814
+ command.query['fields'] = fields unless fields.nil?
815
815
  execute_or_queue_command(command, &block)
816
816
  end
817
817
 
818
- # Lists the history of the service configuration for a managed service,
819
- # from the newest to the oldest.
818
+ # Gets a service configuration (version) for a managed service.
820
819
  # @param [String] service_name
821
820
  # The name of the service. See the [overview](/service-management/overview)
822
821
  # for naming requirements. For example: `example.googleapis.com`.
823
- # @param [String] page_token
824
- # The token of the page to retrieve.
825
- # @param [Fixnum] page_size
826
- # The max number of items to include in the response list.
827
- # @param [String] fields
828
- # Selector specifying which fields to include in a partial response.
822
+ # @param [String] config_id
823
+ # The id of the service configuration resource.
824
+ # @param [String] view
825
+ # Specifies which parts of the Service Config should be returned in the
826
+ # response.
829
827
  # @param [String] quota_user
830
828
  # Available to use for quota purposes for server-side applications. Can be any
831
829
  # arbitrary string assigned to a user, but should not exceed 40 characters.
830
+ # @param [String] fields
831
+ # Selector specifying which fields to include in a partial response.
832
832
  # @param [Google::Apis::RequestOptions] options
833
833
  # Request-specific options
834
834
  #
835
835
  # @yield [result, err] Result & error if block supplied
836
- # @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse] parsed result object
836
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
837
837
  # @yieldparam err [StandardError] error object if request failed
838
838
  #
839
- # @return [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse]
839
+ # @return [Google::Apis::ServicemanagementV1::Service]
840
840
  #
841
841
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
842
842
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
843
843
  # @raise [Google::Apis::AuthorizationError] Authorization is required
844
- def list_service_configs(service_name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
845
- command = make_simple_command(:get, 'v1/services/{serviceName}/configs', options)
846
- command.response_representation = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse::Representation
847
- command.response_class = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse
844
+ def get_service_config(service_name, config_id, view: nil, quota_user: nil, fields: nil, options: nil, &block)
845
+ command = make_simple_command(:get, 'v1/services/{serviceName}/configs/{configId}', options)
846
+ command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
847
+ command.response_class = Google::Apis::ServicemanagementV1::Service
848
848
  command.params['serviceName'] = service_name unless service_name.nil?
849
- command.query['pageToken'] = page_token unless page_token.nil?
850
- command.query['pageSize'] = page_size unless page_size.nil?
851
- command.query['fields'] = fields unless fields.nil?
849
+ command.params['configId'] = config_id unless config_id.nil?
850
+ command.query['view'] = view unless view.nil?
852
851
  command.query['quotaUser'] = quota_user unless quota_user.nil?
852
+ command.query['fields'] = fields unless fields.nil?
853
853
  execute_or_queue_command(command, &block)
854
854
  end
855
855
 
856
- # Gets a service configuration (version) for a managed service.
856
+ # Lists the history of the service configuration for a managed service,
857
+ # from the newest to the oldest.
857
858
  # @param [String] service_name
858
859
  # The name of the service. See the [overview](/service-management/overview)
859
860
  # for naming requirements. For example: `example.googleapis.com`.
860
- # @param [String] config_id
861
- # The id of the service configuration resource.
862
- # @param [String] view
863
- # Specifies which parts of the Service Config should be returned in the
864
- # response.
865
- # @param [String] fields
866
- # Selector specifying which fields to include in a partial response.
861
+ # @param [String] page_token
862
+ # The token of the page to retrieve.
863
+ # @param [Fixnum] page_size
864
+ # The max number of items to include in the response list.
867
865
  # @param [String] quota_user
868
866
  # Available to use for quota purposes for server-side applications. Can be any
869
867
  # arbitrary string assigned to a user, but should not exceed 40 characters.
868
+ # @param [String] fields
869
+ # Selector specifying which fields to include in a partial response.
870
870
  # @param [Google::Apis::RequestOptions] options
871
871
  # Request-specific options
872
872
  #
873
873
  # @yield [result, err] Result & error if block supplied
874
- # @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
874
+ # @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse] parsed result object
875
875
  # @yieldparam err [StandardError] error object if request failed
876
876
  #
877
- # @return [Google::Apis::ServicemanagementV1::Service]
877
+ # @return [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse]
878
878
  #
879
879
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
880
880
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
881
881
  # @raise [Google::Apis::AuthorizationError] Authorization is required
882
- def get_service_config(service_name, config_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
883
- command = make_simple_command(:get, 'v1/services/{serviceName}/configs/{configId}', options)
884
- command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
885
- command.response_class = Google::Apis::ServicemanagementV1::Service
882
+ def list_service_configs(service_name, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
883
+ command = make_simple_command(:get, 'v1/services/{serviceName}/configs', options)
884
+ command.response_representation = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse::Representation
885
+ command.response_class = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse
886
886
  command.params['serviceName'] = service_name unless service_name.nil?
887
- command.params['configId'] = config_id unless config_id.nil?
888
- command.query['view'] = view unless view.nil?
889
- command.query['fields'] = fields unless fields.nil?
887
+ command.query['pageToken'] = page_token unless page_token.nil?
888
+ command.query['pageSize'] = page_size unless page_size.nil?
890
889
  command.query['quotaUser'] = quota_user unless quota_user.nil?
890
+ command.query['fields'] = fields unless fields.nil?
891
891
  execute_or_queue_command(command, &block)
892
892
  end
893
893
 
@@ -899,11 +899,11 @@ module Google
899
899
  # The name of the service. See the [overview](/service-management/overview)
900
900
  # for naming requirements. For example: `example.googleapis.com`.
901
901
  # @param [Google::Apis::ServicemanagementV1::Service] service_object
902
- # @param [String] fields
903
- # Selector specifying which fields to include in a partial response.
904
902
  # @param [String] quota_user
905
903
  # Available to use for quota purposes for server-side applications. Can be any
906
904
  # arbitrary string assigned to a user, but should not exceed 40 characters.
905
+ # @param [String] fields
906
+ # Selector specifying which fields to include in a partial response.
907
907
  # @param [Google::Apis::RequestOptions] options
908
908
  # Request-specific options
909
909
  #
@@ -916,15 +916,15 @@ module Google
916
916
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
917
917
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
918
918
  # @raise [Google::Apis::AuthorizationError] Authorization is required
919
- def create_service_config(service_name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
919
+ def create_service_config(service_name, service_object = nil, quota_user: nil, fields: nil, options: nil, &block)
920
920
  command = make_simple_command(:post, 'v1/services/{serviceName}/configs', options)
921
921
  command.request_representation = Google::Apis::ServicemanagementV1::Service::Representation
922
922
  command.request_object = service_object
923
923
  command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
924
924
  command.response_class = Google::Apis::ServicemanagementV1::Service
925
925
  command.params['serviceName'] = service_name unless service_name.nil?
926
- command.query['fields'] = fields unless fields.nil?
927
926
  command.query['quotaUser'] = quota_user unless quota_user.nil?
927
+ command.query['fields'] = fields unless fields.nil?
928
928
  execute_or_queue_command(command, &block)
929
929
  end
930
930
 
@@ -940,11 +940,11 @@ module Google
940
940
  # The name of the service. See the [overview](/service-management/overview)
941
941
  # for naming requirements. For example: `example.googleapis.com`.
942
942
  # @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_request_object
943
- # @param [String] fields
944
- # Selector specifying which fields to include in a partial response.
945
943
  # @param [String] quota_user
946
944
  # Available to use for quota purposes for server-side applications. Can be any
947
945
  # arbitrary string assigned to a user, but should not exceed 40 characters.
946
+ # @param [String] fields
947
+ # Selector specifying which fields to include in a partial response.
948
948
  # @param [Google::Apis::RequestOptions] options
949
949
  # Request-specific options
950
950
  #
@@ -957,15 +957,15 @@ module Google
957
957
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
958
958
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
959
959
  # @raise [Google::Apis::AuthorizationError] Authorization is required
960
- def submit_config_source(service_name, submit_config_source_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
960
+ def submit_config_source(service_name, submit_config_source_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
961
961
  command = make_simple_command(:post, 'v1/services/{serviceName}/configs:submit', options)
962
962
  command.request_representation = Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest::Representation
963
963
  command.request_object = submit_config_source_request_object
964
964
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
965
965
  command.response_class = Google::Apis::ServicemanagementV1::Operation
966
966
  command.params['serviceName'] = service_name unless service_name.nil?
967
- command.query['fields'] = fields unless fields.nil?
968
967
  command.query['quotaUser'] = quota_user unless quota_user.nil?
968
+ command.query['fields'] = fields unless fields.nil?
969
969
  execute_or_queue_command(command, &block)
970
970
  end
971
971