google-api-client 0.41.2 → 0.42.0

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 (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
@@ -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_v2/service.rb'
16
- require 'google/apis/androidpublisher_v2/classes.rb'
17
- require 'google/apis/androidpublisher_v2/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 AndroidpublisherV2
27
- VERSION = 'V2'
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,223 +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 AndroidpublisherV2
24
-
25
- #
26
- class PageInfo
27
- include Google::Apis::Core::Hashable
28
-
29
- #
30
- # Corresponds to the JSON property `resultPerPage`
31
- # @return [Fixnum]
32
- attr_accessor :result_per_page
33
-
34
- #
35
- # Corresponds to the JSON property `startIndex`
36
- # @return [Fixnum]
37
- attr_accessor :start_index
38
-
39
- #
40
- # Corresponds to the JSON property `totalResults`
41
- # @return [Fixnum]
42
- attr_accessor :total_results
43
-
44
- def initialize(**args)
45
- update!(**args)
46
- end
47
-
48
- # Update properties of this object
49
- def update!(**args)
50
- @result_per_page = args[:result_per_page] if args.key?(:result_per_page)
51
- @start_index = args[:start_index] if args.key?(:start_index)
52
- @total_results = args[:total_results] if args.key?(:total_results)
53
- end
54
- end
55
-
56
- # A ProductPurchase resource indicates the status of a user's inapp product
57
- # purchase.
58
- class ProductPurchase
59
- include Google::Apis::Core::Hashable
60
-
61
- # The consumption state of the inapp product. Possible values are:
62
- # - Yet to be consumed
63
- # - Consumed
64
- # Corresponds to the JSON property `consumptionState`
65
- # @return [Fixnum]
66
- attr_accessor :consumption_state
67
-
68
- # A developer-specified string that contains supplemental information about an
69
- # order.
70
- # Corresponds to the JSON property `developerPayload`
71
- # @return [String]
72
- attr_accessor :developer_payload
73
-
74
- # This kind represents an inappPurchase object in the androidpublisher service.
75
- # Corresponds to the JSON property `kind`
76
- # @return [String]
77
- attr_accessor :kind
78
-
79
- # The order id associated with the purchase of the inapp product.
80
- # Corresponds to the JSON property `orderId`
81
- # @return [String]
82
- attr_accessor :order_id
83
-
84
- # The purchase state of the order. Possible values are:
85
- # - Purchased
86
- # - Canceled
87
- # - Pending
88
- # Corresponds to the JSON property `purchaseState`
89
- # @return [Fixnum]
90
- attr_accessor :purchase_state
91
-
92
- # The time the product was purchased, in milliseconds since the epoch (Jan 1,
93
- # 1970).
94
- # Corresponds to the JSON property `purchaseTimeMillis`
95
- # @return [Fixnum]
96
- attr_accessor :purchase_time_millis
97
-
98
- # The type of purchase of the inapp product. This field is only set if this
99
- # purchase was not made using the standard in-app billing flow. Possible values
100
- # are:
101
- # - Test (i.e. purchased from a license testing account)
102
- # - Promo (i.e. purchased using a promo code)
103
- # - Rewarded (i.e. from watching a video ad instead of paying)
104
- # Corresponds to the JSON property `purchaseType`
105
- # @return [Fixnum]
106
- attr_accessor :purchase_type
107
-
108
- def initialize(**args)
109
- update!(**args)
110
- end
111
-
112
- # Update properties of this object
113
- def update!(**args)
114
- @consumption_state = args[:consumption_state] if args.key?(:consumption_state)
115
- @developer_payload = args[:developer_payload] if args.key?(:developer_payload)
116
- @kind = args[:kind] if args.key?(:kind)
117
- @order_id = args[:order_id] if args.key?(:order_id)
118
- @purchase_state = args[:purchase_state] if args.key?(:purchase_state)
119
- @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
120
- @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
121
- end
122
- end
123
-
124
- #
125
- class TokenPagination
126
- include Google::Apis::Core::Hashable
127
-
128
- #
129
- # Corresponds to the JSON property `nextPageToken`
130
- # @return [String]
131
- attr_accessor :next_page_token
132
-
133
- #
134
- # Corresponds to the JSON property `previousPageToken`
135
- # @return [String]
136
- attr_accessor :previous_page_token
137
-
138
- def initialize(**args)
139
- update!(**args)
140
- end
141
-
142
- # Update properties of this object
143
- def update!(**args)
144
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
145
- @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
146
- end
147
- end
148
-
149
- # A VoidedPurchase resource indicates a purchase that was either canceled/
150
- # refunded/charged-back.
151
- class VoidedPurchase
152
- include Google::Apis::Core::Hashable
153
-
154
- # This kind represents a voided purchase object in the androidpublisher service.
155
- # Corresponds to the JSON property `kind`
156
- # @return [String]
157
- attr_accessor :kind
158
-
159
- # The time at which the purchase was made, in milliseconds since the epoch (Jan
160
- # 1, 1970).
161
- # Corresponds to the JSON property `purchaseTimeMillis`
162
- # @return [Fixnum]
163
- attr_accessor :purchase_time_millis
164
-
165
- # The token which uniquely identifies a one-time purchase or subscription. To
166
- # uniquely identify subscription renewals use order_id (available starting from
167
- # version 3 of the API).
168
- # Corresponds to the JSON property `purchaseToken`
169
- # @return [String]
170
- attr_accessor :purchase_token
171
-
172
- # The time at which the purchase was canceled/refunded/charged-back, in
173
- # milliseconds since the epoch (Jan 1, 1970).
174
- # Corresponds to the JSON property `voidedTimeMillis`
175
- # @return [Fixnum]
176
- attr_accessor :voided_time_millis
177
-
178
- def initialize(**args)
179
- update!(**args)
180
- end
181
-
182
- # Update properties of this object
183
- def update!(**args)
184
- @kind = args[:kind] if args.key?(:kind)
185
- @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
186
- @purchase_token = args[:purchase_token] if args.key?(:purchase_token)
187
- @voided_time_millis = args[:voided_time_millis] if args.key?(:voided_time_millis)
188
- end
189
- end
190
-
191
- #
192
- class VoidedPurchasesListResponse
193
- include Google::Apis::Core::Hashable
194
-
195
- #
196
- # Corresponds to the JSON property `pageInfo`
197
- # @return [Google::Apis::AndroidpublisherV2::PageInfo]
198
- attr_accessor :page_info
199
-
200
- #
201
- # Corresponds to the JSON property `tokenPagination`
202
- # @return [Google::Apis::AndroidpublisherV2::TokenPagination]
203
- attr_accessor :token_pagination
204
-
205
- #
206
- # Corresponds to the JSON property `voidedPurchases`
207
- # @return [Array<Google::Apis::AndroidpublisherV2::VoidedPurchase>]
208
- attr_accessor :voided_purchases
209
-
210
- def initialize(**args)
211
- update!(**args)
212
- end
213
-
214
- # Update properties of this object
215
- def update!(**args)
216
- @page_info = args[:page_info] if args.key?(:page_info)
217
- @token_pagination = args[:token_pagination] if args.key?(:token_pagination)
218
- @voided_purchases = args[:voided_purchases] if args.key?(:voided_purchases)
219
- end
220
- end
221
- end
222
- end
223
- end
@@ -1,160 +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 AndroidpublisherV2
23
- # Google Play Developer API
24
- #
25
- # Accesses Android application developers' Google Play accounts.
26
- #
27
- # @example
28
- # require 'google/apis/androidpublisher_v2'
29
- #
30
- # Androidpublisher = Google::Apis::AndroidpublisherV2 # 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/v2/applications/')
51
- @batch_path = 'batch/androidpublisher/v2'
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::AndroidpublisherV2::ProductPurchase] parsed result object
74
- # @yieldparam err [StandardError] error object if request failed
75
- #
76
- # @return [Google::Apis::AndroidpublisherV2::ProductPurchase]
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_purchase_product(package_name, product_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
- command = make_simple_command(:get, '{packageName}/purchases/products/{productId}/tokens/{token}', options)
83
- command.response_representation = Google::Apis::AndroidpublisherV2::ProductPurchase::Representation
84
- command.response_class = Google::Apis::AndroidpublisherV2::ProductPurchase
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
- # Lists the purchases that were canceled, refunded or charged-back.
95
- # @param [String] package_name
96
- # The package name of the application for which voided purchases need to be
97
- # returned (for example, 'com.some.thing').
98
- # @param [Fixnum] end_time
99
- # The time, in milliseconds since the Epoch, of the newest voided purchase that
100
- # you want to see in the response. The value of this parameter cannot be greater
101
- # than the current time and is ignored if a pagination token is set. Default
102
- # value is current time. Note: This filter is applied on the time at which the
103
- # record is seen as voided by our systems and not the actual voided time
104
- # returned in the response.
105
- # @param [Fixnum] max_results
106
- # @param [Fixnum] start_index
107
- # @param [Fixnum] start_time
108
- # The time, in milliseconds since the Epoch, of the oldest voided purchase that
109
- # you want to see in the response. The value of this parameter cannot be older
110
- # than 30 days and is ignored if a pagination token is set. Default value is
111
- # current time minus 30 days. Note: This filter is applied on the time at which
112
- # the record is seen as voided by our systems and not the actual voided time
113
- # returned in the response.
114
- # @param [String] token
115
- # @param [String] fields
116
- # Selector specifying which fields to include in a partial response.
117
- # @param [String] quota_user
118
- # An opaque string that represents a user for quota purposes. Must not exceed 40
119
- # characters.
120
- # @param [String] user_ip
121
- # Deprecated. Please use quotaUser instead.
122
- # @param [Google::Apis::RequestOptions] options
123
- # Request-specific options
124
- #
125
- # @yield [result, err] Result & error if block supplied
126
- # @yieldparam result [Google::Apis::AndroidpublisherV2::VoidedPurchasesListResponse] parsed result object
127
- # @yieldparam err [StandardError] error object if request failed
128
- #
129
- # @return [Google::Apis::AndroidpublisherV2::VoidedPurchasesListResponse]
130
- #
131
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
132
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
133
- # @raise [Google::Apis::AuthorizationError] Authorization is required
134
- def list_purchase_voidedpurchases(package_name, end_time: nil, max_results: nil, start_index: nil, start_time: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
135
- command = make_simple_command(:get, '{packageName}/purchases/voidedpurchases', options)
136
- command.response_representation = Google::Apis::AndroidpublisherV2::VoidedPurchasesListResponse::Representation
137
- command.response_class = Google::Apis::AndroidpublisherV2::VoidedPurchasesListResponse
138
- command.params['packageName'] = package_name unless package_name.nil?
139
- command.query['endTime'] = end_time unless end_time.nil?
140
- command.query['maxResults'] = max_results unless max_results.nil?
141
- command.query['startIndex'] = start_index unless start_index.nil?
142
- command.query['startTime'] = start_time unless start_time.nil?
143
- command.query['token'] = token unless token.nil?
144
- command.query['fields'] = fields unless fields.nil?
145
- command.query['quotaUser'] = quota_user unless quota_user.nil?
146
- command.query['userIp'] = user_ip unless user_ip.nil?
147
- execute_or_queue_command(command, &block)
148
- end
149
-
150
- protected
151
-
152
- def apply_command_defaults(command)
153
- command.query['key'] = key unless key.nil?
154
- command.query['quotaUser'] = quota_user unless quota_user.nil?
155
- command.query['userIp'] = user_ip unless user_ip.nil?
156
- end
157
- end
158
- end
159
- end
160
- end
@@ -1,51 +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 GroupsmigrationV1
24
-
25
- # JSON response template for groups migration API.
26
- class Groups
27
- include Google::Apis::Core::Hashable
28
-
29
- # The kind of insert resource this is.
30
- # Corresponds to the JSON property `kind`
31
- # @return [String]
32
- attr_accessor :kind
33
-
34
- # The status of the insert request.
35
- # Corresponds to the JSON property `responseCode`
36
- # @return [String]
37
- attr_accessor :response_code
38
-
39
- def initialize(**args)
40
- update!(**args)
41
- end
42
-
43
- # Update properties of this object
44
- def update!(**args)
45
- @kind = args[:kind] if args.key?(:kind)
46
- @response_code = args[:response_code] if args.key?(:response_code)
47
- end
48
- end
49
- end
50
- end
51
- end