google-api-client 0.9.pre5 → 0.9

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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +2 -2
  4. data/api_names.yaml +11 -3
  5. data/api_names_out.yaml +29 -5
  6. data/generated/google/apis/adsense_v1_4.rb +1 -1
  7. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  8. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  9. data/generated/google/apis/androidenterprise_v1/classes.rb +6 -0
  10. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  11. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  12. data/generated/google/apis/androidpublisher_v2/classes.rb +38 -1
  13. data/generated/google/apis/androidpublisher_v2/representations.rb +16 -0
  14. data/generated/google/apis/appsactivity_v1.rb +1 -1
  15. data/generated/google/apis/appstate_v1.rb +1 -1
  16. data/generated/google/apis/calendar_v3/service.rb +2 -2
  17. data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
  18. data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
  19. data/generated/google/apis/civicinfo_v2/service.rb +4 -4
  20. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  21. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  22. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +2 -1
  23. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +20 -20
  24. data/generated/google/apis/compute_beta.rb +1 -1
  25. data/generated/google/apis/compute_v1.rb +1 -1
  26. data/generated/google/apis/customsearch_v1.rb +1 -1
  27. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  28. data/generated/google/apis/deploymentmanager_v2/classes.rb +2 -1
  29. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  30. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  31. data/generated/google/apis/games_management_v1management.rb +1 -1
  32. data/generated/google/apis/games_v1.rb +1 -1
  33. data/generated/google/apis/genomics_v1.rb +1 -1
  34. data/generated/google/apis/genomics_v1/service.rb +3 -3
  35. data/generated/google/apis/groupssettings_v1/service.rb +3 -0
  36. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  37. data/generated/google/apis/identitytoolkit_v3/classes.rb +112 -0
  38. data/generated/google/apis/identitytoolkit_v3/representations.rb +50 -0
  39. data/generated/google/apis/identitytoolkit_v3/service.rb +70 -0
  40. data/generated/google/apis/licensing_v1/service.rb +2 -2
  41. data/generated/google/apis/oauth2_v2.rb +1 -1
  42. data/generated/google/apis/plus_domains_v1.rb +1 -1
  43. data/generated/google/apis/plus_v1.rb +1 -1
  44. data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
  45. data/generated/google/apis/storage_v1.rb +1 -1
  46. data/lib/google/apis/generator/annotator.rb +5 -0
  47. data/lib/google/apis/generator/model.rb +3 -0
  48. data/lib/google/apis/generator/templates/_method.tmpl +3 -0
  49. data/lib/google/apis/version.rb +1 -1
  50. metadata +4 -4
@@ -393,6 +393,41 @@ module Google
393
393
  execute_or_queue_command(command, &block)
394
394
  end
395
395
 
396
+ # Sign out user.
397
+ # @param [Google::Apis::IdentitytoolkitV3::SignOutUserRequest] sign_out_user_request_object
398
+ # @param [String] fields
399
+ # Selector specifying which fields to include in a partial response.
400
+ # @param [String] quota_user
401
+ # Available to use for quota purposes for server-side applications. Can be any
402
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
403
+ # Overrides userIp if both are provided.
404
+ # @param [String] user_ip
405
+ # IP address of the site where the request originates. Use this if you want to
406
+ # enforce per-user limits.
407
+ # @param [Google::Apis::RequestOptions] options
408
+ # Request-specific options
409
+ #
410
+ # @yield [result, err] Result & error if block supplied
411
+ # @yieldparam result [Google::Apis::IdentitytoolkitV3::SignOutUserResponse] parsed result object
412
+ # @yieldparam err [StandardError] error object if request failed
413
+ #
414
+ # @return [Google::Apis::IdentitytoolkitV3::SignOutUserResponse]
415
+ #
416
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
417
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
418
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
419
+ def sign_out_user(sign_out_user_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
420
+ command = make_simple_command(:post, 'signOutUser', options)
421
+ command.request_representation = Google::Apis::IdentitytoolkitV3::SignOutUserRequest::Representation
422
+ command.request_object = sign_out_user_request_object
423
+ command.response_representation = Google::Apis::IdentitytoolkitV3::SignOutUserResponse::Representation
424
+ command.response_class = Google::Apis::IdentitytoolkitV3::SignOutUserResponse
425
+ command.query['fields'] = fields unless fields.nil?
426
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
427
+ command.query['userIp'] = user_ip unless user_ip.nil?
428
+ execute_or_queue_command(command, &block)
429
+ end
430
+
396
431
  # Batch upload existing user accounts.
397
432
  # @param [Google::Apis::IdentitytoolkitV3::UploadAccountRequest] upload_account_request_object
398
433
  # @param [String] fields
@@ -463,6 +498,41 @@ module Google
463
498
  execute_or_queue_command(command, &block)
464
499
  end
465
500
 
501
+ # Verifies the developer asserted ID token.
502
+ # @param [Google::Apis::IdentitytoolkitV3::VerifyCustomTokenRequest] verify_custom_token_request_object
503
+ # @param [String] fields
504
+ # Selector specifying which fields to include in a partial response.
505
+ # @param [String] quota_user
506
+ # Available to use for quota purposes for server-side applications. Can be any
507
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
508
+ # Overrides userIp if both are provided.
509
+ # @param [String] user_ip
510
+ # IP address of the site where the request originates. Use this if you want to
511
+ # enforce per-user limits.
512
+ # @param [Google::Apis::RequestOptions] options
513
+ # Request-specific options
514
+ #
515
+ # @yield [result, err] Result & error if block supplied
516
+ # @yieldparam result [Google::Apis::IdentitytoolkitV3::VerifyCustomTokenResponse] parsed result object
517
+ # @yieldparam err [StandardError] error object if request failed
518
+ #
519
+ # @return [Google::Apis::IdentitytoolkitV3::VerifyCustomTokenResponse]
520
+ #
521
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
522
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
523
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
524
+ def verify_custom_token(verify_custom_token_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
525
+ command = make_simple_command(:post, 'verifyCustomToken', options)
526
+ command.request_representation = Google::Apis::IdentitytoolkitV3::VerifyCustomTokenRequest::Representation
527
+ command.request_object = verify_custom_token_request_object
528
+ command.response_representation = Google::Apis::IdentitytoolkitV3::VerifyCustomTokenResponse::Representation
529
+ command.response_class = Google::Apis::IdentitytoolkitV3::VerifyCustomTokenResponse
530
+ command.query['fields'] = fields unless fields.nil?
531
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
532
+ command.query['userIp'] = user_ip unless user_ip.nil?
533
+ execute_or_queue_command(command, &block)
534
+ end
535
+
466
536
  # Verifies the user entered password.
467
537
  # @param [Google::Apis::IdentitytoolkitV3::VerifyPasswordRequest] verify_password_request_object
468
538
  # @param [String] fields
@@ -205,7 +205,7 @@ module Google
205
205
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
206
206
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
207
207
  # @raise [Google::Apis::AuthorizationError] Authorization is required
208
- def list_license_assignment_for_product(product_id, customer_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
208
+ def list_license_assignments_for_product(product_id, customer_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
209
209
  command = make_simple_command(:get, '{productId}/users', options)
210
210
  command.response_representation = Google::Apis::LicensingV1::LicenseAssignmentList::Representation
211
211
  command.response_class = Google::Apis::LicensingV1::LicenseAssignmentList
@@ -253,7 +253,7 @@ module Google
253
253
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
254
254
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
255
255
  # @raise [Google::Apis::AuthorizationError] Authorization is required
256
- def list_license_assignment_for_product_and_sku(product_id, sku_id, customer_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
256
+ def list_license_assignments_for_product_and_sku(product_id, sku_id, customer_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
257
257
  command = make_simple_command(:get, '{productId}/sku/{skuId}/users', options)
258
258
  command.response_representation = Google::Apis::LicensingV1::LicenseAssignmentList::Representation
259
259
  command.response_class = Google::Apis::LicensingV1::LicenseAssignmentList
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/accounts/docs/OAuth2
26
26
  module Oauth2V2
27
27
  VERSION = 'V2'
28
- REVISION = '20151107'
28
+ REVISION = '20151215'
29
29
 
30
30
  # Know your basic profile info and list of people in your circles.
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160104'
28
+ REVISION = '20160112'
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 = '20160104'
28
+ REVISION = '20160112'
29
29
 
30
30
  # Know your basic profile info and list of people in your circles.
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -674,7 +674,7 @@ module Google
674
674
 
675
675
  # The estimated regression value (Regression models only).
676
676
  # Corresponds to the JSON property `outputValue`
677
- # @return [Float]
677
+ # @return [String]
678
678
  attr_accessor :output_value
679
679
 
680
680
  # A URL to re-request this resource.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/storage/docs/json_api/
26
26
  module StorageV1
27
27
  VERSION = 'V1'
28
- REVISION = '20151214'
28
+ REVISION = '20151229'
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'
@@ -90,6 +90,10 @@ module Google
90
90
  @path.reduce('') { |a, e| a + '/' + e }
91
91
  end
92
92
 
93
+ def option(opt_name)
94
+ @names[sprintf('%s?%s', key, opt_name)]
95
+ end
96
+
93
97
  private
94
98
 
95
99
  # For RPC style methods, pick a name based off the request objects.
@@ -184,6 +188,7 @@ module Google
184
188
  value.constant = constantize_scope(key)
185
189
  end
186
190
  end
191
+ @rest_description.force_alt_json = @names.option('force_alt_json')
187
192
  @rest_description.parameters.reject! { |k, _v| PARAMETER_BLACKLIST.include?(k) }
188
193
  annotate_parameters(@rest_description.parameters)
189
194
  annotate_resource(@rest_description.name, @rest_description)
@@ -99,6 +99,9 @@ module Google
99
99
  end
100
100
 
101
101
  class RestDescription
102
+ attr_accessor :force_alt_json
103
+ alias_method :force_alt_json?, :force_alt_json
104
+
102
105
  def version
103
106
  ActiveSupport::Inflector.camelize(@version.gsub(/\W/, '-')).gsub(/-/, '_')
104
107
  end
@@ -73,6 +73,9 @@ def <%= api_method.generated_name %>(<% for param in api_method.required_paramet
73
73
  command.request_object = <%= api.schemas[api_method.request._ref].generated_name %>_object
74
74
  <% end -%>
75
75
  <% if api_method.response -%>
76
+ <% if api.force_alt_json? -%>
77
+ command.query['alt'] = 'json'
78
+ <% end -%>
76
79
  command.response_representation = <%= api.schemas[api_method.response._ref].generated_type %>::Representation
77
80
  command.response_class = <%= api.schemas[api_method.response._ref].generated_type %>
78
81
  <% end -%>
@@ -15,7 +15,7 @@
15
15
  module Google
16
16
  module Apis
17
17
  # Client library version
18
- VERSION = '0.9.pre5'
18
+ VERSION = '0.9'
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.pre5
4
+ version: '0.9'
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-01-08 00:00:00.000000000 Z
14
+ date: 2016-01-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable
@@ -654,9 +654,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
654
654
  version: '0'
655
655
  required_rubygems_version: !ruby/object:Gem::Requirement
656
656
  requirements:
657
- - - ">"
657
+ - - ">="
658
658
  - !ruby/object:Gem::Version
659
- version: 1.3.1
659
+ version: '0'
660
660
  requirements: []
661
661
  rubyforge_project:
662
662
  rubygems_version: 2.4.6