google-api-client 0.36.0 → 0.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +69 -0
  3. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  4. data/generated/google/apis/androidenterprise_v1/classes.rb +2 -1
  5. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  6. data/generated/google/apis/androidmanagement_v1/classes.rb +7 -4
  7. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  8. data/generated/google/apis/androidpublisher_v3/classes.rb +32 -32
  9. data/generated/google/apis/androidpublisher_v3/representations.rb +17 -17
  10. data/generated/google/apis/bigquery_v2.rb +1 -1
  11. data/generated/google/apis/bigquery_v2/classes.rb +2 -1
  12. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  13. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +81 -41
  14. data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +2 -0
  15. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +8 -8
  16. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  17. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +60 -30
  18. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  19. data/generated/google/apis/bigtableadmin_v2/classes.rb +75 -40
  20. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
  21. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  22. data/generated/google/apis/binaryauthorization_v1/classes.rb +75 -41
  23. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  24. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +75 -41
  25. data/generated/google/apis/chat_v1.rb +1 -1
  26. data/generated/google/apis/chat_v1/service.rb +5 -2
  27. data/generated/google/apis/cloudasset_v1.rb +1 -1
  28. data/generated/google/apis/cloudasset_v1/classes.rb +206 -0
  29. data/generated/google/apis/cloudasset_v1/representations.rb +101 -0
  30. data/generated/google/apis/cloudasset_v1/service.rb +174 -0
  31. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  32. data/generated/google/apis/cloudbilling_v1/classes.rb +59 -41
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +9 -5
  35. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  36. data/generated/google/apis/cloudfunctions_v1/classes.rb +75 -41
  37. data/generated/google/apis/cloudiot_v1.rb +1 -1
  38. data/generated/google/apis/cloudiot_v1/classes.rb +75 -41
  39. data/generated/google/apis/cloudkms_v1.rb +1 -1
  40. data/generated/google/apis/cloudkms_v1/classes.rb +104 -41
  41. data/generated/google/apis/cloudkms_v1/representations.rb +15 -0
  42. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  43. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +75 -41
  44. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  45. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +75 -41
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
  47. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  48. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +75 -41
  49. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +75 -41
  51. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  52. data/generated/google/apis/cloudsearch_v1/classes.rb +3 -2
  53. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  54. data/generated/google/apis/cloudtasks_v2/classes.rb +81 -47
  55. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  56. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +75 -41
  57. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  58. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +81 -47
  59. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v2/classes.rb +5 -3
  61. data/generated/google/apis/compute_alpha.rb +1 -1
  62. data/generated/google/apis/compute_alpha/classes.rb +68 -47
  63. data/generated/google/apis/compute_alpha/representations.rb +2 -1
  64. data/generated/google/apis/compute_alpha/service.rb +54 -0
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +597 -40
  67. data/generated/google/apis/compute_beta/representations.rb +164 -0
  68. data/generated/google/apis/compute_beta/service.rb +343 -1
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +54 -39
  71. data/generated/google/apis/compute_v1/representations.rb +1 -0
  72. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  73. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +75 -41
  74. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  75. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +77 -43
  76. data/generated/google/apis/containeranalysis_v1beta1/service.rb +26 -20
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +46 -42
  79. data/generated/google/apis/content_v2_1.rb +1 -1
  80. data/generated/google/apis/content_v2_1/classes.rb +46 -42
  81. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  82. data/generated/google/apis/datacatalog_v1beta1/classes.rb +75 -41
  83. data/generated/google/apis/datastore_v1.rb +1 -1
  84. data/generated/google/apis/datastore_v1/classes.rb +16 -22
  85. data/generated/google/apis/datastore_v1/service.rb +10 -10
  86. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  87. data/generated/google/apis/datastore_v1beta3/classes.rb +5 -4
  88. data/generated/google/apis/datastore_v1beta3/service.rb +8 -8
  89. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  90. data/generated/google/apis/dfareporting_v3_4/classes.rb +88 -88
  91. data/generated/google/apis/dfareporting_v3_4/representations.rb +39 -39
  92. data/generated/google/apis/dialogflow_v2.rb +1 -1
  93. data/generated/google/apis/dialogflow_v2/classes.rb +1 -1
  94. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  95. data/generated/google/apis/dialogflow_v2beta1/classes.rb +1 -1
  96. data/generated/google/apis/dlp_v2.rb +1 -1
  97. data/generated/google/apis/dlp_v2/classes.rb +77 -0
  98. data/generated/google/apis/dlp_v2/representations.rb +42 -0
  99. data/generated/google/apis/file_v1.rb +1 -1
  100. data/generated/google/apis/file_v1/classes.rb +59 -12
  101. data/generated/google/apis/file_v1/representations.rb +19 -2
  102. data/generated/google/apis/file_v1/service.rb +8 -4
  103. data/generated/google/apis/file_v1beta1.rb +1 -1
  104. data/generated/google/apis/file_v1beta1/classes.rb +59 -12
  105. data/generated/google/apis/file_v1beta1/representations.rb +19 -2
  106. data/generated/google/apis/file_v1beta1/service.rb +8 -4
  107. data/generated/google/apis/firebaserules_v1.rb +1 -1
  108. data/generated/google/apis/firebaserules_v1/classes.rb +75 -0
  109. data/generated/google/apis/firebaserules_v1/representations.rb +35 -0
  110. data/generated/google/apis/gmail_v1.rb +1 -1
  111. data/generated/google/apis/gmail_v1/classes.rb +6 -2
  112. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  113. data/generated/google/apis/iamcredentials_v1/classes.rb +7 -4
  114. data/generated/google/apis/iamcredentials_v1/service.rb +4 -4
  115. data/generated/google/apis/iap_v1.rb +1 -1
  116. data/generated/google/apis/iap_v1/classes.rb +225 -40
  117. data/generated/google/apis/iap_v1/representations.rb +84 -0
  118. data/generated/google/apis/iap_v1/service.rb +292 -0
  119. data/generated/google/apis/iap_v1beta1.rb +1 -1
  120. data/generated/google/apis/iap_v1beta1/classes.rb +75 -40
  121. data/generated/google/apis/logging_v2.rb +1 -1
  122. data/generated/google/apis/logging_v2/classes.rb +29 -41
  123. data/generated/google/apis/ml_v1.rb +1 -1
  124. data/generated/google/apis/ml_v1/classes.rb +14 -21
  125. data/generated/google/apis/ml_v1/service.rb +15 -18
  126. data/generated/google/apis/monitoring_v1.rb +1 -1
  127. data/generated/google/apis/monitoring_v1/classes.rb +15 -11
  128. data/generated/google/apis/monitoring_v3.rb +1 -1
  129. data/generated/google/apis/monitoring_v3/classes.rb +6 -10
  130. data/generated/google/apis/monitoring_v3/representations.rb +0 -1
  131. data/generated/google/apis/{fusiontables_v1.rb → policytroubleshooter_v1.rb} +10 -13
  132. data/generated/google/apis/policytroubleshooter_v1/classes.rb +700 -0
  133. data/generated/google/apis/policytroubleshooter_v1/representations.rb +203 -0
  134. data/generated/google/apis/policytroubleshooter_v1/service.rb +90 -0
  135. data/generated/google/apis/pubsub_v1.rb +1 -1
  136. data/generated/google/apis/pubsub_v1/classes.rb +75 -41
  137. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  138. data/generated/google/apis/pubsub_v1beta2/classes.rb +75 -41
  139. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  140. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
  141. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  142. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
  143. data/generated/google/apis/run_v1.rb +1 -1
  144. data/generated/google/apis/run_v1/classes.rb +75 -41
  145. data/generated/google/apis/run_v1alpha1.rb +1 -1
  146. data/generated/google/apis/run_v1alpha1/classes.rb +82 -41
  147. data/generated/google/apis/run_v1alpha1/representations.rb +2 -0
  148. data/generated/google/apis/{fusiontables_v2.rb → secretmanager_v1beta1.rb} +11 -14
  149. data/generated/google/apis/secretmanager_v1beta1/classes.rb +936 -0
  150. data/generated/google/apis/secretmanager_v1beta1/representations.rb +388 -0
  151. data/generated/google/apis/secretmanager_v1beta1/service.rb +674 -0
  152. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  153. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +85 -1
  154. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -0
  155. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  156. data/generated/google/apis/servicecontrol_v1/classes.rb +4 -3
  157. data/generated/google/apis/servicecontrol_v1/service.rb +2 -1
  158. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  159. data/generated/google/apis/servicenetworking_v1/classes.rb +38 -1
  160. data/generated/google/apis/servicenetworking_v1/representations.rb +14 -0
  161. data/generated/google/apis/servicenetworking_v1/service.rb +35 -0
  162. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  163. data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -1
  164. data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -0
  165. data/generated/google/apis/serviceusage_v1.rb +1 -1
  166. data/generated/google/apis/serviceusage_v1/classes.rb +16 -1
  167. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  168. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  169. data/generated/google/apis/serviceusage_v1beta1/classes.rb +16 -1
  170. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  171. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  172. data/generated/google/apis/storagetransfer_v1/service.rb +4 -2
  173. data/generated/google/apis/testing_v1.rb +1 -1
  174. data/generated/google/apis/testing_v1/classes.rb +2 -2
  175. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  176. data/generated/google/apis/toolresults_v1beta3/classes.rb +374 -2
  177. data/generated/google/apis/toolresults_v1beta3/representations.rb +109 -0
  178. data/generated/google/apis/toolresults_v1beta3/service.rb +98 -0
  179. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  180. data/lib/google/apis/version.rb +1 -1
  181. metadata +11 -11
  182. data/generated/google/apis/fusiontables_v1/classes.rb +0 -977
  183. data/generated/google/apis/fusiontables_v1/representations.rb +0 -449
  184. data/generated/google/apis/fusiontables_v1/service.rb +0 -1307
  185. data/generated/google/apis/fusiontables_v2/classes.rb +0 -1049
  186. data/generated/google/apis/fusiontables_v2/representations.rb +0 -457
  187. data/generated/google/apis/fusiontables_v2/service.rb +0 -1431
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class Brand
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class CorsSettings
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -52,6 +58,12 @@ module Google
52
58
  include Google::Apis::Core::JsonObjectSupport
53
59
  end
54
60
 
61
+ class Empty
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
55
67
  class Expr
56
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
69
 
@@ -82,6 +94,24 @@ module Google
82
94
  include Google::Apis::Core::JsonObjectSupport
83
95
  end
84
96
 
97
+ class IdentityAwareProxyClient
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListBrandsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListIdentityAwareProxyClientsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
85
115
  class OAuthSettings
86
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
117
 
@@ -94,6 +124,12 @@ module Google
94
124
  include Google::Apis::Core::JsonObjectSupport
95
125
  end
96
126
 
127
+ class ResetIdentityAwareProxyClientSecretRequest
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
97
133
  class SetIamPolicyRequest
98
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
135
 
@@ -142,6 +178,16 @@ module Google
142
178
  end
143
179
  end
144
180
 
181
+ class Brand
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :application_title, as: 'applicationTitle'
185
+ property :name, as: 'name'
186
+ property :org_internal_only, as: 'orgInternalOnly'
187
+ property :support_email, as: 'supportEmail'
188
+ end
189
+ end
190
+
145
191
  class CorsSettings
146
192
  # @private
147
193
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -156,6 +202,12 @@ module Google
156
202
  end
157
203
  end
158
204
 
205
+ class Empty
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ end
209
+ end
210
+
159
211
  class Expr
160
212
  # @private
161
213
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -200,6 +252,32 @@ module Google
200
252
  end
201
253
  end
202
254
 
255
+ class IdentityAwareProxyClient
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ property :display_name, as: 'displayName'
259
+ property :name, as: 'name'
260
+ property :secret, as: 'secret'
261
+ end
262
+ end
263
+
264
+ class ListBrandsResponse
265
+ # @private
266
+ class Representation < Google::Apis::Core::JsonRepresentation
267
+ collection :brands, as: 'brands', class: Google::Apis::IapV1::Brand, decorator: Google::Apis::IapV1::Brand::Representation
268
+
269
+ end
270
+ end
271
+
272
+ class ListIdentityAwareProxyClientsResponse
273
+ # @private
274
+ class Representation < Google::Apis::Core::JsonRepresentation
275
+ collection :identity_aware_proxy_clients, as: 'identityAwareProxyClients', class: Google::Apis::IapV1::IdentityAwareProxyClient, decorator: Google::Apis::IapV1::IdentityAwareProxyClient::Representation
276
+
277
+ property :next_page_token, as: 'nextPageToken'
278
+ end
279
+ end
280
+
203
281
  class OAuthSettings
204
282
  # @private
205
283
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -217,6 +295,12 @@ module Google
217
295
  end
218
296
  end
219
297
 
298
+ class ResetIdentityAwareProxyClientSecretRequest
299
+ # @private
300
+ class Representation < Google::Apis::Core::JsonRepresentation
301
+ end
302
+ end
303
+
220
304
  class SetIamPolicyRequest
221
305
  # @private
222
306
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -47,6 +47,298 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
+ # Constructs a new OAuth brand for the project if one does not exists.
51
+ # The created brand is 'internal only', meaning that OAuth clients created
52
+ # under it only accept requests from users who belong to the same GSuites
53
+ # account as the project. The brand is created in un-reviewed status.
54
+ # NOTE: the 'internal_only' can be manually changed in Pantheon UI.
55
+ # Requires that brand does not already exists for the project.
56
+ # @param [String] parent
57
+ # Required. GCP Project number/id under which the brand is to be created.
58
+ # In the following format: projects/`project_number/id`.
59
+ # @param [Google::Apis::IapV1::Brand] brand_object
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # Available to use for quota purposes for server-side applications. Can be any
64
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # @param [Google::Apis::RequestOptions] options
66
+ # Request-specific options
67
+ #
68
+ # @yield [result, err] Result & error if block supplied
69
+ # @yieldparam result [Google::Apis::IapV1::Brand] parsed result object
70
+ # @yieldparam err [StandardError] error object if request failed
71
+ #
72
+ # @return [Google::Apis::IapV1::Brand]
73
+ #
74
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
77
+ def create_oauth_project_brand(parent, brand_object = nil, fields: nil, quota_user: nil, options: nil, &block)
78
+ command = make_simple_command(:post, 'v1/oauth/{+parent}/brands', options)
79
+ command.request_representation = Google::Apis::IapV1::Brand::Representation
80
+ command.request_object = brand_object
81
+ command.response_representation = Google::Apis::IapV1::Brand::Representation
82
+ command.response_class = Google::Apis::IapV1::Brand
83
+ command.params['parent'] = parent unless parent.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ execute_or_queue_command(command, &block)
87
+ end
88
+
89
+ # Retrieves the OAuth brand of the project.
90
+ # @param [String] name
91
+ # Required. Name of the brand to be fetched.
92
+ # In the following format: projects/`project_number/id`/brands/`brand`.
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # @param [Google::Apis::RequestOptions] options
99
+ # Request-specific options
100
+ #
101
+ # @yield [result, err] Result & error if block supplied
102
+ # @yieldparam result [Google::Apis::IapV1::Brand] parsed result object
103
+ # @yieldparam err [StandardError] error object if request failed
104
+ #
105
+ # @return [Google::Apis::IapV1::Brand]
106
+ #
107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
110
+ def get_oauth_project_brand(name, fields: nil, quota_user: nil, options: nil, &block)
111
+ command = make_simple_command(:get, 'v1/oauth/{+name}', options)
112
+ command.response_representation = Google::Apis::IapV1::Brand::Representation
113
+ command.response_class = Google::Apis::IapV1::Brand
114
+ command.params['name'] = name unless name.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
120
+ # Lists the existing brands for the project.
121
+ # @param [String] parent
122
+ # Required. GCP Project number/id.
123
+ # In the following format: projects/`project_number/id`.
124
+ # @param [String] fields
125
+ # Selector specifying which fields to include in a partial response.
126
+ # @param [String] quota_user
127
+ # Available to use for quota purposes for server-side applications. Can be any
128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
129
+ # @param [Google::Apis::RequestOptions] options
130
+ # Request-specific options
131
+ #
132
+ # @yield [result, err] Result & error if block supplied
133
+ # @yieldparam result [Google::Apis::IapV1::ListBrandsResponse] parsed result object
134
+ # @yieldparam err [StandardError] error object if request failed
135
+ #
136
+ # @return [Google::Apis::IapV1::ListBrandsResponse]
137
+ #
138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
141
+ def list_oauth_project_brands(parent, fields: nil, quota_user: nil, options: nil, &block)
142
+ command = make_simple_command(:get, 'v1/oauth/{+parent}/brands', options)
143
+ command.response_representation = Google::Apis::IapV1::ListBrandsResponse::Representation
144
+ command.response_class = Google::Apis::IapV1::ListBrandsResponse
145
+ command.params['parent'] = parent unless parent.nil?
146
+ command.query['fields'] = fields unless fields.nil?
147
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
148
+ execute_or_queue_command(command, &block)
149
+ end
150
+
151
+ # Creates an Identity Aware Proxy (IAP) OAuth client, the client is owned
152
+ # by IAP.
153
+ # Requires that the brand for the project exists and that it is set for
154
+ # internal only use.
155
+ # @param [String] parent
156
+ # Required. Path to create the client in.
157
+ # In the following format:
158
+ # projects/`project_number/id`/brands/`brand`.
159
+ # The project must belong to a GSuite account.
160
+ # @param [Google::Apis::IapV1::IdentityAwareProxyClient] identity_aware_proxy_client_object
161
+ # @param [String] fields
162
+ # Selector specifying which fields to include in a partial response.
163
+ # @param [String] quota_user
164
+ # Available to use for quota purposes for server-side applications. Can be any
165
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
166
+ # @param [Google::Apis::RequestOptions] options
167
+ # Request-specific options
168
+ #
169
+ # @yield [result, err] Result & error if block supplied
170
+ # @yieldparam result [Google::Apis::IapV1::IdentityAwareProxyClient] parsed result object
171
+ # @yieldparam err [StandardError] error object if request failed
172
+ #
173
+ # @return [Google::Apis::IapV1::IdentityAwareProxyClient]
174
+ #
175
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
176
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
177
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
178
+ def create_oauth_project_brand_identity_aware_proxy_client(parent, identity_aware_proxy_client_object = nil, fields: nil, quota_user: nil, options: nil, &block)
179
+ command = make_simple_command(:post, 'v1/oauth/{+parent}/identityAwareProxyClients', options)
180
+ command.request_representation = Google::Apis::IapV1::IdentityAwareProxyClient::Representation
181
+ command.request_object = identity_aware_proxy_client_object
182
+ command.response_representation = Google::Apis::IapV1::IdentityAwareProxyClient::Representation
183
+ command.response_class = Google::Apis::IapV1::IdentityAwareProxyClient
184
+ command.params['parent'] = parent unless parent.nil?
185
+ command.query['fields'] = fields unless fields.nil?
186
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
187
+ execute_or_queue_command(command, &block)
188
+ end
189
+
190
+ # Deletes an Identity Aware Proxy (IAP) OAuth client. Useful if the secret
191
+ # was compromised.
192
+ # Requires that the client is owned by IAP.
193
+ # @param [String] name
194
+ # Required. Name of the Identity Aware Proxy client to be deleted.
195
+ # In the following format:
196
+ # projects/`project_number/id`/brands/`brand`/identityAwareProxyClients/`
197
+ # client_id`.
198
+ # @param [String] fields
199
+ # Selector specifying which fields to include in a partial response.
200
+ # @param [String] quota_user
201
+ # Available to use for quota purposes for server-side applications. Can be any
202
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
203
+ # @param [Google::Apis::RequestOptions] options
204
+ # Request-specific options
205
+ #
206
+ # @yield [result, err] Result & error if block supplied
207
+ # @yieldparam result [Google::Apis::IapV1::Empty] parsed result object
208
+ # @yieldparam err [StandardError] error object if request failed
209
+ #
210
+ # @return [Google::Apis::IapV1::Empty]
211
+ #
212
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
213
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
214
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
215
+ def delete_oauth_project_brand_identity_aware_proxy_client(name, fields: nil, quota_user: nil, options: nil, &block)
216
+ command = make_simple_command(:delete, 'v1/oauth/{+name}', options)
217
+ command.response_representation = Google::Apis::IapV1::Empty::Representation
218
+ command.response_class = Google::Apis::IapV1::Empty
219
+ command.params['name'] = name unless name.nil?
220
+ command.query['fields'] = fields unless fields.nil?
221
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
222
+ execute_or_queue_command(command, &block)
223
+ end
224
+
225
+ # Retrieves an Identity Aware Proxy (IAP) OAuth client.
226
+ # Requires that the client is owned by IAP.
227
+ # @param [String] name
228
+ # Required. Name of the Identity Aware Proxy client to be fetched.
229
+ # In the following format:
230
+ # projects/`project_number/id`/brands/`brand`/identityAwareProxyClients/`
231
+ # client_id`.
232
+ # @param [String] fields
233
+ # Selector specifying which fields to include in a partial response.
234
+ # @param [String] quota_user
235
+ # Available to use for quota purposes for server-side applications. Can be any
236
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
237
+ # @param [Google::Apis::RequestOptions] options
238
+ # Request-specific options
239
+ #
240
+ # @yield [result, err] Result & error if block supplied
241
+ # @yieldparam result [Google::Apis::IapV1::IdentityAwareProxyClient] parsed result object
242
+ # @yieldparam err [StandardError] error object if request failed
243
+ #
244
+ # @return [Google::Apis::IapV1::IdentityAwareProxyClient]
245
+ #
246
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
247
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
248
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
249
+ def get_oauth_project_brand_identity_aware_proxy_client(name, fields: nil, quota_user: nil, options: nil, &block)
250
+ command = make_simple_command(:get, 'v1/oauth/{+name}', options)
251
+ command.response_representation = Google::Apis::IapV1::IdentityAwareProxyClient::Representation
252
+ command.response_class = Google::Apis::IapV1::IdentityAwareProxyClient
253
+ command.params['name'] = name unless name.nil?
254
+ command.query['fields'] = fields unless fields.nil?
255
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
256
+ execute_or_queue_command(command, &block)
257
+ end
258
+
259
+ # Lists the existing clients for the brand.
260
+ # @param [String] parent
261
+ # Required. Full brand path.
262
+ # In the following format: projects/`project_number/id`/brands/`brand`.
263
+ # @param [Fixnum] page_size
264
+ # The maximum number of clients to return. The service may return fewer than
265
+ # this value.
266
+ # If unspecified, at most 100 clients will be returned.
267
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
268
+ # @param [String] page_token
269
+ # A page token, received from a previous `ListIdentityAwareProxyClients`
270
+ # call. Provide this to retrieve the subsequent page.
271
+ # When paginating, all other parameters provided to
272
+ # `ListIdentityAwareProxyClients` must match the call that provided the page
273
+ # token.
274
+ # @param [String] fields
275
+ # Selector specifying which fields to include in a partial response.
276
+ # @param [String] quota_user
277
+ # Available to use for quota purposes for server-side applications. Can be any
278
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
279
+ # @param [Google::Apis::RequestOptions] options
280
+ # Request-specific options
281
+ #
282
+ # @yield [result, err] Result & error if block supplied
283
+ # @yieldparam result [Google::Apis::IapV1::ListIdentityAwareProxyClientsResponse] parsed result object
284
+ # @yieldparam err [StandardError] error object if request failed
285
+ #
286
+ # @return [Google::Apis::IapV1::ListIdentityAwareProxyClientsResponse]
287
+ #
288
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
289
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
290
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
291
+ def list_oauth_project_brand_identity_aware_proxy_clients(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
292
+ command = make_simple_command(:get, 'v1/oauth/{+parent}/identityAwareProxyClients', options)
293
+ command.response_representation = Google::Apis::IapV1::ListIdentityAwareProxyClientsResponse::Representation
294
+ command.response_class = Google::Apis::IapV1::ListIdentityAwareProxyClientsResponse
295
+ command.params['parent'] = parent unless parent.nil?
296
+ command.query['pageSize'] = page_size unless page_size.nil?
297
+ command.query['pageToken'] = page_token unless page_token.nil?
298
+ command.query['fields'] = fields unless fields.nil?
299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
300
+ execute_or_queue_command(command, &block)
301
+ end
302
+
303
+ # Resets an Identity Aware Proxy (IAP) OAuth client secret. Useful for
304
+ # removing obsolete clients, managing the number of clients in a given
305
+ # project, and cleaning up after tests.
306
+ # Requires that the client is owned by IAP.
307
+ # @param [String] name
308
+ # Required. Name of the Identity Aware Proxy client to that will have its
309
+ # secret reset. In the following format:
310
+ # projects/`project_number/id`/brands/`brand`/identityAwareProxyClients/`
311
+ # client_id`.
312
+ # @param [Google::Apis::IapV1::ResetIdentityAwareProxyClientSecretRequest] reset_identity_aware_proxy_client_secret_request_object
313
+ # @param [String] fields
314
+ # Selector specifying which fields to include in a partial response.
315
+ # @param [String] quota_user
316
+ # Available to use for quota purposes for server-side applications. Can be any
317
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
318
+ # @param [Google::Apis::RequestOptions] options
319
+ # Request-specific options
320
+ #
321
+ # @yield [result, err] Result & error if block supplied
322
+ # @yieldparam result [Google::Apis::IapV1::IdentityAwareProxyClient] parsed result object
323
+ # @yieldparam err [StandardError] error object if request failed
324
+ #
325
+ # @return [Google::Apis::IapV1::IdentityAwareProxyClient]
326
+ #
327
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
328
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
329
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
330
+ def reset_oauth_project_brand_identity_aware_proxy_client_secret(name, reset_identity_aware_proxy_client_secret_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
331
+ command = make_simple_command(:post, 'v1/oauth/{+name}:resetSecret', options)
332
+ command.request_representation = Google::Apis::IapV1::ResetIdentityAwareProxyClientSecretRequest::Representation
333
+ command.request_object = reset_identity_aware_proxy_client_secret_request_object
334
+ command.response_representation = Google::Apis::IapV1::IdentityAwareProxyClient::Representation
335
+ command.response_class = Google::Apis::IapV1::IdentityAwareProxyClient
336
+ command.params['name'] = name unless name.nil?
337
+ command.query['fields'] = fields unless fields.nil?
338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
339
+ execute_or_queue_command(command, &block)
340
+ end
341
+
50
342
  # Gets the access control policy for an Identity-Aware Proxy protected
51
343
  # resource.
52
344
  # More information about managing access via IAP can be found at:
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/iap
26
26
  module IapV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20191004'
28
+ REVISION = '20191206'
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'
@@ -46,6 +46,23 @@ module Google
46
46
  # account. For example, `my-other-app@appspot.gserviceaccount.com`.
47
47
  # * `group:`emailid``: An email address that represents a Google group.
48
48
  # For example, `admins@example.com`.
49
+ # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
50
+ # identifier) representing a user that has been recently deleted. For
51
+ # example, `alice@example.com?uid=123456789012345678901`. If the user is
52
+ # recovered, this value reverts to `user:`emailid`` and the recovered user
53
+ # retains the role in the binding.
54
+ # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
55
+ # unique identifier) representing a service account that has been recently
56
+ # deleted. For example,
57
+ # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
58
+ # If the service account is undeleted, this value reverts to
59
+ # `serviceAccount:`emailid`` and the undeleted service account retains the
60
+ # role in the binding.
61
+ # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
62
+ # identifier) representing a Google group that has been recently
63
+ # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
64
+ # the group is recovered, this value reverts to `group:`emailid`` and the
65
+ # recovered group retains the role in the binding.
49
66
  # * `domain:`domain``: The G Suite domain (primary) that represents all the
50
67
  # users of that domain. For example, `google.com` or `example.com`.
51
68
  # Corresponds to the JSON property `members`
@@ -160,16 +177,18 @@ module Google
160
177
  end
161
178
  end
162
179
 
163
- # Defines an Identity and Access Management (IAM) policy. It is used to
164
- # specify access control policies for Cloud Platform resources.
180
+ # An Identity and Access Management (IAM) policy, which specifies access
181
+ # controls for Google Cloud resources.
165
182
  # A `Policy` is a collection of `bindings`. A `binding` binds one or more
166
183
  # `members` to a single `role`. Members can be user accounts, service accounts,
167
184
  # Google groups, and domains (such as G Suite). A `role` is a named list of
168
- # permissions (defined by IAM or configured by users). A `binding` can
169
- # optionally specify a `condition`, which is a logic expression that further
170
- # constrains the role binding based on attributes about the request and/or
171
- # target resource.
172
- # **JSON Example**
185
+ # permissions; each `role` can be an IAM predefined role or a user-created
186
+ # custom role.
187
+ # Optionally, a `binding` can specify a `condition`, which is a logical
188
+ # expression that allows access to a resource only if the expression evaluates
189
+ # to `true`. A condition can add constraints based on attributes of the
190
+ # request, the resource, or both.
191
+ # **JSON example:**
173
192
  # `
174
193
  # "bindings": [
175
194
  # `
@@ -187,13 +206,15 @@ module Google
187
206
  # "condition": `
188
207
  # "title": "expirable access",
189
208
  # "description": "Does not grant access after Sep 2020",
190
- # "expression": "request.time <
191
- # timestamp('2020-10-01T00:00:00.000Z')",
209
+ # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
210
+ # ",
192
211
  # `
193
212
  # `
194
- # ]
213
+ # ],
214
+ # "etag": "BwWWja0YfJA=",
215
+ # "version": 3
195
216
  # `
196
- # **YAML Example**
217
+ # **YAML example:**
197
218
  # bindings:
198
219
  # - members:
199
220
  # - user:mike@example.com
@@ -208,14 +229,16 @@ module Google
208
229
  # title: expirable access
209
230
  # description: Does not grant access after Sep 2020
210
231
  # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
232
+ # - etag: BwWWja0YfJA=
233
+ # - version: 3
211
234
  # For a description of IAM and its features, see the
212
- # [IAM developer's guide](https://cloud.google.com/iam/docs).
235
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
213
236
  class Policy
214
237
  include Google::Apis::Core::Hashable
215
238
 
216
- # Associates a list of `members` to a `role`. Optionally may specify a
217
- # `condition` that determines when binding is in effect.
218
- # `bindings` with no members will result in an error.
239
+ # Associates a list of `members` to a `role`. Optionally, may specify a
240
+ # `condition` that determines how and when the `bindings` are applied. Each
241
+ # of the `bindings` must contain at least one member.
219
242
  # Corresponds to the JSON property `bindings`
220
243
  # @return [Array<Google::Apis::IapV1beta1::Binding>]
221
244
  attr_accessor :bindings
@@ -227,25 +250,31 @@ module Google
227
250
  # conditions: An `etag` is returned in the response to `getIamPolicy`, and
228
251
  # systems are expected to put that etag in the request to `setIamPolicy` to
229
252
  # ensure that their change will be applied to the same version of the policy.
230
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
231
- # policy is overwritten. Due to blind-set semantics of an etag-less policy,
232
- # 'setIamPolicy' will not fail even if either of incoming or stored policy
233
- # does not meet the version requirements.
253
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
254
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
255
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
256
+ # the conditions in the version `3` policy are lost.
234
257
  # Corresponds to the JSON property `etag`
235
258
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
236
259
  # @return [String]
237
260
  attr_accessor :etag
238
261
 
239
262
  # Specifies the format of the policy.
240
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
241
- # rejected.
242
- # Operations affecting conditional bindings must specify version 3. This can
243
- # be either setting a conditional policy, modifying a conditional binding,
244
- # or removing a conditional binding from the stored conditional policy.
245
- # Operations on non-conditional policies may specify any valid value or
246
- # leave the field unset.
247
- # If no etag is provided in the call to `setIamPolicy`, any version
248
- # compliance checks on the incoming and/or stored policy is skipped.
263
+ # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
264
+ # are rejected.
265
+ # Any operation that affects conditional role bindings must specify version
266
+ # `3`. This requirement applies to the following operations:
267
+ # * Getting a policy that includes a conditional role binding
268
+ # * Adding a conditional role binding to a policy
269
+ # * Changing a conditional role binding in a policy
270
+ # * Removing any role binding, with or without a condition, from a policy
271
+ # that includes conditions
272
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
273
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
274
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
275
+ # the conditions in the version `3` policy are lost.
276
+ # If a policy does not include any conditions, operations on that policy may
277
+ # specify any valid version or leave the field unset.
249
278
  # Corresponds to the JSON property `version`
250
279
  # @return [Fixnum]
251
280
  attr_accessor :version
@@ -266,16 +295,18 @@ module Google
266
295
  class SetIamPolicyRequest
267
296
  include Google::Apis::Core::Hashable
268
297
 
269
- # Defines an Identity and Access Management (IAM) policy. It is used to
270
- # specify access control policies for Cloud Platform resources.
298
+ # An Identity and Access Management (IAM) policy, which specifies access
299
+ # controls for Google Cloud resources.
271
300
  # A `Policy` is a collection of `bindings`. A `binding` binds one or more
272
301
  # `members` to a single `role`. Members can be user accounts, service accounts,
273
302
  # Google groups, and domains (such as G Suite). A `role` is a named list of
274
- # permissions (defined by IAM or configured by users). A `binding` can
275
- # optionally specify a `condition`, which is a logic expression that further
276
- # constrains the role binding based on attributes about the request and/or
277
- # target resource.
278
- # **JSON Example**
303
+ # permissions; each `role` can be an IAM predefined role or a user-created
304
+ # custom role.
305
+ # Optionally, a `binding` can specify a `condition`, which is a logical
306
+ # expression that allows access to a resource only if the expression evaluates
307
+ # to `true`. A condition can add constraints based on attributes of the
308
+ # request, the resource, or both.
309
+ # **JSON example:**
279
310
  # `
280
311
  # "bindings": [
281
312
  # `
@@ -293,13 +324,15 @@ module Google
293
324
  # "condition": `
294
325
  # "title": "expirable access",
295
326
  # "description": "Does not grant access after Sep 2020",
296
- # "expression": "request.time <
297
- # timestamp('2020-10-01T00:00:00.000Z')",
327
+ # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
328
+ # ",
298
329
  # `
299
330
  # `
300
- # ]
331
+ # ],
332
+ # "etag": "BwWWja0YfJA=",
333
+ # "version": 3
301
334
  # `
302
- # **YAML Example**
335
+ # **YAML example:**
303
336
  # bindings:
304
337
  # - members:
305
338
  # - user:mike@example.com
@@ -314,8 +347,10 @@ module Google
314
347
  # title: expirable access
315
348
  # description: Does not grant access after Sep 2020
316
349
  # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
350
+ # - etag: BwWWja0YfJA=
351
+ # - version: 3
317
352
  # For a description of IAM and its features, see the
318
- # [IAM developer's guide](https://cloud.google.com/iam/docs).
353
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
319
354
  # Corresponds to the JSON property `policy`
320
355
  # @return [Google::Apis::IapV1beta1::Policy]
321
356
  attr_accessor :policy