blob: 7bc694d56d311de5c1b062dbec45d2d753417200 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070075<h1><a href="licensing_v1.html">Enterprise License Manager API</a> . <a href="licensing_v1.licenseAssignments.html">licenseAssignments</a></h1>
John Asmuth614db982014-04-24 15:46:26 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(productId, skuId, userId, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070082<p class="firstline">Revoke a license.</p>
John Asmuth614db982014-04-24 15:46:26 -040083<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070084 <code><a href="#get">get(productId, skuId, userId, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070085<p class="firstline">Get a specific user's license by product SKU.</p>
John Asmuth614db982014-04-24 15:46:26 -040086<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070087 <code><a href="#insert">insert(productId, skuId, body=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070088<p class="firstline">Assign a license.</p>
John Asmuth614db982014-04-24 15:46:26 -040089<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090 <code><a href="#listForProduct">listForProduct(productId, customerId, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070091<p class="firstline">List all users assigned licenses for a specific product SKU.</p>
John Asmuth614db982014-04-24 15:46:26 -040092<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070093 <code><a href="#listForProductAndSku">listForProductAndSku(productId, skuId, customerId, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070094<p class="firstline">List all users assigned licenses for a specific product SKU.</p>
John Asmuth614db982014-04-24 15:46:26 -040095<p class="toc_element">
96 <code><a href="#listForProductAndSku_next">listForProductAndSku_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99 <code><a href="#listForProduct_next">listForProduct_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102 <code><a href="#patch">patch(productId, skuId, userId, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Patch a Licensing info via Apiary Patch Orchestration</p>
John Asmuth614db982014-04-24 15:46:26 -0400104<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700105 <code><a href="#update">update(productId, skuId, userId, body=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -0700106<p class="firstline">Reassign a user's product SKU with a different SKU in the same product.</p>
John Asmuth614db982014-04-24 15:46:26 -0400107<h3>Method Details</h3>
108<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109 <code class="details" id="close">close()</code>
110 <pre>Close httplib2 connections.</pre>
111</div>
112
113<div class="method">
114 <code class="details" id="delete">delete(productId, skuId, userId, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <pre>Revoke a license.
John Asmuth614db982014-04-24 15:46:26 -0400116
117Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700118 productId: string, A product&#x27;s unique identifier. For more information about products in this version of the API, see Products and SKUs. (required)
119 skuId: string, A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700120 userId: string, The user&#x27;s current primary email address. If the user&#x27;s email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user&#x27;s email address changes. If the userId is suspended, the license status changes. (required)
121 x__xgafv: string, V1 error format.
122 Allowed values
123 1 - v1 error format
124 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400125</pre>
126</div>
127
128<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700129 <code class="details" id="get">get(productId, skuId, userId, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 <pre>Get a specific user&#x27;s license by product SKU.
John Asmuth614db982014-04-24 15:46:26 -0400131
132Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700133 productId: string, A product&#x27;s unique identifier. For more information about products in this version of the API, see Products and SKUs. (required)
134 skuId: string, A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700135 userId: string, The user&#x27;s current primary email address. If the user&#x27;s email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user&#x27;s email address changes. If the userId is suspended, the license status changes. (required)
136 x__xgafv: string, V1 error format.
137 Allowed values
138 1 - v1 error format
139 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400140
141Returns:
142 An object of the form:
143
Dan O'Mearadd494642020-05-01 07:42:23 -0700144 { # Representation of a license assignment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700145 &quot;productName&quot;: &quot;A String&quot;, # Display Name of the product.
146 &quot;skuName&quot;: &quot;A String&quot;, # Display Name of the sku of the product.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700147 &quot;selfLink&quot;: &quot;A String&quot;, # Link to this page.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700148 &quot;kind&quot;: &quot;licensing#licenseAssignment&quot;, # Identifies the resource as a LicenseAssignment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 &quot;etags&quot;: &quot;A String&quot;, # ETag of the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700150 &quot;skuId&quot;: &quot;A String&quot;, # A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700151 &quot;userId&quot;: &quot;A String&quot;, # The user&#x27;s current primary email address. If the user&#x27;s email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user&#x27;s email address changes. If the userId is suspended, the license status changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;productId&quot;: &quot;A String&quot;, # A product&#x27;s unique identifier. For more information about products in this version of the API, see Product and SKU IDs.
John Asmuth614db982014-04-24 15:46:26 -0400153 }</pre>
154</div>
155
156<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700157 <code class="details" id="insert">insert(productId, skuId, body=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700158 <pre>Assign a license.
John Asmuth614db982014-04-24 15:46:26 -0400159
160Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 productId: string, A product&#x27;s unique identifier. For more information about products in this version of the API, see Products and SKUs. (required)
162 skuId: string, A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700163 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400164 The object takes the form of:
165
Dan O'Mearadd494642020-05-01 07:42:23 -0700166{ # Representation of a license assignment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;userId&quot;: &quot;A String&quot;, # Email id of the user
John Asmuth614db982014-04-24 15:46:26 -0400168 }
169
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700170 x__xgafv: string, V1 error format.
171 Allowed values
172 1 - v1 error format
173 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400174
175Returns:
176 An object of the form:
177
Dan O'Mearadd494642020-05-01 07:42:23 -0700178 { # Representation of a license assignment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700179 &quot;productName&quot;: &quot;A String&quot;, # Display Name of the product.
180 &quot;skuName&quot;: &quot;A String&quot;, # Display Name of the sku of the product.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700181 &quot;selfLink&quot;: &quot;A String&quot;, # Link to this page.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700182 &quot;kind&quot;: &quot;licensing#licenseAssignment&quot;, # Identifies the resource as a LicenseAssignment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;etags&quot;: &quot;A String&quot;, # ETag of the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700184 &quot;skuId&quot;: &quot;A String&quot;, # A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700185 &quot;userId&quot;: &quot;A String&quot;, # The user&#x27;s current primary email address. If the user&#x27;s email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user&#x27;s email address changes. If the userId is suspended, the license status changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;productId&quot;: &quot;A String&quot;, # A product&#x27;s unique identifier. For more information about products in this version of the API, see Product and SKU IDs.
John Asmuth614db982014-04-24 15:46:26 -0400187 }</pre>
188</div>
189
190<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700191 <code class="details" id="listForProduct">listForProduct(productId, customerId, maxResults=None, pageToken=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700192 <pre>List all users assigned licenses for a specific product SKU.
John Asmuth614db982014-04-24 15:46:26 -0400193
194Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 productId: string, A product&#x27;s unique identifier. For more information about products in this version of the API, see Products and SKUs. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700196 customerId: string, Customer&#x27;s customerId. A previous version of this API accepted the primary domain name as a value for this field. If the customer is suspended, the server returns an error. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700197 maxResults: integer, The maxResults query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number.
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 pageToken: string, Token to fetch the next page of data. The maxResults query string is related to the pageToken since maxResults determines how many entries are returned on each page. This is an optional query string. If not specified, the server returns the first page.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700199 x__xgafv: string, V1 error format.
200 Allowed values
201 1 - v1 error format
202 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400203
204Returns:
205 An object of the form:
206
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700207 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700208 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token that you must submit in a subsequent request to retrieve additional license results matching your query parameters. The maxResults query string is related to the nextPageToken since maxResults determines how many entries are returned on each next page.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700209 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
210 &quot;kind&quot;: &quot;licensing#licenseAssignmentList&quot;, # Identifies the resource as a collection of LicenseAssignments.
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 &quot;items&quot;: [ # The LicenseAssignments in this page of results.
Dan O'Mearadd494642020-05-01 07:42:23 -0700212 { # Representation of a license assignment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700213 &quot;productName&quot;: &quot;A String&quot;, # Display Name of the product.
214 &quot;skuName&quot;: &quot;A String&quot;, # Display Name of the sku of the product.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700215 &quot;selfLink&quot;: &quot;A String&quot;, # Link to this page.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700216 &quot;kind&quot;: &quot;licensing#licenseAssignment&quot;, # Identifies the resource as a LicenseAssignment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 &quot;etags&quot;: &quot;A String&quot;, # ETag of the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700218 &quot;skuId&quot;: &quot;A String&quot;, # A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700219 &quot;userId&quot;: &quot;A String&quot;, # The user&#x27;s current primary email address. If the user&#x27;s email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user&#x27;s email address changes. If the userId is suspended, the license status changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700220 &quot;productId&quot;: &quot;A String&quot;, # A product&#x27;s unique identifier. For more information about products in this version of the API, see Product and SKU IDs.
John Asmuth614db982014-04-24 15:46:26 -0400221 },
222 ],
John Asmuth614db982014-04-24 15:46:26 -0400223 }</pre>
224</div>
225
226<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700227 <code class="details" id="listForProductAndSku">listForProductAndSku(productId, skuId, customerId, maxResults=None, pageToken=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700228 <pre>List all users assigned licenses for a specific product SKU.
John Asmuth614db982014-04-24 15:46:26 -0400229
230Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700231 productId: string, A product&#x27;s unique identifier. For more information about products in this version of the API, see Products and SKUs. (required)
232 skuId: string, A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700233 customerId: string, Customer&#x27;s customerId. A previous version of this API accepted the primary domain name as a value for this field. If the customer is suspended, the server returns an error. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700234 maxResults: integer, The maxResults query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700235 pageToken: string, Token to fetch the next page of data. The maxResults query string is related to the pageToken since maxResults determines how many entries are returned on each page. This is an optional query string. If not specified, the server returns the first page.
236 x__xgafv: string, V1 error format.
237 Allowed values
238 1 - v1 error format
239 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400240
241Returns:
242 An object of the form:
243
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700244 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700245 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token that you must submit in a subsequent request to retrieve additional license results matching your query parameters. The maxResults query string is related to the nextPageToken since maxResults determines how many entries are returned on each next page.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700246 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
247 &quot;kind&quot;: &quot;licensing#licenseAssignmentList&quot;, # Identifies the resource as a collection of LicenseAssignments.
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &quot;items&quot;: [ # The LicenseAssignments in this page of results.
Dan O'Mearadd494642020-05-01 07:42:23 -0700249 { # Representation of a license assignment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700250 &quot;productName&quot;: &quot;A String&quot;, # Display Name of the product.
251 &quot;skuName&quot;: &quot;A String&quot;, # Display Name of the sku of the product.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700252 &quot;selfLink&quot;: &quot;A String&quot;, # Link to this page.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700253 &quot;kind&quot;: &quot;licensing#licenseAssignment&quot;, # Identifies the resource as a LicenseAssignment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 &quot;etags&quot;: &quot;A String&quot;, # ETag of the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700255 &quot;skuId&quot;: &quot;A String&quot;, # A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700256 &quot;userId&quot;: &quot;A String&quot;, # The user&#x27;s current primary email address. If the user&#x27;s email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user&#x27;s email address changes. If the userId is suspended, the license status changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 &quot;productId&quot;: &quot;A String&quot;, # A product&#x27;s unique identifier. For more information about products in this version of the API, see Product and SKU IDs.
John Asmuth614db982014-04-24 15:46:26 -0400258 },
259 ],
John Asmuth614db982014-04-24 15:46:26 -0400260 }</pre>
261</div>
262
263<div class="method">
264 <code class="details" id="listForProductAndSku_next">listForProductAndSku_next(previous_request, previous_response)</code>
265 <pre>Retrieves the next page of results.
266
267Args:
268 previous_request: The request for the previous page. (required)
269 previous_response: The response from the request for the previous page. (required)
270
271Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400273 page. Returns None if there are no more items in the collection.
274 </pre>
275</div>
276
277<div class="method">
278 <code class="details" id="listForProduct_next">listForProduct_next(previous_request, previous_response)</code>
279 <pre>Retrieves the next page of results.
280
281Args:
282 previous_request: The request for the previous page. (required)
283 previous_response: The response from the request for the previous page. (required)
284
285Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400287 page. Returns None if there are no more items in the collection.
288 </pre>
289</div>
290
291<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700292 <code class="details" id="patch">patch(productId, skuId, userId, body=None, x__xgafv=None)</code>
293 <pre>Patch a Licensing info via Apiary Patch Orchestration
John Asmuth614db982014-04-24 15:46:26 -0400294
295Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 productId: string, A product&#x27;s unique identifier. For more information about products in this version of the API, see Products and SKUs. (required)
297 skuId: string, A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700298 userId: string, The user&#x27;s current primary email address. If the user&#x27;s email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user&#x27;s email address changes. If the userId is suspended, the license status changes. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700299 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400300 The object takes the form of:
301
Dan O'Mearadd494642020-05-01 07:42:23 -0700302{ # Representation of a license assignment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700303 &quot;productName&quot;: &quot;A String&quot;, # Display Name of the product.
304 &quot;skuName&quot;: &quot;A String&quot;, # Display Name of the sku of the product.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700305 &quot;selfLink&quot;: &quot;A String&quot;, # Link to this page.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700306 &quot;kind&quot;: &quot;licensing#licenseAssignment&quot;, # Identifies the resource as a LicenseAssignment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &quot;etags&quot;: &quot;A String&quot;, # ETag of the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700308 &quot;skuId&quot;: &quot;A String&quot;, # A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700309 &quot;userId&quot;: &quot;A String&quot;, # The user&#x27;s current primary email address. If the user&#x27;s email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user&#x27;s email address changes. If the userId is suspended, the license status changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &quot;productId&quot;: &quot;A String&quot;, # A product&#x27;s unique identifier. For more information about products in this version of the API, see Product and SKU IDs.
John Asmuth614db982014-04-24 15:46:26 -0400311}
312
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700313 x__xgafv: string, V1 error format.
314 Allowed values
315 1 - v1 error format
316 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400317
318Returns:
319 An object of the form:
320
Dan O'Mearadd494642020-05-01 07:42:23 -0700321 { # Representation of a license assignment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700322 &quot;productName&quot;: &quot;A String&quot;, # Display Name of the product.
323 &quot;skuName&quot;: &quot;A String&quot;, # Display Name of the sku of the product.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700324 &quot;selfLink&quot;: &quot;A String&quot;, # Link to this page.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700325 &quot;kind&quot;: &quot;licensing#licenseAssignment&quot;, # Identifies the resource as a LicenseAssignment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700326 &quot;etags&quot;: &quot;A String&quot;, # ETag of the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700327 &quot;skuId&quot;: &quot;A String&quot;, # A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700328 &quot;userId&quot;: &quot;A String&quot;, # The user&#x27;s current primary email address. If the user&#x27;s email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user&#x27;s email address changes. If the userId is suspended, the license status changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 &quot;productId&quot;: &quot;A String&quot;, # A product&#x27;s unique identifier. For more information about products in this version of the API, see Product and SKU IDs.
John Asmuth614db982014-04-24 15:46:26 -0400330 }</pre>
331</div>
332
333<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700334 <code class="details" id="update">update(productId, skuId, userId, body=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 <pre>Reassign a user&#x27;s product SKU with a different SKU in the same product.
John Asmuth614db982014-04-24 15:46:26 -0400336
337Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 productId: string, A product&#x27;s unique identifier. For more information about products in this version of the API, see Products and SKUs. (required)
339 skuId: string, A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700340 userId: string, The user&#x27;s current primary email address. If the user&#x27;s email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user&#x27;s email address changes. If the userId is suspended, the license status changes. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700341 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400342 The object takes the form of:
343
Dan O'Mearadd494642020-05-01 07:42:23 -0700344{ # Representation of a license assignment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700345 &quot;productName&quot;: &quot;A String&quot;, # Display Name of the product.
346 &quot;skuName&quot;: &quot;A String&quot;, # Display Name of the sku of the product.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700347 &quot;selfLink&quot;: &quot;A String&quot;, # Link to this page.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700348 &quot;kind&quot;: &quot;licensing#licenseAssignment&quot;, # Identifies the resource as a LicenseAssignment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 &quot;etags&quot;: &quot;A String&quot;, # ETag of the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700350 &quot;skuId&quot;: &quot;A String&quot;, # A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700351 &quot;userId&quot;: &quot;A String&quot;, # The user&#x27;s current primary email address. If the user&#x27;s email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user&#x27;s email address changes. If the userId is suspended, the license status changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700352 &quot;productId&quot;: &quot;A String&quot;, # A product&#x27;s unique identifier. For more information about products in this version of the API, see Product and SKU IDs.
John Asmuth614db982014-04-24 15:46:26 -0400353}
354
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700355 x__xgafv: string, V1 error format.
356 Allowed values
357 1 - v1 error format
358 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400359
360Returns:
361 An object of the form:
362
Dan O'Mearadd494642020-05-01 07:42:23 -0700363 { # Representation of a license assignment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700364 &quot;productName&quot;: &quot;A String&quot;, # Display Name of the product.
365 &quot;skuName&quot;: &quot;A String&quot;, # Display Name of the sku of the product.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700366 &quot;selfLink&quot;: &quot;A String&quot;, # Link to this page.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700367 &quot;kind&quot;: &quot;licensing#licenseAssignment&quot;, # Identifies the resource as a LicenseAssignment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 &quot;etags&quot;: &quot;A String&quot;, # ETag of the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700369 &quot;skuId&quot;: &quot;A String&quot;, # A product SKU&#x27;s unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700370 &quot;userId&quot;: &quot;A String&quot;, # The user&#x27;s current primary email address. If the user&#x27;s email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user&#x27;s email address changes. If the userId is suspended, the license status changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700371 &quot;productId&quot;: &quot;A String&quot;, # A product&#x27;s unique identifier. For more information about products in this version of the API, see Product and SKU IDs.
John Asmuth614db982014-04-24 15:46:26 -0400372 }</pre>
373</div>
374
375</body></html>