google-api-client 0.41.2 → 0.42.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/generated/google/apis/accessapproval_v1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1/service.rb +3 -0
  5. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  6. data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -0
  7. data/generated/google/apis/admob_v1.rb +1 -1
  8. data/generated/google/apis/admob_v1/service.rb +1 -1
  9. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  10. data/generated/google/apis/apigee_v1.rb +1 -1
  11. data/generated/google/apis/apigee_v1/classes.rb +1389 -105
  12. data/generated/google/apis/apigee_v1/representations.rb +543 -0
  13. data/generated/google/apis/apigee_v1/service.rb +1139 -93
  14. data/generated/google/apis/appsmarket_v2.rb +1 -1
  15. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  16. data/generated/google/apis/bigqueryreservation_v1/classes.rb +34 -0
  17. data/generated/google/apis/bigqueryreservation_v1/representations.rb +16 -0
  18. data/generated/google/apis/bigqueryreservation_v1/service.rb +60 -0
  19. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  20. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +8 -0
  21. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
  22. data/generated/google/apis/civicinfo_v2.rb +1 -1
  23. data/generated/google/apis/civicinfo_v2/classes.rb +9 -1
  24. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  25. data/generated/google/apis/civicinfo_v2/service.rb +1 -1
  26. data/generated/google/apis/classroom_v1.rb +1 -1
  27. data/generated/google/apis/classroom_v1/service.rb +4 -3
  28. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  29. data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
  30. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
  31. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  32. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
  33. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  34. data/generated/google/apis/{androidpublisher_v1.rb → customsearch_v1.rb} +8 -8
  35. data/generated/google/apis/customsearch_v1/classes.rb +1606 -0
  36. data/generated/google/apis/customsearch_v1/representations.rb +372 -0
  37. data/generated/google/apis/customsearch_v1/service.rb +608 -0
  38. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  39. data/generated/google/apis/dialogflow_v2beta1/classes.rb +4 -2
  40. data/generated/google/apis/dialogflow_v2beta1/service.rb +8 -2
  41. data/generated/google/apis/displayvideo_v1.rb +1 -1
  42. data/generated/google/apis/displayvideo_v1/classes.rb +12 -5
  43. data/generated/google/apis/dns_v1.rb +4 -4
  44. data/generated/google/apis/dns_v1/classes.rb +313 -162
  45. data/generated/google/apis/dns_v1/service.rb +247 -180
  46. data/generated/google/apis/file_v1.rb +1 -1
  47. data/generated/google/apis/file_v1beta1.rb +1 -1
  48. data/generated/google/apis/{groupsmigration_v1.rb → firebasehosting_v1.rb} +10 -12
  49. data/generated/google/apis/firebasehosting_v1/classes.rb +186 -0
  50. data/generated/google/apis/{androidpublisher_v2 → firebasehosting_v1}/representations.rb +22 -32
  51. data/generated/google/apis/firebasehosting_v1/service.rb +183 -0
  52. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  53. data/generated/google/apis/firebasehosting_v1beta1/service.rb +2 -0
  54. data/generated/google/apis/games_v1.rb +5 -3
  55. data/generated/google/apis/games_v1/classes.rb +354 -2112
  56. data/generated/google/apis/games_v1/representations.rb +12 -647
  57. data/generated/google/apis/games_v1/service.rb +212 -1154
  58. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  59. data/generated/google/apis/gameservices_v1beta/classes.rb +6 -6
  60. data/generated/google/apis/groupssettings_v1.rb +1 -1
  61. data/generated/google/apis/groupssettings_v1/classes.rb +1 -1
  62. data/generated/google/apis/ml_v1.rb +1 -1
  63. data/generated/google/apis/ml_v1/classes.rb +6 -6
  64. data/generated/google/apis/monitoring_v3.rb +1 -1
  65. data/generated/google/apis/monitoring_v3/classes.rb +10 -2
  66. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  67. data/generated/google/apis/monitoring_v3/service.rb +8 -5
  68. data/generated/google/apis/pubsub_v1.rb +1 -1
  69. data/generated/google/apis/pubsub_v1/classes.rb +24 -28
  70. data/generated/google/apis/pubsub_v1/service.rb +35 -44
  71. data/generated/google/apis/recommender_v1.rb +1 -1
  72. data/generated/google/apis/recommender_v1/classes.rb +211 -0
  73. data/generated/google/apis/recommender_v1/representations.rb +96 -0
  74. data/generated/google/apis/recommender_v1/service.rb +123 -0
  75. data/generated/google/apis/redis_v1.rb +1 -1
  76. data/generated/google/apis/redis_v1beta1.rb +1 -1
  77. data/generated/google/apis/testing_v1.rb +1 -1
  78. data/generated/google/apis/testing_v1/classes.rb +17 -6
  79. data/generated/google/apis/testing_v1/representations.rb +1 -0
  80. data/generated/google/apis/youtube_partner_v1.rb +4 -3
  81. data/generated/google/apis/youtube_partner_v1/classes.rb +1616 -1076
  82. data/generated/google/apis/youtube_partner_v1/representations.rb +357 -256
  83. data/generated/google/apis/youtube_partner_v1/service.rb +942 -1362
  84. data/generated/google/apis/youtube_v3.rb +1 -1
  85. data/generated/google/apis/youtube_v3/classes.rb +554 -0
  86. data/generated/google/apis/youtube_v3/representations.rb +281 -0
  87. data/generated/google/apis/youtube_v3/service.rb +259 -0
  88. data/lib/google/apis/version.rb +1 -1
  89. metadata +11 -19
  90. data/generated/google/apis/androidpublisher_v1/classes.rb +0 -26
  91. data/generated/google/apis/androidpublisher_v1/representations.rb +0 -26
  92. data/generated/google/apis/androidpublisher_v1/service.rb +0 -64
  93. data/generated/google/apis/androidpublisher_v1_1.rb +0 -34
  94. data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -94
  95. data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -45
  96. data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -104
  97. data/generated/google/apis/androidpublisher_v2.rb +0 -34
  98. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -223
  99. data/generated/google/apis/androidpublisher_v2/service.rb +0 -160
  100. data/generated/google/apis/groupsmigration_v1/classes.rb +0 -51
  101. data/generated/google/apis/groupsmigration_v1/representations.rb +0 -40
  102. data/generated/google/apis/groupsmigration_v1/service.rb +0 -100
@@ -17,7 +17,7 @@ require 'open3'
17
17
  module Google
18
18
  module Apis
19
19
  # Client library version
20
- VERSION = '0.41.2'.freeze
20
+ VERSION = '0.42.0'.freeze
21
21
 
22
22
  # Current operating system
23
23
  # @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.41.2
4
+ version: 0.42.0
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: 2020-07-06 00:00:00.000000000 Z
14
+ date: 2020-07-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable
@@ -312,18 +312,6 @@ files:
312
312
  - generated/google/apis/androidmanagement_v1/classes.rb
313
313
  - generated/google/apis/androidmanagement_v1/representations.rb
314
314
  - generated/google/apis/androidmanagement_v1/service.rb
315
- - generated/google/apis/androidpublisher_v1.rb
316
- - generated/google/apis/androidpublisher_v1/classes.rb
317
- - generated/google/apis/androidpublisher_v1/representations.rb
318
- - generated/google/apis/androidpublisher_v1/service.rb
319
- - generated/google/apis/androidpublisher_v1_1.rb
320
- - generated/google/apis/androidpublisher_v1_1/classes.rb
321
- - generated/google/apis/androidpublisher_v1_1/representations.rb
322
- - generated/google/apis/androidpublisher_v1_1/service.rb
323
- - generated/google/apis/androidpublisher_v2.rb
324
- - generated/google/apis/androidpublisher_v2/classes.rb
325
- - generated/google/apis/androidpublisher_v2/representations.rb
326
- - generated/google/apis/androidpublisher_v2/service.rb
327
315
  - generated/google/apis/androidpublisher_v3.rb
328
316
  - generated/google/apis/androidpublisher_v3/classes.rb
329
317
  - generated/google/apis/androidpublisher_v3/representations.rb
@@ -612,6 +600,10 @@ files:
612
600
  - generated/google/apis/content_v2_1/classes.rb
613
601
  - generated/google/apis/content_v2_1/representations.rb
614
602
  - generated/google/apis/content_v2_1/service.rb
603
+ - generated/google/apis/customsearch_v1.rb
604
+ - generated/google/apis/customsearch_v1/classes.rb
605
+ - generated/google/apis/customsearch_v1/representations.rb
606
+ - generated/google/apis/customsearch_v1/service.rb
615
607
  - generated/google/apis/datacatalog_v1beta1.rb
616
608
  - generated/google/apis/datacatalog_v1beta1/classes.rb
617
609
  - generated/google/apis/datacatalog_v1beta1/representations.rb
@@ -760,6 +752,10 @@ files:
760
752
  - generated/google/apis/firebasedynamiclinks_v1/classes.rb
761
753
  - generated/google/apis/firebasedynamiclinks_v1/representations.rb
762
754
  - generated/google/apis/firebasedynamiclinks_v1/service.rb
755
+ - generated/google/apis/firebasehosting_v1.rb
756
+ - generated/google/apis/firebasehosting_v1/classes.rb
757
+ - generated/google/apis/firebasehosting_v1/representations.rb
758
+ - generated/google/apis/firebasehosting_v1/service.rb
763
759
  - generated/google/apis/firebasehosting_v1beta1.rb
764
760
  - generated/google/apis/firebasehosting_v1beta1/classes.rb
765
761
  - generated/google/apis/firebasehosting_v1beta1/representations.rb
@@ -832,10 +828,6 @@ files:
832
828
  - generated/google/apis/gmailpostmastertools_v1beta1/classes.rb
833
829
  - generated/google/apis/gmailpostmastertools_v1beta1/representations.rb
834
830
  - generated/google/apis/gmailpostmastertools_v1beta1/service.rb
835
- - generated/google/apis/groupsmigration_v1.rb
836
- - generated/google/apis/groupsmigration_v1/classes.rb
837
- - generated/google/apis/groupsmigration_v1/representations.rb
838
- - generated/google/apis/groupsmigration_v1/service.rb
839
831
  - generated/google/apis/groupssettings_v1.rb
840
832
  - generated/google/apis/groupssettings_v1/classes.rb
841
833
  - generated/google/apis/groupssettings_v1/representations.rb
@@ -1420,7 +1412,7 @@ homepage: https://github.com/google/google-api-ruby-client
1420
1412
  licenses:
1421
1413
  - Apache-2.0
1422
1414
  metadata:
1423
- documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.41.2
1415
+ documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.42.0
1424
1416
  post_install_message:
1425
1417
  rdoc_options: []
1426
1418
  require_paths:
@@ -1,26 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module AndroidpublisherV1
24
- end
25
- end
26
- end
@@ -1,26 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module AndroidpublisherV1
24
- end
25
- end
26
- end
@@ -1,64 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/core/base_service'
16
- require 'google/apis/core/json_representation'
17
- require 'google/apis/core/hashable'
18
- require 'google/apis/errors'
19
-
20
- module Google
21
- module Apis
22
- module AndroidpublisherV1
23
- # Google Play Developer API
24
- #
25
- # Accesses Android application developers' Google Play accounts.
26
- #
27
- # @example
28
- # require 'google/apis/androidpublisher_v1'
29
- #
30
- # Androidpublisher = Google::Apis::AndroidpublisherV1 # Alias the module
31
- # service = Androidpublisher::AndroidPublisherService.new
32
- #
33
- # @see https://developers.google.com/android-publisher
34
- class AndroidPublisherService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
- # @return [String]
41
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
43
- attr_accessor :quota_user
44
-
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
- def initialize
50
- super('https://www.googleapis.com/', '')
51
- @batch_path = 'batch/androidpublisher/v1'
52
- end
53
-
54
- protected
55
-
56
- def apply_command_defaults(command)
57
- command.query['key'] = key unless key.nil?
58
- command.query['quotaUser'] = quota_user unless quota_user.nil?
59
- command.query['userIp'] = user_ip unless user_ip.nil?
60
- end
61
- end
62
- end
63
- end
64
- end
@@ -1,34 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/androidpublisher_v1_1/service.rb'
16
- require 'google/apis/androidpublisher_v1_1/classes.rb'
17
- require 'google/apis/androidpublisher_v1_1/representations.rb'
18
-
19
- module Google
20
- module Apis
21
- # Google Play Developer API
22
- #
23
- # Accesses Android application developers' Google Play accounts.
24
- #
25
- # @see https://developers.google.com/android-publisher
26
- module AndroidpublisherV1_1
27
- VERSION = 'V1_1'
28
- REVISION = '20200428'
29
-
30
- # View and manage your Google Play Developer account
31
- AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
32
- end
33
- end
34
- end
@@ -1,94 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module AndroidpublisherV1_1
24
-
25
- # An InappPurchase resource indicates the status of a user's inapp product
26
- # purchase.
27
- class InappPurchase
28
- include Google::Apis::Core::Hashable
29
-
30
- # The consumption state of the inapp product. Possible values are:
31
- # - Yet to be consumed
32
- # - Consumed
33
- # Corresponds to the JSON property `consumptionState`
34
- # @return [Fixnum]
35
- attr_accessor :consumption_state
36
-
37
- # A developer-specified string that contains supplemental information about an
38
- # order.
39
- # Corresponds to the JSON property `developerPayload`
40
- # @return [String]
41
- attr_accessor :developer_payload
42
-
43
- # This kind represents an inappPurchase object in the androidpublisher service.
44
- # Corresponds to the JSON property `kind`
45
- # @return [String]
46
- attr_accessor :kind
47
-
48
- # The order id associated with the purchase of the inapp product.
49
- # Corresponds to the JSON property `orderId`
50
- # @return [String]
51
- attr_accessor :order_id
52
-
53
- # The purchase state of the order. Possible values are:
54
- # - Purchased
55
- # - Canceled
56
- # - Pending
57
- # Corresponds to the JSON property `purchaseState`
58
- # @return [Fixnum]
59
- attr_accessor :purchase_state
60
-
61
- # The time the product was purchased, in milliseconds since the epoch (Jan 1,
62
- # 1970).
63
- # Corresponds to the JSON property `purchaseTime`
64
- # @return [Fixnum]
65
- attr_accessor :purchase_time
66
-
67
- # The type of purchase of the inapp product. This field is only set if this
68
- # purchase was not made using the standard in-app billing flow. Possible values
69
- # are:
70
- # - Test (i.e. purchased from a license testing account)
71
- # - Promo (i.e. purchased using a promo code)
72
- # - Rewarded (i.e. from watching a video ad instead of paying)
73
- # Corresponds to the JSON property `purchaseType`
74
- # @return [Fixnum]
75
- attr_accessor :purchase_type
76
-
77
- def initialize(**args)
78
- update!(**args)
79
- end
80
-
81
- # Update properties of this object
82
- def update!(**args)
83
- @consumption_state = args[:consumption_state] if args.key?(:consumption_state)
84
- @developer_payload = args[:developer_payload] if args.key?(:developer_payload)
85
- @kind = args[:kind] if args.key?(:kind)
86
- @order_id = args[:order_id] if args.key?(:order_id)
87
- @purchase_state = args[:purchase_state] if args.key?(:purchase_state)
88
- @purchase_time = args[:purchase_time] if args.key?(:purchase_time)
89
- @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
90
- end
91
- end
92
- end
93
- end
94
- end
@@ -1,45 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module AndroidpublisherV1_1
24
-
25
- class InappPurchase
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class InappPurchase
32
- # @private
33
- class Representation < Google::Apis::Core::JsonRepresentation
34
- property :consumption_state, as: 'consumptionState'
35
- property :developer_payload, as: 'developerPayload'
36
- property :kind, as: 'kind'
37
- property :order_id, as: 'orderId'
38
- property :purchase_state, as: 'purchaseState'
39
- property :purchase_time, :numeric_string => true, as: 'purchaseTime'
40
- property :purchase_type, as: 'purchaseType'
41
- end
42
- end
43
- end
44
- end
45
- end
@@ -1,104 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/core/base_service'
16
- require 'google/apis/core/json_representation'
17
- require 'google/apis/core/hashable'
18
- require 'google/apis/errors'
19
-
20
- module Google
21
- module Apis
22
- module AndroidpublisherV1_1
23
- # Google Play Developer API
24
- #
25
- # Accesses Android application developers' Google Play accounts.
26
- #
27
- # @example
28
- # require 'google/apis/androidpublisher_v1_1'
29
- #
30
- # Androidpublisher = Google::Apis::AndroidpublisherV1_1 # Alias the module
31
- # service = Androidpublisher::AndroidPublisherService.new
32
- #
33
- # @see https://developers.google.com/android-publisher
34
- class AndroidPublisherService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
- # @return [String]
41
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
43
- attr_accessor :quota_user
44
-
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
- def initialize
50
- super('https://www.googleapis.com/', 'androidpublisher/v1.1/applications/')
51
- @batch_path = 'batch/androidpublisher/v1.1'
52
- end
53
-
54
- # Checks the purchase and consumption status of an inapp item.
55
- # @param [String] package_name
56
- # The package name of the application the inapp product was sold in (for example,
57
- # 'com.some.thing').
58
- # @param [String] product_id
59
- # The inapp product SKU (for example, 'com.some.thing.inapp1').
60
- # @param [String] token
61
- # The token provided to the user's device when the inapp product was purchased.
62
- # @param [String] fields
63
- # Selector specifying which fields to include in a partial response.
64
- # @param [String] quota_user
65
- # An opaque string that represents a user for quota purposes. Must not exceed 40
66
- # characters.
67
- # @param [String] user_ip
68
- # Deprecated. Please use quotaUser instead.
69
- # @param [Google::Apis::RequestOptions] options
70
- # Request-specific options
71
- #
72
- # @yield [result, err] Result & error if block supplied
73
- # @yieldparam result [Google::Apis::AndroidpublisherV1_1::InappPurchase] parsed result object
74
- # @yieldparam err [StandardError] error object if request failed
75
- #
76
- # @return [Google::Apis::AndroidpublisherV1_1::InappPurchase]
77
- #
78
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
- # @raise [Google::Apis::AuthorizationError] Authorization is required
81
- def get_inapppurchase(package_name, product_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
- command = make_simple_command(:get, '{packageName}/inapp/{productId}/purchases/{token}', options)
83
- command.response_representation = Google::Apis::AndroidpublisherV1_1::InappPurchase::Representation
84
- command.response_class = Google::Apis::AndroidpublisherV1_1::InappPurchase
85
- command.params['packageName'] = package_name unless package_name.nil?
86
- command.params['productId'] = product_id unless product_id.nil?
87
- command.params['token'] = token unless token.nil?
88
- command.query['fields'] = fields unless fields.nil?
89
- command.query['quotaUser'] = quota_user unless quota_user.nil?
90
- command.query['userIp'] = user_ip unless user_ip.nil?
91
- execute_or_queue_command(command, &block)
92
- end
93
-
94
- protected
95
-
96
- def apply_command_defaults(command)
97
- command.query['key'] = key unless key.nil?
98
- command.query['quotaUser'] = quota_user unless quota_user.nil?
99
- command.query['userIp'] = user_ip unless user_ip.nil?
100
- end
101
- end
102
- end
103
- end
104
- end