google-api-client 0.42.0 → 0.42.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +70 -0
  3. data/generated/google/apis/admob_v1.rb +1 -1
  4. data/generated/google/apis/admob_v1/service.rb +1 -1
  5. data/generated/google/apis/appsmarket_v2.rb +1 -1
  6. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  7. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +28 -13
  8. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  9. data/generated/google/apis/blogger_v3.rb +1 -1
  10. data/generated/google/apis/chat_v1.rb +1 -1
  11. data/generated/google/apis/chat_v1/classes.rb +111 -0
  12. data/generated/google/apis/chat_v1/representations.rb +50 -0
  13. data/generated/google/apis/chat_v1/service.rb +32 -0
  14. data/generated/google/apis/classroom_v1.rb +1 -1
  15. data/generated/google/apis/classroom_v1/service.rb +5 -2
  16. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  17. data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
  18. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  19. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +25 -0
  20. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +15 -0
  21. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  22. data/generated/google/apis/cloudscheduler_v1/classes.rb +5 -5
  23. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  24. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +5 -5
  25. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  26. data/generated/google/apis/cloudtrace_v1/classes.rb +2 -3
  27. data/generated/google/apis/cloudtrace_v1/service.rb +1 -7
  28. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  29. data/generated/google/apis/cloudtrace_v2/classes.rb +6 -5
  30. data/generated/google/apis/cloudtrace_v2/service.rb +3 -6
  31. data/generated/google/apis/compute_beta.rb +1 -1
  32. data/generated/google/apis/compute_beta/classes.rb +279 -0
  33. data/generated/google/apis/compute_beta/representations.rb +90 -0
  34. data/generated/google/apis/compute_beta/service.rb +257 -0
  35. data/generated/google/apis/compute_v1.rb +1 -1
  36. data/generated/google/apis/compute_v1/classes.rb +279 -0
  37. data/generated/google/apis/compute_v1/representations.rb +90 -0
  38. data/generated/google/apis/compute_v1/service.rb +257 -0
  39. data/generated/google/apis/container_v1.rb +1 -1
  40. data/generated/google/apis/container_v1/classes.rb +9 -0
  41. data/generated/google/apis/container_v1/representations.rb +1 -0
  42. data/generated/google/apis/container_v1beta1.rb +1 -1
  43. data/generated/google/apis/container_v1beta1/classes.rb +15 -0
  44. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  45. data/generated/google/apis/content_v2.rb +1 -1
  46. data/generated/google/apis/content_v2/classes.rb +2 -2
  47. data/generated/google/apis/content_v2_1.rb +1 -1
  48. data/generated/google/apis/content_v2_1/classes.rb +4 -4
  49. data/generated/google/apis/customsearch_v1.rb +1 -1
  50. data/generated/google/apis/customsearch_v1/service.rb +12 -2
  51. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  52. data/generated/google/apis/datacatalog_v1beta1/classes.rb +3 -3
  53. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  54. data/generated/google/apis/dataflow_v1b3/service.rb +2 -2
  55. data/generated/google/apis/dataproc_v1.rb +1 -1
  56. data/generated/google/apis/dataproc_v1/classes.rb +9 -9
  57. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  58. data/generated/google/apis/dataproc_v1beta2/classes.rb +9 -9
  59. data/generated/google/apis/datastore_v1.rb +1 -1
  60. data/generated/google/apis/datastore_v1/classes.rb +1 -1
  61. data/generated/google/apis/displayvideo_v1.rb +1 -1
  62. data/generated/google/apis/displayvideo_v1/service.rb +2 -1
  63. data/generated/google/apis/dlp_v2.rb +1 -1
  64. data/generated/google/apis/dlp_v2/classes.rb +5 -2
  65. data/generated/google/apis/dns_v1.rb +1 -1
  66. data/generated/google/apis/dns_v1beta2.rb +1 -1
  67. data/generated/google/apis/dns_v2beta1.rb +4 -4
  68. data/generated/google/apis/dns_v2beta1/classes.rb +313 -162
  69. data/generated/google/apis/dns_v2beta1/service.rb +247 -180
  70. data/generated/google/apis/drive_v2.rb +1 -1
  71. data/generated/google/apis/drive_v2/classes.rb +66 -2
  72. data/generated/google/apis/drive_v2/representations.rb +22 -0
  73. data/generated/google/apis/drive_v2/service.rb +23 -10
  74. data/generated/google/apis/drive_v3.rb +1 -1
  75. data/generated/google/apis/drive_v3/classes.rb +65 -2
  76. data/generated/google/apis/drive_v3/representations.rb +22 -0
  77. data/generated/google/apis/drive_v3/service.rb +8 -5
  78. data/generated/google/apis/firestore_v1.rb +1 -1
  79. data/generated/google/apis/firestore_v1/classes.rb +152 -0
  80. data/generated/google/apis/firestore_v1/representations.rb +63 -0
  81. data/generated/google/apis/firestore_v1/service.rb +78 -0
  82. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  83. data/generated/google/apis/firestore_v1beta1/classes.rb +152 -0
  84. data/generated/google/apis/firestore_v1beta1/representations.rb +63 -0
  85. data/generated/google/apis/firestore_v1beta1/service.rb +78 -0
  86. data/generated/google/apis/gmail_v1.rb +1 -1
  87. data/generated/google/apis/gmail_v1/classes.rb +53 -53
  88. data/generated/google/apis/gmail_v1/service.rb +72 -72
  89. data/generated/google/apis/healthcare_v1.rb +1 -1
  90. data/generated/google/apis/healthcare_v1/service.rb +48 -1
  91. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  92. data/generated/google/apis/healthcare_v1beta1/service.rb +60 -1
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +22 -3
  95. data/generated/google/apis/iam_v1/service.rb +18 -6
  96. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  97. data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
  98. data/generated/google/apis/ml_v1.rb +1 -1
  99. data/generated/google/apis/ml_v1/classes.rb +17 -11
  100. data/generated/google/apis/monitoring_v3.rb +1 -1
  101. data/generated/google/apis/monitoring_v3/classes.rb +54 -30
  102. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  103. data/generated/google/apis/networkmanagement_v1/classes.rb +6 -6
  104. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  105. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +6 -6
  106. data/generated/google/apis/osconfig_v1.rb +1 -1
  107. data/generated/google/apis/osconfig_v1/classes.rb +2 -2
  108. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  109. data/generated/google/apis/osconfig_v1beta/classes.rb +2 -2
  110. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  111. data/generated/google/apis/recommendationengine_v1beta1.rb +36 -0
  112. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +2015 -0
  113. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +848 -0
  114. data/generated/google/apis/recommendationengine_v1beta1/service.rb +990 -0
  115. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  116. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  117. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  118. data/generated/google/apis/reseller_v1.rb +4 -3
  119. data/generated/google/apis/reseller_v1/classes.rb +219 -160
  120. data/generated/google/apis/reseller_v1/service.rb +247 -252
  121. data/generated/google/apis/run_v1.rb +2 -2
  122. data/generated/google/apis/run_v1/classes.rb +6 -1
  123. data/generated/google/apis/run_v1/service.rb +1 -1
  124. data/generated/google/apis/run_v1alpha1.rb +2 -2
  125. data/generated/google/apis/run_v1alpha1/service.rb +1 -1
  126. data/generated/google/apis/run_v1beta1.rb +2 -2
  127. data/generated/google/apis/run_v1beta1/service.rb +1 -1
  128. data/generated/google/apis/searchconsole_v1.rb +4 -3
  129. data/generated/google/apis/searchconsole_v1/service.rb +3 -2
  130. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  131. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +2 -2
  132. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  133. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +2 -2
  134. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  135. data/generated/google/apis/servicecontrol_v1/classes.rb +6 -6
  136. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  137. data/generated/google/apis/servicemanagement_v1/classes.rb +2 -2
  138. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  139. data/generated/google/apis/servicenetworking_v1/classes.rb +2 -2
  140. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  141. data/generated/google/apis/servicenetworking_v1beta/classes.rb +2 -2
  142. data/generated/google/apis/serviceusage_v1.rb +1 -1
  143. data/generated/google/apis/serviceusage_v1/classes.rb +2 -2
  144. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  145. data/generated/google/apis/serviceusage_v1beta1/classes.rb +2 -2
  146. data/generated/google/apis/sheets_v4.rb +1 -1
  147. data/generated/google/apis/sheets_v4/classes.rb +28 -28
  148. data/generated/google/apis/vision_v1.rb +1 -1
  149. data/generated/google/apis/vision_v1/classes.rb +2 -0
  150. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  151. data/generated/google/apis/vision_v1p1beta1/classes.rb +2 -0
  152. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  153. data/generated/google/apis/vision_v1p2beta1/classes.rb +2 -0
  154. data/generated/google/apis/youtube_v3.rb +1 -1
  155. data/generated/google/apis/youtube_v3/classes.rb +2 -2
  156. data/generated/google/apis/youtube_v3/service.rb +1 -0
  157. data/lib/google/apis/version.rb +1 -1
  158. metadata +7 -3
@@ -20,9 +20,10 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module ResellerV1
23
- # Enterprise Apps Reseller API
23
+ # Google Apps Reseller API
24
24
  #
25
- # Creates and manages your customers and their subscriptions.
25
+ # Perform common functions that are available on the Google Apps Reseller
26
+ # Console at scale like placing orders and viewing customer information
26
27
  #
27
28
  # @example
28
29
  # require 'google/apis/reseller_v1'
@@ -38,32 +39,27 @@ module Google
38
39
  attr_accessor :key
39
40
 
40
41
  # @return [String]
41
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
44
  attr_accessor :quota_user
44
45
 
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
46
  def initialize
50
- super('https://www.googleapis.com/', 'apps/reseller/v1/')
47
+ super('https://www.googleapis.com/', '')
51
48
  @batch_path = 'batch/reseller/v1'
52
49
  end
53
50
 
54
51
  # Get a customer account.
55
52
  # @param [String] customer_id
56
- # Either the customer's primary domain name or the customer's unique identifier.
57
- # If using the domain name, we do not recommend using a customerId as a key for
58
- # persistent data. If the domain name for a customerId is changed, the Google
59
- # system automatically updates.
53
+ # Either the customer's primary domain name or the customer's unique
54
+ # identifier. If using the domain name, we do not recommend using a
55
+ # <code>customerId</code> as a key for persistent data. If the domain name
56
+ # for a <code>customerId</code> is changed, the Google system automatically
57
+ # updates.
60
58
  # @param [String] fields
61
59
  # Selector specifying which fields to include in a partial response.
62
60
  # @param [String] quota_user
63
- # An opaque string that represents a user for quota purposes. Must not exceed 40
64
- # characters.
65
- # @param [String] user_ip
66
- # Deprecated. Please use quotaUser instead.
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
63
  # @param [Google::Apis::RequestOptions] options
68
64
  # Request-specific options
69
65
  #
@@ -76,32 +72,31 @@ module Google
76
72
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
73
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
74
  # @raise [Google::Apis::AuthorizationError] Authorization is required
79
- def get_customer(customer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
80
- command = make_simple_command(:get, 'customers/{customerId}', options)
75
+ def get_customer(customer_id, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:get, 'apps/reseller/v1/customers/{customerId}', options)
81
77
  command.response_representation = Google::Apis::ResellerV1::Customer::Representation
82
78
  command.response_class = Google::Apis::ResellerV1::Customer
83
79
  command.params['customerId'] = customer_id unless customer_id.nil?
84
80
  command.query['fields'] = fields unless fields.nil?
85
81
  command.query['quotaUser'] = quota_user unless quota_user.nil?
86
- command.query['userIp'] = user_ip unless user_ip.nil?
87
82
  execute_or_queue_command(command, &block)
88
83
  end
89
84
 
90
85
  # Order a new customer's account.
91
86
  # @param [Google::Apis::ResellerV1::Customer] customer_object
92
87
  # @param [String] customer_auth_token
93
- # The customerAuthToken query string is required when creating a resold account
94
- # that transfers a direct customer's subscription or transfers another reseller
95
- # customer's subscription to your reseller management. This is a hexadecimal
96
- # authentication token needed to complete the subscription transfer. For more
97
- # information, see the administrator help center.
88
+ # The <code>customerAuthToken</code> query string is required when creating a
89
+ # resold account that transfers a direct customer&#39;s subscription or
90
+ # transfers another reseller customer&#39;s subscription to your reseller
91
+ # management. This is a hexadecimal authentication token needed to complete
92
+ # the subscription transfer. For more information, see the <a
93
+ # href="//support.google.com/a/bin/answer.py?answer=142336">administrator
94
+ # help center</a>.
98
95
  # @param [String] fields
99
96
  # Selector specifying which fields to include in a partial response.
100
97
  # @param [String] quota_user
101
- # An opaque string that represents a user for quota purposes. Must not exceed 40
102
- # characters.
103
- # @param [String] user_ip
104
- # Deprecated. Please use quotaUser instead.
98
+ # Available to use for quota purposes for server-side applications. Can be any
99
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
105
100
  # @param [Google::Apis::RequestOptions] options
106
101
  # Request-specific options
107
102
  #
@@ -114,8 +109,8 @@ module Google
114
109
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
110
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
111
  # @raise [Google::Apis::AuthorizationError] Authorization is required
117
- def insert_customer(customer_object = nil, customer_auth_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
118
- command = make_simple_command(:post, 'customers', options)
112
+ def insert_customer(customer_object = nil, customer_auth_token: nil, fields: nil, quota_user: nil, options: nil, &block)
113
+ command = make_simple_command(:post, 'apps/reseller/v1/customers', options)
119
114
  command.request_representation = Google::Apis::ResellerV1::Customer::Representation
120
115
  command.request_object = customer_object
121
116
  command.response_representation = Google::Apis::ResellerV1::Customer::Representation
@@ -123,24 +118,22 @@ module Google
123
118
  command.query['customerAuthToken'] = customer_auth_token unless customer_auth_token.nil?
124
119
  command.query['fields'] = fields unless fields.nil?
125
120
  command.query['quotaUser'] = quota_user unless quota_user.nil?
126
- command.query['userIp'] = user_ip unless user_ip.nil?
127
121
  execute_or_queue_command(command, &block)
128
122
  end
129
123
 
130
- # Update a customer account's settings. This method supports patch semantics.
124
+ # Patch a customer account's settings via Apiary Patch Orchestration
131
125
  # @param [String] customer_id
132
- # Either the customer's primary domain name or the customer's unique identifier.
133
- # If using the domain name, we do not recommend using a customerId as a key for
134
- # persistent data. If the domain name for a customerId is changed, the Google
135
- # system automatically updates.
126
+ # Either the customer&#39;s primary domain name or the customer's unique
127
+ # identifier. If using the domain name, we do not recommend using a
128
+ # <code>customerId</code> as a key for persistent data. If the domain name
129
+ # for a <code>customerId</code> is changed, the Google system automatically
130
+ # updates.
136
131
  # @param [Google::Apis::ResellerV1::Customer] customer_object
137
132
  # @param [String] fields
138
133
  # Selector specifying which fields to include in a partial response.
139
134
  # @param [String] quota_user
140
- # An opaque string that represents a user for quota purposes. Must not exceed 40
141
- # characters.
142
- # @param [String] user_ip
143
- # Deprecated. Please use quotaUser instead.
135
+ # Available to use for quota purposes for server-side applications. Can be any
136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
144
137
  # @param [Google::Apis::RequestOptions] options
145
138
  # Request-specific options
146
139
  #
@@ -153,8 +146,8 @@ module Google
153
146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
154
147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
155
148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
156
- def patch_customer(customer_id, customer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
157
- command = make_simple_command(:patch, 'customers/{customerId}', options)
149
+ def patch_customer(customer_id, customer_object = nil, fields: nil, quota_user: nil, options: nil, &block)
150
+ command = make_simple_command(:patch, 'apps/reseller/v1/customers/{customerId}', options)
158
151
  command.request_representation = Google::Apis::ResellerV1::Customer::Representation
159
152
  command.request_object = customer_object
160
153
  command.response_representation = Google::Apis::ResellerV1::Customer::Representation
@@ -162,24 +155,22 @@ module Google
162
155
  command.params['customerId'] = customer_id unless customer_id.nil?
163
156
  command.query['fields'] = fields unless fields.nil?
164
157
  command.query['quotaUser'] = quota_user unless quota_user.nil?
165
- command.query['userIp'] = user_ip unless user_ip.nil?
166
158
  execute_or_queue_command(command, &block)
167
159
  end
168
160
 
169
161
  # Update a customer account's settings.
170
162
  # @param [String] customer_id
171
- # Either the customer's primary domain name or the customer's unique identifier.
172
- # If using the domain name, we do not recommend using a customerId as a key for
173
- # persistent data. If the domain name for a customerId is changed, the Google
174
- # system automatically updates.
163
+ # Either the customer&#39;s primary domain name or the customer's unique
164
+ # identifier. If using the domain name, we do not recommend using a
165
+ # <code>customerId</code> as a key for persistent data. If the domain name
166
+ # for a <code>customerId</code> is changed, the Google system automatically
167
+ # updates.
175
168
  # @param [Google::Apis::ResellerV1::Customer] customer_object
176
169
  # @param [String] fields
177
170
  # Selector specifying which fields to include in a partial response.
178
171
  # @param [String] quota_user
179
- # An opaque string that represents a user for quota purposes. Must not exceed 40
180
- # characters.
181
- # @param [String] user_ip
182
- # Deprecated. Please use quotaUser instead.
172
+ # Available to use for quota purposes for server-side applications. Can be any
173
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
183
174
  # @param [Google::Apis::RequestOptions] options
184
175
  # Request-specific options
185
176
  #
@@ -192,8 +183,8 @@ module Google
192
183
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
184
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
185
  # @raise [Google::Apis::AuthorizationError] Authorization is required
195
- def update_customer(customer_id, customer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
196
- command = make_simple_command(:put, 'customers/{customerId}', options)
186
+ def update_customer(customer_id, customer_object = nil, fields: nil, quota_user: nil, options: nil, &block)
187
+ command = make_simple_command(:put, 'apps/reseller/v1/customers/{customerId}', options)
197
188
  command.request_representation = Google::Apis::ResellerV1::Customer::Representation
198
189
  command.request_object = customer_object
199
190
  command.response_representation = Google::Apis::ResellerV1::Customer::Representation
@@ -201,7 +192,6 @@ module Google
201
192
  command.params['customerId'] = customer_id unless customer_id.nil?
202
193
  command.query['fields'] = fields unless fields.nil?
203
194
  command.query['quotaUser'] = quota_user unless quota_user.nil?
204
- command.query['userIp'] = user_ip unless user_ip.nil?
205
195
  execute_or_queue_command(command, &block)
206
196
  end
207
197
 
@@ -209,10 +199,8 @@ module Google
209
199
  # @param [String] fields
210
200
  # Selector specifying which fields to include in a partial response.
211
201
  # @param [String] quota_user
212
- # An opaque string that represents a user for quota purposes. Must not exceed 40
213
- # characters.
214
- # @param [String] user_ip
215
- # Deprecated. Please use quotaUser instead.
202
+ # Available to use for quota purposes for server-side applications. Can be any
203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
216
204
  # @param [Google::Apis::RequestOptions] options
217
205
  # Request-specific options
218
206
  #
@@ -225,13 +213,12 @@ module Google
225
213
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
226
214
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
227
215
  # @raise [Google::Apis::AuthorizationError] Authorization is required
228
- def getwatchdetails_resellernotify(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
229
- command = make_simple_command(:get, 'resellernotify/getwatchdetails', options)
216
+ def getwatchdetails_resellernotify(fields: nil, quota_user: nil, options: nil, &block)
217
+ command = make_simple_command(:get, 'apps/reseller/v1/resellernotify/getwatchdetails', options)
230
218
  command.response_representation = Google::Apis::ResellerV1::ResellernotifyGetwatchdetailsResponse::Representation
231
219
  command.response_class = Google::Apis::ResellerV1::ResellernotifyGetwatchdetailsResponse
232
220
  command.query['fields'] = fields unless fields.nil?
233
221
  command.query['quotaUser'] = quota_user unless quota_user.nil?
234
- command.query['userIp'] = user_ip unless user_ip.nil?
235
222
  execute_or_queue_command(command, &block)
236
223
  end
237
224
 
@@ -241,10 +228,8 @@ module Google
241
228
  # @param [String] fields
242
229
  # Selector specifying which fields to include in a partial response.
243
230
  # @param [String] quota_user
244
- # An opaque string that represents a user for quota purposes. Must not exceed 40
245
- # characters.
246
- # @param [String] user_ip
247
- # Deprecated. Please use quotaUser instead.
231
+ # Available to use for quota purposes for server-side applications. Can be any
232
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
248
233
  # @param [Google::Apis::RequestOptions] options
249
234
  # Request-specific options
250
235
  #
@@ -257,14 +242,13 @@ module Google
257
242
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
258
243
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
259
244
  # @raise [Google::Apis::AuthorizationError] Authorization is required
260
- def register_resellernotify(service_account_email_address: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
261
- command = make_simple_command(:post, 'resellernotify/register', options)
245
+ def register_resellernotify(service_account_email_address: nil, fields: nil, quota_user: nil, options: nil, &block)
246
+ command = make_simple_command(:post, 'apps/reseller/v1/resellernotify/register', options)
262
247
  command.response_representation = Google::Apis::ResellerV1::ResellernotifyResource::Representation
263
248
  command.response_class = Google::Apis::ResellerV1::ResellernotifyResource
264
249
  command.query['serviceAccountEmailAddress'] = service_account_email_address unless service_account_email_address.nil?
265
250
  command.query['fields'] = fields unless fields.nil?
266
251
  command.query['quotaUser'] = quota_user unless quota_user.nil?
267
- command.query['userIp'] = user_ip unless user_ip.nil?
268
252
  execute_or_queue_command(command, &block)
269
253
  end
270
254
 
@@ -274,10 +258,8 @@ module Google
274
258
  # @param [String] fields
275
259
  # Selector specifying which fields to include in a partial response.
276
260
  # @param [String] quota_user
277
- # An opaque string that represents a user for quota purposes. Must not exceed 40
278
- # characters.
279
- # @param [String] user_ip
280
- # Deprecated. Please use quotaUser instead.
261
+ # Available to use for quota purposes for server-side applications. Can be any
262
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
281
263
  # @param [Google::Apis::RequestOptions] options
282
264
  # Request-specific options
283
265
  #
@@ -290,36 +272,37 @@ module Google
290
272
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
291
273
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
292
274
  # @raise [Google::Apis::AuthorizationError] Authorization is required
293
- def unregister_resellernotify(service_account_email_address: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
294
- command = make_simple_command(:post, 'resellernotify/unregister', options)
275
+ def unregister_resellernotify(service_account_email_address: nil, fields: nil, quota_user: nil, options: nil, &block)
276
+ command = make_simple_command(:post, 'apps/reseller/v1/resellernotify/unregister', options)
295
277
  command.response_representation = Google::Apis::ResellerV1::ResellernotifyResource::Representation
296
278
  command.response_class = Google::Apis::ResellerV1::ResellernotifyResource
297
279
  command.query['serviceAccountEmailAddress'] = service_account_email_address unless service_account_email_address.nil?
298
280
  command.query['fields'] = fields unless fields.nil?
299
281
  command.query['quotaUser'] = quota_user unless quota_user.nil?
300
- command.query['userIp'] = user_ip unless user_ip.nil?
301
282
  execute_or_queue_command(command, &block)
302
283
  end
303
284
 
304
285
  # Activates a subscription previously suspended by the reseller
305
286
  # @param [String] customer_id
306
- # Either the customer's primary domain name or the customer's unique identifier.
307
- # If using the domain name, we do not recommend using a customerId as a key for
308
- # persistent data. If the domain name for a customerId is changed, the Google
309
- # system automatically updates.
287
+ # Either the customer&#39;s primary domain name or the customer's unique
288
+ # identifier. If using the domain name, we do not recommend using a
289
+ # <code>customerId</code> as a key for persistent data. If the domain name
290
+ # for a <code>customerId</code> is changed, the Google system automatically
291
+ # updates.
310
292
  # @param [String] subscription_id
311
- # This is a required property. The subscriptionId is the subscription identifier
312
- # and is unique for each customer. Since a subscriptionId changes when a
313
- # subscription is updated, we recommend to not use this ID as a key for
314
- # persistent data. And the subscriptionId can be found using the retrieve all
315
- # reseller subscriptions method.
293
+ # This is a required property. The <code>subscriptionId</code> is the
294
+ # subscription identifier and is unique for each customer. Since a
295
+ # <code>subscriptionId</code> changes when a subscription is updated, we
296
+ # recommend to not use this ID as a key for persistent data. And the
297
+ # <code>subscriptionId</code> can be found using the <a
298
+ # href="/admin-sdk/reseller/v1/how-tos/manage_subscriptions#
299
+ # get_all_subscriptions">retrieve
300
+ # all reseller subscriptions</a> method.
316
301
  # @param [String] fields
317
302
  # Selector specifying which fields to include in a partial response.
318
303
  # @param [String] quota_user
319
- # An opaque string that represents a user for quota purposes. Must not exceed 40
320
- # characters.
321
- # @param [String] user_ip
322
- # Deprecated. Please use quotaUser instead.
304
+ # Available to use for quota purposes for server-side applications. Can be any
305
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
323
306
  # @param [Google::Apis::RequestOptions] options
324
307
  # Request-specific options
325
308
  #
@@ -332,15 +315,14 @@ module Google
332
315
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
333
316
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
334
317
  # @raise [Google::Apis::AuthorizationError] Authorization is required
335
- def activate_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
336
- command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/activate', options)
318
+ def activate_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, options: nil, &block)
319
+ command = make_simple_command(:post, 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate', options)
337
320
  command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
338
321
  command.response_class = Google::Apis::ResellerV1::Subscription
339
322
  command.params['customerId'] = customer_id unless customer_id.nil?
340
323
  command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
341
324
  command.query['fields'] = fields unless fields.nil?
342
325
  command.query['quotaUser'] = quota_user unless quota_user.nil?
343
- command.query['userIp'] = user_ip unless user_ip.nil?
344
326
  execute_or_queue_command(command, &block)
345
327
  end
346
328
 
@@ -348,24 +330,26 @@ module Google
348
330
  # trial or a flexible plan subscription to an annual commitment plan with
349
331
  # monthly or yearly payments.
350
332
  # @param [String] customer_id
351
- # Either the customer's primary domain name or the customer's unique identifier.
352
- # If using the domain name, we do not recommend using a customerId as a key for
353
- # persistent data. If the domain name for a customerId is changed, the Google
354
- # system automatically updates.
333
+ # Either the customer&#39;s primary domain name or the customer's unique
334
+ # identifier. If using the domain name, we do not recommend using a
335
+ # <code>customerId</code> as a key for persistent data. If the domain name
336
+ # for a <code>customerId</code> is changed, the Google system automatically
337
+ # updates.
355
338
  # @param [String] subscription_id
356
- # This is a required property. The subscriptionId is the subscription identifier
357
- # and is unique for each customer. Since a subscriptionId changes when a
358
- # subscription is updated, we recommend to not use this ID as a key for
359
- # persistent data. And the subscriptionId can be found using the retrieve all
360
- # reseller subscriptions method.
339
+ # This is a required property. The <code>subscriptionId</code> is the
340
+ # subscription identifier and is unique for each customer. Since a
341
+ # <code>subscriptionId</code> changes when a subscription is updated, we
342
+ # recommend to not use this ID as a key for persistent data. And the
343
+ # <code>subscriptionId</code> can be found using the <a
344
+ # href="/admin-sdk/reseller/v1/how-tos/manage_subscriptions#
345
+ # get_all_subscriptions">retrieve
346
+ # all reseller subscriptions</a> method.
361
347
  # @param [Google::Apis::ResellerV1::ChangePlanRequest] change_plan_request_object
362
348
  # @param [String] fields
363
349
  # Selector specifying which fields to include in a partial response.
364
350
  # @param [String] quota_user
365
- # An opaque string that represents a user for quota purposes. Must not exceed 40
366
- # characters.
367
- # @param [String] user_ip
368
- # Deprecated. Please use quotaUser instead.
351
+ # Available to use for quota purposes for server-side applications. Can be any
352
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
369
353
  # @param [Google::Apis::RequestOptions] options
370
354
  # Request-specific options
371
355
  #
@@ -378,8 +362,8 @@ module Google
378
362
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
379
363
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
380
364
  # @raise [Google::Apis::AuthorizationError] Authorization is required
381
- def change_subscription_plan(customer_id, subscription_id, change_plan_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
382
- command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/changePlan', options)
365
+ def change_subscription_plan(customer_id, subscription_id, change_plan_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
366
+ command = make_simple_command(:post, 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan', options)
383
367
  command.request_representation = Google::Apis::ResellerV1::ChangePlanRequest::Representation
384
368
  command.request_object = change_plan_request_object
385
369
  command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
@@ -388,31 +372,32 @@ module Google
388
372
  command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
389
373
  command.query['fields'] = fields unless fields.nil?
390
374
  command.query['quotaUser'] = quota_user unless quota_user.nil?
391
- command.query['userIp'] = user_ip unless user_ip.nil?
392
375
  execute_or_queue_command(command, &block)
393
376
  end
394
377
 
395
- # Update a user license's renewal settings. This is applicable for accounts with
396
- # annual commitment plans only.
378
+ # Update a user license&#39;s renewal settings. This is applicable for
379
+ # accounts with annual commitment plans only.
397
380
  # @param [String] customer_id
398
- # Either the customer's primary domain name or the customer's unique identifier.
399
- # If using the domain name, we do not recommend using a customerId as a key for
400
- # persistent data. If the domain name for a customerId is changed, the Google
401
- # system automatically updates.
381
+ # Either the customer&#39;s primary domain name or the customer's unique
382
+ # identifier. If using the domain name, we do not recommend using a
383
+ # <code>customerId</code> as a key for persistent data. If the domain name
384
+ # for a <code>customerId</code> is changed, the Google system automatically
385
+ # updates.
402
386
  # @param [String] subscription_id
403
- # This is a required property. The subscriptionId is the subscription identifier
404
- # and is unique for each customer. Since a subscriptionId changes when a
405
- # subscription is updated, we recommend to not use this ID as a key for
406
- # persistent data. And the subscriptionId can be found using the retrieve all
407
- # reseller subscriptions method.
387
+ # This is a required property. The <code>subscriptionId</code> is the
388
+ # subscription identifier and is unique for each customer. Since a
389
+ # <code>subscriptionId</code> changes when a subscription is updated, we
390
+ # recommend to not use this ID as a key for persistent data. And the
391
+ # <code>subscriptionId</code> can be found using the <a
392
+ # href="/admin-sdk/reseller/v1/how-tos/manage_subscriptions#
393
+ # get_all_subscriptions">retrieve
394
+ # all reseller subscriptions</a> method.
408
395
  # @param [Google::Apis::ResellerV1::RenewalSettings] renewal_settings_object
409
396
  # @param [String] fields
410
397
  # Selector specifying which fields to include in a partial response.
411
398
  # @param [String] quota_user
412
- # An opaque string that represents a user for quota purposes. Must not exceed 40
413
- # characters.
414
- # @param [String] user_ip
415
- # Deprecated. Please use quotaUser instead.
399
+ # Available to use for quota purposes for server-side applications. Can be any
400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
416
401
  # @param [Google::Apis::RequestOptions] options
417
402
  # Request-specific options
418
403
  #
@@ -425,8 +410,8 @@ module Google
425
410
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
426
411
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
427
412
  # @raise [Google::Apis::AuthorizationError] Authorization is required
428
- def change_subscription_renewal_settings(customer_id, subscription_id, renewal_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
429
- command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings', options)
413
+ def change_subscription_renewal_settings(customer_id, subscription_id, renewal_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
414
+ command = make_simple_command(:post, 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings', options)
430
415
  command.request_representation = Google::Apis::ResellerV1::RenewalSettings::Representation
431
416
  command.request_object = renewal_settings_object
432
417
  command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
@@ -435,30 +420,31 @@ module Google
435
420
  command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
436
421
  command.query['fields'] = fields unless fields.nil?
437
422
  command.query['quotaUser'] = quota_user unless quota_user.nil?
438
- command.query['userIp'] = user_ip unless user_ip.nil?
439
423
  execute_or_queue_command(command, &block)
440
424
  end
441
425
 
442
- # Update a subscription's user license settings.
426
+ # Update a subscription&#39;s user license settings.
443
427
  # @param [String] customer_id
444
- # Either the customer's primary domain name or the customer's unique identifier.
445
- # If using the domain name, we do not recommend using a customerId as a key for
446
- # persistent data. If the domain name for a customerId is changed, the Google
447
- # system automatically updates.
428
+ # Either the customer&#39;s primary domain name or the customer's unique
429
+ # identifier. If using the domain name, we do not recommend using a
430
+ # <code>customerId</code> as a key for persistent data. If the domain name
431
+ # for a <code>customerId</code> is changed, the Google system automatically
432
+ # updates.
448
433
  # @param [String] subscription_id
449
- # This is a required property. The subscriptionId is the subscription identifier
450
- # and is unique for each customer. Since a subscriptionId changes when a
451
- # subscription is updated, we recommend to not use this ID as a key for
452
- # persistent data. And the subscriptionId can be found using the retrieve all
453
- # reseller subscriptions method.
434
+ # This is a required property. The <code>subscriptionId</code> is the
435
+ # subscription identifier and is unique for each customer. Since a
436
+ # <code>subscriptionId</code> changes when a subscription is updated, we
437
+ # recommend to not use this ID as a key for persistent data. And the
438
+ # <code>subscriptionId</code> can be found using the <a
439
+ # href="/admin-sdk/reseller/v1/how-tos/manage_subscriptions#
440
+ # get_all_subscriptions">retrieve
441
+ # all reseller subscriptions</a> method.
454
442
  # @param [Google::Apis::ResellerV1::Seats] seats_object
455
443
  # @param [String] fields
456
444
  # Selector specifying which fields to include in a partial response.
457
445
  # @param [String] quota_user
458
- # An opaque string that represents a user for quota purposes. Must not exceed 40
459
- # characters.
460
- # @param [String] user_ip
461
- # Deprecated. Please use quotaUser instead.
446
+ # Available to use for quota purposes for server-side applications. Can be any
447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
462
448
  # @param [Google::Apis::RequestOptions] options
463
449
  # Request-specific options
464
450
  #
@@ -471,8 +457,8 @@ module Google
471
457
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
472
458
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
473
459
  # @raise [Google::Apis::AuthorizationError] Authorization is required
474
- def change_subscription_seats(customer_id, subscription_id, seats_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
475
- command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/changeSeats', options)
460
+ def change_subscription_seats(customer_id, subscription_id, seats_object = nil, fields: nil, quota_user: nil, options: nil, &block)
461
+ command = make_simple_command(:post, 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats', options)
476
462
  command.request_representation = Google::Apis::ResellerV1::Seats::Representation
477
463
  command.request_object = seats_object
478
464
  command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
@@ -481,32 +467,33 @@ module Google
481
467
  command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
482
468
  command.query['fields'] = fields unless fields.nil?
483
469
  command.query['quotaUser'] = quota_user unless quota_user.nil?
484
- command.query['userIp'] = user_ip unless user_ip.nil?
485
470
  execute_or_queue_command(command, &block)
486
471
  end
487
472
 
488
473
  # Cancel, suspend, or transfer a subscription to direct.
489
474
  # @param [String] customer_id
490
- # Either the customer's primary domain name or the customer's unique identifier.
491
- # If using the domain name, we do not recommend using a customerId as a key for
492
- # persistent data. If the domain name for a customerId is changed, the Google
493
- # system automatically updates.
475
+ # Either the customer&#39;s primary domain name or the customer's unique
476
+ # identifier. If using the domain name, we do not recommend using a
477
+ # <code>customerId</code> as a key for persistent data. If the domain name
478
+ # for a <code>customerId</code> is changed, the Google system automatically
479
+ # updates.
494
480
  # @param [String] subscription_id
495
- # This is a required property. The subscriptionId is the subscription identifier
496
- # and is unique for each customer. Since a subscriptionId changes when a
497
- # subscription is updated, we recommend to not use this ID as a key for
498
- # persistent data. And the subscriptionId can be found using the retrieve all
499
- # reseller subscriptions method.
481
+ # This is a required property. The <code>subscriptionId</code> is the
482
+ # subscription identifier and is unique for each customer. Since a
483
+ # <code>subscriptionId</code> changes when a subscription is updated, we
484
+ # recommend to not use this ID as a key for persistent data. And the
485
+ # <code>subscriptionId</code> can be found using the <a
486
+ # href="/admin-sdk/reseller/v1/how-tos/manage_subscriptions#
487
+ # get_all_subscriptions">retrieve
488
+ # all reseller subscriptions</a> method.
500
489
  # @param [String] deletion_type
501
- # The deletionType query string enables the cancellation, downgrade, or
502
- # suspension of a subscription.
490
+ # The <code>deletionType</code> query string enables the cancellation,
491
+ # downgrade, or suspension of a subscription.
503
492
  # @param [String] fields
504
493
  # Selector specifying which fields to include in a partial response.
505
494
  # @param [String] quota_user
506
- # An opaque string that represents a user for quota purposes. Must not exceed 40
507
- # characters.
508
- # @param [String] user_ip
509
- # Deprecated. Please use quotaUser instead.
495
+ # Available to use for quota purposes for server-side applications. Can be any
496
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
510
497
  # @param [Google::Apis::RequestOptions] options
511
498
  # Request-specific options
512
499
  #
@@ -519,36 +506,37 @@ module Google
519
506
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
507
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
508
  # @raise [Google::Apis::AuthorizationError] Authorization is required
522
- def delete_subscription(customer_id, subscription_id, deletion_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
523
- command = make_simple_command(:delete, 'customers/{customerId}/subscriptions/{subscriptionId}', options)
509
+ def delete_subscription(customer_id, subscription_id, deletion_type, fields: nil, quota_user: nil, options: nil, &block)
510
+ command = make_simple_command(:delete, 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}', options)
524
511
  command.params['customerId'] = customer_id unless customer_id.nil?
525
512
  command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
526
513
  command.query['deletionType'] = deletion_type unless deletion_type.nil?
527
514
  command.query['fields'] = fields unless fields.nil?
528
515
  command.query['quotaUser'] = quota_user unless quota_user.nil?
529
- command.query['userIp'] = user_ip unless user_ip.nil?
530
516
  execute_or_queue_command(command, &block)
531
517
  end
532
518
 
533
519
  # Get a specific subscription.
534
520
  # @param [String] customer_id
535
- # Either the customer's primary domain name or the customer's unique identifier.
536
- # If using the domain name, we do not recommend using a customerId as a key for
537
- # persistent data. If the domain name for a customerId is changed, the Google
538
- # system automatically updates.
521
+ # Either the customer&#39;s primary domain name or the customer's unique
522
+ # identifier. If using the domain name, we do not recommend using a
523
+ # <code>customerId</code> as a key for persistent data. If the domain name
524
+ # for a <code>customerId</code> is changed, the Google system automatically
525
+ # updates.
539
526
  # @param [String] subscription_id
540
- # This is a required property. The subscriptionId is the subscription identifier
541
- # and is unique for each customer. Since a subscriptionId changes when a
542
- # subscription is updated, we recommend to not use this ID as a key for
543
- # persistent data. And the subscriptionId can be found using the retrieve all
544
- # reseller subscriptions method.
527
+ # This is a required property. The <code>subscriptionId</code> is the
528
+ # subscription identifier and is unique for each customer. Since a
529
+ # <code>subscriptionId</code> changes when a subscription is updated, we
530
+ # recommend to not use this ID as a key for persistent data. And the
531
+ # <code>subscriptionId</code> can be found using the <a
532
+ # href="/admin-sdk/reseller/v1/how-tos/manage_subscriptions#
533
+ # get_all_subscriptions">retrieve
534
+ # all reseller subscriptions</a> method.
545
535
  # @param [String] fields
546
536
  # Selector specifying which fields to include in a partial response.
547
537
  # @param [String] quota_user
548
- # An opaque string that represents a user for quota purposes. Must not exceed 40
549
- # characters.
550
- # @param [String] user_ip
551
- # Deprecated. Please use quotaUser instead.
538
+ # Available to use for quota purposes for server-side applications. Can be any
539
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
552
540
  # @param [Google::Apis::RequestOptions] options
553
541
  # Request-specific options
554
542
  #
@@ -561,38 +549,39 @@ module Google
561
549
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
562
550
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
563
551
  # @raise [Google::Apis::AuthorizationError] Authorization is required
564
- def get_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
565
- command = make_simple_command(:get, 'customers/{customerId}/subscriptions/{subscriptionId}', options)
552
+ def get_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, options: nil, &block)
553
+ command = make_simple_command(:get, 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}', options)
566
554
  command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
567
555
  command.response_class = Google::Apis::ResellerV1::Subscription
568
556
  command.params['customerId'] = customer_id unless customer_id.nil?
569
557
  command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
570
558
  command.query['fields'] = fields unless fields.nil?
571
559
  command.query['quotaUser'] = quota_user unless quota_user.nil?
572
- command.query['userIp'] = user_ip unless user_ip.nil?
573
560
  execute_or_queue_command(command, &block)
574
561
  end
575
562
 
576
563
  # Create or transfer a subscription.
577
564
  # @param [String] customer_id
578
- # Either the customer's primary domain name or the customer's unique identifier.
579
- # If using the domain name, we do not recommend using a customerId as a key for
580
- # persistent data. If the domain name for a customerId is changed, the Google
581
- # system automatically updates.
565
+ # Either the customer&#39;s primary domain name or the customer's unique
566
+ # identifier. If using the domain name, we do not recommend using a
567
+ # <code>customerId</code> as a key for persistent data. If the domain name
568
+ # for a <code>customerId</code> is changed, the Google system automatically
569
+ # updates.
582
570
  # @param [Google::Apis::ResellerV1::Subscription] subscription_object
583
571
  # @param [String] customer_auth_token
584
- # The customerAuthToken query string is required when creating a resold account
585
- # that transfers a direct customer's subscription or transfers another reseller
586
- # customer's subscription to your reseller management. This is a hexadecimal
572
+ # The <code>customerAuthToken</code> query string is required when creating a
573
+ # resold account that transfers a direct
574
+ # customer's subscription or transfers another reseller customer's
575
+ # subscription to your reseller management. This is a hexadecimal
587
576
  # authentication token needed to complete the subscription transfer. For more
588
- # information, see the administrator help center.
577
+ # information, see the <a
578
+ # href="//support.google.com/a/bin/answer.py?answer=142336">administrator
579
+ # help center</a>.
589
580
  # @param [String] fields
590
581
  # Selector specifying which fields to include in a partial response.
591
582
  # @param [String] quota_user
592
- # An opaque string that represents a user for quota purposes. Must not exceed 40
593
- # characters.
594
- # @param [String] user_ip
595
- # Deprecated. Please use quotaUser instead.
583
+ # Available to use for quota purposes for server-side applications. Can be any
584
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
596
585
  # @param [Google::Apis::RequestOptions] options
597
586
  # Request-specific options
598
587
  #
@@ -605,8 +594,8 @@ module Google
605
594
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
606
595
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
607
596
  # @raise [Google::Apis::AuthorizationError] Authorization is required
608
- def insert_subscription(customer_id, subscription_object = nil, customer_auth_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
609
- command = make_simple_command(:post, 'customers/{customerId}/subscriptions', options)
597
+ def insert_subscription(customer_id, subscription_object = nil, customer_auth_token: nil, fields: nil, quota_user: nil, options: nil, &block)
598
+ command = make_simple_command(:post, 'apps/reseller/v1/customers/{customerId}/subscriptions', options)
610
599
  command.request_representation = Google::Apis::ResellerV1::Subscription::Representation
611
600
  command.request_object = subscription_object
612
601
  command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
@@ -615,45 +604,51 @@ module Google
615
604
  command.query['customerAuthToken'] = customer_auth_token unless customer_auth_token.nil?
616
605
  command.query['fields'] = fields unless fields.nil?
617
606
  command.query['quotaUser'] = quota_user unless quota_user.nil?
618
- command.query['userIp'] = user_ip unless user_ip.nil?
619
607
  execute_or_queue_command(command, &block)
620
608
  end
621
609
 
622
610
  # List of subscriptions managed by the reseller. The list can be all
623
- # subscriptions, all of a customer's subscriptions, or all of a customer's
624
- # transferable subscriptions.
611
+ # subscriptions, all of a customer&#39;s subscriptions, or all of a
612
+ # customer&#39;s transferable subscriptions.
625
613
  # @param [String] customer_auth_token
626
- # The customerAuthToken query string is required when creating a resold account
627
- # that transfers a direct customer's subscription or transfers another reseller
628
- # customer's subscription to your reseller management. This is a hexadecimal
614
+ # The <code>customerAuthToken</code> query string is required when creating a
615
+ # resold account that transfers a direct
616
+ # customer's subscription or transfers another reseller customer's
617
+ # subscription to your reseller management. This is a hexadecimal
629
618
  # authentication token needed to complete the subscription transfer. For more
630
- # information, see the administrator help center.
619
+ # information, see the <a
620
+ # href="//support.google.com/a/bin/answer.py?answer=142336">administrator
621
+ # help center</a>.
631
622
  # @param [String] customer_id
632
- # Either the customer's primary domain name or the customer's unique identifier.
633
- # If using the domain name, we do not recommend using a customerId as a key for
634
- # persistent data. If the domain name for a customerId is changed, the Google
635
- # system automatically updates.
623
+ # Either the customer&#39;s primary domain name or the customer's unique
624
+ # identifier. If using the domain name, we do not recommend using a
625
+ # <code>customerId</code> as a key for persistent data. If the domain name
626
+ # for a <code>customerId</code> is changed, the Google system automatically
627
+ # updates.
636
628
  # @param [String] customer_name_prefix
637
- # When retrieving all of your subscriptions and filtering for specific customers,
638
- # you can enter a prefix for a customer name. Using an example customer group
639
- # that includes exam.com, example20.com and example.com:
640
- # - exa -- Returns all customer names that start with 'exa' which could include
641
- # exam.com, example20.com, and example.com. A name prefix is similar to using a
642
- # regular expression's asterisk, exa*.
643
- # - example -- Returns example20.com and example.com.
629
+ # When retrieving all of your subscriptions and filtering for specific
630
+ # customers, you can enter a prefix for a customer name. Using an example
631
+ # customer group that includes <code>exam.com</code>,
632
+ # <code>example20.com</code> and <code>example.com</code>:
633
+ # <ul>
634
+ # <li><code>exa</code> -- Returns all customer names that start with
635
+ # &#39;exa&#39; which could include <code>exam.com</code>,
636
+ # <code>example20.com</code>, and <code>example.com</code>. A name prefix is
637
+ # similar to using a regular expression&#39;s asterisk, exa*.</li>
638
+ # <li><code>example</code> -- Returns <code>example20.com</code> and
639
+ # <code>example.com</code>.</li>
640
+ # </ul>
644
641
  # @param [Fixnum] max_results
645
- # When retrieving a large list, the maxResults is the maximum number of results
646
- # per page. The nextPageToken value takes you to the next page. The default is
647
- # 20.
642
+ # When retrieving a large list, the <code>maxResults</code> is the maximum
643
+ # number of results per page. The <code>nextPageToken</code> value takes you
644
+ # to the next page. The default is 20.
648
645
  # @param [String] page_token
649
646
  # Token to specify next page in the list
650
647
  # @param [String] fields
651
648
  # Selector specifying which fields to include in a partial response.
652
649
  # @param [String] quota_user
653
- # An opaque string that represents a user for quota purposes. Must not exceed 40
654
- # characters.
655
- # @param [String] user_ip
656
- # Deprecated. Please use quotaUser instead.
650
+ # Available to use for quota purposes for server-side applications. Can be any
651
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
657
652
  # @param [Google::Apis::RequestOptions] options
658
653
  # Request-specific options
659
654
  #
@@ -666,8 +661,8 @@ module Google
666
661
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
667
662
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
668
663
  # @raise [Google::Apis::AuthorizationError] Authorization is required
669
- def list_subscriptions(customer_auth_token: nil, customer_id: nil, customer_name_prefix: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
670
- command = make_simple_command(:get, 'subscriptions', options)
664
+ def list_subscriptions(customer_auth_token: nil, customer_id: nil, customer_name_prefix: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
665
+ command = make_simple_command(:get, 'apps/reseller/v1/subscriptions', options)
671
666
  command.response_representation = Google::Apis::ResellerV1::Subscriptions::Representation
672
667
  command.response_class = Google::Apis::ResellerV1::Subscriptions
673
668
  command.query['customerAuthToken'] = customer_auth_token unless customer_auth_token.nil?
@@ -677,30 +672,31 @@ module Google
677
672
  command.query['pageToken'] = page_token unless page_token.nil?
678
673
  command.query['fields'] = fields unless fields.nil?
679
674
  command.query['quotaUser'] = quota_user unless quota_user.nil?
680
- command.query['userIp'] = user_ip unless user_ip.nil?
681
675
  execute_or_queue_command(command, &block)
682
676
  end
683
677
 
684
678
  # Immediately move a 30-day free trial subscription to a paid service
685
679
  # subscription.
686
680
  # @param [String] customer_id
687
- # Either the customer's primary domain name or the customer's unique identifier.
688
- # If using the domain name, we do not recommend using a customerId as a key for
689
- # persistent data. If the domain name for a customerId is changed, the Google
690
- # system automatically updates.
681
+ # Either the customer&#39;s primary domain name or the customer's unique
682
+ # identifier. If using the domain name, we do not recommend using a
683
+ # <code>customerId</code> as a key for persistent data. If the domain name
684
+ # for a <code>customerId</code> is changed, the Google system automatically
685
+ # updates.
691
686
  # @param [String] subscription_id
692
- # This is a required property. The subscriptionId is the subscription identifier
693
- # and is unique for each customer. Since a subscriptionId changes when a
694
- # subscription is updated, we recommend to not use this ID as a key for
695
- # persistent data. And the subscriptionId can be found using the retrieve all
696
- # reseller subscriptions method.
687
+ # This is a required property. The <code>subscriptionId</code> is the
688
+ # subscription identifier and is unique for each customer. Since a
689
+ # <code>subscriptionId</code> changes when a subscription is updated, we
690
+ # recommend to not use this ID as a key for persistent data. And the
691
+ # <code>subscriptionId</code> can be found using the <a
692
+ # href="/admin-sdk/reseller/v1/how-tos/manage_subscriptions#
693
+ # get_all_subscriptions">retrieve
694
+ # all reseller subscriptions</a> method.
697
695
  # @param [String] fields
698
696
  # Selector specifying which fields to include in a partial response.
699
697
  # @param [String] quota_user
700
- # An opaque string that represents a user for quota purposes. Must not exceed 40
701
- # characters.
702
- # @param [String] user_ip
703
- # Deprecated. Please use quotaUser instead.
698
+ # Available to use for quota purposes for server-side applications. Can be any
699
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
704
700
  # @param [Google::Apis::RequestOptions] options
705
701
  # Request-specific options
706
702
  #
@@ -713,37 +709,38 @@ module Google
713
709
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
714
710
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
715
711
  # @raise [Google::Apis::AuthorizationError] Authorization is required
716
- def start_subscription_paid_service(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
717
- command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/startPaidService', options)
712
+ def start_subscription_paid_service(customer_id, subscription_id, fields: nil, quota_user: nil, options: nil, &block)
713
+ command = make_simple_command(:post, 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService', options)
718
714
  command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
719
715
  command.response_class = Google::Apis::ResellerV1::Subscription
720
716
  command.params['customerId'] = customer_id unless customer_id.nil?
721
717
  command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
722
718
  command.query['fields'] = fields unless fields.nil?
723
719
  command.query['quotaUser'] = quota_user unless quota_user.nil?
724
- command.query['userIp'] = user_ip unless user_ip.nil?
725
720
  execute_or_queue_command(command, &block)
726
721
  end
727
722
 
728
723
  # Suspends an active subscription.
729
724
  # @param [String] customer_id
730
- # Either the customer's primary domain name or the customer's unique identifier.
731
- # If using the domain name, we do not recommend using a customerId as a key for
732
- # persistent data. If the domain name for a customerId is changed, the Google
733
- # system automatically updates.
725
+ # Either the customer&#39;s primary domain name or the customer's unique
726
+ # identifier. If using the domain name, we do not recommend using a
727
+ # <code>customerId</code> as a key for persistent data. If the domain name
728
+ # for a <code>customerId</code> is changed, the Google system automatically
729
+ # updates.
734
730
  # @param [String] subscription_id
735
- # This is a required property. The subscriptionId is the subscription identifier
736
- # and is unique for each customer. Since a subscriptionId changes when a
737
- # subscription is updated, we recommend to not use this ID as a key for
738
- # persistent data. And the subscriptionId can be found using the retrieve all
739
- # reseller subscriptions method.
731
+ # This is a required property. The <code>subscriptionId</code> is the
732
+ # subscription identifier and is unique for each customer. Since a
733
+ # <code>subscriptionId</code> changes when a subscription is updated, we
734
+ # recommend to not use this ID as a key for persistent data. And the
735
+ # <code>subscriptionId</code> can be found using the <a
736
+ # href="/admin-sdk/reseller/v1/how-tos/manage_subscriptions#
737
+ # get_all_subscriptions">retrieve
738
+ # all reseller subscriptions</a> method.
740
739
  # @param [String] fields
741
740
  # Selector specifying which fields to include in a partial response.
742
741
  # @param [String] quota_user
743
- # An opaque string that represents a user for quota purposes. Must not exceed 40
744
- # characters.
745
- # @param [String] user_ip
746
- # Deprecated. Please use quotaUser instead.
742
+ # Available to use for quota purposes for server-side applications. Can be any
743
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
747
744
  # @param [Google::Apis::RequestOptions] options
748
745
  # Request-specific options
749
746
  #
@@ -756,15 +753,14 @@ module Google
756
753
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
757
754
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
758
755
  # @raise [Google::Apis::AuthorizationError] Authorization is required
759
- def suspend_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
760
- command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/suspend', options)
756
+ def suspend_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, options: nil, &block)
757
+ command = make_simple_command(:post, 'apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend', options)
761
758
  command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
762
759
  command.response_class = Google::Apis::ResellerV1::Subscription
763
760
  command.params['customerId'] = customer_id unless customer_id.nil?
764
761
  command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
765
762
  command.query['fields'] = fields unless fields.nil?
766
763
  command.query['quotaUser'] = quota_user unless quota_user.nil?
767
- command.query['userIp'] = user_ip unless user_ip.nil?
768
764
  execute_or_queue_command(command, &block)
769
765
  end
770
766
 
@@ -773,7 +769,6 @@ module Google
773
769
  def apply_command_defaults(command)
774
770
  command.query['key'] = key unless key.nil?
775
771
  command.query['quotaUser'] = quota_user unless quota_user.nil?
776
- command.query['userIp'] = user_ip unless user_ip.nil?
777
772
  end
778
773
  end
779
774
  end