google-api-client 0.9.14 → 0.9.15

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.
@@ -22,6 +22,24 @@ module Google
22
22
  module Apis
23
23
  module DeploymentmanagerV2
24
24
 
25
+ class AuditConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Binding
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Condition
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
25
43
  class ConfigFile
26
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
45
 
@@ -76,6 +94,18 @@ module Google
76
94
  include Google::Apis::Core::JsonObjectSupport
77
95
  end
78
96
 
97
+ class LogConfig
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class LogConfigCounterOptions
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
79
109
  class Manifest
80
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
111
 
@@ -124,6 +154,12 @@ module Google
124
154
  include Google::Apis::Core::JsonObjectSupport
125
155
  end
126
156
 
157
+ class Policy
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
127
163
  class Resource
128
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
165
 
@@ -142,6 +178,12 @@ module Google
142
178
  include Google::Apis::Core::JsonObjectSupport
143
179
  end
144
180
 
181
+ class ResourceAccessControl
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
145
187
  class ResourceUpdate
146
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
189
 
@@ -178,12 +220,30 @@ module Google
178
220
  include Google::Apis::Core::JsonObjectSupport
179
221
  end
180
222
 
223
+ class Rule
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
181
229
  class TargetConfiguration
182
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
231
 
184
232
  include Google::Apis::Core::JsonObjectSupport
185
233
  end
186
234
 
235
+ class TestPermissionsRequest
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class TestPermissionsResponse
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
187
247
  class Type
188
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
249
 
@@ -196,6 +256,34 @@ module Google
196
256
  include Google::Apis::Core::JsonObjectSupport
197
257
  end
198
258
 
259
+ class AuditConfig
260
+ # @private
261
+ class Representation < Google::Apis::Core::JsonRepresentation
262
+ collection :exempted_members, as: 'exemptedMembers'
263
+ property :service, as: 'service'
264
+ end
265
+ end
266
+
267
+ class Binding
268
+ # @private
269
+ class Representation < Google::Apis::Core::JsonRepresentation
270
+ collection :members, as: 'members'
271
+ property :role, as: 'role'
272
+ end
273
+ end
274
+
275
+ class Condition
276
+ # @private
277
+ class Representation < Google::Apis::Core::JsonRepresentation
278
+ property :iam, as: 'iam'
279
+ property :op, as: 'op'
280
+ property :svc, as: 'svc'
281
+ property :sys, as: 'sys'
282
+ property :value, as: 'value'
283
+ collection :values, as: 'values'
284
+ end
285
+ end
286
+
199
287
  class ConfigFile
200
288
  # @private
201
289
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -280,6 +368,22 @@ module Google
280
368
  end
281
369
  end
282
370
 
371
+ class LogConfig
372
+ # @private
373
+ class Representation < Google::Apis::Core::JsonRepresentation
374
+ property :counter, as: 'counter', class: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions, decorator: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions::Representation
375
+
376
+ end
377
+ end
378
+
379
+ class LogConfigCounterOptions
380
+ # @private
381
+ class Representation < Google::Apis::Core::JsonRepresentation
382
+ property :field, as: 'field'
383
+ property :metric, as: 'metric'
384
+ end
385
+ end
386
+
283
387
  class Manifest
284
388
  # @private
285
389
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -380,9 +484,26 @@ module Google
380
484
  end
381
485
  end
382
486
 
487
+ class Policy
488
+ # @private
489
+ class Representation < Google::Apis::Core::JsonRepresentation
490
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::DeploymentmanagerV2::AuditConfig, decorator: Google::Apis::DeploymentmanagerV2::AuditConfig::Representation
491
+
492
+ collection :bindings, as: 'bindings', class: Google::Apis::DeploymentmanagerV2::Binding, decorator: Google::Apis::DeploymentmanagerV2::Binding::Representation
493
+
494
+ property :etag, :base64 => true, as: 'etag'
495
+ property :iam_owned, as: 'iamOwned'
496
+ collection :rules, as: 'rules', class: Google::Apis::DeploymentmanagerV2::Rule, decorator: Google::Apis::DeploymentmanagerV2::Rule::Representation
497
+
498
+ property :version, as: 'version'
499
+ end
500
+ end
501
+
383
502
  class Resource
384
503
  # @private
385
504
  class Representation < Google::Apis::Core::JsonRepresentation
505
+ property :access_control, as: 'accessControl', class: Google::Apis::DeploymentmanagerV2::ResourceAccessControl, decorator: Google::Apis::DeploymentmanagerV2::ResourceAccessControl::Representation
506
+
386
507
  property :final_properties, as: 'finalProperties'
387
508
  property :id, as: 'id'
388
509
  property :insert_time, as: 'insertTime'
@@ -417,9 +538,18 @@ module Google
417
538
  end
418
539
  end
419
540
 
541
+ class ResourceAccessControl
542
+ # @private
543
+ class Representation < Google::Apis::Core::JsonRepresentation
544
+ property :gcp_iam_policy, as: 'gcpIamPolicy'
545
+ end
546
+ end
547
+
420
548
  class ResourceUpdate
421
549
  # @private
422
550
  class Representation < Google::Apis::Core::JsonRepresentation
551
+ property :access_control, as: 'accessControl', class: Google::Apis::DeploymentmanagerV2::ResourceAccessControl, decorator: Google::Apis::DeploymentmanagerV2::ResourceAccessControl::Representation
552
+
423
553
  property :error, as: 'error', class: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error, decorator: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error::Representation
424
554
 
425
555
  property :final_properties, as: 'finalProperties'
@@ -476,6 +606,21 @@ module Google
476
606
  end
477
607
  end
478
608
 
609
+ class Rule
610
+ # @private
611
+ class Representation < Google::Apis::Core::JsonRepresentation
612
+ property :action, as: 'action'
613
+ collection :conditions, as: 'conditions', class: Google::Apis::DeploymentmanagerV2::Condition, decorator: Google::Apis::DeploymentmanagerV2::Condition::Representation
614
+
615
+ property :description, as: 'description'
616
+ collection :ins, as: 'ins'
617
+ collection :log_configs, as: 'logConfigs', class: Google::Apis::DeploymentmanagerV2::LogConfig, decorator: Google::Apis::DeploymentmanagerV2::LogConfig::Representation
618
+
619
+ collection :not_ins, as: 'notIns'
620
+ collection :permissions, as: 'permissions'
621
+ end
622
+ end
623
+
479
624
  class TargetConfiguration
480
625
  # @private
481
626
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -486,6 +631,20 @@ module Google
486
631
  end
487
632
  end
488
633
 
634
+ class TestPermissionsRequest
635
+ # @private
636
+ class Representation < Google::Apis::Core::JsonRepresentation
637
+ collection :permissions, as: 'permissions'
638
+ end
639
+ end
640
+
641
+ class TestPermissionsResponse
642
+ # @private
643
+ class Representation < Google::Apis::Core::JsonRepresentation
644
+ collection :permissions, as: 'permissions'
645
+ end
646
+ end
647
+
489
648
  class Type
490
649
  # @private
491
650
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -169,6 +169,45 @@ module Google
169
169
  execute_or_queue_command(command, &block)
170
170
  end
171
171
 
172
+ # Gets the access control policy for a resource. May be empty if no such policy
173
+ # or resource exists.
174
+ # @param [String] project
175
+ # Project ID for this request.
176
+ # @param [String] resource
177
+ # Name of the resource for this request.
178
+ # @param [String] fields
179
+ # Selector specifying which fields to include in a partial response.
180
+ # @param [String] quota_user
181
+ # Available to use for quota purposes for server-side applications. Can be any
182
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
183
+ # Overrides userIp if both are provided.
184
+ # @param [String] user_ip
185
+ # IP address of the site where the request originates. Use this if you want to
186
+ # enforce per-user limits.
187
+ # @param [Google::Apis::RequestOptions] options
188
+ # Request-specific options
189
+ #
190
+ # @yield [result, err] Result & error if block supplied
191
+ # @yieldparam result [Google::Apis::DeploymentmanagerV2::Policy] parsed result object
192
+ # @yieldparam err [StandardError] error object if request failed
193
+ #
194
+ # @return [Google::Apis::DeploymentmanagerV2::Policy]
195
+ #
196
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
197
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
198
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
199
+ def get_deployment_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
200
+ command = make_simple_command(:get, '{project}/global/deployments/{resource}/getIamPolicy', options)
201
+ command.response_representation = Google::Apis::DeploymentmanagerV2::Policy::Representation
202
+ command.response_class = Google::Apis::DeploymentmanagerV2::Policy
203
+ command.params['project'] = project unless project.nil?
204
+ command.params['resource'] = resource unless resource.nil?
205
+ command.query['fields'] = fields unless fields.nil?
206
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
207
+ command.query['userIp'] = user_ip unless user_ip.nil?
208
+ execute_or_queue_command(command, &block)
209
+ end
210
+
172
211
  # Creates a deployment and all of the resources described by the deployment
173
212
  # manifest.
174
213
  # @param [String] project
@@ -343,6 +382,48 @@ module Google
343
382
  execute_or_queue_command(command, &block)
344
383
  end
345
384
 
385
+ # Sets the access control policy on the specified resource. Replaces any
386
+ # existing policy.
387
+ # @param [String] project
388
+ # Project ID for this request.
389
+ # @param [String] resource
390
+ # Name of the resource for this request.
391
+ # @param [Google::Apis::DeploymentmanagerV2::Policy] policy_object
392
+ # @param [String] fields
393
+ # Selector specifying which fields to include in a partial response.
394
+ # @param [String] quota_user
395
+ # Available to use for quota purposes for server-side applications. Can be any
396
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
397
+ # Overrides userIp if both are provided.
398
+ # @param [String] user_ip
399
+ # IP address of the site where the request originates. Use this if you want to
400
+ # enforce per-user limits.
401
+ # @param [Google::Apis::RequestOptions] options
402
+ # Request-specific options
403
+ #
404
+ # @yield [result, err] Result & error if block supplied
405
+ # @yieldparam result [Google::Apis::DeploymentmanagerV2::Policy] parsed result object
406
+ # @yieldparam err [StandardError] error object if request failed
407
+ #
408
+ # @return [Google::Apis::DeploymentmanagerV2::Policy]
409
+ #
410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
413
+ def set_deployment_iam_policy(project, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
414
+ command = make_simple_command(:post, '{project}/global/deployments/{resource}/setIamPolicy', options)
415
+ command.request_representation = Google::Apis::DeploymentmanagerV2::Policy::Representation
416
+ command.request_object = policy_object
417
+ command.response_representation = Google::Apis::DeploymentmanagerV2::Policy::Representation
418
+ command.response_class = Google::Apis::DeploymentmanagerV2::Policy
419
+ command.params['project'] = project unless project.nil?
420
+ command.params['resource'] = resource unless resource.nil?
421
+ command.query['fields'] = fields unless fields.nil?
422
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
423
+ command.query['userIp'] = user_ip unless user_ip.nil?
424
+ execute_or_queue_command(command, &block)
425
+ end
426
+
346
427
  # Stops an ongoing operation. This does not roll back any work that has already
347
428
  # been completed, but prevents any new work from being started.
348
429
  # @param [String] project
@@ -385,6 +466,47 @@ module Google
385
466
  execute_or_queue_command(command, &block)
386
467
  end
387
468
 
469
+ # Returns permissions that a caller has on the specified resource.
470
+ # @param [String] project
471
+ # Project ID for this request.
472
+ # @param [String] resource
473
+ # Name of the resource for this request.
474
+ # @param [Google::Apis::DeploymentmanagerV2::TestPermissionsRequest] test_permissions_request_object
475
+ # @param [String] fields
476
+ # Selector specifying which fields to include in a partial response.
477
+ # @param [String] quota_user
478
+ # Available to use for quota purposes for server-side applications. Can be any
479
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
480
+ # Overrides userIp if both are provided.
481
+ # @param [String] user_ip
482
+ # IP address of the site where the request originates. Use this if you want to
483
+ # enforce per-user limits.
484
+ # @param [Google::Apis::RequestOptions] options
485
+ # Request-specific options
486
+ #
487
+ # @yield [result, err] Result & error if block supplied
488
+ # @yieldparam result [Google::Apis::DeploymentmanagerV2::TestPermissionsResponse] parsed result object
489
+ # @yieldparam err [StandardError] error object if request failed
490
+ #
491
+ # @return [Google::Apis::DeploymentmanagerV2::TestPermissionsResponse]
492
+ #
493
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
494
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
495
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
496
+ def test_deployment_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
497
+ command = make_simple_command(:post, '{project}/global/deployments/{resource}/testIamPermissions', options)
498
+ command.request_representation = Google::Apis::DeploymentmanagerV2::TestPermissionsRequest::Representation
499
+ command.request_object = test_permissions_request_object
500
+ command.response_representation = Google::Apis::DeploymentmanagerV2::TestPermissionsResponse::Representation
501
+ command.response_class = Google::Apis::DeploymentmanagerV2::TestPermissionsResponse
502
+ command.params['project'] = project unless project.nil?
503
+ command.params['resource'] = resource unless resource.nil?
504
+ command.query['fields'] = fields unless fields.nil?
505
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
506
+ command.query['userIp'] = user_ip unless user_ip.nil?
507
+ execute_or_queue_command(command, &block)
508
+ end
509
+
388
510
  # Updates a deployment and all of the resources described by the deployment
389
511
  # manifest.
390
512
  # @param [String] project
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160914'
28
+ REVISION = '20160917'
29
29
 
30
30
  # View your circles and the people and pages in them
31
31
  AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/api/
26
26
  module PlusV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160914'
28
+ REVISION = '20160917'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -15,7 +15,7 @@
15
15
  module Google
16
16
  module Apis
17
17
  # Client library version
18
- VERSION = '0.9.14'
18
+ VERSION = '0.9.15'
19
19
 
20
20
  # Current operating system
21
21
  # @private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.14
4
+ version: 0.9.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Bazyl
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-09-19 00:00:00.000000000 Z
14
+ date: 2016-09-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable
@@ -326,6 +326,10 @@ files:
326
326
  - generated/google/apis/dataproc_v1/classes.rb
327
327
  - generated/google/apis/dataproc_v1/representations.rb
328
328
  - generated/google/apis/dataproc_v1/service.rb
329
+ - generated/google/apis/datastore_v1.rb
330
+ - generated/google/apis/datastore_v1/classes.rb
331
+ - generated/google/apis/datastore_v1/representations.rb
332
+ - generated/google/apis/datastore_v1/service.rb
329
333
  - generated/google/apis/datastore_v1beta2.rb
330
334
  - generated/google/apis/datastore_v1beta2/classes.rb
331
335
  - generated/google/apis/datastore_v1beta2/representations.rb