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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +70 -0
- data/generated/google/apis/admob_v1.rb +1 -1
- data/generated/google/apis/admob_v1/service.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +28 -13
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
- data/generated/google/apis/blogger_v3.rb +1 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +111 -0
- data/generated/google/apis/chat_v1/representations.rb +50 -0
- data/generated/google/apis/chat_v1/service.rb +32 -0
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/service.rb +5 -2
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +25 -0
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +15 -0
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +5 -5
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +5 -5
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +2 -3
- data/generated/google/apis/cloudtrace_v1/service.rb +1 -7
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +6 -5
- data/generated/google/apis/cloudtrace_v2/service.rb +3 -6
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +279 -0
- data/generated/google/apis/compute_beta/representations.rb +90 -0
- data/generated/google/apis/compute_beta/service.rb +257 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +279 -0
- data/generated/google/apis/compute_v1/representations.rb +90 -0
- data/generated/google/apis/compute_v1/service.rb +257 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +9 -0
- data/generated/google/apis/container_v1/representations.rb +1 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +15 -0
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +4 -4
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +12 -2
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +3 -3
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/service.rb +2 -2
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +9 -9
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +9 -9
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +1 -1
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/service.rb +2 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +5 -2
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +4 -4
- data/generated/google/apis/dns_v2beta1/classes.rb +313 -162
- data/generated/google/apis/dns_v2beta1/service.rb +247 -180
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +66 -2
- data/generated/google/apis/drive_v2/representations.rb +22 -0
- data/generated/google/apis/drive_v2/service.rb +23 -10
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +65 -2
- data/generated/google/apis/drive_v3/representations.rb +22 -0
- data/generated/google/apis/drive_v3/service.rb +8 -5
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +152 -0
- data/generated/google/apis/firestore_v1/representations.rb +63 -0
- data/generated/google/apis/firestore_v1/service.rb +78 -0
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +152 -0
- data/generated/google/apis/firestore_v1beta1/representations.rb +63 -0
- data/generated/google/apis/firestore_v1beta1/service.rb +78 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +53 -53
- data/generated/google/apis/gmail_v1/service.rb +72 -72
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/service.rb +48 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +60 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +22 -3
- data/generated/google/apis/iam_v1/service.rb +18 -6
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +17 -11
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +54 -30
- data/generated/google/apis/networkmanagement_v1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1/classes.rb +6 -6
- data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +6 -6
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +2 -2
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +2 -2
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/recommendationengine_v1beta1.rb +36 -0
- data/generated/google/apis/recommendationengine_v1beta1/classes.rb +2015 -0
- data/generated/google/apis/recommendationengine_v1beta1/representations.rb +848 -0
- data/generated/google/apis/recommendationengine_v1beta1/service.rb +990 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/reseller_v1.rb +4 -3
- data/generated/google/apis/reseller_v1/classes.rb +219 -160
- data/generated/google/apis/reseller_v1/service.rb +247 -252
- data/generated/google/apis/run_v1.rb +2 -2
- data/generated/google/apis/run_v1/classes.rb +6 -1
- data/generated/google/apis/run_v1/service.rb +1 -1
- data/generated/google/apis/run_v1alpha1.rb +2 -2
- data/generated/google/apis/run_v1alpha1/service.rb +1 -1
- data/generated/google/apis/run_v1beta1.rb +2 -2
- data/generated/google/apis/run_v1beta1/service.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +4 -3
- data/generated/google/apis/searchconsole_v1/service.rb +3 -2
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +2 -2
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +2 -2
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +6 -6
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +2 -2
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +2 -2
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +2 -2
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +2 -2
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +2 -2
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +28 -28
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +2 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +2 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +2 -0
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +2 -2
- data/generated/google/apis/youtube_v3/service.rb +1 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -3
@@ -20,9 +20,10 @@ require 'google/apis/errors'
|
|
20
20
|
module Google
|
21
21
|
module Apis
|
22
22
|
module ResellerV1
|
23
|
-
#
|
23
|
+
# Google Apps Reseller API
|
24
24
|
#
|
25
|
-
#
|
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
|
-
#
|
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/', '
|
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
|
57
|
-
# If using the domain name, we do not recommend using a
|
58
|
-
# persistent data. If the domain name
|
59
|
-
# system automatically
|
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
|
-
#
|
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,
|
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
|
94
|
-
# that transfers a direct customer
|
95
|
-
# customer
|
96
|
-
# authentication token needed to complete
|
97
|
-
# information, see the
|
88
|
+
# The <code>customerAuthToken</code> query string is required when creating a
|
89
|
+
# resold account that transfers a direct customer's subscription or
|
90
|
+
# transfers another reseller customer'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
|
-
#
|
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,
|
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
|
-
#
|
124
|
+
# Patch a customer account's settings via Apiary Patch Orchestration
|
131
125
|
# @param [String] customer_id
|
132
|
-
# Either the customer
|
133
|
-
# If using the domain name, we do not recommend using a
|
134
|
-
# persistent data. If the domain name
|
135
|
-
# system automatically
|
126
|
+
# Either the customer'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
|
-
#
|
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,
|
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
|
172
|
-
# If using the domain name, we do not recommend using a
|
173
|
-
# persistent data. If the domain name
|
174
|
-
# system automatically
|
163
|
+
# Either the customer'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
|
-
#
|
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,
|
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
|
-
#
|
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,
|
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
|
-
#
|
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,
|
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
|
-
#
|
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,
|
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
|
307
|
-
# If using the domain name, we do not recommend using a
|
308
|
-
# persistent data. If the domain name
|
309
|
-
# system automatically
|
287
|
+
# Either the customer'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
|
312
|
-
# and is unique for each customer. Since a
|
313
|
-
# subscription is updated, we
|
314
|
-
#
|
315
|
-
#
|
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
|
-
#
|
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,
|
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
|
352
|
-
# If using the domain name, we do not recommend using a
|
353
|
-
# persistent data. If the domain name
|
354
|
-
# system automatically
|
333
|
+
# Either the customer'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
|
357
|
-
# and is unique for each customer. Since a
|
358
|
-
# subscription is updated, we
|
359
|
-
#
|
360
|
-
#
|
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
|
-
#
|
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,
|
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
|
396
|
-
# annual commitment plans only.
|
378
|
+
# Update a user license's renewal settings. This is applicable for
|
379
|
+
# accounts with annual commitment plans only.
|
397
380
|
# @param [String] customer_id
|
398
|
-
# Either the customer
|
399
|
-
# If using the domain name, we do not recommend using a
|
400
|
-
# persistent data. If the domain name
|
401
|
-
# system automatically
|
381
|
+
# Either the customer'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
|
404
|
-
# and is unique for each customer. Since a
|
405
|
-
# subscription is updated, we
|
406
|
-
#
|
407
|
-
#
|
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
|
-
#
|
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,
|
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
|
426
|
+
# Update a subscription's user license settings.
|
443
427
|
# @param [String] customer_id
|
444
|
-
# Either the customer
|
445
|
-
# If using the domain name, we do not recommend using a
|
446
|
-
# persistent data. If the domain name
|
447
|
-
# system automatically
|
428
|
+
# Either the customer'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
|
450
|
-
# and is unique for each customer. Since a
|
451
|
-
# subscription is updated, we
|
452
|
-
#
|
453
|
-
#
|
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
|
-
#
|
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,
|
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
|
491
|
-
# If using the domain name, we do not recommend using a
|
492
|
-
# persistent data. If the domain name
|
493
|
-
# system automatically
|
475
|
+
# Either the customer'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
|
496
|
-
# and is unique for each customer. Since a
|
497
|
-
# subscription is updated, we
|
498
|
-
#
|
499
|
-
#
|
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,
|
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
|
-
#
|
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,
|
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
|
536
|
-
# If using the domain name, we do not recommend using a
|
537
|
-
# persistent data. If the domain name
|
538
|
-
# system automatically
|
521
|
+
# Either the customer'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
|
541
|
-
# and is unique for each customer. Since a
|
542
|
-
# subscription is updated, we
|
543
|
-
#
|
544
|
-
#
|
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
|
-
#
|
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,
|
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
|
579
|
-
# If using the domain name, we do not recommend using a
|
580
|
-
# persistent data. If the domain name
|
581
|
-
# system automatically
|
565
|
+
# Either the customer'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
|
585
|
-
# that transfers a direct
|
586
|
-
# customer's subscription
|
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
|
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
|
-
#
|
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,
|
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
|
624
|
-
# transferable subscriptions.
|
611
|
+
# subscriptions, all of a customer's subscriptions, or all of a
|
612
|
+
# customer's transferable subscriptions.
|
625
613
|
# @param [String] customer_auth_token
|
626
|
-
# The customerAuthToken query string is required when creating a
|
627
|
-
# that transfers a direct
|
628
|
-
# customer's subscription
|
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
|
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
|
633
|
-
# If using the domain name, we do not recommend using a
|
634
|
-
# persistent data. If the domain name
|
635
|
-
# system automatically
|
623
|
+
# Either the customer'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
|
638
|
-
# you can enter a prefix for a customer name. Using an example
|
639
|
-
# that includes exam.com
|
640
|
-
#
|
641
|
-
#
|
642
|
-
#
|
643
|
-
#
|
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
|
+
# 'exa' 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'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
|
646
|
-
# per page. The nextPageToken value takes you
|
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
|
-
#
|
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,
|
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
|
688
|
-
# If using the domain name, we do not recommend using a
|
689
|
-
# persistent data. If the domain name
|
690
|
-
# system automatically
|
681
|
+
# Either the customer'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
|
693
|
-
# and is unique for each customer. Since a
|
694
|
-
# subscription is updated, we
|
695
|
-
#
|
696
|
-
#
|
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
|
-
#
|
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,
|
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
|
731
|
-
# If using the domain name, we do not recommend using a
|
732
|
-
# persistent data. If the domain name
|
733
|
-
# system automatically
|
725
|
+
# Either the customer'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
|
736
|
-
# and is unique for each customer. Since a
|
737
|
-
# subscription is updated, we
|
738
|
-
#
|
739
|
-
#
|
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
|
-
#
|
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,
|
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
|