John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 75 | <h1><a href="licensing_v1.html">Licensing API</a> . <a href="licensing_v1.licenseAssignments.html">licenseAssignments</a></h1> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#delete">delete(productId, skuId, userId)</a></code></p> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 79 | <p class="firstline">Revoke a license.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 80 | <p class="toc_element"> |
| 81 | <code><a href="#get">get(productId, skuId, userId)</a></code></p> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 82 | <p class="firstline">Get a specific user's license by product SKU.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 83 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 84 | <code><a href="#insert">insert(productId, skuId, body=None)</a></code></p> |
| 85 | <p class="firstline">Assign a license.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 86 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 87 | <code><a href="#listForProduct">listForProduct(productId, customerId, maxResults=None, pageToken=None)</a></code></p> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 88 | <p class="firstline">List all users assigned licenses for a specific product SKU.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 89 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 90 | <code><a href="#listForProductAndSku">listForProductAndSku(productId, skuId, customerId, maxResults=None, pageToken=None)</a></code></p> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 91 | <p class="firstline">List all users assigned licenses for a specific product SKU.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 92 | <p class="toc_element"> |
| 93 | <code><a href="#listForProductAndSku_next">listForProductAndSku_next(previous_request, previous_response)</a></code></p> |
| 94 | <p class="firstline">Retrieves the next page of results.</p> |
| 95 | <p class="toc_element"> |
| 96 | <code><a href="#listForProduct_next">listForProduct_next(previous_request, previous_response)</a></code></p> |
| 97 | <p class="firstline">Retrieves the next page of results.</p> |
| 98 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 99 | <code><a href="#patch">patch(productId, skuId, userId, body=None)</a></code></p> |
| 100 | <p class="firstline">Reassign a user's product SKU with a different SKU in the same product. This method supports patch semantics.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 101 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 102 | <code><a href="#update">update(productId, skuId, userId, body=None)</a></code></p> |
| 103 | <p class="firstline">Reassign a user's product SKU with a different SKU in the same product.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 104 | <h3>Method Details</h3> |
| 105 | <div class="method"> |
| 106 | <code class="details" id="delete">delete(productId, skuId, userId)</code> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 107 | <pre>Revoke a license. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 108 | |
| 109 | Args: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 110 | productId: string, A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. (required) |
| 111 | skuId: string, A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. (required) |
| 112 | userId: string, The user's current primary email address. If the user's email address changes, use the new email address in your API requests. |
| 113 | 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's email address changes. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 114 | If the userId is suspended, the license status changes. (required) |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 115 | </pre> |
| 116 | </div> |
| 117 | |
| 118 | <div class="method"> |
| 119 | <code class="details" id="get">get(productId, skuId, userId)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 120 | <pre>Get a specific user's license by product SKU. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 121 | |
| 122 | Args: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 123 | productId: string, A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. (required) |
| 124 | skuId: string, A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. (required) |
| 125 | userId: string, The user's current primary email address. If the user's email address changes, use the new email address in your API requests. |
| 126 | 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's email address changes. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 127 | If the userId is suspended, the license status changes. (required) |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 128 | |
| 129 | Returns: |
| 130 | An object of the form: |
| 131 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 132 | { # Representation of a license assignment. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 133 | "etags": "A String", # ETag of the resource. |
| 134 | "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment. |
| 135 | "productId": "A String", # A product's unique identifier. For more information about products in this version of the API, see Product and SKU IDs. |
| 136 | "productName": "A String", # Display Name of the product. |
| 137 | "selfLink": "A String", # Link to this page. |
| 138 | "skuId": "A String", # A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. |
| 139 | "skuName": "A String", # Display Name of the sku of the product. |
| 140 | "userId": "A String", # The user's current primary email address. If the user'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's email address changes. If the userId is suspended, the license status changes. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 141 | }</pre> |
| 142 | </div> |
| 143 | |
| 144 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 145 | <code class="details" id="insert">insert(productId, skuId, body=None)</code> |
| 146 | <pre>Assign a license. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 147 | |
| 148 | Args: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 149 | productId: string, A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. (required) |
| 150 | skuId: string, A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 151 | body: object, The request body. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 152 | The object takes the form of: |
| 153 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 154 | { # Representation of a license assignment. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 155 | "userId": "A String", # Email id of the user |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 156 | } |
| 157 | |
| 158 | |
| 159 | Returns: |
| 160 | An object of the form: |
| 161 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 162 | { # Representation of a license assignment. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 163 | "etags": "A String", # ETag of the resource. |
| 164 | "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment. |
| 165 | "productId": "A String", # A product's unique identifier. For more information about products in this version of the API, see Product and SKU IDs. |
| 166 | "productName": "A String", # Display Name of the product. |
| 167 | "selfLink": "A String", # Link to this page. |
| 168 | "skuId": "A String", # A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. |
| 169 | "skuName": "A String", # Display Name of the sku of the product. |
| 170 | "userId": "A String", # The user's current primary email address. If the user'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's email address changes. If the userId is suspended, the license status changes. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 171 | }</pre> |
| 172 | </div> |
| 173 | |
| 174 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 175 | <code class="details" id="listForProduct">listForProduct(productId, customerId, maxResults=None, pageToken=None)</code> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 176 | <pre>List all users assigned licenses for a specific product SKU. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 177 | |
| 178 | Args: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 179 | productId: string, A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. (required) |
| 180 | customerId: string, Customer's customerId. A previous version of this API accepted the primary domain name as a value for this field. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 181 | If the customer is suspended, the server returns an error. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 182 | 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 Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 183 | 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. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 184 | |
| 185 | Returns: |
| 186 | An object of the form: |
| 187 | |
| 188 | { # LicesnseAssignment List for a given product/sku for a customer. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 189 | "etag": "A String", # ETag of the resource. |
| 190 | "items": [ # The LicenseAssignments in this page of results. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 191 | { # Representation of a license assignment. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 192 | "etags": "A String", # ETag of the resource. |
| 193 | "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment. |
| 194 | "productId": "A String", # A product's unique identifier. For more information about products in this version of the API, see Product and SKU IDs. |
| 195 | "productName": "A String", # Display Name of the product. |
| 196 | "selfLink": "A String", # Link to this page. |
| 197 | "skuId": "A String", # A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. |
| 198 | "skuName": "A String", # Display Name of the sku of the product. |
| 199 | "userId": "A String", # The user's current primary email address. If the user'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's email address changes. If the userId is suspended, the license status changes. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 200 | }, |
| 201 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 202 | "kind": "licensing#licenseAssignmentList", # Identifies the resource as a collection of LicenseAssignments. |
| 203 | "nextPageToken": "A String", # 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. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 204 | }</pre> |
| 205 | </div> |
| 206 | |
| 207 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 208 | <code class="details" id="listForProductAndSku">listForProductAndSku(productId, skuId, customerId, maxResults=None, pageToken=None)</code> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 209 | <pre>List all users assigned licenses for a specific product SKU. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 210 | |
| 211 | Args: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 212 | productId: string, A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. (required) |
| 213 | skuId: string, A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. (required) |
| 214 | customerId: string, Customer's customerId. A previous version of this API accepted the primary domain name as a value for this field. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 215 | If the customer is suspended, the server returns an error. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 216 | 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 Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 217 | 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. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 218 | |
| 219 | Returns: |
| 220 | An object of the form: |
| 221 | |
| 222 | { # LicesnseAssignment List for a given product/sku for a customer. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 223 | "etag": "A String", # ETag of the resource. |
| 224 | "items": [ # The LicenseAssignments in this page of results. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 225 | { # Representation of a license assignment. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 226 | "etags": "A String", # ETag of the resource. |
| 227 | "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment. |
| 228 | "productId": "A String", # A product's unique identifier. For more information about products in this version of the API, see Product and SKU IDs. |
| 229 | "productName": "A String", # Display Name of the product. |
| 230 | "selfLink": "A String", # Link to this page. |
| 231 | "skuId": "A String", # A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. |
| 232 | "skuName": "A String", # Display Name of the sku of the product. |
| 233 | "userId": "A String", # The user's current primary email address. If the user'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's email address changes. If the userId is suspended, the license status changes. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 234 | }, |
| 235 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 236 | "kind": "licensing#licenseAssignmentList", # Identifies the resource as a collection of LicenseAssignments. |
| 237 | "nextPageToken": "A String", # 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. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 238 | }</pre> |
| 239 | </div> |
| 240 | |
| 241 | <div class="method"> |
| 242 | <code class="details" id="listForProductAndSku_next">listForProductAndSku_next(previous_request, previous_response)</code> |
| 243 | <pre>Retrieves the next page of results. |
| 244 | |
| 245 | Args: |
| 246 | previous_request: The request for the previous page. (required) |
| 247 | previous_response: The response from the request for the previous page. (required) |
| 248 | |
| 249 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 250 | A request object that you can call 'execute()' on to request the next |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 251 | page. Returns None if there are no more items in the collection. |
| 252 | </pre> |
| 253 | </div> |
| 254 | |
| 255 | <div class="method"> |
| 256 | <code class="details" id="listForProduct_next">listForProduct_next(previous_request, previous_response)</code> |
| 257 | <pre>Retrieves the next page of results. |
| 258 | |
| 259 | Args: |
| 260 | previous_request: The request for the previous page. (required) |
| 261 | previous_response: The response from the request for the previous page. (required) |
| 262 | |
| 263 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 264 | A request object that you can call 'execute()' on to request the next |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 265 | page. Returns None if there are no more items in the collection. |
| 266 | </pre> |
| 267 | </div> |
| 268 | |
| 269 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 270 | <code class="details" id="patch">patch(productId, skuId, userId, body=None)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 271 | <pre>Reassign a user's product SKU with a different SKU in the same product. This method supports patch semantics. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 272 | |
| 273 | Args: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 274 | productId: string, A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. (required) |
| 275 | skuId: string, A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. (required) |
| 276 | userId: string, The user's current primary email address. If the user's email address changes, use the new email address in your API requests. |
| 277 | 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's email address changes. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 278 | If the userId is suspended, the license status changes. (required) |
| 279 | body: object, The request body. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 280 | The object takes the form of: |
| 281 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 282 | { # Representation of a license assignment. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 283 | "etags": "A String", # ETag of the resource. |
| 284 | "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment. |
| 285 | "productId": "A String", # A product's unique identifier. For more information about products in this version of the API, see Product and SKU IDs. |
| 286 | "productName": "A String", # Display Name of the product. |
| 287 | "selfLink": "A String", # Link to this page. |
| 288 | "skuId": "A String", # A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. |
| 289 | "skuName": "A String", # Display Name of the sku of the product. |
| 290 | "userId": "A String", # The user's current primary email address. If the user'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's email address changes. If the userId is suspended, the license status changes. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 291 | } |
| 292 | |
| 293 | |
| 294 | Returns: |
| 295 | An object of the form: |
| 296 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 297 | { # Representation of a license assignment. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 298 | "etags": "A String", # ETag of the resource. |
| 299 | "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment. |
| 300 | "productId": "A String", # A product's unique identifier. For more information about products in this version of the API, see Product and SKU IDs. |
| 301 | "productName": "A String", # Display Name of the product. |
| 302 | "selfLink": "A String", # Link to this page. |
| 303 | "skuId": "A String", # A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. |
| 304 | "skuName": "A String", # Display Name of the sku of the product. |
| 305 | "userId": "A String", # The user's current primary email address. If the user'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's email address changes. If the userId is suspended, the license status changes. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 306 | }</pre> |
| 307 | </div> |
| 308 | |
| 309 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 310 | <code class="details" id="update">update(productId, skuId, userId, body=None)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 311 | <pre>Reassign a user's product SKU with a different SKU in the same product. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 312 | |
| 313 | Args: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 314 | productId: string, A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. (required) |
| 315 | skuId: string, A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. (required) |
| 316 | userId: string, The user's current primary email address. If the user's email address changes, use the new email address in your API requests. |
| 317 | 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's email address changes. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 318 | If the userId is suspended, the license status changes. (required) |
| 319 | body: object, The request body. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 320 | The object takes the form of: |
| 321 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 322 | { # Representation of a license assignment. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 323 | "etags": "A String", # ETag of the resource. |
| 324 | "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment. |
| 325 | "productId": "A String", # A product's unique identifier. For more information about products in this version of the API, see Product and SKU IDs. |
| 326 | "productName": "A String", # Display Name of the product. |
| 327 | "selfLink": "A String", # Link to this page. |
| 328 | "skuId": "A String", # A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. |
| 329 | "skuName": "A String", # Display Name of the sku of the product. |
| 330 | "userId": "A String", # The user's current primary email address. If the user'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's email address changes. If the userId is suspended, the license status changes. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 331 | } |
| 332 | |
| 333 | |
| 334 | Returns: |
| 335 | An object of the form: |
| 336 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 337 | { # Representation of a license assignment. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 338 | "etags": "A String", # ETag of the resource. |
| 339 | "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment. |
| 340 | "productId": "A String", # A product's unique identifier. For more information about products in this version of the API, see Product and SKU IDs. |
| 341 | "productName": "A String", # Display Name of the product. |
| 342 | "selfLink": "A String", # Link to this page. |
| 343 | "skuId": "A String", # A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. |
| 344 | "skuName": "A String", # Display Name of the sku of the product. |
| 345 | "userId": "A String", # The user's current primary email address. If the user'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's email address changes. If the userId is suspended, the license status changes. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 346 | }</pre> |
| 347 | </div> |
| 348 | |
| 349 | </body></html> |